ayush
02-21-2005, 07:55 PM
Hi all,
I was running into problems trying to use Lahey Fortran on my machine.
My machine details:
64 bit processor: EM64T Intel Pentium 4
OS: RHEL WS 3.0 for EM64T (Kernel: 2.4.21)
Program giving problems: Lahey Fortran 95 Express version 6.2 (trial version)
Problems:
1. the machine is 64 bit; I use a flag -Wa,--32 to compile my code (simple "hello world" program)
It compiles fine but when it tries to link the object files, it gives the error message:
"prompt> usr/bin/ld: cannot open usr/lib/crt1.o: No such file"
I tried to find the file crt1.o : it was in usr/lib64
so i tried to link using:
prompt> ld hello.o /usr/lib64/crt1.o
result: prompt> ld: warning: i386 architechture of input file hello.o is incompatible with i386:x86-64 output.
2. I think I need to link to the 32-bit gcc libraries.. I do not know where to find the 32 bit libraries on my machine. or where to find the 32-bit crt1.o file.
I typed:
prompt> rpm -q glibc
gave:
prompt> glibc-2.3.2-95.30
glibc-2.3.2-95.30
-- someone said that apparently means that both 32 bit and 64 bit libraries are installed on the machine. but how do I locate the 32 bit files and link to them so that the compiler will work??
please help.
thanks
Ayush
I was running into problems trying to use Lahey Fortran on my machine.
My machine details:
64 bit processor: EM64T Intel Pentium 4
OS: RHEL WS 3.0 for EM64T (Kernel: 2.4.21)
Program giving problems: Lahey Fortran 95 Express version 6.2 (trial version)
Problems:
1. the machine is 64 bit; I use a flag -Wa,--32 to compile my code (simple "hello world" program)
It compiles fine but when it tries to link the object files, it gives the error message:
"prompt> usr/bin/ld: cannot open usr/lib/crt1.o: No such file"
I tried to find the file crt1.o : it was in usr/lib64
so i tried to link using:
prompt> ld hello.o /usr/lib64/crt1.o
result: prompt> ld: warning: i386 architechture of input file hello.o is incompatible with i386:x86-64 output.
2. I think I need to link to the 32-bit gcc libraries.. I do not know where to find the 32 bit libraries on my machine. or where to find the 32-bit crt1.o file.
I typed:
prompt> rpm -q glibc
gave:
prompt> glibc-2.3.2-95.30
glibc-2.3.2-95.30
-- someone said that apparently means that both 32 bit and 64 bit libraries are installed on the machine. but how do I locate the 32 bit files and link to them so that the compiler will work??
please help.
thanks
Ayush