and when execuing mpirun on your program, you enconter "libimf.so: warning: warning: feupdateenv is not implemented and will always fail"
$ mpicc hello.c -o hello
libimf.so: warning: warning: feupdateenv is not implemented and will always fail
This resolution to the issue can be found at OpenMPI FAQ to resolve this issue, you have to include the
$ mpicc hello.c -o hello -shared-intel
The default behavior of Open MPI's wrapper compilers can be changed to automatically include this -shared-intel flag so that it is unnecessary to specify it on the command line when linking MPI applications.