<div dir="ltr">Hello<div><br></div><div>First thanks for bgclang!</div><div><br></div><div>I need to use bgclang++ with c++11 enabled to compile our code. I get an error at link time for this simple code.</div><div><br></div>
<div><br></div><div>--- t.cpp</div><div>







<p class=""><font face="courier new, monospace">#include <iostream></font></p>
<p class=""><span style="font-family:'courier new',monospace">int main(int argc, char** argv )</span><br></p>
<p class=""><font face="courier new, monospace">{</font></p>
<p class=""><font face="courier new, monospace"> std::cout << "Hello\n";</font></p>
<p class=""><font face="courier new, monospace"> return 0;</font></p>
<p class=""><font face="courier new, monospace">}</font></p><p class=""><font face="arial, helvetica, sans-serif">----</font></p></div><div><div>







<p class="">bgclang++11   -o t t.cpp</p>
<p class="">/gpfs/work/LI03s_DDFD/bgclang/r206161-20140414/libc++/lib/libc++.a(exception.cpp.o):(.toc+0x0): undefined reference to `vtable for std::nested_exception'</p>
<p class="">clang: error: linker command failed with exit code 1 (use -v to see invocation)</p><p class=""><br></p><p class="">Am I missing something ? <br></p><p class="">here is what I get adding -v</p><p class=""><br>
</p><p class="">clang version 3.5.0 (trunk)</p><p class="">Target: powerpc64-bgq-linux</p><p class="">Thread model: posix</p><p class="">Found candidate GCC installation: /bgsys/drivers/V1R2M1/ppc64/gnu-linux/lib/gcc/powerpc64-bgq-linux/4.4.6</p>
<p class="">Selected GCC installation: /bgsys/drivers/V1R2M1/ppc64/gnu-linux/lib/gcc/powerpc64-bgq-linux/4.4.6</p><p class="">Candidate multilib: .;@m64</p><p class="">Selected multilib: .;@m64</p><p class=""> "/gpfs/work/LI03s_DDFD/bgclang/r206161-20140414/bin/clang" -cc1 -triple powerpc64-bgq-linux -S -disable-free -main-file-name t.cpp -static-define -mrelocation-model static -mdisable-fp-elim -ffp-contract=fast -no-integrated-as -mconstructor-aliases -target-cpu a2q -target-linker-version 2.20.51.0.2 -v -resource-dir /gpfs/work/LI03s_DDFD/bgclang/r206161-20140414/bin/../lib/clang/3.5.0 -D __bgclang__=1 -D "__bgclang_version__=\"r206161-20140414\"" -I /gpfs/work/LI03s_DDFD/bgclang/r206161-20140414/sleef/include -internal-isystem /usr/local/include -internal-isystem /gpfs/work/LI03s_DDFD/bgclang/r206161-20140414/bin/../lib/clang/3.5.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -std=gnu++11 -fdeprecated-macro -fno-dwarf-directory-asm -fdebug-compilation-dir /tmp -ferror-limit 19 -fmessage-length 143 -mstackrealign -fno-signed-char -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -vectorize-slp -isystem /gpfs/work/LI03s_DDFD/bgclang/r206161-20140414/libc++/include -isystem /gpfs/work/LI03s_DDFD/bgclang/r206161-20140414/libstdc++fixup/include -isystem /bgsys/drivers/V1R2M1/ppc64/gnu-linux/powerpc64-bgq-linux/include/c++/4.4.6 -isystem /bgsys/drivers/V1R2M1/ppc64/gnu-linux/powerpc64-bgq-linux/include/c++/4.4.6/powerpc64-bgq-linux -isystem /bgsys/drivers/V1R2M1/ppc64/gnu-linux/powerpc64-bgq-linux/sys-include -mllvm -optimize-regalloc -mllvm -fast-isel=0 -o /tmp/t-bcbb9c.s -x c++ t.cpp</p>
<p class="">clang -cc1 version 3.5.0 based upon LLVM 3.5.0svn default target powerpc64-unknown-linux-gnu</p><p class="">ignoring nonexistent directory "/gpfs/work/LI03s_DDFD/bgclang/r206161-20140414/libstdc++fixup/include"</p>
<p class="">ignoring nonexistent directory "/include"</p><p class="">#include "..." search starts here:</p><p class="">#include <...> search starts here:</p><p class=""> /gpfs/work/LI03s_DDFD/bgclang/r206161-20140414/sleef/include</p>
<p class=""> /gpfs/work/LI03s_DDFD/bgclang/r206161-20140414/libc++/include</p><p class=""> /bgsys/drivers/V1R2M1/ppc64/gnu-linux/powerpc64-bgq-linux/include/c++/4.4.6</p><p class=""> /bgsys/drivers/V1R2M1/ppc64/gnu-linux/powerpc64-bgq-linux/include/c++/4.4.6/powerpc64-bgq-linux</p>
<p class=""> /bgsys/drivers/V1R2M1/ppc64/gnu-linux/powerpc64-bgq-linux/sys-include</p><p class=""> /usr/local/include</p><p class=""> /gpfs/work/LI03s_DDFD/bgclang/r206161-20140414/bin/../lib/clang/3.5.0/include</p><p class="">
 /usr/include</p><p class="">End of search list.</p><p class=""> "/gpfs/work/LI03s_DDFD/bgclang/r206161-20140414/binutils/bin/as" -a64 -mppc64 -many -ma2q -o /tmp/t-1e5725.o /tmp/t-bcbb9c.s</p><p class=""> "/gpfs/work/LI03s_DDFD/bgclang/r206161-20140414/binutils/bin/ld" --hash-style=gnu --no-add-needed --build-id -m elf64ppc -static -o t /bgsys/drivers/V1R2M1/ppc64/gnu-linux/powerpc64-bgq-linux/lib/crt1.o /bgsys/drivers/V1R2M1/ppc64/gnu-linux/powerpc64-bgq-linux/lib/crti.o /bgsys/drivers/V1R2M1/ppc64/gnu-linux/lib/gcc/powerpc64-bgq-linux/4.4.6/crtbeginT.o -L/gpfs/work/LI03s_DDFD/bgclang/r206161-20140414/libc++/lib -L/bgsys/drivers/V1R2M1/ppc64/gnu-linux/powerpc64-bgq-linux/lib -L/gpfs/work/LI03s_DDFD/bgclang/r206161-20140414/sleef/lib -L/bgsys/drivers/V1R2M1/ppc64/gnu-linux/lib/gcc/powerpc64-bgq-linux/4.4.6 -L/bgsys/drivers/V1R2M1/ppc64/gnu-linux/lib/gcc/powerpc64-bgq-linux/4.4.6/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/bgsys/drivers/V1R2M1/ppc64/gnu-linux/lib/gcc/powerpc64-bgq-linux/4.4.6/../../../../powerpc64-bgq-linux/lib -L/bgsys/drivers/V1R2M1/ppc64/gnu-linux/lib/gcc/powerpc64-bgq-linux/4.4.6/../../.. -L/gpfs/work/LI03s_DDFD/bgclang/r206161-20140414/bin/../lib -L/lib -L/usr/lib /tmp/t-1e5725.o --as-needed -lsleef --no-as-needed -lc++ -lrt -lpthread -lstdc++ -lm --start-group -lgcc -lgcc_eh -ldl -lc -lnss_files -lnss_dns -lresolv -lm --end-group /bgsys/drivers/V1R2M1/ppc64/gnu-linux/lib/gcc/powerpc64-bgq-linux/4.4.6/crtend.o /bgsys/drivers/V1R2M1/ppc64/gnu-linux/powerpc64-bgq-linux/lib/crtn.o</p>
<p class="">/gpfs/work/LI03s_DDFD/bgclang/r206161-20140414/libc++/lib/libc++.a(exception.cpp.o):(.toc+0x0): undefined reference to `vtable for std::nested_exception'</p><p class="">
































</p><p class="">clang: error: linker command failed with exit code 1 (use -v to see invocation)</p><p class=""><br></p><p class="">Thank you in advance for any feedback you may have</p></div><div><br></div><div>Best regards</div>
<div>C.</div>-- <br>Christophe Prud'homme<div>Feel++ Project Manager</div><div>Professor in Applied Mathematics </div><div>@ Université Joseph Fourier (Grenoble, France)</div><div>@ Université de Strasbourg (France)</div>

</div></div>