[mpich-discuss] static building of mpich

Balaji, Pavan balaji at anl.gov
Tue Aug 11 16:26:20 CDT 2015


The static flag should go into LDFLAGS or LIBS, not CFLAGS.

Also, for libtool to interpret it correctly, it'll need to be "--static", not "-static" (double dash instead of single dash).

  -- Pavan

From: Doha Ehab
Reply-To: "discuss at mpich.org<mailto:discuss at mpich.org>"
Date: Tuesday, August 11, 2015 at 11:24 AM
To: "discuss at mpich.org<mailto:discuss at mpich.org>"
Subject: Re: [mpich-discuss] static building of mpich

No , but after I did make and make install I checked whether it was statically built using the following command :

file bin/mpiexec
mpiexec: symbolic link to `mpiexec.hydra'

Then I typed

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

I don't understand why it is dynamically linked and not statically linked


On Mon, Aug 10, 2015 at 6:13 AM, Balaji, Pavan <balaji at anl.gov<mailto:balaji at anl.gov>> wrote:

Did you do make and make install?

  -- Pavan

From: Doha Ehab
Reply-To: "discuss at mpich.org<mailto:discuss at mpich.org>"
Date: Sunday, August 9, 2015 at 7:24 PM
To: "discuss at mpich.org<mailto:discuss at mpich.org>"
Subject: [mpich-discuss] static building of mpich

Hello,
 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:

export CC="/home/doha/buildroot-2015.02/output/host/usr/bin/arm-linux-gcc"
export AR="/home/doha/buildroot-2015.02/output/host/usr/bin/arm-linux-ar"
export CFLAGS="-march=armv5te -static -I/home/doha/buildroot-2015.02/output/host/usr/include/"
export LDFLAGS="-L/home/doha/buildroot-2015.02/output/host/usr/lib/"


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


but nothing appears in the build folder while it shows no errors on the terminal

_______________________________________________
discuss mailing list     discuss at mpich.org<mailto:discuss at mpich.org>
To manage subscription options or unsubscribe:
https://lists.mpich.org/mailman/listinfo/discuss

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20150811/1c54bbe7/attachment.html>
-------------- next part --------------
_______________________________________________
discuss mailing list     discuss at mpich.org
To manage subscription options or unsubscribe:
https://lists.mpich.org/mailman/listinfo/discuss


More information about the discuss mailing list