How to pass -libm to MPICC? libimf.so: warning: feupdateenv is not implemented and will always fail
问题 I am a newbie who tries to compile a program via mpicc replacing icc with 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 try 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