views:

53

answers:

1

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

However, I find 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
A: 

Try:

$ make clean
$ OMPI_CC=gcc OMPI_LDFLAGS=-lm make
sharth
Nope, doesn't change anything. To be honest this error message is probably not so bad thing, since the program works fine (so far). I was just wondering how to solve this problem in case if it would do something bad.
Andrey
So you got the error cannot find -lm? That's weird. Also try OMPI_LIBS.
sharth
Nono, the original warning message about `feupdateenv` persists. I suppose `lm` has been found.
Andrey