You are not logged in.

#1 2009-05-06 12:54:25

Duca
Member
Registered: 2009-01-12
Posts: 23

[SOLVED] Compiling using G95

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

#2 2009-05-09 13:47:34

nspattak
Member
From: Greece
Registered: 2008-05-21
Posts: 22

Re: [SOLVED] Compiling using G95

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

#3 2009-05-19 18:00:58

Duca
Member
Registered: 2009-01-12
Posts: 23

Re: [SOLVED] Compiling using G95

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

#4 2009-06-04 20:16:23

Duca
Member
Registered: 2009-01-12
Posts: 23

Re: [SOLVED] Compiling using G95

the problem was solved by linking both crt1.o and crtn.o to /lib inspired by Andy's sugestion (g95 maintainer).

Offline

Board footer

Powered by FluxBB