Tuesday, April 15, 2008

Intel Fortran Compiler: Selinux and libifcore.so.5 conflict

Intel fortran 10.1 (not tested on other versions) has one bug:
if you compile with the option "ifort -O3 -xT -mcmodel=medium -shared-intel xxxx.f90", the executable will have a problem : "./a.out: error while loading shared libraries: /opt/intel/fce/10.1.008/lib/libifcore.so.5: cannot restore segment prot after reloc: Permission denied.

This is due to that SELinux has disabled the use of shared libraries with text relocation. The solutions are 1) to disable SELinux, 2) for the specific lib, for instance, libifcore.so.5, use "chcon -t textrel_shlib_t /opt/intel/fce/10.1.008/lib/libifcore.so.5".

No comments: