- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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???
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???
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Could you help to check if your libport.a in current directory is 64-bit already ? Looks linker can not recognize it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
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.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page