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

C79 bump breaks debug build on Linux #7055

Closed
mkarolin opened this issue Nov 21, 2019 · 10 comments · Fixed by brave/brave-core#4255
Closed

C79 bump breaks debug build on Linux #7055

mkarolin opened this issue Nov 21, 2019 · 10 comments · Fixed by brave/brave-core#4255

Comments

@mkarolin
Copy link
Contributor

mkarolin commented Nov 21, 2019

This maybe different for various flavors of Linux, I am building on Mint Cinnamon 19.2

When building debug build on Linux, the build itself succeeds, but the executable cannot run.
The following error is shown:

brave-browser/src/out/Debug/brave: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by brave-browser/src/out/Debug/brave)

This is due to the following Chromium change:
https://chromium.googlesource.com/chromium/src/+/695245c
(also see https://bugs.chromium.org/p/chromium/issues/detail?id=1012850)
which rolls sysroots from GLIBC_2.27 (which is what my OS has) to GLIBC_2.29.

See src/build/linux/debian_sid_amd64-sysroot libraries.

  • Reverting this commit:
    src> git revert 695245cf8ad88b73cac7ccd4f5bcda88fc16bf83
  • Then, running
    src> ./build/linux/sysroot_scripts/install-sysroot.py --arch=amd64
  • Then, rebuilding - fixes the error (the libraries in the src/build/linux/debian_sid_amd64-sysroot are rolled back to 2.27).

cc: @iefremov @simonhong @bsclifton

@bridiver
Copy link
Contributor

it really shouldn't matter what your OS has because it bundles everything it needs afaik other than the things installed by install-build-deps.sh, but I don't see any changes to install-build-deps.sh in that commit? Maybe they happened somewhere else?

@NejcZdovc
Copy link
Contributor

same think happened to me on ubuntu

@mkarolin
Copy link
Contributor Author

Reopening because this issue refers specifically to debug builds, whereas brave/brave-core#4255 fixes the issue that appeared in release builds. The issue with debug builds was present before cosmetic filtering changes.

@mkarolin mkarolin reopened this Dec 18, 2019
@mkarolin
Copy link
Contributor Author

It is quite likely, though, that the reason the debug build breaks is the same - rust linking with GLIBC in Chromium's sysroot.

@bsclifton
Copy link
Member

Re-opening as I believe this was closed on accident

@bsclifton
Copy link
Member

Closing as stale

@bsclifton bsclifton added the closed/stale Issue is no longer relevant, perhaps because the feature it refers to has been deprecated. label Jan 28, 2021
@bridiver
Copy link
Contributor

bridiver commented Jan 4, 2022

we still have a problem that needs to be addressed here with glibc

@bridiver bridiver reopened this Jan 4, 2022
@kjozwiak
Copy link
Member

@bridiver going to remove the closed/stale label as this was reopened a while ago. If this isn't an issue anymore, can you label it with the needed closed/[x] label and close the issue? Thanks!

@kjozwiak kjozwiak removed the closed/stale Issue is no longer relevant, perhaps because the feature it refers to has been deprecated. label May 10, 2023
@bridiver
Copy link
Contributor

I believe this was fixed by removing the dependency on glibc in rust. @antonok-edm ?

@mkarolin
Copy link
Contributor Author

This is no longer an issue.

@mkarolin mkarolin added this to the Closed / Dupe / Invalid milestone May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment