[R-SIG-Mac] ./configure cannot use Fortran

robin hankin hankin.robin at gmail.com
Thu Jun 30 05:29:03 CEST 2011


Hi

macosx 10.6.7, brand new machine.

Trying to compile R 2.13.0 from sources.

As per the mac faq, I have installed Xcode 3.2.6 and gfortran 4.2.3, downloaded
directly from the link on the macOSX-FAQ page.

The $PATH seems to check out:

$ echo $PATH
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin

and indeed gfortran is visible:

$ gfortran --version
GNU Fortran (GCC) 4.2.3
Copyright (C) 2007 Free Software Foundation, Inc.


but ./configure fails with:

checking how to get verbose linking output from gcc -std=gnu99... -v
checking for C libraries of gcc -std=gnu99...  -lcrt1.10.6.o
-L/usr/local/lib -L/usr/lib/gcc/i686-apple-darwin10/4.2.1/x86_64
-L/usr/lib/i686-apple-darwin10/4.2.1
-L/usr/lib/gcc/i686-apple-darwin10/4.2.1
-L/usr/lib/gcc/i686-apple-darwin10/4.2.1/../../../i686-apple-darwin10/4.2.1
-L/usr/lib/gcc/i686-apple-darwin10/4.2.1/../../.. -lSystem
checking for dummy main to link with Fortran 77 libraries... none
checking for Fortran 77 name-mangling scheme... unknown
configure: WARNING: unknown Fortran name-mangling scheme
checking whether gfortran appends underscores to external names... unknown
configure: error: cannot use Fortran



Can anyone advise?




-- 
Robin Hankin
Uncertainty Analyst
hankin.robin at gmail.com



More information about the R-SIG-Mac mailing list