Re: [ROOT] Core dump on running h1analysis tutorial in compiled mode

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed Sep 17 2003 - 19:42:59 MEST


Frank,

In order to execute with ACLIC, your script must be a named script
with the C++ includes, like you will do to compile it with the normal 
compiler. See chapter on ACLIC in the Users Guide.

Rene Brun

On Wed, 
17 Sep 2003, Frank Winklmeier wrote:

> Hi Rene,
> 
> these paths seem to be OK. In order to make it more simple I wrote the
> following macro:
> 
> // testmacro.C
> {
>    gEnv->Print();
> }
> 
> If I try to compile it with
> 
> root [2] gSystem.CompileMacro("testmacro.C")
> 
> I still get the same error messages:
> 
> Info in <TUnixSystem::ACLiC>: creating shared library
> /home/frank/babar/testmacro_C.so
> 
> [.....]
> 
> Note: Link requested for undefined class TCint (ignore this message) FILE:
> LINE:0
> Error in <ACLiC>: Dictionary generation failed with a core dump!
> (int)0
> 
> I am wondering if there might be a problem with write permissions on
> $ROOTSYS. Do I need write permission for this and its subdirectories?
> 
> Frank Winklmeier 
> 
> 
> 
> 
> On Wed, 17 Sep 2003, Rene Brun wrote:
> 
> > Hi Frank,
> > 
> > Did you modify $ROOTSYS/etc/system.rootrc ?
> > in particular some paths like:
> > Unix.*.Root.DynamicPath:    .:$(ROOTSYS)/lib
> > Unix.*.Root.MacroPath:      .:$(ROOTSYS)/macros
> > #ACLiC.IncludePaths:     -I/where/the/includes/are
> > 
> > Check that the env variable ROOTSYS is defined.
> > 
> > Rene Brun
> > 
> > Frank Winklmeier wrote:
> > > 
> > > Hi,
> > > 
> > > I tried to run the h1analysis tutorial in the compiled version. After
> > > creating the chain I started the macro via
> > > 
> > > root [1] chain.Process("h1analysis.C+")
> > > 
> > > and I got the following error messages and a core dump:
> > > 
> > > Info in <TUnixSystem::ACLiC>: creating shared library
> > > /home/frank/rootsrc/root/tutorials/./h1analysis_C.so
> > > Note: Link requested for undefined class TBrowser (ignore this message)
> > > FILE: LINE:0
> > > Note: Link requested for undefined class TMethod (ignore this message)
> > > FILE: LINE:0
> > > Note: Link requested for undefined class TTimer (ignore this message)
> > > FILE: LINE:0
> > > 
> > > [..... CUT .....]
> > > 
> > > Note: Link requested for undefined class TThread (ignore this message)
> > > FILE: LINE:0
> > > Error in <ACLiC>: Dictionary generation failed with a core dump!
> > > Error in <TSelector::GetSelector>: file h1analysis.C+ does not have a
> > > valid class deriving from TSelector
> > > (Int_t)(-1)
> > > 
> > > The same problem occurs with every of my own macros when I want to compile
> > > it. I am running root in version 3.05-07. Maybe someone knows what to do
> > > in this case.
> > > 
> > > Thanks,
> > > Frank Winklmeier
> > 
> 



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