I'm getting a different failure in llvmc link on Leopard mac builds (Debug and Release):<div><br></div><div><div>llvm[1]: Linking Release executable llvmc (without symbols)</div><div>g++ -DLLVMC_BUILTIN_PLUGIN_1=Base -DLLVMC_BUILTIN_PLUGIN_2=Clang -I/Users/john/work/projects/comp/llvm-work/exp/build/llvm-check/include -I/Users/john/work/projects/comp/llvm-work/exp/build/llvm-check/tools/llvmc/driver -I/Users/john/work/projects/comp/llvm-work/llvm/include -I/Users/john/work/projects/comp/llvm-work/llvm/tools/llvmc/driver -D_DEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -O3 -fno-common -Woverloaded-virtual -m32 -pedantic -Wno-long-long -Wall -W -Wno-unused-parameter -Wwrite-strings -lCompilerDriver -O3 -L/Users/john/work/projects/comp/llvm-work/exp/build/llvm-check/Release/lib -L/Users/john/work/projects/comp/llvm-work/exp/build/llvm-check/Release/lib -o /Users/john/work/projects/comp/llvm-work/exp/build/llvm-check/Release/bin/llvmc /Users/john/work/projects/comp/llvm-work/exp/build/llvm-check/tools/llvmc/driver/Release/Main.o -lplugin_llvmc_Base -lplugin_llvmc_Clang \</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span> -lpthread -lffi -lm </div><div>Undefined symbols:</div><div> "llvmc::ForceLinkageClang()", referenced from:</div><div> llvmc::ForceLinkage() in Main.o</div>
<div> _main in Main.o</div><div> "llvmc::ForceLinkageBase()", referenced from:</div><div> llvmc::ForceLinkage() in Main.o</div><div> _main in Main.o</div><div>ld: symbol(s) not found</div><div>
collect2: ld returned 1 exit status</div><div>make[1]: *** [/Users/john/work/projects/comp/llvm-work/exp/build/llvm-check/Release/bin/llvmc] Error 1</div><div>make: *** [all] Error 1</div><div><br></div><br><div class="gmail_quote">
On Tue, Jun 30, 2009 at 12:29 PM, Nick Lewycky <span dir="ltr"><<a href="mailto:nlewycky@google.com">nlewycky@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div>I'm seeing this new build failure, starting some time yesterday on ARM:</div><div><br></div><div>make[3]: Entering directory `/home/nlewycky/llvm/tools/llvmc/driver'</div><div>llvm[3]: Linking Debug executable llvmc</div>
<div>g++ -DLLVMC_BUILTIN_PLUGIN_1=Base -DLLVMC_BUILTIN_PLUGIN_2=Clang -I/home/nlewycky/llvm/include -I/home/nlewycky/llvm/tools/llvmc/driver -D_DEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -g -fPIC -Woverloaded-virtual -pedantic -Wno-long-long -Wall -W -Wno-unused-parameter -Wwrite-strings -lCompilerDriver -g -Wl,-R -Wl,/home/nlewycky/llvm/Debug/bin -Wl,-export-dynamic -L/home/nlewycky/llvm/Debug/lib -L/home/nlewycky/llvm/Debug/lib -o /home/nlewycky/llvm/Debug/bin/llvmc /home/nlewycky/llvm/tools/llvmc/driver/Debug/Main.o -lplugin_llvmc_Base -lplugin_llvmc_Clang \</div>
<div> -lpthread -ldl -lm </div><div>/usr/bin/ld: /home/nlewycky/llvm/Debug/bin/llvmc: hidden symbol `__sync_val_compare_and_swap_4' in /usr/lib/gcc/arm-linux-gnueabi/4.3.3/libgcc.a(linux-atomic.o) is referenced by DSO</div>
<div>/usr/bin/ld: final link failed: Nonrepresentable section on output</div><div>collect2: ld returned 1 exit status</div><div>make[3]: *** [/home/nlewycky/llvm/Debug/bin/llvmc] Error 1</div><div><br></div><div>This is with LLVM being built by the system compiler (GCC 4.3.3-10 Debian). I'm not sure what to make of this. Would it be due to the atomics used for mutexes?</div>
<div><br></div><font color="#888888"><div>Nick</div><div><br></div>
</font><br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">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>
<br></blockquote></div><br></div>