- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I installed intel fortran 10.1.012 on ubuntu 8.04 (AMD 64). it compiles the files without any problem but when i want to link the object files it fails with following messages:
ld: skipping incompatible /usr/lib/libm.so when searching for -lm
ld: skipping incompatible /usr/lib/libm.a when searching for -lm
ld: skipping incompatible /usr/bin/../lib/libm.so when searching for -lm
ld: skipping incompatible /usr/bin/../lib/libm.a when searching for -lm
ld: skipping incompatible /usr/lib/libm.so when searching for -lm
ld: skipping incompatible /usr/lib/libm.a when searching for -lm
ld: cannot find -lm
would you please let me what is wrong with my installation. should i install any other packages?
Hadian
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
/usr/lib libraries are provided with your Linux distribution not the Intel Fortran compiler.
It is possible you used the IA-32 Intel Fortran compiler when perhaps maybe you should be using the Intel 64 compiler. You should check which ifort to see if the compiler comes from the /opt/intel/fce area corresponding to the Intel 64 compiler. The IA-32 compiler resides under /opt/intel/fc.
You may also not wish to assert -lm on the link. Doing so links the app to math routines from /usr/lib/libm versus optimized versions provided in the Intel Fortran compiler library (libimf).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i used the used the command in fce folder instead of fc folder and it works fine.
i will check the debuger too.

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