How to pass -libm to MPICC? libimf.so: warning: feupdateenv is not implemented and will always fail

I am a newbie who is trying to compile a program using mpicc, replacing iccwith gcc. I have already discovered that I need to use the following command to compile

$ OMPI_CC=gcc make

However, I get the following error message ( which is well known )

/opt/intel/fce/9.1.036/lib/libimf.so: warning: warning: feupdateenv is not implemented and will always fail

I'm trying to do

$ make clean && OMPI_CC=gcc OMPI_LDFLAGS=-libm make

Then i see

/usr/bin/ld: cannot find -libm
collect2: ld returned 1 exit status

However i found the file there

lrwxrwxrwx /usr/lib/libm.so -> /lib/libm.so.6
lrwxrwxrwx /lib/libm.so.6 -> libm-2.3.6.so
-rw-r--r-- /lib/libm-2.3.6.so
+2
source share
2 answers

Try:

$ make clean
$ OMPI_CC=gcc OMPI_LDFLAGS=-lm make
0
source

--showme, , mpicc/mpi. (icc/gcc/pgcc/whatever) , MPI .

, --showme .

: http://www.open-mpi.org/faq/?category=mpi-apps#wrapper-showme-with-no-file

0

Source: https://habr.com/ru/post/1757202/


All Articles