https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86566
--- Comment #2 from Yuri <yuri at tsoft dot com> --- Replacing cpp with gcc6 -cpp fails: $ gcc6 -cpp -fno-omit-frame-pointer -D__FFTW3 -I/usr/ports/science/quantum-espresso/work/q-e-qe-6.3/include -I/usr/ports/science/quantum-espresso/work/q-e-qe-6.3/FoX/finclude -I/usr/ports/science/quantum-espresso/work/q-e-qe-6.3/S3DE/iotk/include/ iotk_base.f90 -o iotk_base_tmp.f90 /usr/lib/crt1.o: In function `_start': /usr/src/lib/csu/amd64/crt1.c:(.text+0x17b): undefined reference to `main' collect2: error: ld returned 1 exit status It seems like it tries to link the executable?