Error building Root 5.22 on Mac OS X

From: Tom Roberts <tjrob_at_fnal.gov>
Date: Tue, 10 Mar 2009 16:23:48 -0500


I have Mac OS X 10.5.6 (latest release of Leopard). This is a Mac Pro (4-core Intel), but I have done "unset MAKEFLAGS" so only 1 CPU is used.

I tried to build Root 5.22. The make fails with this message:

gfortran -O2 -bind_at_load -o bin/g2root main/src/g2root.o \

		   -Llib lib/libminicern.so \	 

/usr/local/lib/gcc/i386-apple-darwin8.8.1/4.3.0/../../../libgfortran.dylib
/usr/local/lib/gcc/i386-apple-darwin8.8.1/4.3.0/libgfortranbegin.a -lm
-Wl,-rpath,@loader_path/../lib -pthread -ldl ld: -rpath can only be used when targeting Mac OS X 10.5 or later

type gfortran
gfortran is hashed (/usr/local/bin/gfortran)

gfortran --version
GNU Fortran 95 (GCC) 4.3.0 20061230 (experimental)

Being in /usr/local/bin implies that gfortran probably came from Fink, not Mac OS X. Is there a version problem with it?

How can I fix this?

Tom Roberts Received on Tue Mar 10 2009 - 22:23:53 CET

This archive was generated by hypermail 2.2.0 : Wed Mar 11 2009 - 05:50:03 CET