Bug#718000: llvm-dev: LLVM gold plugin has failed to create LTO module: Invalid bitcode signature

Andreas Duering duer-spm at online.de
Mon Jul 29 19:14:36 UTC 2013


Hello,

thanks for your reply. I installed the clang-3.3 package and llvm-3.3-dev. I  
do not get the "cannot open shared object file" message as in the mentioned  
bug, but compiling a simple hello world program still failed with the  
"Invalid bitcode signature" error (see attached log file). However, I  
downloaded the source from llvm.org (Release 3.3) and compiled it myself, it  
worked fine with that version.

Regards,

Andreas Duering

ii  clang-3.3                 1:3.3-3           i386
ii  llvm-3.3-dev              1:3.3-3           i386
-------------- next part --------------
Debian clang version 3.3-3 (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.20130620 -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-deq2j4.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/llvm-3.3/lib/ -L/usr/lib/gcc/i486-linux-gnu/4.8/../../.. -L/lib -L/usr/lib -plugin /usr/lib/llvm-3.3/lib/LLVMgold.so -plugin-opt=mcpu=pentium4 /tmp/hello-deq2j4.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
/usr/bin/ld: error: LLVM gold plugin has failed to create LTO module: Invalid bitcode signature
/usr/bin/ld: error: /tmp/hello-deq2j4.o:1:3: invalid character
/usr/bin/ld: error: /tmp/hello-deq2j4.o:1:3: syntax error, unexpected $end
/usr/bin/ld: error: /tmp/hello-deq2j4.o: not an object or archive
/usr/lib/gcc/i486-linux-gnu/4.8/../../../i386-linux-gnu/crt1.o(.text+0x18): error: undefined reference to 'main'
clang: error: linker command failed with exit code 1 (use -v to see invocation)


More information about the Pkg-llvm-team mailing list