Hello again,

I just upgraded the clang and llvm packages to version 3.3-5.
With that version, the first error coming up is

/usr/bin/ld: error: /usr/bin/../lib/LLVMgold.so: could not load plugin library: /usr/bin/../lib/LLVMgold.so: cannot open shared object file: No such file or directory

After symlinking LLVMgold.so to /usr/lib (didn't have to do this in 3.3-3 if I remember correctly), compiling with clang and -O4 brings up another error message I haven't encountered so far:

ld: /var/tmp/llvm-3.3.src/lib/Support/Path.cpp:43: llvm::sys::LLVMFileType llvm::sys::IdentifyFileType(const char*, unsigned int): Assertion `length
=4 && "Invalid magic number length"' failed. clang: error: unable to execute 
command: Aborted
clang: error: linker command failed due to signal (use -v to see invocation)

Attached is the error log.

With best regards,

Andreas Duering


clang-3.3       1:3.3-5
llvm-3.3        1:3.3-5
llvm-3.3-dev    1:3.3-5

Debian clang version 3.3-5 (branches/release_33) (based on LLVM 3.3)
Target: i386-pc-linux-gnu
Thread model: posix
 "/usr/bin/clang" -cc1 -triple i386-pc-linux-gnu -emit-llvm-bc -disable-free 
-disable-llvm-verifier -main-file-name hello.c -mrelocation-model static 
-fmath-errno -masm-verbose -mconstructor-aliases -fuse-init-array -target-cpu 
pentium4 -target-linker-version 2.23.52.20130727 -momit-leaf-frame-pointer -v 
-resource-dir /usr/bin/../lib/clang/3.3 -internal-isystem /usr/local/include 
-internal-isystem /usr/bin/../lib/clang/3.3/include -internal-isystem 
/usr/include/clang/3.3/include/ -internal-externc-isystem 
/usr/include/i386-linux-gnu -internal-externc-isystem 
/usr/include/i486-linux-gnu -internal-externc-isystem /usr/include -O3 
-fdebug-compilation-dir /tmp -ferror-limit 19 -fmessage-length 0 -mstackrealign 
-fobjc-runtime=gcc -fobjc-default-synthesize-properties 
-fdiagnostics-show-option -backend-option -vectorize-loops -o 
/tmp/hello-INVc03.o -x c hello.c
clang -cc1 version 3.3 based upon LLVM 3.3 default target i386-pc-linux-gnu
ignoring nonexistent directory "/usr/bin/../lib/clang/3.3/include"
ignoring nonexistent directory "/usr/include/i486-linux-gnu"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/include/clang/3.3/include
 /usr/include/i386-linux-gnu
 /usr/include
End of search list.
 "/usr/bin/ld" --hash-style=both --build-id --eh-frame-hdr -m elf_i386 
-dynamic-linker /lib/ld-linux.so.2 -o a.out 
/usr/lib/gcc/i486-linux-gnu/4.8/../../../i386-linux-gnu/crt1.o 
/usr/lib/gcc/i486-linux-gnu/4.8/../../../i386-linux-gnu/crti.o 
/usr/lib/gcc/i486-linux-gnu/4.8/crtbegin.o -L/usr/lib/gcc/i486-linux-gnu/4.8 
-L/usr/lib/gcc/i486-linux-gnu/4.8/../../../i386-linux-gnu -L/lib/i386-linux-gnu 
-L/usr/lib/i386-linux-gnu -L/usr/lib/gcc/i486-linux-gnu/4.8/../../.. -L/lib 
-L/usr/lib -plugin /usr/bin/../lib/LLVMgold.so -plugin-opt=mcpu=pentium4 
/tmp/hello-INVc03.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc 
--as-needed -lgcc_s --no-as-needed /usr/lib/gcc/i486-linux-gnu/4.8/crtend.o 
/usr/lib/gcc/i486-linux-gnu/4.8/../../../i386-linux-gnu/crtn.o
ld: /var/tmp/llvm-3.3.src/lib/Support/Path.cpp:43: llvm::sys::LLVMFileType 
llvm::sys::IdentifyFileType(const char*, unsigned int): Assertion `length >=4 
&& "Invalid magic number length"' failed.
clang: error: unable to execute command: Aborted
clang: error: linker command failed due to signal (use -v to see invocation)

Reply via email to