Skip to content

OSX gFortran for JAGS

2 messages · Bill Northcott, Charlie Sharpsteen

#
I am trying to build a 4 way fat binary of JAGS 3.1 so that the CRAN version of rjags can get updated.

The host is running 10.6.8 and it has Xcode 4.1 installed in the default locations and Xcode 3.2 installed under /Developer-3.

Using envars like
export CC=/Developer-3/usr/bin/gcc
export CXX=/Developer-3/usr/bin/gcc
export FC=/usr/local/bin/gfortran
export F77=/usr/local/bin/gfortran
export LD=/Developer-3/usr/bin/gcc
export CFLAGS="-g -Os -mmacosx-version-min=10.5 -isysroot /Developer-3/SDKs/MacOSX10.5.sdk -arch i386 -arch x86_64 -arch ppc -arch ppc64"
export CXXFLAGS="-g -Os -mmacosx-version-min=10.5 -isysroot /Developer-3/SDKs/MacOSX10.5.sdk -arch i386 -arch x86_64 -arch ppc -arch ppc64"
export FFLAGS="-g -Os -mmacosx-version-min=10.5 -isysroot /Developer-3/SDKs/MacOSX10.5.sdk -arch i386 -arch x86_64 -arch ppc -arch ppc64"
export LDFLAGS="-mmacosx-version-min=10.5 -isysroot /Developer-3/SDKs/MacOSX10.5.sdk -arch i386 -arch x86_64 -arch ppc -arch ppc64"

The C and C++ code seems to be building but gfortran is not finding the ppc assemblers under /Developr-3/usr.  Below is part of the config log:
Any inspiration about how to get around this?

Bill Northcott
#
I suspect the XCode 4 assembler is being used. Try putting the XCode 3.2.x 
binaries first in your PATH:

    export PATH=/Developer-3/usr/bin:$PATH

That should help gfortran find the proper assembler.

-Charlie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://stat.ethz.ch/pipermail/r-sig-mac/attachments/20111009/8cac52c3/attachment.html>