<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Hi everyone,
<div class=""><br class="">
</div>
<div class="">First of all, thanks a lot Hal, for the continued development of bclang and the maintenance of the easy-to-install RPMs. Unfortunately, linking does not seem to work with r232720-20150319 and our code on JUQEEN:</div>
<div class=""><br class="">
</div>
<div class="">
<div class="">Linking CXX executable zfs</div>
<div class="">/bgsys/local/clang/r232720-20150319/r232720-20150319/libc++/lib/libc++.a(exception.cpp.o):(.toc+0x0): undefined reference to `vtable for std::nested_exception'</div>
<div class="">/bgsys/local/clang/r232720-20150319/r232720-20150319/binutils/bin/ld: /bgsys/drivers/V1R2M2/ppc64/gnu-linux/powerpc64-bgq-linux/lib/libc.a(clone.o): In function `__clone':</div>
<div class="">(.text+0x98): call to `_exit' lacks nop, can't restore toc; recompile with -fPIC/bgsys/local/clang/r232720-20150319/r232720-20150319/binutils/bin/ld: final link failed: Bad value</div>
<div class="">clang: error: linker command failed with exit code 1 (use -v to see invocation)</div>
</div>
<div class=""><br class="">
</div>
<div class="">Any idea what the source of the problem could be? The only change we made is to switch from r220548-20141024 to the current nightly build.</div>
<div class=""><br class="">
</div>
<div class="">Regards,</div>
<div class=""><br class="">
</div>
<div class="">Michael</div>
<div class=""><br class="">
</div>
<div class="">P.S.: At JSC we use a set of install scripts to download and install the newest bgclang version. I finally got around to putting them on GitHub, so if anyone is interested, have a look at <a href="https://github.com/sloede/install-bgq" class="">https://github.com/sloede/install-bgq</a>.
 Please note that while the scripts should work on any BG/Q installation, they are only tested on JUQUEEN so far.</div>
<div class=""><br class="">
</div>
<div class="">
<div apple-content-edited="true" class=""><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px;"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;  ">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class="">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;  ">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class="">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;  ">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class="">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;  ">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class="">
--<br class="">
Michael Schlottke<br class="">
<br class="">
</div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class="">
SimLab Highly Scalable Fluids & Solids Engineering<br class="">
Jülich Supercomputing Centre (JSC)<br class="">
Forschungszentrum Jülich GmbH<br class="">
52425 Jülich<br class="">
Germany<br class="">
<br class="">
Phone: +49 (2461) 61 2326<br class="">
Mail: <a href="mailto:m.schlottke@fz-juelich.de" class="">m.schlottke@fz-juelich.de</a><br class="">
Web: <a href="http://www.fz-juelich.de/jsc" class="">http://www.fz-juelich.de/jsc</a></div>
</span></div>
</span></div>
</span></div>
</span></span></div>
<br class="">
<div>
<blockquote type="cite" class="">
<div class="">On 20 Mar 2015, at 00:15 , Hal Finkel <<a href="mailto:hfinkel@anl.gov" class="">hfinkel@anl.gov</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">Hello everyone,<br class="">
<br class="">
First, let me apologize to everyone, this is a few months late... but, hopefully, this will never be a problem again...<br class="">
<br class="">
I now have a system setup which automatically pulls in upstream changes and tries to merge those with the bgclang-specific patches, and then builds the resulting suite of bgclang RPMs. When this succeeds, the RPMs should be posted automatically to:<br class="">
<br class="">
 <a href="http://www.mcs.anl.gov/~hfinkel/bgclang/" class="">http://www.mcs.anl.gov/~hfinkel/bgclang/</a><br class="">
 (note that installing a build from here now also requires both the 'stage1' and 'stage2' RPMs as well)<br class="">
<br class="">
The first such nightly build, r232720-20150319, has been posted to that page.<br class="">
<br class="">
And, for the curious, the local repositories used for version control are now mirrored to github:<br class="">
<br class="">
 <a href="https://github.com/hfinkel/clang-bgq" class="">https://github.com/hfinkel/clang-bgq</a><br class="">
 <a href="https://github.com/hfinkel/llvm-bgq" class="">https://github.com/hfinkel/llvm-bgq</a><br class="">
 <a href="https://github.com/hfinkel/bgclang-aux" class="">https://github.com/hfinkel/bgclang-aux</a><br class="">
 <a href="https://github.com/hfinkel/compiler-rt-bgq" class="">https://github.com/hfinkel/compiler-rt-bgq</a><br class="">
 <a href="https://github.com/hfinkel/libcxx-bgq" class="">https://github.com/hfinkel/libcxx-bgq</a><br class="">
 <a href="https://github.com/hfinkel/openmp-bgq" class="">https://github.com/hfinkel/openmp-bgq</a><br class="">
 <a href="https://github.com/hfinkel/sleef-bgq" class="">https://github.com/hfinkel/sleef-bgq</a><br class="">
<br class="">
Compared to the latest "released" version (r220548-20141024), the most-recent nightly build does show some performance regressions, and there are a few things I've not even tested yet (LTO, ASan, etc.), but it also contains a number of bug fixes and improvements,
 so feel free to test on your applications.<br class="">
<br class="">
One particular noteworthy improvement is that our OpenMP runtime library now has affinity support enabled. This means that all of the OpenMP 4 affinity features should work, and also that the default thread<->core bindings are now sensible.<br class="">
<br class="">
The bgclang wrapper script no longer disables 'fast-isel' instruction selection at -O0, so your debug builds should now be faster too. Also, the automated vectorization of math functions using our SLEEF library adaptation is controlled using the new -fveclib
 flag (so the wrapper script contains -fveclib=SLEEF, and you can add -fveclib=none to turn it off if desired for whatever reason).<br class="">
<br class="">
Also, the core QPX support has been contributed upstream (although not yet the Clang-level intrinsics support); so if you're using LLVM as a library, and want to just build from upstream sources instead of depending on the bgclang builds, that is now possible.<br class="">
<br class="">
Thanks again everyone, and please let me know if you experience any difficulties,<br class="">
Hal<br class="">
<br class="">
-- <br class="">
Hal Finkel<br class="">
Assistant Computational Scientist<br class="">
Leadership Computing Facility<br class="">
Argonne National Laboratory<br class="">
_______________________________________________<br class="">
llvm-bgq-discuss mailing list<br class="">
<a href="mailto:llvm-bgq-discuss@lists.alcf.anl.gov" class="">llvm-bgq-discuss@lists.alcf.anl.gov</a><br class="">
https://lists.alcf.anl.gov/mailman/listinfo/llvm-bgq-discuss<br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
<br>
<font face="Arial" color="Black" size="1"><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>
</font>
</body>
</html>