[LLVMbugs] [Bug 7762] New: OpenSolaris link failure, link commands missing key libraries

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jul 30 13:11:46 PDT 2010


http://llvm.org/bugs/show_bug.cgi?id=7762

           Summary: OpenSolaris link failure, link commands missing key
                    libraries
           Product: Build scripts
           Version: 2.7
          Platform: PC
        OS/Version: Solaris
            Status: NEW
          Severity: normal
          Priority: P
         Component: Makefiles
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: llvm001 at deltaprime.com
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=5296)
 --> (http://llvm.org/bugs/attachment.cgi?id=5296)
Build and environment details.

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 attachment has build and environment details.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list