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

Nightly broken on older libstdc++ #57426

Closed
jrobsonchase opened this issue Jan 7, 2019 · 1 comment · Fixed by #57429
Closed

Nightly broken on older libstdc++ #57426

jrobsonchase opened this issue Jan 7, 2019 · 1 comment · Fixed by #57429
Labels
regression-from-stable-to-nightly Performance or correctness regression from stable to nightly.

Comments

@jrobsonchase
Copy link

As of nightly-2019-01-07, rustc fails on platforms with older libstdc++, i.e. CentOS 6.

error: couldn't load codegen backend "/home/rust/.rustup/toolchains/nightly-2019-01-07-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/codegen-backends/librustc_codegen_llvm-llvm.so": "/usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.14\' not found (required by /home/rust/.rustup/toolchains/nightly-2019-01-07-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/codegen-backends/../lib/libLLVM-8svn.so)"
$ ldd /home/rust/.rustup/toolchains/nightly-2019-01-07-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/codegen-backends/librustc_codegen_llvm-llvm.so
/home/rust/.rustup/toolchains/nightly-2019-01-07-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/codegen-backends/librustc_codegen_llvm-llvm.so: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.14' not found (required by /home/rust/.rustup/toolchains/nightly-2019-01-07-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/codegen-backends/../lib/libLLVM-8svn.so)
/home/rust/.rustup/toolchains/nightly-2019-01-07-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/codegen-backends/librustc_codegen_llvm-llvm.so: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /home/rust/.rustup/toolchains/nightly-2019-01-07-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/codegen-backends/../lib/libLLVM-8svn.so)
/home/rust/.rustup/toolchains/nightly-2019-01-07-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/codegen-backends/librustc_codegen_llvm-llvm.so: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.17' not found (required by /home/rust/.rustup/toolchains/nightly-2019-01-07-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/codegen-backends/../lib/libLLVM-8svn.so)
/home/rust/.rustup/toolchains/nightly-2019-01-07-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/codegen-backends/librustc_codegen_llvm-llvm.so: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.18' not found (required by /home/rust/.rustup/toolchains/nightly-2019-01-07-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/codegen-backends/../lib/libLLVM-8svn.so)
/home/rust/.rustup/toolchains/nightly-2019-01-07-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/codegen-backends/librustc_codegen_llvm-llvm.so: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.19' not found (required by /home/rust/.rustup/toolchains/nightly-2019-01-07-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/codegen-backends/../lib/libLLVM-8svn.so)
/home/rust/.rustup/toolchains/nightly-2019-01-07-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/codegen-backends/librustc_codegen_llvm-llvm.so: /usr/lib64/libstdc++.so.6: version `CXXABI_1.3.5' not found (required by /home/rust/.rustup/toolchains/nightly-2019-01-07-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/codegen-backends/../lib/libLLVM-8svn.so)
...

nightly-2019-01-06 and earlier do not exhibit this behavior.

@alexcrichton alexcrichton added the regression-from-stable-to-nightly Performance or correctness regression from stable to nightly. label Jan 7, 2019
alexcrichton added a commit to alexcrichton/rust that referenced this issue Jan 7, 2019
This commit is intended on fixing a regression from rust-lang#57286 where the
distributed LLVM shared library unfortunately depends on a dynamic copy
of libstdc++, meaning we're no longer as binary compatible as we
thought! This tweaks the build of LLVM as out distribution is slightly
different now, and is hoped to fix the issue.

Closes rust-lang#57426
@alexcrichton
Copy link
Member

Oops I think this was my fault! I've attempted to fix this in #57429

bors added a commit that referenced this issue Jan 7, 2019
Build LLVM with -static-libstdc++ on dist builds

This commit is intended on fixing a regression from #57286 where the
distributed LLVM shared library unfortunately depends on a dynamic copy
of libstdc++, meaning we're no longer as binary compatible as we
thought! This tweaks the build of LLVM as out distribution is slightly
different now, and is hoped to fix the issue.

Closes #57426
alexcrichton added a commit to alexcrichton/rust that referenced this issue Jan 8, 2019
This commit is intended on fixing a regression from rust-lang#57286 where the
distributed LLVM shared library unfortunately depends on a dynamic copy
of libstdc++, meaning we're no longer as binary compatible as we
thought! This tweaks the build of LLVM as out distribution is slightly
different now, and is hoped to fix the issue.

Closes rust-lang#57426
alexcrichton added a commit to alexcrichton/rust that referenced this issue Jan 8, 2019
This commit is intended on fixing a regression from rust-lang#57286 where the
distributed LLVM shared library unfortunately depends on a dynamic copy
of libstdc++, meaning we're no longer as binary compatible as we
thought! This tweaks the build of LLVM as out distribution is slightly
different now, and is hoped to fix the issue.

Closes rust-lang#57426
bors added a commit that referenced this issue Jan 8, 2019
Build LLVM with -static-libstdc++ on dist builds

This commit is intended on fixing a regression from #57286 where the
distributed LLVM shared library unfortunately depends on a dynamic copy
of libstdc++, meaning we're no longer as binary compatible as we
thought! This tweaks the build of LLVM as out distribution is slightly
different now, and is hoped to fix the issue.

Closes #57426
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
regression-from-stable-to-nightly Performance or correctness regression from stable to nightly.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants