Re: [ROOT] Bug: Seg.Fault in TSystem with g++ -fvolatile compilation ...

From: Jiri Masik (masik@fzu.cz)
Date: Tue Oct 07 2003 - 10:53:32 MEST


Ruben Shahoian <Ruben.Shahoyan@cern.ch> writes:

> Hello,
> I loaded from CVS root.3.05.07 and compiled it w/o problems with
> gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-113)
>
> But then, when I am trying to compile my old code, which always worked
> with root.3.02,
> I get an error
> In file included from /cern/root/include/TSysEvtHandler.h:28,
>                  from /cern/root/include/TTimer.h:46,
>                  from /cern/root/include/TSystem.h:43,
>                  from tst.cxx:1:
> /cern/root/include/TQObject.h: In method `TClass 
> *ROOT::TQObjectInitBehavior::CreateClass (const char *, short int, 
> const type_info &, TClass *(*) (const void *), void (*) (void *, 
> TMemberInspector &, char *), const char *, const char *, int, int) 
> const':
> /cern/root/include/TQObject.h:250: Internal error: Segmentation fault.

Hi,

it is a compiler problem - gcc 2.95, 3.2, 3.3 don't exhibit this
error, gcc-3.0 does. Can you remove -fvolatile or use one of the
compilers above? Do you use ClassImpQ macro? Maybe you could modify
TQObject.h to include this definition only under certain condition.
cheers

Jiri



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:16 MET