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

Error when running mold on Manjaro: /usr/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found #28

Closed
twilco opened this issue Apr 6, 2021 · 1 comment

Comments

@twilco
Copy link

twilco commented Apr 6, 2021

Hello!

I'm trying to use mold on Manjaro and receiving these errors:

$ cd ~/projects
$ git clone --recursive https://github.com/rui314/mold.git
$ cd mold
$ make submodules
$ make

$ build-webkit --gtk --debug --cmakeargs="-DUSE_LD_LLD=OFF -DUSE_LD_GOLD=OFF"
Building flatpak based environment
+  /home/twilco/projects/mold/mold -run cmake --build /app/webkit/WebKitBuild/Debug --config Debug -- 
/home/twilco/projects/mold/mold: /usr/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /home/twilco/projects/mold/mold)
/home/twilco/projects/mold/mold: /usr/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /home/twilco/projects/mold/oneTBB/build/linux_intel64_gcc_cc10.2.0_libc2.33_kernel5.4.105_release/libtbb.so.2)

It looks like mold expects these .sos to be in the directories Ubuntu / apt-get puts them in (e.g. see the file listing for libc6-dev, depended on by Ubuntu's build-essential package). Neither /usr/lib/x86_64-linux-gnu nor /lib/x86_64-linux-gnu exists on my system, so I'm guessing Arch-based repos don't follow this pattern.

I do have glibc installed, just not in the place mold expects:

$ /lib/libc.so.6
GNU C Library (GNU libc) release release version 2.33.
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 10.2.0.
libc ABIs: UNIQUE IFUNC ABSOLUTE
For bug reporting instructions, please see:
<https://bugs.archlinux.org/>.

I tried a symlink:

$ sudo mkdir /usr/lib/x86_64-linux-gnu
$ sudo ln -s /lib/libc.so.6 /usr/lib/x86_64-linux-gnu/libc.so.6

But get the exact same errors, so there must be more to it.

Have you tested mold on Arch-based distros yet?


Thanks for making this project -- excited to continue experimenting with it!

@twilco
Copy link
Author

twilco commented Apr 6, 2021

Though testing with your Rust example, mold seems to work fine:

cargo new mold-test
cd mold-teset
...edit .cargo/config.toml to what is in the linked comment...
cargo run
readelf -p .comment target/debug/mold-test

A simple CMake project also worked fine.

My original example is trying to build the GTK port of WebKit, which uses a Flatpak SDK for setting up build tools and running the build.

The problem is probably there, so I'm going to close this since it doesn't seem like a mold problem.

@twilco twilco closed this as completed Apr 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant