[LLVMbugs] LLVM 2.7/OpenSolaris link failure, link commands missing key libraries
lkiss at deltaprime.com
Sun Aug 29 23:32:12 PDT 2010
Thanks for the reply. I got resolution for this a while back. This had
to do with defining the environment variable "NM" as "gnm" on Solaris.
I'm not sure why the thread got posted again however... ?
On Aug 27, 2010, at 7:01 PM, Duncan Sands wrote:
> 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.
> it is being computed wrong. I suggest you take a look at how tools/
> works. You might want to try LLVM from svn first just in case
> things work
> better there.
> LLVMbugs mailing list
> LLVMbugs at cs.uiuc.edu
More information about the llvm-bugs