-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
[llvm build] Host compiler must support std::atomic #63623
Comments
what gcc version are you using? |
% gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/home/lzutao/.local/libexec/gcc/x86_64-pc-linux-gnu/9.1.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc-9.1.0/configure --prefix=/home/lzutao/.local --enable-languages=c,c++
Thread model: posix
gcc version 9.1.0 (GCC)
% cc -v
clang version 10.0.0 (https://github.com/llvm/llvm-project.git 2bf522aea62e4fb653cacb68072167d25149099e)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/lzutao/.local/bin
Found candidate GCC installation: /home/lzutao/.local/bin/../lib/gcc/x86_64-pc-linux-gnu/9.1.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6.3.0
Selected GCC installation: /home/lzutao/.local/bin/../lib/gcc/x86_64-pc-linux-gnu/9.1.0
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Selected multilib: .;@m64
Probably a few days ago. Then I hit |
strange the atomic test code works on godbolt as expected. |
Thanks. This shall be problem with my llvm build % clang -std=c++11 test.cpp
ld: error: undefined symbol: __cxa_begin_catch
>>> referenced by test.cpp
>>> /tmp/test-64b1e6.o:(__clang_call_terminate)
ld: error: undefined symbol: std::terminate()
>>> referenced by test.cpp
>>> /tmp/test-64b1e6.o:(__clang_call_terminate)
ld: error: undefined symbol: __gxx_personality_v0
>>> referenced by test.cpp
>>> /tmp/test-64b1e6.o:(.eh_frame+0x6B)
clang-9: error: linker command failed with exit code 1 (use -v to see invocation) I will check it later and report here. |
I rebuilt and install clang from scratch. rust llvm has been build fine since then. Thanks @andjo403 for the help you give. |
I cannot build rustc locally with commit f7af19c.
The build log is:
Host machine
% uname -a Linux gcc122.bak.milne.osuosl.org 4.9.0-9-amd64 #1 SMP Debian 4.9.168-1+deb9u2 (2019-05-13) x86_64 GNU/Linux
Custom
config.toml
The text was updated successfully, but these errors were encountered: