[Rd] FORTRAN compilation error

Simon Urbanek simon.urbanek at r-project.org
Thu Feb 9 02:13:31 CET 2012

On Feb 8, 2012, at 3:16 PM, David L Lorenz wrote:

> I get an error when trying to compile a FORTRAN source file for use in a 
> package that I am developing. The error, reported in 00install.out is 
> below.
> * installing *source* package 'USGSstats' ...
> ** libs
> *** arch - i386
> C:/PROGRA~1/R/R-214~1.1/etc/i386/Makeconf:194: warning: overriding recipe 
> for target `.m.o'
> C:/PROGRA~1/R/R-214~1.1/etc/i386/Makeconf:187: warning: ignoring old 
> recipe for target `.m.o'
> gfortran      -O3  -mtune=core2 -c seakenF.f -o seakenF.o
> "zseakenF.o" was unexpected at this time.
> make: *** [USGSstats.dll] Error 255
> ERROR: compilation failed for package 'USGSstats'
> I am running R 2.14.1 on a Windows 7 pc. The gnu compilers are all 
> installed and work just fine. In fact, the .o file is created and I can 
> manually create the .dll file.
> The error seems to be in the generation of the object name zseakenF.o. I 
> do not see where that might have been generated in the Makeconf file.

The problem is caused by your Makeconf which you didn't share, so there is not much we can help you with ... You should remove the offending Makeconf to start with ...


More information about the R-devel mailing list