Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linux: link error 'undefined symbol: lens::OpenLensRegionSearchInstructions' #3759

Open
JCYang opened this issue Jul 30, 2024 · 2 comments
Open
Labels
bug Bug report Build Related to building CEF/Chromium linux Linux platform

Comments

@JCYang
Copy link
Contributor

JCYang commented Jul 30, 2024

Describe the bug
Fetch and build the master branch following the instructions
in https://bitbucket.org/chromiumembedded/cef/wiki/MasterBuildQuickStart
The build will finally failed in the linking of libcef.so, with error indicated "undefined symbol: lens::OpenLensRegionSearchInstructions"

To Reproduce
Steps to reproduce the behavior:

  1. Follow the https://bitbucket.org/chromiumembedded/cef/wiki/MasterBuildQuickStart to build the master branch
  2. Wait hours for the build to complete
  3. You can see the link error when linking libcef.so

ld.lld: error: undefined symbol: lens::OpenLensRegionSearchInstructions(Browser*, base::OnceCallback<void ()>, base::OnceCallback<void ()>)

referenced by lens_region_search_controller.cc:74 (../../chrome/browser/lens/region_search/lens_region_search_controller.cc:74)
region_search/lens_region_search_controller.o:(lens::LensRegionSearchController::Start(content::WebContents*, bool, bool, lens::AmbientSearchEntryPoint)) in archive obj/chrome/browser/lens/region_search/libregion_search.a

Expected behavior
Build successfully.

Versions (please complete the following information):

  • OS: [Ubuntu 22.04]
  • CEF Version: [Master branch]

Fix PR is coming.

@JCYang JCYang added the bug Bug report label Jul 30, 2024
@JCYang
Copy link
Contributor Author

JCYang commented Jul 30, 2024

This problem is root down to the on-going effort of modularize //chrome/browser
https://issues.chromium.org/issues/353628440
It's been reported in that issue thread.
May we submit the patch to chromium but better we do it here since it break our build.

@JCYang
Copy link
Contributor Author

JCYang commented Jul 30, 2024

@magreenblatt magreenblatt added Build Related to building CEF/Chromium linux Linux platform labels Aug 5, 2024
@magreenblatt magreenblatt changed the title Master branch failed to build on linux with link error 'undefined symbol: lens::OpenLensRegionSearchInstructions' linux: link error 'undefined symbol: lens::OpenLensRegionSearchInstructions' Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug report Build Related to building CEF/Chromium linux Linux platform
Projects
None yet
Development

No branches or pull requests

2 participants