Re: Error building Root 5.22 on Mac OS X

From: Fons Rademakers <Fons.Rademakers_at_cern.ch>
Date: Wed, 11 Mar 2009 10:03:35 +0100


Hi All,

   for me the following works fine on Mac OS X 10.5 in either 32 and 64 bit mode. Get gfortran from Fink. That is the one I use, and it works! See:

(proof) [151] which gfortran
/sw/bin/gfortran
(proof) [152] gfortran --version
GNU Fortran (GCC) 4.3.2
Copyright (C) 2008 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

(proof) [184] make
gfortran -g -m64 -bind_at_load -o bin/g2root main/src/g2root.o \

                    -Llib lib/libminicern.so \
 

/sw/lib/gcc4.3/lib/gcc/i686-apple-darwin9/4.3.2/../../../x86_64/libgfortran.dylib /sw/lib/gcc4.3/lib/gcc/i686-apple-darwin9/4.3.2/x86_64/libgfortranbegin.a -lm -Wl,-rpath,@loader_path/../lib -pthread -ldl (proof) [185]

In addition I use the latest Xcode:

gcc version 4.0.1 (Apple Inc. build 5490)

but that should be not too important in this context.

Cheers, Fons.

OKUMURA, Akira wrote:
> Hello Tom and all,
>
> Thanks, now I understand the situation. My "resolution" in the bug
> tracker is to use g95 instead of gfortran.
>
> The version of gfortran I used was
>
> $ gfortran --version
> GNU Fortran (GCC) 4.2.3
> Copyright (C) 2007 Free Software Foundation, Inc.
>
> that is distributed from
> http://quatramaran.ens.fr/~coudert/gfortran/gfortran-macosx-x86.dmg
>
> But this version seems not to work properly at least in ROOT compilation.
>

>>  http://www.macresearch.org/gfortran-leopard

>
> This version works well in my environment too.
>
> Regards,
>
> OKUMURA, Akira oxon_at_ceres.phys.s.u-tokyo.ac.jp
> Department of Physics, The University of Tokyo
> 7-3-1 Hongo, Bunkyo-ku, Tokyo 113-0033
> TEL/FAX +81 3-5841-4173/4059
> Skype : okumura.akira
>
> On 2009/03/11, at 14:14, Tom Roberts wrote:
>
>> OKUMURA, Akira wrote:
>>> See also https://savannah.cern.ch/bugs/?47873
>>
>> Yes, that's my problem. No resolution there, but see below.
>>
>>
>> Philippe said:
>>> You probably either need to upgrade to XCode 3.1 or to download (from
>>> fink) a newer version of gcc (making sure it is _not_ the 10.4
>>> compatible one).
>>
>> I downloaded and installed Xcode 3.1.2 (I have no gcc from fink). No 
>> change. Note that gcc changed:
>> Was: gcc version 4.0.1 (Apple Inc. build 5465)
>> Now: gcc version 4.0.1 (Apple Inc. build 5490)
>>
>> Note that "gfortran --version" says:
>> GNU Fortran 95 (GCC) 4.3.0 20061230 (experimental)
>>
>>
>> Drio said:
>>> I have compiled a quite recent ROOT trunk on Mac OS X 10.5.6 with
>>> gfortran installed from here:
>>>  http://www.macresearch.org/gfortran-leopard
>>> The command "gfortran --version" prints out:
>>>  GNU Fortran (GCC) 4.3.0 20071026 (experimental)
>>
>> Thanks! That worked (after upgrading Xcode as above). Perhaps you 
>> could enter a comment into the bug listed above.
>>
>>     [I must do "configure macosx" because you get 64-bit by
>>      default and that won't link with my application (though
>>      the 64-bit root program ran fine). I also do "make static"
>>      and link my program with Root statically because it needs
>>      only TNtuple and its I/O.]
>>
>>
>> Tom Roberts
>>

>
>
>
-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers_at_cern.ch              Phone: +41 22 7679248
WWW:    http://fons.rademakers.org           Fax:   +41 22 7669640
Received on Wed Mar 11 2009 - 10:03:42 CET

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