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

ifort 9.0 installation with wrong glibc location

hzhengcmu
初學者
1,126 檢視
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 積分
6 回應
TimP
榮譽貢獻者 III
1,126 檢視
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.
edmondo_minisci
初學者
1,126 檢視
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
stiner
初學者
1,126 檢視

Hi Hui,

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

Bob D

TimP
榮譽貢獻者 III
1,126 檢視
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.
stiner
初學者
1,126 檢視

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

rotero
初學者
1,126 檢視
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
回覆