[R-SIG-Mac] OSX gFortran for JAGS
William Northcott
w.northcott at unsw.edu.au
Mon Oct 10 01:35:58 CEST 2011
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:
> configure:16476: /usr/local/bin/gfortran --version >&5
> GNU Fortran (GCC) 4.2.3
> Copyright (C) 2007 Free Software Foundation, Inc.
>
> GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
> You may redistribute copies of GNU Fortran
> under the terms of the GNU General Public License.
> For more information about these matters, see the file named COPYING
>
> configure:16487: $? = 0
> configure:16476: /usr/local/bin/gfortran -v >&5
> Using built-in specs.
> Target: i686-apple-darwin8
> Configured with: /Builds/unix/gcc/gcc-4.2/configure --prefix=/usr/local --mandir=/share/man --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --build=i686-apple-darwin8 --host=i686-apple-darwin8 --target=i686-apple-darwin8 --enable-languages=fortran
> Thread model: posix
> gcc version 4.2.3
> configure:16487: $? = 0
> configure:16476: /usr/local/bin/gfortran -V >&5
> gfortran: argument to `-V' is missing
> configure:16487: $? = 1
> configure:16476: /usr/local/bin/gfortran -qversion >&5
> i686-apple-darwin8-gfortran-4.2: unrecognized option '-qversion'
> i686-apple-darwin8-gfortran-4.2: no input files
> configure:16487: $? = 1
> configure:16496: checking whether we are using the GNU Fortran 77 compiler
> configure:16509: /usr/local/bin/gfortran -c -g -Os -mmacosx-version-min=10.5 -isysroot /Developer-3/SDKs/MacOSX10.5.sdk -arch i386 -arch x86_64 -arch ppc -arch ppc64 conftest.F >&5
> as: assembler (/usr/bin/../libexec/gcc/darwin/ppc/as or /usr/bin/../local/libexec/gcc/darwin/ppc/as) for architecture ppc not installed
Any inspiration about how to get around this?
Bill Northcott
>
More information about the R-SIG-Mac
mailing list