makefilefortranbsddragonfly-bsdhtml-xml-utils

make[1]: exec(f77) failed (No such file or directory) on DragonFly BSD


I get this error when trying to compile html-xml-utils-6.9 on DragonFly BSD. Funny thing is, when doing grep -r f77 in the source directory, the result is empty. So no such option is in the constructed Makefile after ./configure.

This is my configure output: http://pastebin.com/4tKEXQKG

I tried to do alias f77="gfortran48", but the problem remains. gfortran48 is an installed compiler, I've checked with man gfortran48.

My full error output:

/home/olle2/Downloads/html-xml-utils-6.9$ make
make  all-am
f77    -O -c html.e
make[1]: exec(f77) failed (No such file or directory)
*** Error code 1

Stop.
make[1]: stopped in /home/olle2/Downloads/html-xml-utils-6.9
*** Error code 1

Stop.
make: stopped in /home/olle2/Downloads/html-xml-utils-6.9

Any ideas?

Related thread: make: f77: No such file or directory


Solution

  • Solved with this line:

    ./configure LDFLAGS="-L/usr/local/lib -liconv" && gmake && echo $?
    

    (gmake instead of make gives saner error messages.)

    Thanks to #dragonflybsd IRC channel!