<font size=2 face="sans-serif">I seem to have a more fundamental problem
as well. I can't figure out how to link the appropriate libstdc++
.. any ideas?</font>
<br>
<br><font size=2 face="sans-serif">====</font>
<br>
<br><font size=2 face="sans-serif">.../test> cat vector_test.cc </font>
<br>
<br><font size=2 face="sans-serif">#include <vector></font>
<br>
<br><font size=2 face="sans-serif">int main ()</font>
<br><font size=2 face="sans-serif">{</font>
<br><font size=2 face="sans-serif"> std::vector<unsigned> foo;</font>
<br>
<br><font size=2 face="sans-serif"> return 0;</font>
<br><font size=2 face="sans-serif">};</font>
<br>
<br><font size=2 face="sans-serif">.../test> /bghome/blocksom/development/llvm/bgclang
-v vector_test.cc -o vector_test.cnk</font>
<br><font size=2 face="sans-serif">clang version 3.3 (trunk 170436)</font>
<br><font size=2 face="sans-serif">Target: powerpc64-bgq-linux</font>
<br><font size=2 face="sans-serif">Thread model: posix</font>
<br><font size=2 face="sans-serif"> "/bghome/blocksom/development/llvm/install/bin/clang"
-cc1 -triple powerpc64-bgq-linux -S -disable-free -main-file-name vector_test.cc
-static-define -mrelocation-model static -mdisable-fp-elim -fmath-errno
-ffp-contract=fast -mconstructor-aliases -target-cpu a2q -target-linker-version
2.20.51.0.2 -momit-leaf-frame-pointer -v -resource-dir /bghome/blocksom/development/llvm/install/bin/../lib/clang/3.3
-fmodule-cache-path /var/tmp/clang-module-cache -internal-isystem /bgsys/drivers/ppcfloor/gnu-linux/lib/gcc/powerpc64-bgq-linux/4.4.6/../../../../powerpc64-bgq-linux/include/c++/4.4.6
-internal-isystem /bgsys/drivers/ppcfloor/gnu-linux/lib/gcc/powerpc64-bgq-linux/4.4.6/../../../../powerpc64-bgq-linux/include/c++/4.4.6/powerpc64-bgq-linux
-internal-isystem /bgsys/drivers/ppcfloor/gnu-linux/lib/gcc/powerpc64-bgq-linux/4.4.6/../../../../powerpc64-bgq-linux/include/c++/4.4.6/backward
-internal-isystem /usr/local/include -internal-isystem /bghome/blocksom/development/llvm/install/bin/../lib/clang/3.3/include
-internal-externc-isystem /include -internal-externc-isystem /usr/include
-fdeprecated-macro -fno-dwarf-directory-asm -fdebug-compilation-dir /bghome/blocksom/development/boost-pami/next/test
-ferror-limit 19 -fmessage-length 231 -mstackrealign -fno-signed-char -fobjc-runtime=gcc
-fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics
-isystem /bgsys/drivers/ppcfloor/gnu-linux/powerpc64-bgq-linux/sys-include
-mllvm -enable-misched -mllvm -enable-aa-sched-mi -o /tmp/vector_test-f6IGjg.s
-x c++ vector_test.cc</font>
<br><font size=2 face="sans-serif">clang -cc1 version 3.3 based upon LLVM
3.3svn default target powerpc64-unknown-linux-gnu</font>
<br><font size=2 face="sans-serif">ignoring nonexistent directory "/include"</font>
<br><font size=2 face="sans-serif">#include "..." search starts
here:</font>
<br><font size=2 face="sans-serif">#include <...> search starts here:</font>
<br><font size=2 face="sans-serif"> /bgsys/drivers/ppcfloor/gnu-linux/powerpc64-bgq-linux/sys-include</font>
<br><font size=2 face="sans-serif"> /bgsys/drivers/ppcfloor/gnu-linux/lib/gcc/powerpc64-bgq-linux/4.4.6/../../../../powerpc64-bgq-linux/include/c++/4.4.6</font>
<br><font size=2 face="sans-serif"> /bgsys/drivers/ppcfloor/gnu-linux/lib/gcc/powerpc64-bgq-linux/4.4.6/../../../../powerpc64-bgq-linux/include/c++/4.4.6/powerpc64-bgq-linux</font>
<br><font size=2 face="sans-serif"> /bgsys/drivers/ppcfloor/gnu-linux/lib/gcc/powerpc64-bgq-linux/4.4.6/../../../../powerpc64-bgq-linux/include/c++/4.4.6/backward</font>
<br><font size=2 face="sans-serif"> /usr/local/include</font>
<br><font size=2 face="sans-serif"> /bghome/blocksom/development/llvm/install/bin/../lib/clang/3.3/include</font>
<br><font size=2 face="sans-serif"> /usr/include</font>
<br><font size=2 face="sans-serif">End of search list.</font>
<br><font size=2 face="sans-serif"> "/bgsys/drivers/ppcfloor/gnu-linux/lib/gcc/powerpc64-bgq-linux/4.4.6/../../../../powerpc64-bgq-linux/bin/as"
-a64 -mppc64 -many -o /tmp/vector_test-wO5yyv.o /tmp/vector_test-f6IGjg.s</font>
<br><font size=2 face="sans-serif"> "/bgsys/drivers/ppcfloor/gnu-linux/lib/gcc/powerpc64-bgq-linux/4.4.6/../../../../powerpc64-bgq-linux/bin/ld"
--hash-style=gnu --no-add-needed --build-id -m elf64ppc -static -o vector_test.cnk
/bgsys/drivers/ppcfloor/gnu-linux/powerpc64-bgq-linux/lib/crt1.o /bgsys/drivers/ppcfloor/gnu-linux/powerpc64-bgq-linux/lib/crti.o
/bgsys/drivers/ppcfloor/gnu-linux/lib/gcc/powerpc64-bgq-linux/4.4.6/crtbeginT.o
-L/bgsys/drivers/ppcfloor/gnu-linux/lib/gcc/powerpc64-bgq-linux/4.4.6 -L/bgsys/drivers/ppcfloor/gnu-linux/lib/gcc/powerpc64-bgq-linux/4.4.6/../../../../lib64
-L/lib/../lib64 -L/usr/lib/../lib64 -L/bgsys/drivers/ppcfloor/gnu-linux/lib/gcc/powerpc64-bgq-linux/4.4.6/../../../../powerpc64-bgq-linux/lib
-L/bgsys/drivers/ppcfloor/gnu-linux/lib/gcc/powerpc64-bgq-linux/4.4.6/../../..
-L/lib -L/usr/lib /tmp/vector_test-wO5yyv.o --start-group -lgcc -lgcc_eh
-lc --end-group /bgsys/drivers/ppcfloor/gnu-linux/lib/gcc/powerpc64-bgq-linux/4.4.6/crtend.o
/bgsys/drivers/ppcfloor/gnu-linux/powerpc64-bgq-linux/lib/crtn.o</font>
<br><font size=2 face="sans-serif">/tmp/vector_test-wO5yyv.o:(.text._ZNSt6vectorIjSaIjEED2Ev[_ZNSt6vectorIjSaIjEED2Ev]+0xac):
undefined reference to `std::terminate()'</font>
<br><font size=2 face="sans-serif">/tmp/vector_test-wO5yyv.o:(.text._ZN9__gnu_cxx13new_allocatorIjE10deallocateEPjm[_ZN9__gnu_cxx13new_allocatorIjE10deallocateEPjm]+0x34):
undefined reference to `operator delete(void*)'</font>
<br><font size=2 face="sans-serif">/tmp/vector_test-wO5yyv.o:(.eh_frame+0x87):
undefined reference to `__gxx_personality_v0'</font>
<br><font size=2 face="sans-serif">clang: error: linker command failed
with exit code 1 (use -v to see invocation)</font>
<br>
<br><font size=2 face="sans-serif">====</font>
<br>
<br><font size=2 face="sans-serif">Thanks,</font>
<br><font size=2 face="sans-serif"><br>
Michael Blocksome<br>
Blue Gene Messaging<br>
blocksom@us.ibm.com<br>
</font>
<br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">From:
</font><font size=1 face="sans-serif">Hal Finkel <hfinkel@anl.gov></font>
<br><font size=1 color=#5f5f5f face="sans-serif">To:
</font><font size=1 face="sans-serif">Michael Blocksome/Rochester/IBM@IBMUS,
</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Cc:
</font><font size=1 face="sans-serif">llvm-bgq-discuss@lists.alcf.anl.gov</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Date:
</font><font size=1 face="sans-serif">12/18/2012 11:58 AM</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Subject:
</font><font size=1 face="sans-serif">Re: [Llvm-bgq-discuss]
clang ICE</font>
<br>
<hr noshade>
<br>
<br>
<br><tt><font size=2>----- Original Message -----<br>
> From: "Hal Finkel" <hfinkel@anl.gov><br>
> To: "Michael Blocksome" <blocksom@us.ibm.com><br>
> Cc: llvm-bgq-discuss@lists.alcf.anl.gov<br>
> Sent: Monday, December 17, 2012 4:54:03 PM<br>
> Subject: Re: [Llvm-bgq-discuss] clang ICE<br>
> <br>
> ----- Original Message -----<br>
> > From: "Hal Finkel" <hfinkel@anl.gov><br>
> > To: "Michael Blocksome" <blocksom@us.ibm.com><br>
> > Cc: llvm-bgq-discuss@lists.alcf.anl.gov<br>
> > Sent: Monday, December 17, 2012 3:49:30 PM<br>
> > Subject: Re: [Llvm-bgq-discuss] clang ICE<br>
> > <br>
> > Michael,<br>
> > <br>
> > This is an LLVM inline assembly issue. If I can't figure out
how to<br>
> > fix this in the next few minutes, I'll file a bug report.<br>
> <br>
> FYI: </font></tt><a href="http://llvm.org/bugs/show_bug.cgi?id=14627"><tt><font size=2>http://llvm.org/bugs/show_bug.cgi?id=14627</font></tt></a><tt><font size=2><br>
> <br>
<br>
I committed a fix to this bug in r170436. Assuming the buildbots don't
complain, I'll update the bug report.<br>
<br>
-Hal<br>
<br>
> -Hal<br>
> <br>
> > <br>
> > Thanks again,<br>
> > Hal<br>
> > <br>
> > ----- Original Message -----<br>
> > > From: "Michael Blocksome" <blocksom@us.ibm.com><br>
> > > To: llvm-bgq-discuss@lists.alcf.anl.gov<br>
> > > Sent: Monday, December 17, 2012 2:29:24 PM<br>
> > > Subject: [Llvm-bgq-discuss] clang ICE<br>
> > > <br>
> > > <br>
> > > I've encountered an ICE with clang and was wondering if
someone<br>
> > > on<br>
> > > the list could recreate the problem? I thought I'd start
here<br>
> > > instead of submitting a clang bug report since I'm using
the<br>
> > > provided patches and compile script. I'm not sure if the
problem<br>
> > > is<br>
> > > with the patched llvm/clang or if it is in the base source.<br>
> > > <br>
> > > bgclang-20121213<br>
> > > clang-bgq-r170143-20121213.patch<br>
> > > llvm-bgq-r170143-20121213.patch<br>
> > > <br>
> > > I've pulled out the majority of the junk around the failure
and<br>
> > > have<br>
> > > it down to a few files and a clang command (whittled down
from -v<br>
> > > output of the entire build). To recreate, just edit and
run the<br>
> > > 'clang_ice.sh' file.<br>
> > > <br>
> > > <br>
> > > <br>
> > > Thanks,<br>
> > > <br>
> > > Michael Blocksome<br>
> > > Blue Gene Messaging<br>
> > > blocksom@us.ibm.com<br>
> > > <br>
> > > _______________________________________________<br>
> > > llvm-bgq-discuss mailing list<br>
> > > llvm-bgq-discuss@lists.alcf.anl.gov<br>
> > > </font></tt><a href="https://lists.alcf.anl.gov/mailman/listinfo/llvm-bgq-discuss"><tt><font size=2>https://lists.alcf.anl.gov/mailman/listinfo/llvm-bgq-discuss</font></tt></a><tt><font size=2><br>
> > > <br>
> > <br>
> > --<br>
> > Hal Finkel<br>
> > Postdoctoral Appointee<br>
> > Leadership Computing Facility<br>
> > Argonne National Laboratory<br>
> > _______________________________________________<br>
> > llvm-bgq-discuss mailing list<br>
> > llvm-bgq-discuss@lists.alcf.anl.gov<br>
> > </font></tt><a href="https://lists.alcf.anl.gov/mailman/listinfo/llvm-bgq-discuss"><tt><font size=2>https://lists.alcf.anl.gov/mailman/listinfo/llvm-bgq-discuss</font></tt></a><tt><font size=2><br>
> > <br>
> <br>
> --<br>
> Hal Finkel<br>
> Postdoctoral Appointee<br>
> Leadership Computing Facility<br>
> Argonne National Laboratory<br>
> _______________________________________________<br>
> llvm-bgq-discuss mailing list<br>
> llvm-bgq-discuss@lists.alcf.anl.gov<br>
> </font></tt><a href="https://lists.alcf.anl.gov/mailman/listinfo/llvm-bgq-discuss"><tt><font size=2>https://lists.alcf.anl.gov/mailman/listinfo/llvm-bgq-discuss</font></tt></a><tt><font size=2><br>
> <br>
<br>
-- <br>
Hal Finkel<br>
Postdoctoral Appointee<br>
Leadership Computing Facility<br>
Argonne National Laboratory<br>
<br>
</font></tt>
<br>