Thanks Bill.

I was able to build R-2.1.1 on the Tiger/G5 with configure command you
gave, adding in F77=gfortran but my package will not build correctly. It
dies
with a namespace load error during the R CMD CHECK. If I ignore the
namespace error and just install it the code segfaults.

However, the package does build and run correctly on a Tiger/G4 machine. The
difference is
that on the G4 we run gcc-4.0 apple build 4061 and gfortran 4.1.0 v20050517.
On the
G5 we're running gcc-4.0 apple build 5026 and gfortran apple build 5202.

Since the code compiles and runs properly on the G4 I'm assuming the
code is fine. Now we're thinking of running the same compilers on the G5.

Any advice would be appreciated.

Joel

On 9/26/05, Bill Northcott <[EMAIL PROTECTED]> wrote:
>
> On 22/09/2005, at 8:00 PM, Joel Bremson wrote:
> > I'm trying to compile R-2.1.1 on a Tiger/G5 - Darwin 8.2.0 - XCode
> > 2.1.
> > The gcc is:
> > powerpc-apple-darwin8-gcc-4.0.0 (GCC) 4.0.0 (Apple Computer, Inc.
> > build
> > 5026)
> >
> > The gfortran is:
> > GNU Fortran 95 (GCC 4.0.0 (Apple Computer, Inc. build 5202))
> >
> > My configure line is:
> > ./configure F77=gfortran FLIBS=/usr/lib/libgfortran.a
> >
> > The make runs for a long while and then crashes out with this output:
> > gfortran -fno-common -g -O2 -c cmplxblas.f -o cmplxblas.lo
> > gcc -dynamiclib -L/sw/lib -L/usr/local/lib -install_name
> > /Library/Frameworks/R.framework/Version
>
> Your problem is not the compiler. It is the configure command that
> is wrong. There is no problem building R with gfortran and gcc-4.
> The F77 define is probably necessary, but you should not need to add
> standard Fortran libraries.
>
> The recommended configure command is
> ./configure --with-blas='-framework vecLib' --with-lapack --with-aqua
> see http://cran.r-project.org/bin/macosx/RMacOSX-FAQ.html
>
> BLAS and LAPACK are part of the Accelerate framework in MacOS X.
> Because you have omitted the '--with-blas' and '--with-lapack'
> options R is trying to build its own LAPACK which AFAIK is not
> supported on MacOS X. Hence your problems.
>
> Bill Northcott
>



--
Joel Bremson
Graduate Student
Institute for Transportation Studies - UC Davis
http://etrans.blogspot.com

        [[alternative HTML version deleted]]

_______________________________________________
R-SIG-Mac mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-mac

Reply via email to