[LLVMdev] Building LLVM on Solaris/Sparc
Bill Wendling
wendling at apple.com
Wed Aug 3 16:13:03 PDT 2011
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/GraphPrinters.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
More information about the llvm-dev
mailing list