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

skipping incompatible --> Code from ubuntu 10.10 32 bits to ubuntu 10.10 64 bits

pedro_alba
Beginner
599 Views
I move my Fortran source from ubuntu 10.10 32 bits to ubuntu 10.10 64 bits and the next error appear. Intel Fortran Composer 64bits


pedro@pedro-VPCF11C5E:~/workspace/micha$ ifort LIB_BOUND6.f90 BOUND_COLL.f90 -L. -lport

---------------------------^
ld: skipping incompatible ./libport.a when searching for -lport
ld: cannot find -lport



What happened???

0 Kudos
2 Replies
Hao_Jiang__Intel_
599 Views
Could you help to check if your libport.a in current directory is 64-bit already ? Looks linker can not recognize it.
0 Kudos
mecej4
Honored Contributor III
599 Views
What is the path to your working directory? Which version of the compiler did you run ("ifort -V" will tell you that). How was libport.a built? Libraries of different types (32-bit and 64-bit) cannot be linked with object files of an incompatible type.

If you are running the 32-bit compiler, and the linker finds a 64-bit library first in the library search path list, it will display an error message such as the one you saw, and then continue to look for a 32-bit library with the specified name. Conversely, if you run the 64-bit compiler and the linker finds a 32-bit library first, a corresponding error message is displayed.
0 Kudos
Reply