[LLVMdev] Link error building llc

Anton Korobeynikov anton at korobeynikov.info
Thu Apr 9 08:15:47 PDT 2009


Hello, Neale

>         -lLLVMBitReader /home/neale/LLVM/llvm/Debug/lib/LLVMCBackend.o
> -lLLVMCodeGen -lLLVMScalarOpts -lLLVMTransformUtils -lLLVMipa -lLLVMAnalysis
> /home/neale/LLVM/llvm/Debug/lib/LLVMCppBackend.o -lLLVMTarget -lLLVMCore
> -lLLVMSupport -lLLVMSystem   -lpthread -ldl -lm -lelf
It seems, that you did not specify any single backend except C. Please
do so.

> So it appears to be missing LLVMSelectionDAG in the link specification. I've
> been trying to wade through the Makefile* files to see how the link
> specification is generated but am not getting anywhere. So my question is
> how/where is this generated?
List of libraries is generated via llvm-config script, which performs
dependency checking of libraries and arranges them in proper order.

-- 
With best regards, Anton Korobeynikov.

Faculty of Mathematics & Mechanics, Saint Petersburg State University.




More information about the llvm-dev mailing list