Skip to content

/lib64/ld64.so.2: version GLIBC_2.22' and /lib64/libc.so.6: version GLIBC_2.18' not found error on RHEL #39878

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

Closed
sandipmgiri opened this issue Feb 16, 2017 · 8 comments

Comments

@sandipmgiri
Copy link

Hi,

I am trying to build rust package on RHEL7.3(ppc64le) , however I am getting the following error for the command,make:

/root/rust/build/powerpc64le-unknown-linux-gnu/stage0/bin/cargo: /lib64/ld64.so.2: version GLIBC_2.22' not found (required by /root/rust/build/powerpc64le-unknown-linux-gnu/stage0/bin/cargo) /root/rust/build/powerpc64le-unknown-linux-gnu/stage0/bin/cargo: /lib64/libc.so.6: version GLIBC_2.18' not found (required by /root/rust/build/powerpc64le-unknown-linux-gnu/stage0/bin/cargo)
make: *** [all] Error 1

Any way to solve this issue?

Thanks!

@sandipmgiri sandipmgiri changed the title /lib64/ld64.so.2: version GLIBC_2.22' and GLIBC_2.18' not found error /lib64/ld64.so.2: version GLIBC_2.22' and GLIBC_2.18' not found error on RHEL Feb 16, 2017
@sandipmgiri sandipmgiri changed the title /lib64/ld64.so.2: version GLIBC_2.22' and GLIBC_2.18' not found error on RHEL /lib64/ld64.so.2: version GLIBC_2.22' and /lib64/libc.so.6: version GLIBC_2.18' not found error on RHEL Feb 16, 2017
@alexcrichton
Copy link
Member

The glibc requirement of the powerpc toolchains was moved backwards, but only pretty recently. The master branch of this repository bootstraps from the beta compiler, which doesn't have that patch unfortunately.

All that to say that rust should work from nightly archives (e.g. pulled down through rustup). Rust on the master branch, however, will need to wait a cycle to work to get the current nightlies as a beta.

@sandipmgiri
Copy link
Author

Thanks for quick reply!

For me rust installed successfully on RHEL7.3 from nightly archive which is available on webpage
https://www.rust-lang.org/en-US/other-installers.html

I would like to know this nightly-build binaries comes from which branch ?

@alexcrichton
Copy link
Member

Oh all the nightly builds come from master, but we cross-compile non-x86 binaries, which is why we can build a powerpc toolchain with an older glibc requirement without worrying about the glibc requirement of beta.

@cuviper
Copy link
Member

cuviper commented Feb 17, 2017

@sandipmgiri FWIW stable rust for ppc64le is now available on epel7-testing:
https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-f9554c9ddb

@sandipmgiri
Copy link
Author

Hi @alexcrichton ,

Are you using IBM Advanced Toolkit, to cross-compile rust from master branch ? If not, then could you please explain which method you are using ?

Thanks!

@cuviper
Copy link
Member

cuviper commented Feb 20, 2017

The cross-compile toolchains are those created in #39382, as linked earlier. I was not aware of the IBM Advanced Toolkit when I made those changes, or I would have considered it, but we should fine with these docker images now anyway. I've tested ppc64 and s390x on RHEL6 and ppc64le on RHEL7.

@sandipmgiri
Copy link
Author

Thanks!

@alexcrichton
Copy link
Member

Ok sounds like this is resolved, so closing.

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

3 participants