<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr"><div style="font-size:13px">Hello,</div><div style="font-size:13px">I have rebuilt mpich with the following cflags and LDflag:</div><div style="font-size:13px">export CFLAGS="-march=armv5te -I/home/doha/buildroot-2015.02/output/host/usr/include/"<br></div><div style="font-size:13px">export LDFLAGS="--static -L/home/doha/buildroot-2015.02/output/host/usr/lib/"</div><div style="font-size:13px"><br></div><div style="font-size:13px"><br></div><div style="font-size:13px">but still get this</div><div style="font-size:13px"><br></div><div><div>mpiexec: symbolic link to `mpiexec.hydra'</div><div> file mpiexec.hydra</div><div>mpiexec.hydra: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), not stripped</div><div><br></div><div>Thanks,</div><div>Doha</div><div style="font-size:13px"><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 12, 2015 at 12:26 AM, Balaji, Pavan <span dir="ltr"><<a href="mailto:balaji@anl.gov" target="_blank">balaji@anl.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:14px;font-family:Calibri,sans-serif">
<div>
<div><br>
</div>
<div>The static flag should go into LDFLAGS or LIBS, not CFLAGS.</div>
<div><br>
</div>
<div>Also, for libtool to interpret it correctly, it'll need to be "--static", not "-static" (double dash instead of single dash).</div>
<div><br>
</div>
<div> -- Pavan</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 class="">
<span style="font-weight:bold">From: </span>Doha Ehab<br>
<span style="font-weight:bold">Reply-To: </span>"<a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a>"<br>
</span><span style="font-weight:bold">Date: </span>Tuesday, August 11, 2015 at 11:24 AM<br>
<span style="font-weight:bold">To: </span>"<a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a>"<br>
<span style="font-weight:bold">Subject: </span>Re: [mpich-discuss] static building of mpich<br>
</div><div><div class="h5">
<div><br>
</div>
<div>
<div>
<div dir="ltr">No , but after I did make and make install I checked whether it was statically built using the following command :
<div>
<div><br>
</div>
<div>file bin/mpiexec</div>
<div>mpiexec: symbolic link to `mpiexec.hydra'<br>
</div>
<div><br>
</div>
<div>Then I typed</div>
<div><br>
</div>
<div>file bin/mpiexec.hydrampiexec.hydra: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=0xb4510fb70ac8047d9028dbafe2d43848140fe894, not stripped</div>
</div>
<div><br>
</div>
<div>I don't understand why it is dynamically linked and not statically linked </div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Mon, Aug 10, 2015 at 6:13 AM, Balaji, Pavan <span dir="ltr">
<<a href="mailto:balaji@anl.gov" target="_blank">balaji@anl.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:14px;font-family:Calibri,sans-serif">
<div>
<div>
<div><br>
</div>
<div>Did you do make and make install?</div>
<div><br>
</div>
<div> -- Pavan</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>Doha Ehab<br>
<span style="font-weight:bold">Reply-To: </span>"<a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a>"<br>
<span style="font-weight:bold">Date: </span>Sunday, August 9, 2015 at 7:24 PM<br>
<span style="font-weight:bold">To: </span>"<a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a>"<br>
<span style="font-weight:bold">Subject: </span>[mpich-discuss] static building of mpich<br>
</div>
<div>
<div>
<div><br>
</div>
<div>
<div>
<div dir="ltr">Hello,
<div> i'm trying to cross compile mpich , I have extracted mpich-3.1.3 the I created a folder name build inside it . In order to statically build mpich I used the following commands:</div>
<div><br>
</div>
<div>
<div>export CC="/home/doha/buildroot-2015.02/output/host/usr/bin/arm-linux-gcc"</div>
<div>export AR="/home/doha/buildroot-2015.02/output/host/usr/bin/arm-linux-ar"</div>
<div>export CFLAGS="-march=armv5te -static -I/home/doha/buildroot-2015.02/output/host/usr/include/"<br>
</div>
<div>export LDFLAGS="-L/home/doha/buildroot-2015.02/output/host/usr/lib/"</div>
<div><br>
</div>
<div><br>
</div>
<div>cc=/home/doha/buildroot-2015.02/output/host/usr/bin/arm-linux-gcc ./configure --prefix=/home/doha/mpich-3.1.3/build/ --host=arm-linux --disable-shared --with-pm=hydra --with-device=ch3:nemesis --disable-fortran</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>but nothing appears in the build folder while it shows no errors on the terminal </div>
</div>
</div>
</div>
</div>
</div>
</span></div>
<br>
_______________________________________________<br>
discuss mailing list <a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a><br>
To manage subscription options or unsubscribe:<br>
<a href="https://lists.mpich.org/mailman/listinfo/discuss" rel="noreferrer" target="_blank">https://lists.mpich.org/mailman/listinfo/discuss</a><br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div></div></span>
</div>
<br>_______________________________________________<br>
discuss mailing list <a href="mailto:discuss@mpich.org">discuss@mpich.org</a><br>
To manage subscription options or unsubscribe:<br>
<a href="https://lists.mpich.org/mailman/listinfo/discuss" rel="noreferrer" target="_blank">https://lists.mpich.org/mailman/listinfo/discuss</a><br></blockquote></div><br></div>