<html><body>
<p><font size="2" face="sans-serif">Hi Hal & Michael,</font><br>
<br>
<font size="2" face="sans-serif">We installed V1R2M2 here at LLNL. Note that the subdirectory is 4.4.7 for V1R2M2, not 4.4.6 as it was for V1R2M1.</font><br>
<br>
<font size="2" face="sans-serif">~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
Roy Musselman<br>
HPC Application Analyst at LLNL<br>
email: roymuss@us.ibm.com<br>
Cell: 507-358-8895, Home: 507-281-9565</font><br>
<br>
<img width="16" height="16" src="cid:1__=08BBF78ADFEB710D8f9e8a93df938@us.ibm.com" border="0" alt="Inactive hide details for Hal Finkel ---07/18/2014 12:20:12 PM---Michael, The relevant parts of the log are:"><font size="2" color="#424282" face="sans-serif">Hal Finkel ---07/18/2014 12:20:12 PM---Michael, The relevant parts of the log are:</font><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 Schlottke <m.schlottke@fz-juelich.de></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">07/18/2014 12:20 PM</font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Subject: </font><font size="1" face="sans-serif">Re: [Llvm-bgq-discuss] Linker error: undefined reference to `vtable for std::nested_exception'</font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Sent by: </font><font size="1" face="sans-serif">llvm-bgq-discuss-bounces@lists.alcf.anl.gov</font><br>
<hr width="100%" size="2" align="left" noshade style="color:#8091A5; "><br>
<br>
<br>
<tt><font size="2">Michael,<br>
<br>
The relevant parts of the log are:<br>
<br>
ignoring nonexistent directory "/bgsys/drivers/V1R2M2/ppc64/gnu-linux/powerpc64-bgq-linux/include/c++/4.4.6"<br>
<br>
ignoring nonexistent directory "/bgsys/drivers/V1R2M2/ppc64/gnu-linux/powerpc64-bgq-linux/include/c++/4.4.6/powerpc64-bgq-linux"<br>
<br>
Where did these files go on your system?<br>
<br>
-Hal<br>
<br>
----- Original Message -----<br>
> From: "Michael Schlottke" <m.schlottke@fz-juelich.de><br>
> To: llvm-bgq-discuss@lists.alcf.anl.gov, hfinkel@anl.gov<br>
> Sent: Friday, July 18, 2014 3:23:59 AM<br>
> Subject: Re: [Llvm-bgq-discuss] Linker error: undefined reference to `vtable for std::nested_exception'<br>
> <br>
> Hi Hal,<br>
> <br>
> Thanks for checking this out. I installed the last RPMs that we knew<br>
> worked before the toolchain upgrade (r201012-20140207), but to no<br>
> avail.<br>
> When trying to compile the same MWE program, we get a compiler<br>
> (preprocessor?) error instead, but again it seems to be centered<br>
> around<br>
> exceptions (I've attached the log). Maybe this sheds some more light<br>
> on<br>
> the issues we're having.<br>
> <br>
> Regards,<br>
> <br>
> Michael<br>
> <br>
> P.S.: As before, the error occurs only when using bgclang++11 or when<br>
> manually adding -stdlib=libc++ to bgclang++. Otherwise it compiles &<br>
> runs just fine.<br>
> <br>
> On 17.07.2014 19:21, Hal Finkel wrote:<br>
> > Hi,<br>
> ><br>
> > This error almost always occurs when you pick up the old libstdc++<br>
> > library instead of the one from the 4.7.2 toolchain. I'll look at<br>
> > your verbose logs later.<br>
> ><br>
> > -Hal<br>
> ><br>
> > ----- Original Message -----<br>
> >> From: "Sandipan Mohanty" <s.mohanty@fz-juelich.de><br>
> >> To: llvm-bgq-discuss@lists.alcf.anl.gov<br>
> >> Sent: Thursday, July 17, 2014 11:53:07 AM<br>
> >> Subject: Re: [Llvm-bgq-discuss] Linker error: undefined reference<br>
> >> to `vtable for std::nested_exception'<br>
> >><br>
> >> Hi!<br>
> >><br>
> >> The linker error Michael mentioned also appears for a simple<br>
> >> hello world<br>
> >> program:<br>
> >><br>
> >> #include <iostream><br>
> >><br>
> >> int main()<br>
> >> {<br>
> >> std::cout << "Hello, World!\n";<br>
> >> }<br>
> >><br>
> >> Compiling it with bgclang++ is fine. Compiling with bgclang++11,<br>
> >> which also<br>
> >> links with libc++, produces the linker error he mentioned about<br>
> >> nested_exception. The nested_exception class members are defined<br>
> >> inside the<br>
> >> exception.cpp file in the libc++ source. But there are lots of<br>
> >> macros<br>
> >> influencing what sections get compiled. Is the libc++ in the RPM<br>
> >> compiled with<br>
> >> libsupc++, libcxxrt or libcxxabi as the LIBCXX_CXX_ABI ?<br>
> >><br>
> >> /Sandipan<br>
> >><br>
> >><br>
> >><br>
> >> On Thursday 17 Jul 2014 11:30:35 Rob Latham wrote:<br>
> >>> See </font></tt><tt><font size="2"><a href="http://www.alcf.anl.gov/user-guides/bgclang-compiler#faq">http://www.alcf.anl.gov/user-guides/bgclang-compiler#faq</a></font></tt><tt><font size="2">,<br>
> >>> which<br>
> >>> I<br>
> >>> myself was just staring at last night:<br>
> >>><br>
> >>> Linking code compiled with bgclang++ together with code compiled<br>
> >>> with<br>
> >>> bgclang++11 does not work, why?<br>
> >>><br>
> >>> Code compiled using bgclang++ uses the same libstdc++ standard<br>
> >>> template<br>
> >>> library (STL) implementation as the system-default GNU<br>
> >>> powerpc64-bgq-linux-g++ compiler. This provides compatibility<br>
> >>> with<br>
> >>> C++<br>
> >>> libraries, including some system libraries, compiled with the GNU<br>
> >>> toolchain. This STL implementation, however, cannot provide a<br>
> >>> conforming<br>
> >>> C++11 programming environment, and so bgclang++11 uses an<br>
> >>> up-to-date STL<br>
> >>> implementation derived from LLVM's libc++. Unfortunately, this<br>
> >>> STL<br>
> >>> implementation is incompatible with libstdc++, and so linking<br>
> >>> errors<br>
> >>> will result for functions that use STL objects as part of their<br>
> >>> signatures (i.e. parameter or return types).<br>
> >>><br>
> >>> ==rob<br>
> >>><br>
> >>> On 07/17/2014 08:48 AM, Michael Schlottke wrote:<br>
> >>>> Hi Hal,<br>
> >>>><br>
> >>>> We tried to install the new version of clang on the BG/Q @ FZ<br>
> >>>> Juelich<br>
> >>>> from your rpms, which worked like a breeze (thanks again for<br>
> >>>> your<br>
> >>>> effors!). However, with the new installation we are not able to<br>
> >>>> link<br>
> >>>> even simple problems against libcxx, as all attempts end with<br>
> >>>> the<br>
> >>>> following error:<br>
> >>>><br>
> >>>> /bgsys/local/clang/r209570-20140527/libc++/lib/libc++.a(exception.cpp.o):(<br>
> >>>> .toc+0x0): undefined reference to `vtable for<br>
> >>>> std::nested_exception'<br>
> >>>> clang: error: linker command failed with exit code 1 (use -v to<br>
> >>>> see<br>
> >>>> invocation)<br>
> >>>><br>
> >>>> It happens as soon as we try to compile & link a dummy program<br>
> >>>> that has<br>
> >>>> at least one std library include file. If we use bgclang++, the<br>
> >>>> error<br>
> >>>> does not occur, but it does when using either -stdlib=libc++ or<br>
> >>>> bgclang++11.<br>
> >>>><br>
> >>>> Do you have any idea what the source of the problem could be? I<br>
> >>>> attached<br>
> >>>> a MWE and the output of running bgclang++11 with -v.<br>
> >>>><br>
> >>>> Regards,<br>
> >>>><br>
> >>>> Michael<br>
> >>>><br>
> >>>> P.S.: We had a driver/toolchain upgrade on JUQUEEN and thus our<br>
> >>>> old<br>
> >>>> clang installations are not working anymore. Maybe this could be<br>
> >>>> related<br>
> >>>> to the problem?<br>
> >>>><br>
> >>>><br>
> >>>> --------------------------------------------------------------------------<br>
> >>>> ----------------------<br>
> >>>> -------------------------------------------------------------------------<br>
> >>>> ----------------------- Forschungszentrum Juelich GmbH<br>
> >>>> 52425 Juelich<br>
> >>>> Sitz der Gesellschaft: Juelich<br>
> >>>> Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B<br>
> >>>> 3498<br>
> >>>> Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher<br>
> >>>> Geschaeftsfuehrung: Prof. Dr.-Ing. Wolfgang Marquardt<br>
> >>>> (Vorsitzender),<br>
> >>>> Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald<br>
> >>>> Bolt,<br>
> >>>> Prof. Dr. Sebastian M. Schmidt<br>
> >>>> --------------------------------------------------------------------------<br>
> >>>> ----------------------<br>
> >>>> -------------------------------------------------------------------------<br>
> >>>> -----------------------<br>
> >>>><br>
> >>>><br>
> >>>><br>
> >>>> _______________________________________________<br>
> >>>> llvm-bgq-discuss mailing list<br>
> >>>> llvm-bgq-discuss@lists.alcf.anl.gov<br>
> >>>> </font></tt><tt><font size="2"><a href="https://lists.alcf.anl.gov/mailman/listinfo/llvm-bgq-discuss">https://lists.alcf.anl.gov/mailman/listinfo/llvm-bgq-discuss</a></font></tt><tt><font size="2"><br>
> >> _______________________________________________<br>
> >> llvm-bgq-discuss mailing list<br>
> >> llvm-bgq-discuss@lists.alcf.anl.gov<br>
> >> </font></tt><tt><font size="2"><a href="https://lists.alcf.anl.gov/mailman/listinfo/llvm-bgq-discuss">https://lists.alcf.anl.gov/mailman/listinfo/llvm-bgq-discuss</a></font></tt><tt><font size="2"><br>
> >><br>
> <br>
> <br>
> <br>
> ------------------------------------------------------------------------------------------------<br>
> ------------------------------------------------------------------------------------------------<br>
> Forschungszentrum Juelich GmbH<br>
> 52425 Juelich<br>
> Sitz der Gesellschaft: Juelich<br>
> Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498<br>
> Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher<br>
> Geschaeftsfuehrung: Prof. Dr.-Ing. Wolfgang Marquardt (Vorsitzender),<br>
> Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,<br>
> Prof. Dr. Sebastian M. Schmidt<br>
> ------------------------------------------------------------------------------------------------<br>
> ------------------------------------------------------------------------------------------------<br>
> <br>
> <br>
<br>
-- <br>
Hal Finkel<br>
Assistant Computational Scientist<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><tt><font size="2"><a href="https://lists.alcf.anl.gov/mailman/listinfo/llvm-bgq-discuss">https://lists.alcf.anl.gov/mailman/listinfo/llvm-bgq-discuss</a></font></tt><tt><font size="2"><br>
<br>
</font></tt><br>
</body></html>