[Gate-users] gate 7.1 build failure

David Boersma david.boersma at physics.uu.se
Mon Sep 28 11:17:59 CEST 2015


Hi Stefani,

Short:

I suggest that you try to recompile with ROOT 5.34 instead of ROOT 6.

Long:

The error message suggests that the problem is actually related to ROOT, 
not to the compiler version. GATE has been developed with ROOT 5.x.y 
versions mostly, and with major version jumps one should expect some 
incompatibilities, even though the ROOT team has tried to keep many 
things backwards compatible (or maybe you should call this forwards 
compatible).

Anyway. If you compare the TH1 reference pages of ROOT version 5.34, 
6.04 and 6.05 (current production version)

https://root.cern.ch/root/html534/TH1.html
https://root.cern.ch/root/html604/TH1.html
https://root.cern.ch/doc/master/classTH1.html

then you'll notice (search on the page for "rebin") that in ROOT 5 a TH1 
histogram could be rebinnable or not rebinnable (TH1 had a mask to 
enable/disable certain features, and one of the bits was for rebinning). 
In ROOT 6, TH1 histograms are always rebinnable, and therefore the 
kCanRebin enum no longer has a reason to exist, except for backward 
compatibility, but that was apparently not enough reason.

I think the short term workaround is to use ROOT 5.34 instead of the 
latest ROOT version. The download page on opengatecollaboration.org says 
that you need ROOT version "5.14 to last version", but I think the 
intended meaning is "last version of ROOT 5". At some point GATE should 
be patched to work with both ROOT 5 and ROOT 6; the kCanRebin may or may 
not be the only incompitibility. Still that should not be too hard, GATE 
is not using any really fancy ROOT features, AFAIK. So hopefully we get 
ROOT6 compatibility already in the GATE 7.2 release. :-)

HTH,
David Boersma

Den 25/09/2015 kl. 17:55, skrev REUZE SYLVAIN:
> Dear Stefani,
>
> For your technical issue, could you try to compile with g++ 4.7 instead
> of 4.8 ?
>
> For your other questions I’m just going to let the most advanced users
> answer. But most of bugs are reported on this mailing list.
>
> Best regards,
>
> *Sylvain Reuzé *
>
> PhD student in medical physics
>
> INSERM U1030 "Molecular Radiotherapy"
>
> GUSTAVE ROUSSY
>
> Radiotherapy - Medical Physics Department
>
> Tél. : (+0033) 1 42 11 54 06
>
> www.gustaveroussy.fr <http://www.gustaveroussy.fr/>
>
> -----Message d'origine-----
> De : gate-users-bounces at lists.opengatecollaboration.org
> [mailto:gate-users-bounces at lists.opengatecollaboration.org] De la part
> de S. Banerian
> Envoyé : vendredi 25 septembre 2015 17:42
> À : Gate-users at lists.opengatecollaboration.org
> Objet : [Gate-users] gate 7.1 build failure
>
> I am in the process of setting up a system with geant4 10.1, root 6.05
>
> and gate 7.1
>
> I have encountered a compile failure:
>
> [ 67%] Building CXX object
>
> CMakeFiles/Gate.dir/source/digits_hits/src/GateEmCalculatorActorMessenger.cc.o
>
> /data/src/gate/Gate/source/digits_hits/src/GateSecondaryProductionActor.cc:
>
> In member function ‘virtual void
>
> GateSecondaryProductionActor::Construct()’:
>
> /data/src/gate/Gate/source/digits_hits/src/GateSecondaryProductionActor.cc:61:18:
>
> error: ‘kCanRebin’ is not a member of ‘TH1’
>
> pFrag->SetBit(TH1::kCanRebin);
>
> I'm not familiar with the code, so I do not have a good idea where to
>
> start on this error.
>
> Is there a bug/issue  tracker for gate?
>
> Other than on this list, to whom, or where, should build failure bugs be
>
> reported?
>
> Does anyone have suggestions as to how to correct this?
>
> system:
>
> Debian 6 kernel 2.6.32-48
>
> g++ 4.8
>
> python 2.7.10
>
> cmake 2.8.9
>
> --
>
> Stefani Banerian
>
> UW Clinical Cyclotron
>
> UW School of Medicine
>
> 206-598-0302
>
> gpg key 6642E7EE
>
> fingerprint = BD13 875D 2D03 5E1D 1E3B  8BF7 F4B8 63AD 6642 E7EE
>
>
>
> _______________________________________________
> Gate-users mailing list
> Gate-users at lists.opengatecollaboration.org
> http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
>


More information about the Gate-users mailing list