<div dir="ltr">Hi<div><br></div><div>I just subscribed to the list and have been reading the archive. It seems to me that the problem comes from the fact that I don't have access to <i style="color:rgb(0,0,0);white-space:pre-wrap">/bgsys/drivers/toolchain/V1R2M1_base_4.7.2 </i><span style="color:rgb(0,0,0);white-space:pre-wrap">on fermi at cineca, I am just a user. I will ask the sysadmins of fermi to add this toolchain.</span></div>
<div><span style="color:rgb(0,0,0);white-space:pre-wrap"><br></span></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap">Best regards</span></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap">C.</span></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Apr 25, 2014 at 10:25 AM, Christophe Prud'homme <span dir="ltr"><<a href="mailto:christophe.prudhomme@feelpp.org" target="_blank">christophe.prudhomme@feelpp.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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><font face="courier new, monospace">#include <iostream></font></p>
<p><span style="font-family:'courier new',monospace">int main(int argc, char** argv )</span><br></p>
<p><font face="courier new, monospace">{</font></p>
<p><font face="courier new, monospace"> std::cout << "Hello\n";</font></p>
<p><font face="courier new, monospace"> return 0;</font></p>
<p><font face="courier new, monospace">}</font></p><p><font face="arial, helvetica, sans-serif">----</font></p></div><div><div>







<p>bgclang++11   -o t t.cpp</p>
<p>/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>clang: error: linker command failed with exit code 1 (use -v to see invocation)</p><p><br></p><p>Am I missing something ? <br></p><p>here is what I get adding -v</p><p><br>
</p><p>clang version 3.5.0 (trunk)</p><p>Target: powerpc64-bgq-linux</p><p>Thread model: posix</p><p>Found candidate GCC installation: /bgsys/drivers/V1R2M1/ppc64/gnu-linux/lib/gcc/powerpc64-bgq-linux/4.4.6</p>
<p>Selected GCC installation: /bgsys/drivers/V1R2M1/ppc64/gnu-linux/lib/gcc/powerpc64-bgq-linux/4.4.6</p><p>Candidate multilib: .;@m64</p><p>Selected multilib: .;@m64</p><p> "/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>clang -cc1 version 3.5.0 based upon LLVM 3.5.0svn default target powerpc64-unknown-linux-gnu</p><p>ignoring nonexistent directory "/gpfs/work/LI03s_DDFD/bgclang/r206161-20140414/libstdc++fixup/include"</p>
<p>ignoring nonexistent directory "/include"</p><p>#include "..." search starts here:</p><p>#include <...> search starts here:</p><p> /gpfs/work/LI03s_DDFD/bgclang/r206161-20140414/sleef/include</p>

<p> /gpfs/work/LI03s_DDFD/bgclang/r206161-20140414/libc++/include</p><p> /bgsys/drivers/V1R2M1/ppc64/gnu-linux/powerpc64-bgq-linux/include/c++/4.4.6</p><p> /bgsys/drivers/V1R2M1/ppc64/gnu-linux/powerpc64-bgq-linux/include/c++/4.4.6/powerpc64-bgq-linux</p>

<p> /bgsys/drivers/V1R2M1/ppc64/gnu-linux/powerpc64-bgq-linux/sys-include</p><p> /usr/local/include</p><p> /gpfs/work/LI03s_DDFD/bgclang/r206161-20140414/bin/../lib/clang/3.5.0/include</p><p>
 /usr/include</p><p>End of search list.</p><p> "/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> "/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>/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>
































</p><p>clang: error: linker command failed with exit code 1 (use -v to see invocation)</p><p><br></p><p>Thank you in advance for any feedback you may have</p></div><div><br></div><div>Best regards</div><span class="HOEnZb"><font color="#888888">
<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>


</font></span></div></div>
</blockquote></div><br><br clear="all"><div><br></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>