Root cannot be installed on suse 10.3

Hi,

It is impossible to install ROOT v5.17 on suse 10.3.
(see errors below)

my PC:

uname -a
Linux anl 2.6.22.5-31-default #1 SMP 2007/09/21 22:29:00 UTC x86_64 x86_64 x86_64 GNU/Linux.

I’m using:
gcc (GCC) 4.2.1 (SUSE Linux)
GNU Fortran (GCC) 4.2.1 (SUSE Linux)

It seems new suse does not have gcc34 compatibility libraries
(i.e.compat-g77) anymore.

I’ve tried ROOT binaries as well - in this case PyROOT is not functional
(since it was based on libpython2.4, not on libpython2.5 which is the standard
python library on suse 10.3)

Errors are below:

cint/src/v6_var.cxx:6766: warning: deprecated conversion from string constant to ‘char*’
cint/src/v6_var.cxx:6837: warning: deprecated conversion from string constant to ‘char*’
cint/src/v6_var.cxx:6878: warning: deprecated conversion from string constant to ‘char*’
cint/src/v6_var.cxx: In function ‘int G__deletevariable(const char*)’:
cint/src/v6_var.cxx:6965: warning: deprecated conversion from string constant to ‘char*’
cint/src/gcc3strm.cxx: In function ‘int G__G__stream_7_7_0(G__value*, const char*, G__para m*, int)’:
cint/src/gcc3strm.cxx:311: error: ‘class std::fpos<__mbstate_t>’ has no member named ‘oper ator==’
cint/src/gcc3strm.cxx: In function ‘int G__G__stream_7_8_0(G__value*, const char*, G__para m*, int)’:
cint/src/gcc3strm.cxx:317: error: ‘class std::fpos<__mbstate_t>’ has no member named ‘oper ator!=’
cint/src/gcc3strm.cxx: In function ‘int G__G__stream__3_17(G__value*, const char*, G__para m*, int)’:
cint/src/gcc3strm.cxx:3030: warning: dereferencing type-punned pointer will break strict-a liasing rules
make: *** [cint/src/gcc3strm.o] Error 1
make: *** Waiting for unfinished jobs…
[sergei@minsk root] make -j2
bin/rmkdepend -R -fcint/src/gcc3strm.d -Y -w 1000 – -pipe -Wall -m64 -fPIC -Iinclude -DG__REGEXP -DG__UNIX -DG__SHAREDLIB -DG__OSFDLL -DG__ROO T -DG__REDIRECTIO -DG__64BIT -DG__HAVE_CONFIG -DG__NOMAKEINFO -DG__CINTBODY -Icint/src -pthread -Icint/lib/gcc3strm -D__cplusplus – cint/src/gc c3strm.cxx
bin/rmkdepend -R -fcint/src/longif3.d -Y -w 1000 – -pipe -Wall -m64 -fPIC -Iinclude -DG__REGEXP -DG__UNIX -DG__SHAREDLIB -DG__OSFDLL -DG__ROOT -DG__REDIRECTIO -DG__64BIT -DG__HAVE_CONFIG -DG__NOMAKEINFO -DG__CINTBODY -Icint/src -pthread -D__cplusplus – cint/src/longif3.cxx
g++ -O2 -pipe -Wall -m64 -fPIC -Iinclude -DG__REGEXP -DG__UNIX -DG__SHAREDLIB -DG__OSFDLL -DG__ROOT -DG__REDIRECTIO -DG__64BIT -DG__HAVE_CONFIG -DG__NOMAKEINFO -DG__CINTBODY -Icint/src -pthread -Icint/lib/gcc3strm -o cint/src/gcc3strm.o -c cint/src/gcc3strm.cxx
g++ -O2 -pipe -Wall -m64 -fPIC -Iinclude -DG__REGEXP -DG__UNIX -DG__SHAREDLIB -DG__OSFDLL -DG__ROOT -DG__REDIRECTIO -DG__64BIT -DG__HAVE_CONFIG -DG__NOMAKEINFO -DG__CINTBODY -Icint/src -pthread -o cint/src/longif3.o -c cint/src/longif3.cxx
cint/src/gcc3strm.cxx: In function ‘int G__G__stream_7_7_0(G__value*, const char*, G__param*, int)’:
cint/src/gcc3strm.cxx:311: error: ‘class std::fpos<__mbstate_t>’ has no member named ‘operator==’
cint/src/gcc3strm.cxx: In function ‘int G__G__stream_7_8_0(G__value*, const char*, G__param*, int)’:
cint/src/gcc3strm.cxx:317: error: ‘class std::fpos<__mbstate_t>’ has no member named ‘operator!=’
cint/src/gcc3strm.cxx: In function ‘int G__G__stream__3_17(G__value*, const char*, G__param*, int)’:
cint/src/gcc3strm.cxx:3030: warning: dereferencing type-punned pointer will break strict-aliasing rules
make: *** [cint/src/gcc3strm.o] Error 1
make: *** Waiting for unfinished jobs…

Hi,

ROOT was ported to gcc 4.2.1 after the last release (5.17/02) so you need to use the trunk of the svn repository or wait for the next release (in a few weeks).

Cheers,
Philippe

Dear Philippe

Thanks, I can indeed now compile the version from the trunk
(with python 2.5) using gcc4.2.
The only problem I see is that my python scripts
start to fail on the line with gROOT.Reset(); gROOT.SetStyle(“Plain”):

cheers, Sergei

Traceback (most recent call last):
File “p_deltaz.py”, line 17, in
gROOT.Reset(); gROOT.SetStyle(“Plain”);
File “/home/sergei/cern/root/lib/ROOT.py”, line 283, in getattr
self._master._ModuleFacade__finalSetup()
File “/home/sergei/cern/root/lib/ROOT.py”, line 372, in __getattr2
attr = _root.LookupRootEntity( name )
AttributeError: _ModuleFacade__finalSetup

Hi,

PyROOT error fixed in trunk … Possible workarounds include:

import ROOT ROOT.gROOT.Reset(); ROOT.gROOT.SetStyle("Plain");
Thanks for reporting!

Cheers,
Wim

Hi,

I have exactly the same errors while trying to install ROOT 5.16 on OpenSuse 10.3 and
I have exactly the same kernel and gcc as Mr. Chekanov.

Does this mean that the only solution to this problem is to install ROOT 5.18 or higher? Or can I fix this also by installing another gcc (version ? ) ?

Thanks,
Tom

Hi,

yes, either one should work.

Cheers, Axel.