I just checked my link command, and it includes the libraries you list, (among others) so I appear to be having a slightly different issue from the original poster. In fact, it looks like LLVM is compiling successfully, but clang (which I am also building) can't find any LLVM symbols.<br>

<div class="gmail_quote">
<br>Just as a sanity check, what output files should I expect from a successful LLVM build?<br><font color="#888888"><br>- Alex</font><div><div></div><div class="h5"><br><br><div class="gmail_quote">On Wed, Aug 3, 2011 at 19:13, Bill Wendling <span dir="ltr"><<a href="mailto:wendling@apple.com" target="_blank">wendling@apple.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">On Apr 5, 2011, at 10:53 AM, Tarun Pondicherry wrote:<br>
<br>
> Hi,<br>
><br>
> 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.<br>
><br>
> It is identical to the link command that gets run and works on an x86 host.<br>
><br>
> Thanks,<br>
> Tarun<br>
><br>
> 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!<br>



 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  \<br>
> -lLLVM-2.9svn   -lpthread -lmalloc -lm<br>
<br>
It seems like you're missing a whole bunch of libraries on the command line. This is what I have when I compile it:<br>
<br>
-lLLVMipo -lLLVMScalarOpts -lLLVMInstCombine -lLLVMInstrumentation -lLLVMTransformUtils -lLLVMipa -lLLVMAnalysis -lLLVMTarget -lLLVMMC -lLLVMAsmParser -lLLVMBitWriter -lLLVMBitReader -lLLVMCore -lLLVMSupport<br>
<br>
I'm not sure what the -lLLVM-2.9svn is...<br>
<br>
-bw<br>
<br>
<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</blockquote></div><br>
</div></div></div><br>