- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
			
				
					
					
						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
		
		
	
	
	
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
Link Copied
		6 Replies
	
		
		
			
			
			
					
	
			- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
			
				
					
					
						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.
					
				
			
			
				
			
			
			
			
			
			
			
		
		
		
	
	
	
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
			
				
					
					
						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
					
				
			
			
				
			
			
			
			
			
			
			
		
		
		
	
	
	
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Hui,
I'm now having the same problem as you, but with version 10 Did you find a solution?
Bob D
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
			
				
					
					
						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.
					
				
			
			
				
			
			
			
			
			
			
			
		
		
		
	
	
	
'g++ -print-search-dirs'
is showing the necessary path, as it must do in order for ifort to find the library.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
			
				
					
					
						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
		
		
	
	
	
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
 
					
				
				
			
		
					
					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