- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 ?
The third execution of ifort does not have the -openmp switch.
How to you initialize the environment for ifort? Do you do source
What do get when you ask file declarations.o ?
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 ?
The third execution of ifort does not have the -openmp switch.
How to you initialize the environment for ifort? Do you do source
What do get when you ask file declarations.o ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
". /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

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