It could be that the Libtool included in LAM/MPI is so old that it is not passing -static through properly...?
Is it possible for you to upgrade to Open MPI?
On Mar 29, 2010, at 7:42 AM, Philippe GOURET wrote:
>
> Hi
>
> I need to deploy a 32-bit version of lam-7.1.4 on a 64-bit computer.
> So i would like to build lam-7.1.4 in a static way. I just added the "-static" option to some environment variables: CFLAGS, LDFLAGS, CXXLDFLAGS, CXXFLAGS, but when i verify the built runtimes with ldd command i always see:
>
> linux-gate.so.1 => (0xffffe000)
> libdl.so.2 => /lib/libdl.so.2 (0xb7f6e000)
> libutil.so.1 => /lib/libutil.so.1 (0xb7f6a000)
> libpthread.so.0 => /lib/i686/libpthread.so.0 (0xb7f53000)
> libc.so.6 => /lib/i686/libc.so.6 (0xb7e13000)
> /lib/ld-linux.so.2 (0xb7f89000)
>
>
> If i look to the "make" trace, for example for lamboot runtime, i see:
>
> ...
> Making all in lamboot
> make[2]: entrant dans le répertoire « /home/philippe/tmp/lam-7.1.4/tools/lamboot »
> if gcc -DHAVE_CONFIG_H -I. -I. -I../../share/include -DLAM_SYSCONFDIR="\"/usr/local/etc\"" -DBOOT_MODULES="\"globus rsh slurm\"" -DRPI_MODULES="\"crtcp lamd sysv tcp usysv\"" -DCOLL_MODULES="\"lam_basic shmem smp\"" -I../../share/include -static -DLAM_BUILDING=1 -O3 -static -pthread -MT lamboot.o -MD -MP -MF ".deps/lamboot.Tpo" -c -o lamboot.o lamboot.c; \
> then mv -f ".deps/lamboot.Tpo" ".deps/lamboot.Po"; else rm -f ".deps/lamboot.Tpo"; exit 1; fi
> /bin/sh ../../libtool --tag=CC --mode=link gcc -O3 -static -pthread -static -o lamboot lamboot.o ../../share/liblam/liblam.la -lutil
> mkdir .libs
> gcc -O3 -pthread -o lamboot lamboot.o ../../share/liblam/.libs/liblam.a -ldl -lutil
> make[2]: quittant le répertoire « /home/philippe/tmp/lam-7.1.4/tools/lamboot »
> ...
>
> Did i miss something ?
>
> Thanks by advance
>
> Best regards
> Philippe Gouret
>
>
>
>
>
> _______________________________________________
> This list is archived at http://www.lam-mpi.org/MailArchives/lam/
>
--
Jeff Squyres
jsquyres_at_[hidden]
For corporate legal information go to:
http://www.cisco.com/web/about/doing_business/legal/cri/
|