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

Intel Fortran Compiler 64 bit not... compiling

Jon_Camden
Beginner
750 Views
Ok, so I installed the 64 bit version of the Fortran compiler on a workstation running Ubuntu 10.04 64 bit. The prerequisites were all installed previously and the installation appeared to complete without any errors. However, now when I try to compile any Fortran program with ifort, I get a list of errors about incompitable libraries being skipped. Here is the actual list of errors:

camden@vivaldi:~/md_3atom$ make
ifort -c -openmp declarations.f90 initialize.f90 dynamic_parameters.f90 index.f90
ifort -c -openmp PES_3D_subroutine.f90 diag.f md.f
ifort md_3atom.f90 declarations.o initialize.o dynamic_parameters.o md.o index.o PES_3D_subroutine.o diag.o -o RMP_3atom.x
ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../..//libm.so when searching for -lm
ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../..//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: 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
make: *** [d_3atom.o] Error 1
camden@vivaldi:~/md_3atom$

I can provide a copy of the makefile if need be.
Does anyone here have nay ideas as to what might be the issue?
And if you need any more info about the system, just let me know.

Thanks,
Daniel
0 Kudos
1 Solution
mecej4
Honored Contributor III
750 Views
I see a couple of things that are not quite right.

The third execution of ifort does not have the -openmp switch.

How to you initialize the environment for ifort? Do you do source /bin/ifortvars.sh intel64 ?

What do get when you ask file declarations.o ?

View solution in original post

0 Kudos
3 Replies
mecej4
Honored Contributor III
751 Views
I see a couple of things that are not quite right.

The third execution of ifort does not have the -openmp switch.

How to you initialize the environment for ifort? Do you do source /bin/ifortvars.sh intel64 ?

What do get when you ask file declarations.o ?
0 Kudos
TimP
Honored Contributor III
750 Views
If you haven't followed Ron's advice on Ubuntu installation posted at the top of the forum, please consult it. Besides attempting an incompatible combination of openmp and non-parallel libraries, it appears you are trying to combine 32- and 64-bit linkage, which also are incompatible. As mecj4 mentioned, you can use the file command to check 32- vs. 64-bitness of your .o files, and try ifort -V to see if you still have the matching compiler environment set.
0 Kudos
Jon_Camden
Beginner
750 Views
Well, managed to find the problem yesterday. After installation on this computer, I forgot to add the line
". /opt/intel/Compiler/11.1/072/bin/intel64/ifortvars_intel64.sh"
to my .bashrc. Did that and everything seems to work great now!

Thanks,
Daniel
0 Kudos
Reply