Error trying to exec cc1d...

Angelo Graziosi Angelo.Graziosi@roma1.infn.it
Sat Aug 25 20:46:00 GMT 2012


For the sake of completeness I want to flag the following problem found 
building some more complex software on GNU Linux Kubuntu 12.04 + gfortran 
4.6.3.

I have reduced it to the this simple test case (the tar ball contains 
the needed files):

$ cat foo.F
       subroutine foo(i,lo)
       implicit none
       integer i
       logical lo
       call foo_b(i,lo)
       end

$ echo "# DO NOT DELETE THIS LINE - used by make depend" > foo.d

$ gfortran -c foo.d foo.F
gfortran: error trying to exec 'cc1d': execvp: File o directory does not 
exist

The error occurs only on Kubuntu.

On Fedora 16 and Mac OS X (+Macports), with the same GCC version, 4.6.3, 
there is only a warning (which does not break the build for the true 
software):

$ gfortran -c foo.d foo.F
gfortran: warning: foo.d: linker input file unused because linking not 
done

Any idea about the failure on Kubuntu?


Thanks,
  Angelo.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cc1d_error.tar.bz2
Type: application/x-bzip2
Size: 272 bytes
Desc: 
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20120825/a6f1b599/attachment.bz2>


More information about the Fortran mailing list