>are you sure you are using Open MPI ? I am using the openmpi shipped with Rocks 6 and trying to build Quantum ESPRESSO 6.1
>Beware: static linking is not for the meek. Agree! I found that I have to install compat-dapl-static.x86_64. As can be seen from the name, it is a compatibility library. After that, I faced an error saying mpif90 -g -pthread -static -o iotk_print_kinds.x iotk_print_kinds.o libiotk.a /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libpthread.a(libpthread.o): In function `sem_open': (.text+0x774d): warning: the use of `mktemp' is dangerous, better use `mkstemp' /usr/bin/ld: dynamic STT_GNU_IFUNC symbol `strcmp' with pointer equality in `/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libc.a(strcmp.o)' can not be used when making an executable; recompile with -fPIE and relink with -pie collect2: ld returned 1 exit status With such an error, I thought it is better to forget static linking! (as it is related to libc) and work with the shared libs and LD_LIBRARY_PATH Anyway, thanks for your help. Regards, Mahmood On Wed, Sep 13, 2017 at 6:12 PM, Jeff Squyres (jsquyres) <jsquy...@cisco.com > wrote: > Beware: static linking is not for the meek. > > Is there a reason you need to link statically? > > Be sure to read this FAQ item: https://www.open-mpi.org/faq/? > category=mpi-apps#static-ofa-mpi-apps (note that that FAQ item was > written a long time ago; it cites the "mthca" Mellanox obverts driver; the > current generation driver name is ?I think? mlx5). You'll likely also have > to adapt those instructions if you're using the UCX or MXM IB libraries. > > > > On Sep 13, 2017, at 7:21 AM, gil...@rist.or.jp wrote: > > > > This is something related to DAPL. > > > > /* just google "libdat" */ > > > > > > iirc, Intel MPI uses that, but i do not recall Open MPI using it (!) > > > > are you sure you are using Open MPI ? > > > > which interconnect do you have ? > > > > > > Cheers, > > > > > > Gilles > > > > ----- Original Message ----- > > > > Thanks Gilles... That has been solved. Another issue is > > > > mpif90 -g -pthread -static -o iotk_print_kinds.x iotk_print_kinds.o > libiotk.a > > /usr/bin/ld: cannot find -ldat > > > > The name is actually hard to google! I cannot find the library name for > "dat". Have you heard of that? There is not "libdat" package as I searched. > > > > Regards, > > Mahmood > > > > > > On Wed, Sep 13, 2017 at 2:54 PM, <gil...@rist.or.jp> wrote: > > Mahmood, > > > > > > since you are building a static binary, only static library (e.g. > libibverbs.a) can be used. > > > > on your system, only dynamic libibverbs.so is available. > > > > > > simply install libibverbs.a and you should be fine. > > > > > > Best regards, > > > > > > Gilles > > > > ----- Original Message ----- > > > > Hi, > > I am trying to build an application with static linking that uses > openmpi. in the middle of the build, I get this > > > > mpif90 -g -pthread -static -o iotk_print_kinds.x iotk_print_kinds.o > libiotk.a > > /usr/bin/ld: cannot find -libverbs > > collect2: ld returned 1 exit status > > However, such library exists on the system. > > > > [root@cluster source]# find /usr/ -name *ibverb* > > /usr/lib64/libibverbs.so > > /usr/lib64/libibverbs.so.1.0.0 > > /usr/lib64/libibverbs.so.1 > > /usr/share/doc/libibverbs-1.1.8 > > [root@cluster source]# mpif90 -v > > Using built-in specs. > > Target: x86_64-redhat-linux > > Configured with: ../configure --prefix=/usr --mandir=/usr/share/man > --infodir=/usr/share/info --with-bugurl=http://bugzilla. > redhat.com/bugzilla --enable-bootstrap --enable-shared > --enable-threads=posix --enable-checking=release --with-system-zlib > --enable-__cxa_atexit --disable-libunwind-exceptions > --enable-gnu-unique-object > --enable-languages=c,c++,objc,obj-c++,java,fortran,ada > --enable-java-awt=gtk --disable-dssi > --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre > --enable-libgcj-multifile --enable-java-maintainer-mode > --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib > --with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 > --build=x86_64-redhat-linux > > Thread model: posix > > gcc version 4.4.7 20120313 (Red Hat 4.4.7-18) (GCC) > > > > > > > > Any idea for that? > > Regards, > > Mahmood > > > > _______________________________________________ > > users mailing list > > users@lists.open-mpi.org > > https://lists.open-mpi.org/mailman/listinfo/users > > _______________________________________________ > > users mailing list > > users@lists.open-mpi.org > > https://lists.open-mpi.org/mailman/listinfo/users > > > -- > Jeff Squyres > jsquy...@cisco.com > > _______________________________________________ > users mailing list > users@lists.open-mpi.org > https://lists.open-mpi.org/mailman/listinfo/users >
_______________________________________________ users mailing list users@lists.open-mpi.org https://lists.open-mpi.org/mailman/listinfo/users