Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Compiler Options for 32 bit

myberni
Beginner
505 Views

Usually I am working with Intel Fortran on a 64 bit machine. For a special problem (I have to use usr/bin/gcc -m32 as linker) I get the followingwarning (/usr/bin/ld: warning: i386:x86-64 architecture of input file 'xxx.mod' is incompatible with i386 output) resulting in a segmentation fault ...

So I think, that I have to rearrange the compiler options to receive 32 bit code still using my recent Intel Fortran version. I tried different compiler options, but I was not successful ...

Have you any suggestions ...

Many thanks in advance
myberni

0 Kudos
1 Reply
Kevin_D_Intel
Employee
505 Views

The gcc -m32 compiler option generates code for the 32-bit environment. The -m32 option is not valid on Linux with the Intel Fortran compiler, therefore I believe you need to arrange to use the 32-bit Intel Fortran compiler for Linux when using the gcc -m32 option to avoid mixing 32-bit and 64-bit compiled objects and environments.

The 32-bit Intel Fortran compiler installs into the /opt/intel/fc sub-directory, whereas the Intel 64 compiler you used installs in the /opt/intel/fce sub-directory.

You may or may not have the 32-bit Intel Fortran compiler installed. If you do, then setup your environment (via ifortvars.sh/csh) to use the 32-bit Intel Fortran compiler when using gcc -m32 option, be sure to remove the existing .mod and .o files, and then recompile all your Fortran and C/C++ files.

0 Kudos
Reply