From simon.urbanek at r-project.org  Thu Feb  9 02:13:31 2012
From: simon.urbanek at r-project.org (Simon Urbanek)
Date: Wed, 8 Feb 2012 20:13:31 -0500
Subject: [Rd] FORTRAN compilation error
In-Reply-To: <OF060AAA2C.DF464D46-ON8625799E.006EB68C-8625799E.006F60E9@usgs.gov>
References: <OF060AAA2C.DF464D46-ON8625799E.006EB68C-8625799E.006F60E9@usgs.gov>
Message-ID: <71DDC9A4-DCF8-49E1-AF6A-A81D2BBE35C3@r-project.org>


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 ...

Cheers,
Simon



[Rd] FORTRAN compilation error
Simon Urbanek