On Jun 29, 2011, at 11:29 PM, robin hankin wrote: > 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? >
You're using the older Leopard Fortran which in itself is not bad, but that means you have to specify the architecture since the default for the old Fortran is 32-bit whereas the default for your remaining compilers is 64-bit. See Mac FAQ 2.1 (Quickstart) for copy/paste instructions. Alternatively you can install the Fortran for Xcode (which further down on the tools page -- direct link: http://R.research.att.com/gfortran-42-5664.pkg ) which is for Snow Leopard (10.6) and thus defaults to 64-bit. Cheers, Simon _______________________________________________ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac