Skip to content

/lib64/ld64.so.2: version GLIBC_2.22 /lib64/libc.so.6: version GLIBC_2.18' #47576

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
yoni386 opened this issue Jan 19, 2018 · 5 comments
Closed

Comments

@yoni386
Copy link

yoni386 commented Jan 19, 2018

Hello,

I would to check what are the requirements of rust (libc) and if the execution / installing are issue or just is requirement / limitation.
Please advise if there is some workaround as static compile glibc (as possible on x86_64 musl).

On Red-Hat 7.4 glibc 2.17 is used as in x86_64 (Red-Hat 7.3).
[root@powerpc64le tmp]# ldd ./nv

./nv: /lib64/ld64.so.2: version GLIBC_2.22' not found (required by ./nv) ./nv: /lib64/libc.so.6: version GLIBC_2.18' not found (required by ./nv)
linux-vdso64.so.1 => (0x00007fffb0de0000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007fffb0d20000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fffb0ce0000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007fffb0ca0000)
libc.so.6 => /lib64/libc.so.6 (0x00007fffb0ab0000)
/lib64/ld64.so.2 (0x00007fffb0e00000)

[root@powerpc64le tmp]# ./nv

./nv: /lib64/ld64.so.2: version GLIBC_2.22' not found (required by ./nv) ./nv: /lib64/libc.so.6: version GLIBC_2.18' not found (required by ./nv)

On x86_64:
[root@x86_64 ~]# ldd --version

ldd (GNU libc) 2.17

On powerpc64le:
[root@powerpc64le ~]# ldd --version

ldd (GNU libc) 2.17

[root@name ~]# curl https://sh.rustup.rs -sSf | sh

info: downloading installer
/tmp/tmp.pPXmBEil5N/rustup-init: /lib64/ld64.so.2: version GLIBC_2.22' not found (required by /tmp/tmp.pPXmBEil5N/rustup-init) /tmp/tmp.pPXmBEil5N/rustup-init: /lib64/libc.so.6: version GLIBC_2.18' not found (required by /tmp/tmp.pPXmBEil5N/rustup-init)

Thank you,

Yoni

@yoni386
Copy link
Author

yoni386 commented Jan 19, 2018

Easy to repro

docker pull ppc64le/centos;
docker create --name rust_centos -it ppc64le/centos;
docker start rust_centos;
docker exec -it rust_centos bash;
[root@c769e981bada /]# curl https://sh.rustup.rs -sSf | sh;

> info: downloading installer
> /tmp/tmp.awWf7OI1vO/rustup-init: /lib64/ld64.so.2: version `GLIBC_2.22' not found (required by /tmp/tmp.awWf7OI1vO/rustup-init)
> /tmp/tmp.awWf7OI1vO/rustup-init: /lib64/libc.so.6: version `GLIBC_2.18' not found (required by /tmp/tmp.awWf7OI1vO/rustup-init)

@sfackler
Copy link
Member

This seems like a problem with rustup's build environment for the ppc64le target. Generally, you need to build on a system with the oldest glibc version you want to support.

The right place for this issue is probably over at https://github.com/rust-lang-nursery/rustup.rs/issues

@yoni386
Copy link
Author

yoni386 commented Jan 19, 2018 via email

@sfackler
Copy link
Member

You can just close the issue here and make a new one on that project.

@yoni386
Copy link
Author

yoni386 commented Jan 19, 2018

Created in rust-lang/rustup#1339

@yoni386 yoni386 closed this as completed Jan 19, 2018
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

2 participants