Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

From: George Bosilca (bosilca_at_[hidden])
Date: 2006-04-05 17:42:57


./configure --help will give you the full list of configuration
flags. To disable romio one should type --disable-io-romio not --
disable-romio. Adding --enable-static will build 2 sets of libraries
(as explained in the configure --help output), one dynamic and one
static. If you're looking on having just the static version (and thus
increasing the compilation speed) you should specify "--enable-static
--disable-shared".

   Thanks,
     george.

On Apr 5, 2006, at 5:30 PM, Jeffrey B. Layton wrote:

> Good afternoon (evening),
>
> I'm trying to build OpenMPI-1.0.1 on a SLES9 system with
> PGI 6.0 (gcc and pgcc). I'm disabling romio and enabling
> static libraries:
>
> ./configure --prefix=/home/jlayton/bin/OPENMPI-1.0.1-PGI6.0-OPTERON
> --disable-romio \
> --enable-static
>
> During the build I get the following error (using gcc):
>
> gcc -shared -Wl,--whole-archive attribute/.libs/libattribute.a
> class/.libs/libclass.a communicator/.libs/libcommunicator.a
> datatype/.libs/libdatatype.a debuggers/.libs/libdebuggers.a
> errhandler/.libs/liberrhandler.a file/.libs/libfile.a
> group/.libs/libgroup.a info/.libs/libinfo.a mpi/c/.libs/libmpi_c.a
> mpi/c/profile/.libs/libmpi_c_pmpi.a mpi/f77/.libs/libmpi_f77.a
> mpi/f77/profile/.libs/libmpi_f77_pmpi.a runtime/.libs/libmpiruntime.a
> op/.libs/libop.a proc/.libs/libproc.a request/.libs/librequest.a
> mca/allocator/base/.libs/libmca_allocator_base.a
> mca/allocator/bucket/.libs/libmca_allocator_bucket.a
> mca/allocator/basic/.libs/libmca_allocator_basic.a
> mca/bml/base/.libs/libmca_bml_base.a mca/bml/r2/.libs/libmca_bml_r2.a
> mca/btl/base/.libs/libmca_btl_base.a mca/btl/tcp/.libs/
> libmca_btl_tcp.a
> mca/btl/sm/.libs/libmca_btl_sm.a mca/btl/self/.libs/libmca_btl_self.a
> mca/coll/base/.libs/libmca_coll_base.a
> mca/coll/sm/.libs/libmca_coll_sm.a
> mca/coll/self/.libs/libmca_coll_self.a
> mca/coll/basic/.libs/libmca_coll_basic.a
> mca/common/sm/.libs/libmca_common_sm_noinst.a
> mca/io/base/.libs/libmca_io_base.a mca/io/romio/.libs/
> libmca_io_romio.a
> mca/mpool/base/.libs/libmca_mpool_base.a
> mca/mpool/sm/.libs/libmca_mpool_sm.a
> mca/pml/base/.libs/libmca_pml_base.a mca/pml/teg/.libs/
> libmca_pml_teg.a
> mca/pml/ob1/.libs/libmca_pml_ob1.a mca/ptl/base/.libs/
> libmca_ptl_base.a
> mca/ptl/tcp/.libs/libmca_ptl_tcp.a mca/ptl/sm/.libs/libmca_ptl_sm.a
> mca/ptl/self/.libs/libmca_ptl_self.a
> mca/rcache/base/.libs/libmca_rcache_base.a
> mca/rcache/rb/.libs/libmca_rcache_rb.a
> mca/topo/base/.libs/libmca_topo_base.a
> mca/topo/unity/.libs/libmca_topo_unity.a -Wl,--no-whole-archive
> -Wl,--rpath
> -Wl,/home/jlayton/src/openmpi-1.0.1-opteron-pgi6.0/orte/.libs
> -Wl,--rpath -Wl,/home/jlayton/bin/OPENMPI-1.0.1-PGI6.0-OPTERON/lib
> /home/jlayton/src/openmpi-1.0.1-opteron-pgi6.0/orte/.libs/liborte.so
> -L/home/jlayton/src/openmpi-1.0.1-opteron-pgi6.0/opal/.libs -laio -lm
> -lutil -lnsl -lpthread -pthread -Wl,-soname -Wl,libmpi.so.0 -o
> .libs/libmpi.so.0.0.0
> /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3/../../../../x86_64-suse-
> linux/bin/ld:
> mca/io/romio/.libs/libmca_io_romio.a(io_romio_ad_nfs_iwrite.o):
> relocation R_X86_64_32 can not be used when making a shared object;
> recompile with -fPIC
> mca/io/romio/.libs/libmca_io_romio.a(io_romio_ad_nfs_iwrite.o): could
> not read symbols: Bad value
> collect2: ld returned 1 exit status
> make[2]: *** [libmpi.la] Error 1
> make[2]: Leaving directory
> `/home/jlayton/src/openmpi-1.0.1-opteron-pgi6.0/ompi'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory
> `/home/jlayton/src/openmpi-1.0.1-opteron-pgi6.0/ompi'
> make: *** [all-recursive] Error 1
>
>
> Any ideas how to fix this?
>
> Thanks!
>
> Jeff
>
>
> _______________________________________________
> users mailing list
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users

"Half of what I say is meaningless; but I say it so that the other
half may reach you"
                                   Kahlil Gibran