<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; color: rgb(0, 0, 0); font-size: 16px; font-family: Calibri, sans-serif;">
<div>
<div>
<div>Probably this path or something similar</div>
<div><br>
</div>
<div>
<p style="margin: 0px; line-height: normal; font-family: Menlo; background-color: rgb(254, 244, 156);">
<span style="font-variant-ligatures: no-common-ligatures">/bgsys/drivers/toolchain/V1R2M4_base_4.7.2/gnu-linux-4.7.2/powerpc64-bgq-linux/lib/</span></p>
</div>
<div>
<div id="MAC_OUTLOOK_SIGNATURE"></div>
</div>
</div>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:12pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Michael Collins <<a href="mailto:mikeliamcollins@gmail.com">mikeliamcollins@gmail.com</a>><br>
<span style="font-weight:bold">Date: </span>Monday, July 18, 2016 at 1:11 PM<br>
<span style="font-weight:bold">To: </span>Patrick Gartung <<a href="mailto:gartung@fnal.gov">gartung@fnal.gov</a>><br>
<span style="font-weight:bold">Cc: </span>"<a href="mailto:llvm-bgq-discuss@lists.alcf.anl.gov">llvm-bgq-discuss@lists.alcf.anl.gov</a>" <<a href="mailto:llvm-bgq-discuss@lists.alcf.anl.gov">llvm-bgq-discuss@lists.alcf.anl.gov</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [Llvm-bgq-discuss] mpic++11 Runtime Error on Cetus<br>
</div>
<div><br>
</div>
<div>
<div>
<div dir="ltr">OK, I'll dig around a bit and see if I can find the libstdc++.so I need.</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Mon, Jul 18, 2016 at 1:02 PM, Patrick E Gartung <span dir="ltr">
<<a href="mailto:gartung@fnal.gov" target="_blank">gartung@fnal.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word;color:rgb(0,0,0);font-size:16px;font-family:Calibri,sans-serif">
<div>
<div>
<div>My solution only worked because I compiled with gcc4.8.4 in the mpich_cpp wrapper. I think bgclang is compiled against a different libstdc++.so. This may be the cause of the segfault. You will have to determine the correct LD_LIBRARY_PATH to use with bgclang.</div>
<div>
<div></div>
</div>
</div>
</div>
<div><br>
</div>
<span>
<div style="font-family:Calibri;font-size:12pt;text-align:left;color:black;BORDER-BOTTOM:medium none;BORDER-LEFT:medium none;PADDING-BOTTOM:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;BORDER-TOP:#b5c4df 1pt solid;BORDER-RIGHT:medium none;PADDING-TOP:3pt">
<span style="font-weight:bold">From: </span>Michael Collins <<a href="mailto:mikeliamcollins@gmail.com" target="_blank">mikeliamcollins@gmail.com</a>><br>
<span style="font-weight:bold">Date: </span>Monday, July 18, 2016 at 12:57 PM<br>
<span style="font-weight:bold">To: </span>Patrick Gartung <<a href="mailto:gartung@fnal.gov" target="_blank">gartung@fnal.gov</a>><br>
<span style="font-weight:bold">Cc: </span>"<a href="mailto:llvm-bgq-discuss@lists.alcf.anl.gov" target="_blank">llvm-bgq-discuss@lists.alcf.anl.gov</a>" <<a href="mailto:llvm-bgq-discuss@lists.alcf.anl.gov" target="_blank">llvm-bgq-discuss@lists.alcf.anl.gov</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [Llvm-bgq-discuss] mpic++11 Runtime Error on Cetus<br>
</div>
<div>
<div class="h5">
<div><br>
</div>
<div>
<div>
<div dir="ltr">That seems to have done the trick. My program's segfault-ing, but at least that means the library was loaded.</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Mon, Jul 18, 2016 at 12:22 PM, Michael Collins <span dir="ltr">
<<a href="mailto:mikeliamcollins@gmail.com" target="_blank">mikeliamcollins@gmail.com</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">Thanks, Patrick. I'll give it a try and report back.</div>
<div>
<div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Mon, Jul 18, 2016 at 12:20 PM, Patrick E Gartung <span dir="ltr">
<<a href="mailto:gartung@fnal.gov" target="_blank">gartung@fnal.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word;color:rgb(0,0,0);font-size:16px;font-family:Calibri,sans-serif">
<div>
<div>
<div>Hi Michael</div>
<div><br>
</div>
<div>I had the same problem on vesta. I had to add  the envs option with LD_LIBRARY_PATH to the qsub command</div>
<div><br>
</div>
<div>
<p style="margin:0px;line-height:normal;font-family:Menlo;background-color:rgb(254,244,156)">
<span>qsub -n 2 --mode c1 -t 120 --env LD_LIBRARY_PATH=/soft/compilers/gcc/4.8.4/lib/gcc/powerpc64-bgq-linux/4.8.4/:/soft/compilers/gcc/4.8.4/lib/gcc/:/soft/compilers/gcc/4.8.4/lib/gcc/powerpc64-bgq-linux/4.8.4/../../../../powerpc64-bgq-linux/lib/:$LD_LIBRARY_PATH</span></p>
</div>
<div>
<div></div>
</div>
</div>
</div>
<div><br>
</div>
<span>
<div style="font-family:Calibri;font-size:12pt;text-align:left;color:black;BORDER-BOTTOM:medium none;BORDER-LEFT:medium none;PADDING-BOTTOM:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;BORDER-TOP:#b5c4df 1pt solid;BORDER-RIGHT:medium none;PADDING-TOP:3pt">
<span style="font-weight:bold">From: </span><<a href="mailto:llvm-bgq-discuss-bounces@lists.alcf.anl.gov" target="_blank">llvm-bgq-discuss-bounces@lists.alcf.anl.gov</a>> on behalf of Michael Collins <<a href="mailto:mikeliamcollins@gmail.com" target="_blank">mikeliamcollins@gmail.com</a>><br>
<span style="font-weight:bold">Date: </span>Monday, July 18, 2016 at 12:14 PM<br>
<span style="font-weight:bold">To: </span>"<a href="mailto:llvm-bgq-discuss@lists.alcf.anl.gov" target="_blank">llvm-bgq-discuss@lists.alcf.anl.gov</a>" <<a href="mailto:llvm-bgq-discuss@lists.alcf.anl.gov" target="_blank">llvm-bgq-discuss@lists.alcf.anl.gov</a>><br>
<span style="font-weight:bold">Subject: </span>[Llvm-bgq-discuss] mpic++11 Runtime Error on Cetus<br>
</div>
<div>
<div>
<div><br>
</div>
<div>
<div>
<div dir="ltr">Hello, all.
<div><br>
</div>
<div>I'm having some trouble running my Swift/T project on Cetus. I'm compiling a shared library with mpic++11 under the mpiwrapper-bclang-mpi3 wrapper, and my program is dynamically linked to it. At runtime, I'm getting the following error when my program
 tries to load the shared library:</div>
<div><br>
</div>
<div>
<div>stderr[1]: couldn't load file "/home/mlcoll/src/eq-c/tests/genmax/EQC/libeqc.so": /lib64/bgq/libstdc++.so.6: version `CXXABI_1.3.5' not found (required by /soft/compilers/bgclang/r266865-stable/libc++/lib/libc++.so.1)</div>
</div>
<div><br>
</div>
<div>Any ideas on how to remedy this?</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Mike Collins</div>
</div>
</div>
</div>
</div>
</div>
</span></div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</span></div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</span>
</body>
</html>