You are not logged in.
Pages: 1
Greetings guys,
I have this huge fortran source code to compile and i'm experiencing problems running the binary after the compilation of the source using gfortran . Before i fairly conclude whether it's a problem with my code or problem with my gfortran instalation, i wish to try g95 (and ifort further).
There's a g95 PKGBUILD available at AUR but after sucessfully check for errors, the compilation fails and returns this error message:
ld: crt1.o: No such file: No such file or directory
I already searched for "crt1.o No such file" in our forum but no solution was really usefull.
after running
find / -name crt1.o
this was my result
/usr/lib/crt1.o
Important info regarding the compilation command
g95 -DXTC "some modules".f95 main.f95 "subroutine files".f95 -L. -lxdrf -o executavel/binary_name &> erros
The -DXTC -L. -lxdrf options were also used with gfortran with success.
xdrf.a and all f95 files are located at the same directory (only the resulted binary is inside a subdirectory ).
Thanks in advance
Eduardo
Last edited by Duca (2009-06-04 20:16:56)
Offline
Maybe you can try specifying the path of the missing object file to the linker using -L option. I also suggest you try ifort before using gfortran/g95.
Offline
thanks for your sugestion nspattak, but i didnt have success yet.
About using ifort, it's a nice compiler but i am looking forward to test the co-array features they implemented and compare with the "usual" OpenMP approach.
Last edited by Duca (2009-05-19 18:01:25)
Offline
the problem was solved by linking both crt1.o and crtn.o to /lib inspired by Andy's sugestion (g95 maintainer).
Offline
Pages: 1