[Rd] gfortran: Command not found

Prof Brian Ripley ripley at stats.ox.ac.uk
Sun May 18 08:21:38 CEST 2008


On Sat, 17 May 2008, Spencer Graves wrote:

> Dear Professors Ripley and Murdoch:
>     Thanks very much for the suggestion to upgrade my Rtools.  That fixed 
> the problem.
>     Another question:  How do people typically debug problems linking to 
> legacy Fortran?  For example, is there a reasonable (open source) debugger 
> for gfortran?

gdb, just as for C.

If you mean under Windows, then for a while gdb for MinGW was problematic 
but latest builds seem to work with the current compilers.

> In the DierckxSpline package, Sundar Dorai-Raj and I link R to 
> Fortran written by Paul Dierckx in 1979, last updated in 1987.  We've 
> encountered segmentation errors killing R, which are difficult to diagnose.
>     Thanks again.
>     Spencer Graves 
> Prof Brian Ripley wrote:
>> On Mon, 5 May 2008, Spencer Graves wrote:
>> 
>>> Hi, All:
>>>     How do I get information about the "R CMD check / build / install" 
>>> process, especially regarding what software to install and how to 
>>> configure it under Windows XP?
>> 
>> The 'R Installation and Adminstration' manual.
>>
>>>     I ask, because "R CMD check" complained, "gfortran: Command not 
>>> found". I found 'gfortran-sjlj.exe' in 'C:\Program 
>>> Files\R\Rtools\MinGW\bin', which is in the path.
>> 
>> You need to update your Rtools.
>>
>>>     This was on a package that I built successfully in January under R 
>>> 2.6.2.  Now with R 2.7.0, I can't get it to work.
>>>     Thanks for your help.      Spencer Graves
>>> ######################
>>> 
>>> Contents of "00install.out": installing R.css in 
>>> D:/spencerg/statmtds/splines/DierckxSpline/DierckxSpline.Rcheck
>>> 
>>> ---------- Making package DierckxSpline ------------
>>> adding build stamp to DESCRIPTION
>>> installing NAMESPACE file and metadata
>>> making DLL ...
>>> gfortran   -O3  -c bispev.f -o bispev.o
>>> make[3]: gfortran: Command not found
>>> make[3]: *** [bispev.o] Error 127
>>> make[2]: *** [srcDynlib] Error 2
>>> make[1]: *** [all] Error 2
>>> make: *** [pkg-DierckxSpline] Error 2
>>> *** Installation of DierckxSpline failed ***
>>> 
>>> Removing 
>>> 'D:/spencerg/statmtds/splines/DierckxSpline/DierckxSpline.Rcheck/DierckxSpline' 
>>> 
>>> #############################################
>>> 
>>> sessionInfo(): R version 2.7.0 (2008-04-22)
>>> i386-pc-mingw32
>>> 
>>> locale:
>>> LC_COLLATE=English_United States.1252;LC_CTYPE=English_United 
>>> States.1252;LC_MONETARY=English_United 
>>> States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252
>>> 
>>> attached base packages:
>>> [1] stats     graphics  grDevices utils     datasets  methods   base 
>>> #############################################
>>> 
>>> PATH =
>>> 
>>> C:\Program Files\R\Rtools\bin;C:\Program 
>>> Files\R\Rtools\perl\bin;C:\Program 
>>> Files\R\Rtools\MinGW\bin;c:\perl\bin\;c:\program 
>>> files\thinkpad\utilities;c:\windows\system32;c:\windows;c:\windows\system32\wbem;c:\program 
>>> files\intel\wireless\bin\;c:\program 
>>> files\hummingbird\connectivity\11.00\accessories\;c:\program 
>>> files\intel\wireless\bin\;c:\program files\ati 
>>> technologies\ati.ace\;c:\program files\r\r-2.7.0\bin;c:\program 
>>> files\miktex 2.5\miktex\bin;c:\program files\html help 
>>> workshop;c:\mingw\bin;C:\Program Files\MATLAB\R2007a\bin;C:\Program 
>>> Files\MATLAB\R2007a\bin\win32;c:\program 
>>> files\matlab\r2006b\bin;c:\program 
>>> files\matlab\r2006b\bin\win32;C:\Program Files\MATLAB\MATLAB Component 
>>> Runtime\v76\runtime\win32;C:\Program Files\Common Files\Lenovo;C:\Program 
>>> Files\Intel\Wireless\Bin\;C:\Program Files\Intel\Wireless\Bin\
>>> 
>>> ______________________________________________
>>> R-devel at r-project.org mailing list
>>> https://stat.ethz.ch/mailman/listinfo/r-devel
>>> 
>> 
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-devel mailing list