edin / raytracer

Performance comparison of various compilers
MIT License
57 stars 22 forks source link

Fortran version won't build #19

Open jzakiya opened 3 years ago

jzakiya commented 3 years ago

I'm trying to build the Fortran version and have run into some problems.

raytracer> gfortran --version
GNU Fortran (PCLinuxOS 10.3.0-1pclos2021) 10.3.0
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

When I use the build instructions I get this error.

raytracer> gfortran.exe main.f95 -O3 -o FRay.exe
zsh: command not found: gfortran.exe

When I ran it without the .exe it gives a missing library error.

raytracer> gfortran main.f95 -O3 -o FRay.exe 
/usr/bin/ld: cannot find -lquadmath
collect2: error: ld returned 1 exit status
edin commented 3 years ago

I've tested in ubuntu 20.04 and it works with GCC 9.3, I'll try later with 10.3

GNU Fortran (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0