[LLVMdev] Can you hint on solution to following problem
John Criswell
criswell at cs.uiuc.edu
Mon Dec 8 09:24:05 PST 2003
Umar Janjua wrote:
> gccld: Cannot find linker input file 'crtend.o
>
> I have set the LLVM_LIB_SEARCH_PATH
>
> ls -l $LLVM_LIB_SEARCH_PATH
> total 104
> -rw-r--r-- 1 muj20 muj20 12788 Dec 7 17:05 crtend.o
> -rw-r--r-- 1 muj20 muj20 1984 Dec 7 17:05 libc.bc
> -rw-r--r-- 1 muj20 muj20 120 Dec 7 17:05 libcurses.bc
Interesting. I'm not sure what is wrong.
Please try the following things:
1. Make sure that LLVM_LIB_SEARCH_PATH is exported (i.e. use 'export
LLVM_LIB_SEARCH_PATH' for sh/ksh shells, or 'setenv LLVM_LIB_SEARCH_PATH
"<directory>"' for csh/tcsh shells). If it's not exported, gccld won't
may not see the variable's value.
2. Run "file $LLVM_LIB_SEARCH_PATH/crtend.o". If the file type is data,
then it's a bytecode file. If the file type is some sort of ELF type,
then crtend.o somehow got compiled into a native binary file, and gccld
won't use it.
3. Try using the full pathname to crtend.o when using gccld.
If none of these things help, then please send us a follow-up email to
llvmdev at cs.uiuc.edu. In that email, please tell us what OS you're using
and whether you're using LLVM 1.0 or whether you've updated from our CVS
respository.
Regards,
John T. Criswell
--
*********************************************************************
* John T. Criswell Email: criswell at uiuc.edu *
* Research Programmer *
* University of Illinois at Urbana-Champaign *
* *
* "It's today!" said Piglet. "My favorite day," said Pooh. *
*********************************************************************
More information about the llvm-dev
mailing list