[LLVMdev] question about gccld and external libraries

Jakob Praher jpraher at yahoo.de
Tue Mar 1 08:55:07 PST 2005


hi,

I'm really new to llvm. I've successfully bootstrapped llvm-14 on my 
system and am able to successfully compile c code to llvm.

the problem is now that gccld is complaining that it can't find the 
libraries, like "c" or "crtend". [1]

all is fine, if I just use intrinsified functions like printf and 
friends, but I want to use the clock_gettime function and now the lli dumps.

thanks for any pointers.


-- jakob

[1]
gccld -o test-llvm 
-L/mnt/fire300/jp/llvm-14/lib/gcc/i686-pc-linux-gnu/3.4-llvm 
-L/mnt/fire300/jp/llvm-14/lib/gcc/i686-pc-linux-gnu/3.4-llvm/../../.. 
/tmp/ccc7ax7O.o -lc -lcrtend

gccld: warning: Cannot find library 'c'
gccld: warning: Cannot find library 'crtend'
gccld: warning: Cannot find library 'c'
gccld: warning: Cannot find library 'crtend'




More information about the llvm-dev mailing list