-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
libstdc++.so.6 version glibcxx_3.4.15' not found centos 6.5 #15365
Comments
The is likely because a fairly new version of gcc is required, due to LLVM requiring C++11 support. I would recommend installing gcc 4.7 or above. We build our snapshots and nightlies on a centos 6 machine, and I sadly had to compile our own gcc to get the right C++11 support. Another option is to build rust elsewhere with the In the meantime, however, there's sadly not much we can do about this, so I'm going to close this issue as not very actionable. |
Hi Alex, I have 4.8.1, I still get oxidize: x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc on rust 0.10 |
Tried the second option but configure: error: Option '--enable-llvm-static-stdcpp' is not recognized |
Reopening to investigate.
|
*I downloaded the 0.11 binary and ran the script but i get the below error /home/leo/rust/rust-0.11.0-x86_64-unknown-linux-gnu//bin/rustc: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /home/leo/rust/rust-0.11.0-x86_64-unknown-linux-gnu/bin/../lib/librustc-a9826c4a-0.11.0.so) Will try to compile from master |
Are you sure you have the right entry in |
will check that While I tried to compile from master with --enable-llvm-static-stdcpp, I get the below error on make make: llvm |
This sounds like there are a number of issues going on here, some of which are getting conflated with others. Here's what I would recommend doing:
|
So I did the follow ldd rustc 4 & 5 tried does not work, don't understand the string error? Not sure how to proceed now, |
I can replicate all of the above issues and confirm none of the fixes work for me. |
I am trying to compile rust on CentOS 5.10. I have succesfuly compiled latest version of gcc for that, 4.7.4. export PATH=/opt/gcc-build-4.7.4/bin/:$PATH
export LD_LIBRARY_PATH=/opt/gcc-build-4.7.4/lib/ Everything builds ok until this line:
It looks like the script downloads rust bunary in stage0. When i try to run it, I get:
As suggested above, I can run ldd:
It probably means that my OS is really, really old. However, I can't really change it very easily :). Any more suggestions? |
I can do this hack and get LLVM libraries to compile: export LD_PRELOAD='/opt/gcc-build-4.7.4/lib64/libstdc++.so.6' However, it fails as soon as it uses rustc binary built on more recent system:
It would be fine if I could build rustc myself (which I am trying to do), but rustc is required for that. So, at this point rust happens to be limited to systems with libc 2.6 or later. |
Nightlies are now built on CentOS 5.10 and statically link libstdc++, can you confirm that the binaries work for you now? |
Trying to run this on my CentOS 6.5 server, I get: |
You need to be sure to have |
@alexcrichton Ooops, sure, forgot to do that. |
You may want to confirm that you're downloading the right binary due to our cloudfare syncing issues. This looks to be the same as #17194 though (which is confirmed fix), so I'm going to close this. |
@alexcrichton So it was CF, works over here - thanks for working on this! |
I got this error while using the latest version on rust 0.11.
gcc is installed not sure what i need to do to resolve it
The text was updated successfully, but these errors were encountered: