<div dir="ltr">Hello<div><br></div><div> /bgsys/drivers/toolchain/V1R2M1_base_4.7.2 won't be installed on Fermi.</div><div>I have however I have recompiled gcc 4.7 (with slight changes to the patches available on the system)  and installed on my account.</div>
<div>Is it ok to use bgclang with an homemade gcc 4.7 system not located in /bgsys/drivers/toolchain/V1R2M1_base_4.7.2 ?</div><div>I guess I should have to recompile clang to tell where are the tools and libraries no ?</div>
<div>I actually need the c++11 compiler.</div><div><br></div><div>Best regards</div><div>C.<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Apr 25, 2014 at 1:04 PM, Hal Finkel <span dir="ltr"><<a href="mailto:hfinkel@anl.gov" target="_blank">hfinkel@anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="">----- Original Message -----<br>
> From: "Christophe Prud'homme" <<a href="mailto:christophe.prudhomme@feelpp.org">christophe.prudhomme@feelpp.org</a>><br>
> To: <a href="mailto:llvm-bgq-discuss@lists.alcf.anl.gov">llvm-bgq-discuss@lists.alcf.anl.gov</a><br>
> Sent: Friday, April 25, 2014 3:58:56 AM<br>
> Subject: Re: [Llvm-bgq-discuss] bgclang11 r206161-20140414 link error<br>
><br>
><br>
><br>
> Hi<br>
><br>
><br>
> I just subscribed to the list and have been reading the archive. It<br>
> seems to me that the problem comes from the fact that I don't have<br>
> access to /bgsys/drivers/toolchain/V1R2M1_base_4.7.2 on fermi at<br>
> cineca, I am just a user.<br>
<br>
</div>That is indeed the problem. Please let me know if that turns out to be impossible (or will take a long time) for any reason.<br>
<br>
 -Hal<br>
<div><div class="h5"><br>
> I will ask the sysadmins of fermi to add<br>
> this toolchain.<br>
><br>
><br>
> Best regards<br>
> C.<br>
><br>
><br>
><br>
> On Fri, Apr 25, 2014 at 10:25 AM, Christophe Prud'homme <<br>
> <a href="mailto:christophe.prudhomme@feelpp.org">christophe.prudhomme@feelpp.org</a> > wrote:<br>
><br>
><br>
><br>
> Hello<br>
><br>
><br>
> First thanks for bgclang!<br>
><br>
><br>
> I need to use bgclang++ with c++11 enabled to compile our code. I get<br>
> an error at link time for this simple code.<br>
><br>
><br>
><br>
><br>
> --- t.cpp<br>
><br>
><br>
> #include <iostream><br>
><br>
> int main(int argc, char** argv )<br>
><br>
><br>
> {<br>
><br>
> std::cout << "Hello\n";<br>
><br>
> return 0;<br>
><br>
> }<br>
><br>
> ----<br>
><br>
><br>
><br>
> bgclang++11 -o t t.cpp<br>
><br>
> /gpfs/work/LI03s_DDFD/bgclang/r206161-20140414/libc++/lib/libc++.a(exception.cpp.o):(.toc+0x0):<br>
> undefined reference to `vtable for std::nested_exception'<br>
><br>
> clang: error: linker command failed with exit code 1 (use -v to see<br>
> invocation)<br>
><br>
><br>
><br>
><br>
> Am I missing something ?<br>
><br>
><br>
> here is what I get adding -v<br>
><br>
><br>
><br>
><br>
> clang version 3.5.0 (trunk)<br>
><br>
> Target: powerpc64-bgq-linux<br>
><br>
> Thread model: posix<br>
><br>
> Found candidate GCC installation:<br>
> /bgsys/drivers/V1R2M1/ppc64/gnu-linux/lib/gcc/powerpc64-bgq-linux/4.4.6<br>
><br>
> Selected GCC installation:<br>
> /bgsys/drivers/V1R2M1/ppc64/gnu-linux/lib/gcc/powerpc64-bgq-linux/4.4.6<br>
><br>
> Candidate multilib: .;@m64<br>
><br>
> Selected multilib: .;@m64<br>
><br>
> "/gpfs/work/LI03s_DDFD/bgclang/r206161-20140414/bin/clang" -cc1<br>
> -triple powerpc64-bgq-linux -S -disable-free -main-file-name t.cpp<br>
> -static-define -mrelocation-model static -mdisable-fp-elim<br>
> -ffp-contract=fast -no-integrated-as -mconstructor-aliases<br>
> -target-cpu a2q -target-linker-version 2.20.51.0.2 -v -resource-dir<br>
> /gpfs/work/LI03s_DDFD/bgclang/r206161-20140414/bin/../lib/clang/3.5.0<br>
> -D __bgclang__=1 -D "__bgclang_version__=\"r206161-20140414\"" -I<br>
> /gpfs/work/LI03s_DDFD/bgclang/r206161-20140414/sleef/include<br>
> -internal-isystem /usr/local/include -internal-isystem<br>
> /gpfs/work/LI03s_DDFD/bgclang/r206161-20140414/bin/../lib/clang/3.5.0/include<br>
> -internal-externc-isystem /include -internal-externc-isystem<br>
> /usr/include -std=gnu++11 -fdeprecated-macro<br>
> -fno-dwarf-directory-asm -fdebug-compilation-dir /tmp -ferror-limit<br>
> 19 -fmessage-length 143 -mstackrealign -fno-signed-char<br>
> -fobjc-runtime=gcc -fcxx-exceptions -fexceptions<br>
> -fdiagnostics-show-option -fcolor-diagnostics -vectorize-slp<br>
> -isystem<br>
> /gpfs/work/LI03s_DDFD/bgclang/r206161-20140414/libc++/include<br>
> -isystem<br>
> /gpfs/work/LI03s_DDFD/bgclang/r206161-20140414/libstdc++fixup/include<br>
> -isystem<br>
> /bgsys/drivers/V1R2M1/ppc64/gnu-linux/powerpc64-bgq-linux/include/c++/4.4.6<br>
> -isystem<br>
> /bgsys/drivers/V1R2M1/ppc64/gnu-linux/powerpc64-bgq-linux/include/c++/4.4.6/powerpc64-bgq-linux<br>
> -isystem<br>
> /bgsys/drivers/V1R2M1/ppc64/gnu-linux/powerpc64-bgq-linux/sys-include<br>
> -mllvm -optimize-regalloc -mllvm -fast-isel=0 -o /tmp/t-bcbb9c.s -x<br>
> c++ t.cpp<br>
><br>
> clang -cc1 version 3.5.0 based upon LLVM 3.5.0svn default target<br>
> powerpc64-unknown-linux-gnu<br>
><br>
> ignoring nonexistent directory<br>
> "/gpfs/work/LI03s_DDFD/bgclang/r206161-20140414/libstdc++fixup/include"<br>
><br>
> ignoring nonexistent directory "/include"<br>
><br>
> #include "..." search starts here:<br>
><br>
> #include <...> search starts here:<br>
><br>
> /gpfs/work/LI03s_DDFD/bgclang/r206161-20140414/sleef/include<br>
><br>
> /gpfs/work/LI03s_DDFD/bgclang/r206161-20140414/libc++/include<br>
><br>
> /bgsys/drivers/V1R2M1/ppc64/gnu-linux/powerpc64-bgq-linux/include/c++/4.4.6<br>
><br>
> /bgsys/drivers/V1R2M1/ppc64/gnu-linux/powerpc64-bgq-linux/include/c++/4.4.6/powerpc64-bgq-linux<br>
><br>
> /bgsys/drivers/V1R2M1/ppc64/gnu-linux/powerpc64-bgq-linux/sys-include<br>
><br>
> /usr/local/include<br>
><br>
> /gpfs/work/LI03s_DDFD/bgclang/r206161-20140414/bin/../lib/clang/3.5.0/include<br>
><br>
> /usr/include<br>
><br>
> End of search list.<br>
><br>
> "/gpfs/work/LI03s_DDFD/bgclang/r206161-20140414/binutils/bin/as" -a64<br>
> -mppc64 -many -ma2q -o /tmp/t-1e5725.o /tmp/t-bcbb9c.s<br>
><br>
> "/gpfs/work/LI03s_DDFD/bgclang/r206161-20140414/binutils/bin/ld"<br>
> --hash-style=gnu --no-add-needed --build-id -m elf64ppc -static -o t<br>
> /bgsys/drivers/V1R2M1/ppc64/gnu-linux/powerpc64-bgq-linux/lib/crt1.o<br>
> /bgsys/drivers/V1R2M1/ppc64/gnu-linux/powerpc64-bgq-linux/lib/crti.o<br>
> /bgsys/drivers/V1R2M1/ppc64/gnu-linux/lib/gcc/powerpc64-bgq-linux/4.4.6/crtbeginT.o<br>
> -L/gpfs/work/LI03s_DDFD/bgclang/r206161-20140414/libc++/lib<br>
> -L/bgsys/drivers/V1R2M1/ppc64/gnu-linux/powerpc64-bgq-linux/lib<br>
> -L/gpfs/work/LI03s_DDFD/bgclang/r206161-20140414/sleef/lib<br>
> -L/bgsys/drivers/V1R2M1/ppc64/gnu-linux/lib/gcc/powerpc64-bgq-linux/4.4.6<br>
> -L/bgsys/drivers/V1R2M1/ppc64/gnu-linux/lib/gcc/powerpc64-bgq-linux/4.4.6/../../../../lib64<br>
> -L/lib/../lib64 -L/usr/lib/../lib64<br>
> -L/bgsys/drivers/V1R2M1/ppc64/gnu-linux/lib/gcc/powerpc64-bgq-linux/4.4.6/../../../../powerpc64-bgq-linux/lib<br>
> -L/bgsys/drivers/V1R2M1/ppc64/gnu-linux/lib/gcc/powerpc64-bgq-linux/4.4.6/../../..<br>
> -L/gpfs/work/LI03s_DDFD/bgclang/r206161-20140414/bin/../lib -L/lib<br>
> -L/usr/lib /tmp/t-1e5725.o --as-needed -lsleef --no-as-needed -lc++<br>
> -lrt -lpthread -lstdc++ -lm --start-group -lgcc -lgcc_eh -ldl -lc<br>
> -lnss_files -lnss_dns -lresolv -lm --end-group<br>
> /bgsys/drivers/V1R2M1/ppc64/gnu-linux/lib/gcc/powerpc64-bgq-linux/4.4.6/crtend.o<br>
> /bgsys/drivers/V1R2M1/ppc64/gnu-linux/powerpc64-bgq-linux/lib/crtn.o<br>
><br>
> /gpfs/work/LI03s_DDFD/bgclang/r206161-20140414/libc++/lib/libc++.a(exception.cpp.o):(.toc+0x0):<br>
> undefined reference to `vtable for std::nested_exception'<br>
><br>
><br>
><br>
> clang: error: linker command failed with exit code 1 (use -v to see<br>
> invocation)<br>
><br>
><br>
><br>
><br>
> Thank you in advance for any feedback you may have<br>
><br>
><br>
> Best regards<br>
> C. --<br>
> Christophe Prud'homme<br>
> Feel++ Project Manager<br>
> Professor in Applied Mathematics<br>
> @ Université Joseph Fourier (Grenoble, France)<br>
> @ Université de Strasbourg (France)<br>
><br>
><br>
><br>
> --<br>
> Christophe Prud'homme<br>
> Feel++ Project Manager<br>
> Professor in Applied Mathematics<br>
> @ Université Joseph Fourier (Grenoble, France)<br>
> @ Université de Strasbourg (France)<br>
</div></div>> _______________________________________________<br>
> llvm-bgq-discuss mailing list<br>
> <a href="mailto:llvm-bgq-discuss@lists.alcf.anl.gov">llvm-bgq-discuss@lists.alcf.anl.gov</a><br>
> <a href="https://lists.alcf.anl.gov/mailman/listinfo/llvm-bgq-discuss" target="_blank">https://lists.alcf.anl.gov/mailman/listinfo/llvm-bgq-discuss</a><br>
><br>
<span class=""><font color="#888888"><br>
--<br>
Hal Finkel<br>
Assistant Computational Scientist<br>
Leadership Computing Facility<br>
Argonne National Laboratory<br>
</font></span></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></div></div>