You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to compile llvm-project on Amazon Linux 2023 aarch64 (Amazon Graviton CPUs) fails with
-- Check for working C compiler: /home/ec2-user/swift-project/build/buildbot_linux/llvm-linux-aarch64/./bin/clang - broken
CMake Error at /usr/share/cmake/Modules/CMakeTestCCompiler.cmake:69 (message):
The C compiler
"/home/ec2-user/swift-project/build/buildbot_linux/llvm-linux-aarch64/./bin/clang"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /home/ec2-user/swift-project/build/buildbot_linux/llvm-linux-aarch64/tools/clang/runtime/compiler-rt-bins/CMakeFiles/CMakeTmp
Run Build Command(s):/home/ec2-user/swift-project/build/buildbot_linux/ninja-build/ninja cmTC_a5c7b && [1/2][ 50%][0.033s] Building C object CMakeFiles/cmTC_a5c7b.dir/testCCompiler.c.o
[2/2][100%][0.106s] Linking C executable cmTC_a5c7b
FAILED: cmTC_a5c7b
: && /home/ec2-user/swift-project/build/buildbot_linux/llvm-linux-aarch64/./bin/clang CMakeFiles/cmTC_a5c7b.dir/testCCompiler.c.o -o cmTC_a5c7b && :
/usr/bin/ld: cannot find crtbeginS.o: No such file or directory
/usr/bin/ld: cannot find -lgcc: No such file or directory
/usr/bin/ld: cannot find -lgcc_s: No such file or directory
clang-13: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:10 (project)
-- Configuring incomplete, errors occurred!
This is because Amazon defined a new triplet to identify the platform : aarch64-amazon-linux
Solution seems to add the triplet in Gnu.cpp like this (diff generated from next branch):
Trying to compile llvm-project on Amazon Linux 2023 aarch64 (Amazon Graviton CPUs) fails with
This is because Amazon defined a new triplet to identify the platform :
aarch64-amazon-linux
Solution seems to add the triplet in
Gnu.cpp
like this (diff generated fromnext
branch):The text was updated successfully, but these errors were encountered: