[LLVMdev] Building LLVM on Solaris/Sparc
Gregory Junker
gjunker at dayark.com
Wed Aug 3 19:21:25 PDT 2011
-lLLVM-2.9svn is for linking against the shared library. I have to use the
same thing when I build because there is no documentation at all on the
"magic static library order" for the link line.
Greg
> -----Original Message-----
> From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu]
> On Behalf Of Bill Wendling
> Sent: Wednesday, August 03, 2011 4:13 PM
> To: Tarun Pondicherry
> Cc: llvmdev at cs.uiuc.edu
> Subject: Re: [LLVMdev] Building LLVM on Solaris/Sparc
>
> On Apr 5, 2011, at 10:53 AM, Tarun Pondicherry wrote:
>
> > Hi,
> >
> > I'm trying to build llvm on a Solaris/Sparc machine. I get many
> undefined symbols during the link phase of opt. The link command being
> run is below.
> >
> > It is identical to the link command that gets run and works on an x86
> host.
> >
> > Thanks,
> > Tarun
> >
> > g++ -I/n/fs/scratch/tpondich/ParallelAssert/llvm-objects/include -
> I/n/fs/scratch/tpondich/ParallelAssert/llvm-objects/tools/opt -
> I/n/fs/scratch/tpondich/ParallelAssert/llvm/include -
> I/n/fs/scratch/tpondich/ParallelAssert/llvm/tools/opt -D_DEBUG -
> include llvm/Support/Solaris.h -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -
> D__STDC_CONSTANT_MACROS -g -fno-exceptions -fno-rtti -fPIC -
> Woverloaded-virtual -Wcast-qual -pedantic -Wno-long-long -Wall -W -
> Wno-unused-parameter -Wwrite-strings -g -Wl,-R -Wl,'$ORIGIN/../lib' -
> Wl,-R -Wl,/n/fs/scratch/tpondich/ParallelAssert/llvm-
> objects/Debug+Asserts/bin -
> L/n/fs/scratch/tpondich/ParallelAssert/llvm-objects/Debug+Asserts/lib -
> L/n/fs/scratch/tpondich/ParallelAssert/llvm-objects/Debug+Asserts/lib
> -o /n/fs/scratch/tpondich/ParallelAssert/llvm-
> objects/Debug+Asserts/bin/opt
> /n/fs/scratch/tpondich/ParallelAssert/llvm-
> objects/tools/opt/Debug+Asserts/AnalysisWrappers.o
> /n/fs/scratch/tpondich/ParallelAssert/llvm-
> objects/tools/opt/Debug+Asserts/Gr!
> aphPrinters.o /n/fs/scratch/tpondich/ParallelAssert/llvm-
> objects/tools/opt/Debug+Asserts/PrintSCC.o
> /n/fs/scratch/tpondich/ParallelAssert/llvm-
> objects/tools/opt/Debug+Asserts/opt.o \
> > -lLLVM-2.9svn -lpthread -lmalloc -lm
>
> It seems like you're missing a whole bunch of libraries on the command
> line. This is what I have when I compile it:
>
> -lLLVMipo -lLLVMScalarOpts -lLLVMInstCombine -lLLVMInstrumentation -
> lLLVMTransformUtils -lLLVMipa -lLLVMAnalysis -lLLVMTarget -lLLVMMC -
> lLLVMAsmParser -lLLVMBitWriter -lLLVMBitReader -lLLVMCore -lLLVMSupport
>
> I'm not sure what the -lLLVM-2.9svn is...
>
> -bw
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
More information about the llvm-dev
mailing list