Re: ROOT Installation

From: Fons Rademakers <Fons.Rademakers_at_cern.ch>
Date: Thu, 16 Dec 2010 09:32:48 +0100


You;ve a problem with the gfortran installed. See:

/usr/bin/ld: warning can't open dynamic library: /libgcc_s.1.dylib referenced from:
/usr/local/lib/gcc/powerpc-apple-darwin8.9.0/4.3.0/../../../libgfortran.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2)

but if you don't use the h2root and g2root programs you can ignore these warnings. Can you run the ROOT tutorials?

Cheers, Fons.

On 15/12/2010 18:05, Hovhannes Khandanyan wrote:
>
> Hi Fons,
>
> Thanks for the comment. Anyhow after trying make -k I got the following
> error message:
>
> _uhtoc_
> _zitoh_
> single module) not from earlier dynamic library
> /Users/Hovke/WORK/root_bin//lib/root/libHist.dylib(single module)
> symbol __ZN14TMatrixTSparseIdE16GetRowIndexArrayEv.eh used from dynamic
> library lib/libMatrix.dylib(single module) not from earlier dynamic library
> /Users/Hovke/WORK/root_bin//lib/root/libHist.dylib(single module)
> symbol TMatrixTSparse<double>::GetRowIndexArray() used from dynamic library
> lib/libMatrix.dylib(single module) not from earlier dynamic library
> /Users/Hovke/WORK/root_bin//lib/root/libHist.dylib(single module)
> symbol __ZN14TMatrixTSparseIdE16GetColIndexArrayEv.eh used from dynamic
> library lib/libMatrix.dylib(single module) not from earlier dynamic library
> /Users/Hovke/WORK/root_bin//lib/root/libHist.dylib(single module)
> symbol TMatrixTSparse<double>::GetColIndexArray() used from dynamic library
> lib/libMatrix.dylib(single module) not from earlier dynamic library
> /Users/Hovke/WORK/root_bin//lib/root/libHist.dylib(single module)
> symbol __ZN14TMatrixTSparseIdE14SetMatrixArrayEPKdPKc.eh used from dynamic
> library lib/libMatrix.dylib(single module) not from earlier dynamic library
> /Users/Hovke/WORK/root_bin//lib/root/libHist.dylib(single module)
> symbol TMatrixTSparse<double>::SetMatrixArray(double const*, char
> const*)used from dynamic library lib/libMatrix.dylib(single module) not
> from earlier dynamic library
> /Users/Hovke/WORK/root_bin//lib/root/libHist.dylib(single module)
> symbol __ZN14TMatrixTSparseIdE14GetMatrixArrayEv.eh used from dynamic
> library lib/libMatrix.dylib(single module) not from earlier dynamic library
> /Users/Hovke/WORK/root_bin//lib/root/libHist.dylib(single module)
> symbol TMatrixTSparse<double>::GetMatrixArray() used from dynamic library
> lib/libMatrix.dylib(single module) not from earlier dynamic library
> /Users/Hovke/WORK/root_bin//lib/root/libHist.dylib(single module)
> symbol TMatrixTSparse<double>::NormByDiag(TVectorT<double> const&, char
> const*)used from dynamic library lib/libMatrix.dylib(single module) not
> from earlier dynamic library
> /Users/Hovke/WORK/root_bin//lib/root/libHist.dylib(single module)
> symbol TMatrixTBase<double>::IsValid() constused from dynamic library
> lib/libMatrix.dylib(single module) not from earlier dynamic library
> /Users/Hovke/WORK/root_bin//lib/root/libHist.dylib(single module)
> symbol __ZNK12TMatrixTBaseIdE7IsValidEv.eh used from dynamic library
> lib/libMatrix.dylib(single module) not from earlier dynamic library
> /Users/Hovke/WORK/root_bin//lib/root/libHist.dylib(single module)
> symbol TMatrixTBase<double>::~TMatrixTBase()used from dynamic library
> lib/libMatrix.dylib(single module) not from earlier dynamic library
> /Users/Hovke/WORK/root_bin//lib/root/libHist.dylib(single module)
> symbol __ZN12TMatrixTBaseIdED2Ev.eh used from dynamic library
> lib/libMatrix.dylib(single module) not from earlier dynamic library
> /Users/Hovke/WORK/root_bin//lib/root/libHist.dylib(single module)
> collect2: ld returned 1 exit status
> make: *** [bin/h2root] Error 1
> gfortran -O2 -m32 -std=legacy -o main/src/g2root.o -c main/src/g2root.f
> gfortran -O2 -m32 -o bin/g2root main/src/g2root.o \
> -Llib lib/libminicern.dylib \
> /usr/local/lib/gcc/powerpc-apple-darwin8.9.0/4.3.0/../../../libgfortran.dylib
> /usr/local/lib/gcc/powerpc-apple-darwin8.9.0/4.3.0/libgfortranbegin.a -lm
> -lpthread -ldl
> /usr/bin/ld: warning lib/libminicern.dylib cputype (7, architecture i386)
> does not match cputype (18) for specified -arch flag: ppc (file not loaded)
> /usr/bin/ld: warning can't open dynamic library: /libgcc_s.1.dylib
> referenced from:
> /usr/local/lib/gcc/powerpc-apple-darwin8.9.0/4.3.0/../../../libgfortran.dylib
> (checking for undefined symbols may be affected) (No such file or
> directory, errno = 2)
> /usr/bin/ld: Undefined symbols:
> _cutol_
> _hlimit_
> _lenocc_
> _mzdrop_
> _mzlink_
> _rzfile_
> _rzin_
> _rzink_
> _rzopen_
> _ucopy_
> _uctoh_
> _uhtoc_
> _vzero_
> collect2: ld returned 1 exit status
> make: *** [bin/g2root] Error 1
> cp cint/reflex/python/genreflex/gccdemangler.py
> lib/python/genreflex/gccdemangler.py
> cp cint/reflex/python/genreflex/gencapa.py lib/python/genreflex/gencapa.py
> cp cint/reflex/python/genreflex/gendict.py lib/python/genreflex/gendict.py
> cp cint/reflex/python/genreflex/genheader.py lib/python/genreflex/genheader.py
> cp cint/reflex/python/genreflex/genreflex-rootcint.py
> lib/python/genreflex/genreflex-rootcint.py
> cp cint/reflex/python/genreflex/genreflex.py lib/python/genreflex/genreflex.py
> cp cint/reflex/python/genreflex/genrootmap.py
> lib/python/genreflex/genrootmap.py
> cp cint/reflex/python/genreflex/selclass.py lib/python/genreflex/selclass.py
> make: Target `all' not remade because of errors.
> rm core/utils/src/RStl_tmp.cxx core/utils/src/rootcint_tmp.cxx
> bash-$
>
> What am I doing wrong.
>
> Thanks,
> Hovhannes
>
>
>
> On Dec 15, 2010, at 4:05 PM, Fons Rademakers wrote:
>
>> Hi,
>>
>> there is something wrong with you gfortran setup as the problem is in
>> linking h2root. In this case try ignoring the error and build using make
>> -k (assuming you don't need the h2root program).
>>
>> If possible try to upgrade to 10.5/6 because 10.4 will reach end of life
>> soon.
>>
>>
>> Cheers, Fons.
>>
>>
>>
>>
>> On 22/07/28164 20:59, Hovhannes Khandanyan wrote:
>>> Dear ROOTers,
>>>
>>> I was trying to install ROOT on my Mac OS X 10.4.11
>>>
>>> with:
>>>
>>> $ gcc -v
>>> Using built-in specs.
>>> Target: i686-apple-darwin8
>>> Configured with: /private/var/tmp/gcc/gcc-5367.obj~1/src/configure
>>> --disable-checking -enable-werror --prefix=/usr --mandir=/share/man
>>> --enable-languages=c,objc,c++,obj-c++
>>> --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/
>>> --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib
>>> --build=powerpc-apple-darwin8 --with-arch=nocona --with-tune=generic
>>> --program-prefix= --host=i686-apple-darwin8 --target=i686-apple-darwin8
>>> Thread model: posix
>>> gcc version
>>>
>>> using:
>>> root_v5.26.00.source.tar
>>>
>>> by issuing:
>>> ./configure --prefix=<dirname>
>>> make
>>>
>>> the error message:
>>>
>>> symbol TMatrixTSparse<double>::SetRowIndexArray(int*)used from dynamic
>>> library lib/libMatrix.dylib(single module) not from earlier dynamic library
>>> /Users/Hovke/WORK/root_5-26-00/lib/root/libHist.dylib(single module)
>>> symbol __ZN14/usr/bin/ld: Undefined symbols:
>>> _bigbuf_
>>> _hbnam_
>>> _hcbits_
>>> _hcbook_
>>> _hcdir_
>>> _hdcofl_
>>> _hdelet_
>>> _hgive_
>>> _hgiven_
>>> _hgnf_
>>> _hgnpar_
>>> _hgnt_
>>> _hi_
>>> _hie_
>>> _hif_
>>> _hij_
>>> _hije_
>>> _hijxy_
>>> _hlimit_
>>> _hnoent_
>>> _hntvar2_
>>> _hrin_
>>> _hropen_
>>> _pawc_
>>> _quest_
>>> _rzcl_
>>> _rzink_
>>> _uhtoc_
>>> _zitoh_
>>> TMatrixTSparseIdE16SetColIndexArrayEPi.eh used from dynamic library
>>> lib/libMatrix.dylib(single module) not from earlier dynamic library
>>> /Users/Hovke/WORK/root_5-26-00/lib/root/libHist.dylib(single module)
>>> symbol TMatrixTSparse<double>::SetColIndexArray(int*)used from dynamic
>>> library lib/libMatrix.dylib(single module) not from earlier dynamic library
>>> /Users/Hovke/WORK/root_5-26-00/lib/root/libHist.dylib(single module)
>>> symbol __ZN14TMatrixTSparseIdE16GetRowIndexArrayEv.eh used from dynamic
>>> library lib/libMatrix.dylib(single module) not from earlier dynamic library
>>> /Users/Hovke/WORK/root_5-26-00/lib/root/libHist.dylib(single module)
>>> symbol TMatrixTSparse<double>::GetRowIndexArray() used from dynamic library
>>> lib/libMatrix.dylib(single module) not from earlier dynamic library
>>> /Users/Hovke/WORK/root_5-26-00/lib/root/libHist.dylib(single module)
>>> symbol __ZN14TMatrixTSparseIdE16GetColIndexArrayEv.eh used from dynamic
>>> library lib/libMatrix.dylib(single module) not from earlier dynamic library
>>> /Users/Hovke/WORK/root_5-26-00/lib/root/libHist.dylib(single module)
>>> symbol TMatrixTSparse<double>::GetColIndexArray() used from dynamic library
>>> lib/libMatrix.dylib(single module) not from earlier dynamic library
>>> /Users/Hovke/WORK/root_5-26-00/lib/root/libHist.dylib(single module)
>>> symbol __ZN14TMatrixTSparseIdE14SetMatrixArrayEPKdPKc.eh used from dynamic
>>> library lib/libMatrix.dylib(single module) not from earlier dynamic library
>>> /Users/Hovke/WORK/root_5-26-00/lib/root/libHist.dylib(single module)
>>> symbol TMatrixTSparse<double>::SetMatrixArray(double const*, char
>>> const*)used from dynamic library lib/libMatrix.dylib(single module) not
>>> from earlier dynamic library
>>> /Users/Hovke/WORK/root_5-26-00/lib/root/libHist.dylib(single module)
>>> symbol __ZN14TMatrixTSparseIdE14GetMatrixArrayEv.eh used from dynamic
>>> library lib/libMatrix.dylib(single module) not from earlier dynamic library
>>> /Users/Hovke/WORK/root_5-26-00/lib/root/libHist.dylib(single module)
>>> symbol TMatrixTSparse<double>::GetMatrixArray() used from dynamic library
>>> lib/libMatrix.dylib(single module) not from earlier dynamic library
>>> /Users/Hovke/WORK/root_5-26-00/lib/root/libHist.dylib(single module)
>>> symbol TMatrixTSparse<double>::NormByDiag(TVectorT<double> const&, char
>>> const*)used from dynamic library lib/libMatrix.dylib(single module) not
>>> from earlier dynamic library
>>> /Users/Hovke/WORK/root_5-26-00/lib/root/libHist.dylib(single module)
>>> symbol TMatrixTBase<double>::IsValid() constused from dynamic library
>>> lib/libMatrix.dylib(single module) not from earlier dynamic library
>>> /Users/Hovke/WORK/root_5-26-00/lib/root/libHist.dylib(single module)
>>> symbol __ZNK12TMatrixTBaseIdE7IsValidEv.eh used from dynamic library
>>> lib/libMatrix.dylib(single module) not from earlier dynamic library
>>> /Users/Hovke/WORK/root_5-26-00/lib/root/libHist.dylib(single module)
>>> symbol TMatrixTBase<double>::~TMatrixTBase()used from dynamic library
>>> lib/libMatrix.dylib(single module) not from earlier dynamic library
>>> /Users/Hovke/WORK/root_5-26-00/lib/root/libHist.dylib(single module)
>>> symbol __ZN12TMatrixTBaseIdED2Ev.eh used from dynamic library
>>> lib/libMatrix.dylib(single module) not from earlier dynamic library
>>> /Users/Hovke/WORK/root_5-26-00/lib/root/libHist.dylib(single module)
>>> collect2: ld returned 1 exit status
>>> make: *** [bin/h2root] Error 1
>>> rm core/utils/src/RStl_tmp.cxx core/utils/src/rootcint_tmp.cxx
>>> bash-$
>>>
>>> Please let me know what I am doing wrong.
>>>
>>> Thanks for any help,
>>> Hovhannes
>>>
>>
>> --
>> 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
>

-- 
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 Thu Dec 16 2010 - 09:32:57 CET

This archive was generated by hypermail 2.2.0 : Thu Dec 16 2010 - 11:50:01 CET