I tried compiling root 5.27.06 on my mac laptop (64-bit Intel core 2 duo) which is running Mac OS X 10.5.8. I followed the online instruction for a location independent installation (I have installed Xcode already). The libraries mostly compile, but the compilations seem to fail here (also note, I have also tried to explicitly disable rpath, with the same result):
gfortran -O2 -m64 -o bin/g2root main/src/g2root.o
-Llib lib/libminicern.so
/usr/local/lib/gcc/i686-apple-darwin8/4.2.3/…/…/…/x86_64/libgfortran.dylib /usr/local/lib/gcc/i686-apple-darwin8/4.2.3/x86_64/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
collect2: ld returned 1 exit status
make: *** [bin/g2root] Error 1
Does anyone know what the problem might be, and how I can fix it?
first I did ./configure and make, and the compilation failed with the gfortran error again (the same original error, but I have already downloaded the gfortran-4.2.3 dmg suggested on the ROOT installation page and installed gfortran).
so next i did a make clean, and then did ./configure macosx64 --disable-rpath, and then did make. This second time it failed with the second problem (i.e. the problem: make[5]: *** No rule to make target XrdOucFactoryBonjour.hh', needed by…/…/obj/XrdOucBonjour.o’. Stop.)
So I am not sure if I have done something incorrectly, but it seems that I still have this problem with the trunk. Do you know what is causing the problem?
Uhmm … there is no error in it and the build worked fine during that run.
So now if you do just ‘make’ it should be ok, at least it should pass the xrootd step.
So, it looks like something is not set correctly for a fresh build.