[Libclc-dev] Libclc will not compile with linux 64-bit

John Frankish via Libclc-dev libclc-dev at lists.llvm.org
Mon Sep 18 12:57:37 PDT 2017


Using libclc from git as of today

It fails to compile with the error below.

Note that, as this is a pure 64-bit system, there is no /lib64, but making the symlink /lib64 -> /lib does not fix the problem.

Note also that llvm/clang were compiled on the same system and did not require a /lib64.

-----

./configure.py --with-llvm-config=/usr/local/bin/llvm-config

make
...
CXX utils/prepare-builtins.o
warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean '-Wno-uninitialized'? [-Wunknown-warning-option]
1 warning generated.
LINK utils/prepare-builtins

$ /usr/local/bin/clang++ -v -o utils/prepare-builtins utils/prepare-builtins.o -lLLVM-4.0  -L/usr/local/lib -Wl,-rpath /usr/local/lib utils/prepare-builtins.o
clang version 4.0.1 (tags/RELEASE_401/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/local/bin
Found candidate GCC installation: /usr/local/bin/../lib/gcc/x86_64-pc-linux-gnu/6.2.0
Selected GCC installation: /usr/local/bin/../lib/gcc/x86_64-pc-linux-gnu/6.2.0
Candidate multilib: .;@m64
Selected multilib: .;@m64
 "/usr/local/bin/ld" --eh-frame-hdr -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o utils/prepare-builtins /usr/lib/crt1.o /usr/lib/crti.o /usr/local/bin/../lib/gcc/x86_64-pc-linux-gnu/6.2.0/crtbegin.o -L/usr/local/lib -L/usr/local/bin/../lib/gcc/x86_64-pc-linux-gnu/6.2.0 -L/usr/local/bin/../lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../.. -L/tmp/tcloop/clang/usr/local/bin/../lib -L/lib -L/usr/lib utils/prepare-builtins.o -lLLVM-4.0 -rpath /usr/local/lib utils/prepare-builtins.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/local/bin/../lib/gcc/x86_64-pc-linux-gnu/6.2.0/crtend.o /usr/lib/crtn.o
utils/prepare-builtins.o: file not recognized: File format not recognized
clang-4.0: error: linker command failed with exit code 1 (use -v to see invocation)



More information about the Libclc-dev mailing list