Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs have moved to the Altera Community. Existing Intel Community members can sign in with their current credentials.

linker fails on ubuntu 8.04

m_r_hadian
Beginner
587 Views

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


0 Kudos
2 Replies
Kevin_D_Intel
Employee
587 Views

/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).

0 Kudos
m_r_hadian
Beginner
587 Views
Thanks
i used the used the command in fce folder instead of fc folder and it works fine.
i will check the debuger too.

0 Kudos
Reply