[LLVMbugs] LLVM 2.7/OpenSolaris link failure, link commands missing key libraries
Laszlo Kiss
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... ?
Laszlo
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.
> 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.
> _______________________________________________
> LLVMbugs mailing list
> LLVMbugs at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs
>
More information about the llvm-bugs
mailing list