[LLVMdev] Strange error of llvm-ld

Holger Schurig hs4233 at mail.mn-solutions.de
Wed Aug 15 14:14:48 PDT 2007


I'm using llvm-ld from SVN r41106

When issueing the command

$ /usr/src/llvm/installed/bin/llvm-ld -v -stats -native -O1 -strip-all -o main \
  .obj/conf.o .obj/configwriter.o \
  -L/usr/share/qt3/lib -L/usr/X11R6/lib \
  -lcrypto -lusb -lutil -lqt-mt -lXext -lX11 -lm -lpthread

I get this output:

  Linking bitcode file '.obj/conf.o'
  Linked in file '.obj/conf.o'
  Linking bitcode file '.obj/configwriter.o'
llvm-ld: error: Cannot link file '.obj/configwriter.o'


If I swap the order of configwriter.o and conf.o, then I'll get
the same error, it just says that it cannot link conf.o

The "*.o" files are made by llvm-gcc-4.0 with --emit-llvm. I can
"llvm-dis conf.o -o -" on both files and don't see any apparent
error there.

Should I file a bug and attach those two files?



More information about the llvm-dev mailing list