<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 folks,
<div class=""><br class="">
</div>
<div class="">In our scientific simulation tool, we set up our build system to link against LLVMSupport to print stack traces for debugging purposes, also from other compilers. This works very well on most hosts, but we fail to make it work with gcc on a Cray
 XC 40 cluster. They have a very restrictive toolchain setup (everything is controlled by the “module” command; you never get to see any real paths or commands but just use “CC” as the compiler and everything is included/linked to automagically).</div>
<div class=""><br class="">
</div>
<div class="">I already could solve some of the problems but now I am stuck at the linking stage. Specifically, their CC tool tries to link everything statically, but since we built LLVM using libc++, we also need to link against libc++, which fails with the
 error</div>
<div class=""><br class="">
</div>
<div class="">/usr/bin/ld: attempted static link of dynamic object `/zhome/academic/HLRS/xac/xacmicha/.pool/llvm/cur/lib/libc++.so’</div>
<div class=""><br class="">
</div>
<div class="">Does anyone have a suggestion what I can do to make this work (link)?</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.: This is the full linker command minus some (many) object files and -Wl,-rpath,library/paths:</div>
<div class=""><br class="">
</div>
<div class="">/opt/cray/craype/2.4.1/bin/CC   -O0 -g3 -fno-inline -std=c++11 -pedantic  -fdiagnostics-color=auto    -L/zhome/academic/HLRS/xac/xacmicha/.pool/llvm/cur/lib <many_object_files_go_here> CMakeFiles/zfs.dir/main.cpp.o  -o zfs -rdynamic /zhome/academic/HLRS/xac/xacmicha/.pool/llvm/cur/lib/libLLVMSupport.a
 -ldl -lpthread /zhome/academic/HLRS/xac/xacmicha/.pool/llvm/cur/lib/libc++.so /zhome/academic/HLRS/xac/xacmicha/.pool/llvm/cur/lib/libc++abi.a </div>
<br class="">
<br class="">
<div apple-content-edited="true" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; 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; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -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; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -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-Lakemper<br class="">
<br class="">
Chair of Fluid Mechanics and Institute of Aerodynamics<br class="">
RWTH Aachen University<br class="">
Wüllnerstraße 5a<br class="">
52062 Aachen<br class="">
Germany<br class="">
<br class="">
Phone: +49 (241) 80 95188<br class="">
Fax: +49 (241) 80 92257<br class="">
Mail: <a href="mailto:m.schlottke-lakemper@aia.rwth-aachen.de" class="">m.schlottke-lakemper@aia.rwth-aachen.de</a><br class="">
Web: <a href="http://www.aia.rwth-aachen.de" class="">http://www.aia.rwth-aachen.de</a></div>
</span></div>
</span></div>
</div>
<br class="">
</body>
</html>