[LLVMbugs] LLVM 2.7/OpenSolaris link failure, link commands missing key libraries

Duncan Sands baldrick at free.fr
Fri Aug 27 19:01:28 PDT 2010


Hi Laszlo,

> The build process fails to link the LLVM tools. Specifically, the
> first tool to build is 'opt' which results in 700+ undefined symbols.
>
> I looked into the Makefiles and found that the "LINK_COMPONENTS" make
> variable does not get the correct set of libraries. In fact, at the
> top level Makefile.rules, the variable is set to "support system",
> however, these do not seem to make it to the 'opt' make context.
>
> The list of libraries for 'opt' is (from the g++ link command):
>
> ... -lLLVMipo -lLLVMScalarOpts -lLLVMInstrumentation -lLLVMAsmParser -
> lLLVMBitWriter -lLLVMBitReader ...
>
> It is missing at a minimum LLVMCore, which when added reduces the
> unresolved externals to 400+.

the list of components to link with is computed automatically.  Presumably
it is being computed wrong.  I suggest you take a look at how tools/llvm-config
works.  You might want to try LLVM from svn first just in case things work
better there.

Ciao,

Duncan.



More information about the llvm-bugs mailing list