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

ifort 9.0 installation with wrong glibc location

hzhengcmu
Beginner
853 Views
Hi

I installed ifort 9.0 on a Redhat Linux 9.0 machine with 2.4.20-8 kernel. The
installation went smoothly, but when I tried to compile the test program, I got
the following error message:

>ifort int_sin.f90
ld: cannot open
/shared/projects/Linux_2.4.9/lib/gcc-lib/i686-pc-linux-gnu/3.0.4/crtbegin.o: No
such file or directory

The reason the file is not found is the path is slightly wrong. The path is:
/shared/projects/Linux_2.4.9/gcc/lib/gcc-lib/i686-pc-linux-gnu/3.0.4/
(notice that the "gcc" before "lib" is missing in the error message.)

I don't know how the installation detected the path and how it got it wrong. Is
there anyway I can get around this?

Thanks,
Hui
0 Kudos
6 Replies
TimP
Honored Contributor III
853 Views
ifort 9 may be executing 'gcc -print-search-dirs' to discover the library search path. If your gcc can't find this library, ifort certainly will not find it on such a path.
0 Kudos
edmondo_minisci
Beginner
853 Views
Hi Hui,

I'm having the same problem. When I try to compile any fortran file I obtain the following error message:

can not find "/usr/tmp/gcc-4.0.1/lib/gcc/i686-pc-linux-gnu/4.0.1/crtbegin.o"

I can find this file, but it is in another dir.

Did you solve the problem. Does anyone know the solution.

Thanks a lot

Edmondo
0 Kudos
stiner
Beginner
853 Views

Hi Hui,

I'm now having the same problem as you, but with version 10 Did you find a solution?

Bob D

0 Kudos
TimP
Honored Contributor III
853 Views
Neither of you have cared to indicate whether
'g++ -print-search-dirs'
is showing the necessary path, as it must do in order for ifort to find the library.
0 Kudos
stiner
Beginner
853 Views

Tim,

You are correct, the INTEL FORTRAN compiler is searching for:

/usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.2.0/32/crtbegin.o

butI want it to find:

/opt/gcc_4.2.0/gcc/crtbegin.o

How do I tell the compiler to search for this? I've tried changing the path order for the LD_LIBRARY_PATH environment variable, and the PATH environment variable but, it seems that /usr/local/lib is always searched first.

Thanks, Bob

0 Kudos
rotero
Beginner
853 Views
Hello,

When I had this error it was from incorrectly setting my path to the 32 bit version of ifort:

/opt/intel/fc/10.1.011/bin

When I wanted to compile and run on my 64 bit computer. Using the 64 bit compiler:

/opt/intel/fce/10.1.011/bin

Solved that problem.

regards,
Richard
0 Kudos
Reply