LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Philippe GOURET (Philippe.Gouret_at_[hidden])
Date: 2010-03-29 08:21:52


The make failed with Open MPI:

> ----------------------------------------Making all in tools/wrappers
make[2]: entrant dans le répertoire « /home/philippe/tmp/openmpi-1.4.1/opal/tools/wrappers »
depbase=`echo opal_wrapper.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
        gcc "-DEXEEXT=\"\"" -I. -I../../../opal/include -I../../../orte/include -I../../../ompi/include -I../../../opal/mca/paffinity/linux/plpa/src/libplpa -I../../.. -static -O3 -DNDEBUG -static -finline-functions -fno-strict-aliasing -pthread -fvisibility=hidden -MT opal_wrapper.o -MD -MP -MF $depbase.Tpo -c -o opal_wrapper.o opal_wrapper.c &&\
        mv -f $depbase.Tpo $depbase.Po
/bin/sh ../../../libtool --tag=CC --mode=link gcc -O3 -DNDEBUG -static -finline-functions -fno-strict-aliasing -pthread -fvisibility=hidden -export-dynamic -static -o opal_wrapper opal_wrapper.o ../../../opal/libopen-pal.la -lnsl -lutil -lm
libtool: link: gcc -O3 -DNDEBUG -finline-functions -fno-strict-aliasing -pthread -fvisibility=hidden -o opal_wrapper opal_wrapper.o -Wl,--export-dynamic ../../../opal/.libs/libopen-pal.a -ldl -lnsl -lutil -lm -pthread
../../../opal/.libs/libopen-pal.a(opal_ptmalloc2_munmap.o): In function `opal_mem_free_ptmalloc2_munmap':
opal_ptmalloc2_munmap.c:(.text+0x42): undefined reference to `__munmap'
../../../opal/.libs/libopen-pal.a(opal_ptmalloc2_munmap.o): In function `munmap':
opal_ptmalloc2_munmap.c:(.text+0x8d): undefined reference to `__munmap'
collect2: ld returned 1 exit status
make[2]: *** [opal_wrapper] Erreur 1
make[2]: quittant le répertoire « /home/philippe/tmp/openmpi-1.4.1/opal/tools/wrappers »
make[1]: *** [all-recursive] Erreur 1
make[1]: quittant le répertoire « /home/philippe/tmp/openmpi-1.4.1/opal »
make: *** [all-recursive] Erreur 1

Do you know why ?

Moreover like with lam, the gcc last call doesn't have the "-static" option, but "libtool" has it !

Thanks

> From: Jeff Squyres <jsquyres_at_[hidden]>
> Sent: Mon Mar 29 14:01:50 CEST 2010
> To: Philippe GOURET <Philippe.Gouret_at_[hidden]>, General LAM/MPI mailing list <lam_at_[hidden]>
> Subject: Re: LAM: static
>
>
> 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/
>
>
> _______________________________________________
> This list is archived at http://www.lam-mpi.org/MailArchives/lam/