Filippo, the linker might look for the static libz library (e.g. libz.a) can you install it and try again ?
if you configure with --enable-static, you will build both shared and static libraries. per your message, you need --enable-static, so you might want to configure with --enable-static --disable-shared that being said, i am not sure you do need --enable-static. are mxm/fca/hcoll in your $LD_LIBRARY_PATH or ld.so.conf ? if not, i recommend you set your LD_LIBRARY_PATH *before* you configure and make openmpi Cheers, Gilles On Tue, Sep 15, 2015 at 8:14 AM, Filippo Spiga <spiga.fili...@gmail.com> wrote: > Hello everybody, > > I desperately trying to compile on a SLES 11 SP3 OpenMPI 1.10.0 with MXM and > FCA support. > > export MXM_DIR=/opt/mellanox/mxm > export KNEM_DIR=$(find /opt -maxdepth 1 -type d -name "knem*" -print0) > export FCA_DIR=/opt/mellanox/fca > export HCOLL_DIR=/opt/mellanox/hcoll > > rm -rf build > mkdir build > cd build > > ../configure --prefix=$FINAL_DIR --with-lsf --enable-mca-no-build=btl-usnic > --with-verbs --with-hwloc=internal --with-fca=$FCA_DIR --with-mxm=$MXM_DIR > --with-knem=$KNEM_DIR --enable-static > > > I had to enable static otherwise MXM fails. Anyway, almost at the end it > continues to fails because of -lz problem > > Creating mpi/man/man3/OpenMPI.3 man page... > CCLD libmpi.la > /usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: > cannot find -lz > collect2: ld returned 1 exit status > make[2]: *** [libmpi.la] Error 1 > make[2]: Leaving directory `/tmp/openmpi-1.10.0/build/ompi' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/tmp/openmpi-1.10.0/build/ompi' > make: *** [all-recursive] Error 1 > > > Any suggestion to overcome this issue? > > The kernel is not very old but the GCC is... > > $gcc --version > gcc (SUSE Linux) 4.3.4 [gcc-4_3-branch revision 152973] > Copyright (C) 2008 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. There is NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. > > $ uname -a > Linux testing 3.0.93-0.8-default #1 SMP Tue Aug 27 08:44:18 UTC 2013 > (70ed288) x86_64 x86_64 x86_64 GNU/Linux > > > I see libz.so under /lib64 ... > > -- > Mr. Filippo SPIGA, M.Sc. > http://fspiga.github.io ~ skype: filippo.spiga > > «Nobody will drive us out of Cantor's paradise.» ~ David Hilbert > > ***** > Disclaimer: "Please note this message and any attachments are CONFIDENTIAL > and may be privileged or otherwise protected from disclosure. The contents > are not to be disclosed to anyone other than the addressee. Unauthorized > recipients are requested to preserve this confidentiality and to advise the > sender immediately of any error in transmission." > > > > _______________________________________________ > users mailing list > us...@open-mpi.org > Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/users > Link to this post: > http://www.open-mpi.org/community/lists/users/2015/09/27573.php