[PATCH] D52050: WIP: [Driver] Fix architecture triplets and search paths for Linux x32
John Paul Adrian Glaubitz via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 30 13:34:10 PDT 2021
glaubitz added a comment.
In D52050#2659654 <https://reviews.llvm.org/D52050#2659654>, @hvdijk wrote:
> I am testing the below, on top of c8e56f394af0b9e32c413d62a0e7aebbba3e6b70 <https://reviews.llvm.org/rGc8e56f394af0b9e32c413d62a0e7aebbba3e6b70>, both in a Debian chroot and in my non-Debian system. Initial testing in the Debian chroot suggests that this works for simple cases, clang has no problem finding /usr/lib/gcc/x86_64-linux-gnux32/10, and also picks up the right crt*.o files when using -m32 or -m64. Will do more extensive testing.
>
>
It does not work for me, unfortunately:
-- Check for working C compiler: /glaubitz/llvm-project/stage1.install/bin/clang - broken
CMake Error at /usr/share/cmake-3.18/Modules/CMakeTestCCompiler.cmake:66 (message):
The C compiler
"/glaubitz/llvm-project/stage1.install/bin/clang"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /glaubitz/llvm-project/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/ninja cmTC_52475 && [1/2] Building C object CMakeFiles/cmTC_52475.dir/testCCompiler.c.o
[2/2] Linking C executable cmTC_52475
FAILED: cmTC_52475
: && /glaubitz/llvm-project/stage1.install/bin/clang CMakeFiles/cmTC_52475.dir/testCCompiler.c.o -o cmTC_52475 && :
/usr/bin/x86_64-linux-gnux32-ld: cannot find crt1.o: No such file or directory
/usr/bin/x86_64-linux-gnux32-ld: cannot find crti.o: 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:38 (project)
-- Configuring incomplete, errors occurred!
Stage1 built with:
cmake -G Ninja ../llvm -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_ASSERTIONS=True -DLLVM_ENABLE_BINDINGS=OFF -DLLVM_LIT_ARGS="-v" -DCMAKE_INSTALL_PREFIX=../stage1.install -DLLVM_ENABLE_ASSERTIONS=ON -DLLVM_PARALLEL_LINK_JOBS=4 -DLLVM_TARGETS_TO_BUILD=X86 -DLLVM_ENABLE_PROJECTS="clang-tools-extra;llvm;compiler-rt;clang" -DLLVM_DEFAULT_TARGET_TRIPLE=x86_64-linux-gnux32 ; ninja -v ; ninja install
Stage 2 configured with:
cmake -G Ninja ../llvm -DCMAKE_C_COMPILER=/glaubitz/llvm-project/stage1.install/bin/clang -DCMAKE_CXX_COMPILER=/glaubitz/llvm-project/stage1.install/bin/clang++ -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_ASSERTIONS=True -DLLVM_LIT_ARGS="-v" -DCMAKE_INSTALL_PREFIX=../stage2.install -DLLVM_ENABLE_ASSERTIONS=ON -DLLVM_PARALLEL_LINK_JOBS=4 -DLLVM_TARGETS_TO_BUILD=X86 -DLLVM_ENABLE_PROJECTS="clang-tools-extra;llvm;compiler-rt;clang"
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D52050/new/
https://reviews.llvm.org/D52050
More information about the cfe-commits
mailing list