From simon.urbanek at r-project.org  Fri Feb 15 15:04:37 2013
From: simon.urbanek at r-project.org (Simon Urbanek)
Date: Fri, 15 Feb 2013 09:04:37 -0500
Subject: [Rd] Building R from source under Mac OS X 10.8.2?
In-Reply-To: <CADUbQ5iR1KHRx5vcCZmgWCN_zJ2MRDD250_p0RLOz+iE+07DoA@mail.gmail.com>
References: <CADUbQ5iR1KHRx5vcCZmgWCN_zJ2MRDD250_p0RLOz+iE+07DoA@mail.gmail.com>
Message-ID: <331672A8-5865-4041-BD9E-D5E0E5DFDCA2@r-project.org>

Dominick,

On Feb 15, 2013, at 3:13 AM, Dominick Samperi wrote:

> Hello,
> 
> I'm trying to build R from source under Mac OS X 10.8.2 (Mountain Lion)
> by following the FAQ and I run into a problem with the Fortran
> compiler (downloaded from http://cran.r-project.org/bin/macosx/tools/),
> specifically, gfortran-4.2.3. I have Xcode 4.6 installed along with
> the latest command-line tools (dated Feb. 9, 2013).
> 
> When I try to run configure with or without the --enable-R-framework
> options I get this diagnostic:
> 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
> 
> I'm working with the source for R 2.15.2.
> 
> Any tips would be appreciated.
> 

Have you setup flags so that the architectures match? The default in Xcode for ML is 64-bit while the default for the Fortran is 32-bit (because that was the default for Xcode at the time), so depending on which architecture you want to compile you'll have to use either -arch x86_64 or -arch i386 (see the FAQ for a quickstart guide to compiling R).

Cheers,
Simon



> Thanks,
> Dominick
> 
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
> 
> 



[Rd] Building R from source under Mac OS X 10.8.2?
Simon Urbanek