[Gate-users] Compilation Error GATE7.1

Thomas Andersen thomasand3rsen at gmail.com
Fri May 1 21:33:02 CEST 2015


Hi,

The following link should work. At least it did for me.
http://geant4.cern.ch/support/source/geant4.10.01.tar.gz

Cheers,
Thomas
On May 1, 2015 9:29 PM, "Carlos Uribe" <carluri at phas.ubc.ca> wrote:

> Hi Hermann,
>
> thanks for your reply.
>
> Anyone knows where to find Geant4 10.1 (without the patch)?
>
> I can't find it here
> http://geant4.web.cern.ch/geant4/support/download.shtml
>
> and if I try a previous version then is 10.0.p04
>
> This might be something that users trying to upgrade to 7.1 or new users
> might be encountering.
>
> Thanks,
>
> Carlos
>
>
>
> On Fri, May 1, 2015 at 11:29 AM, Hermann Fuchs <
> hermann.fuchs at meduniwien.ac.at> wrote:
>
>> Hi,
>>
>> I heard that there might be erreors using the newest geant4 patch.
>> You could try Geant4 10.1 without patch.
>>
>> Chers,
>> Hermann
>>
>> Am 1. Mai 2015 18:46:29 MESZ, schrieb Carlos Uribe <carluri at phas.ubc.ca>:
>>
>>> Hi Everybody,
>>>
>>> Can someone help me with the following compilation errors?
>>>
>>> /home.mirg/GATE71/geant4.10.01.p01/source/global/management/include/G4Cache.hh:124:12:
>>> error: âG4Cache<VALTYPE>& G4Cache<VALTYPE>::operator=(const
>>> G4Cache<VALTYPE>&) [with VALTYPE = G4SPSRandomGenerator::a_check]â is
>>> private
>>>    G4Cache& operator=(const G4Cache& rhs);
>>>             ^
>>> In file included from
>>> /home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSPosDistribution.hh:141:0,
>>>                  from
>>> /home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SingleParticleSource.hh:124,
>>>                  from
>>> /home.mirg/GATE71/opengate-public/source/physics/include/GateVSource.hh:16,
>>>                  from
>>> /home.mirg/GATE71/opengate-public/source/physics/include/GateBackToBack.hh:14,
>>>                  from
>>> /home.mirg/GATE71/opengate-public/source/physics/src/GateVSource.cc:16:
>>> /home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSRandomGenerator.hh:156:7:
>>> error: within this context
>>>  class G4SPSRandomGenerator {
>>>        ^
>>> In file included from
>>> /home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSRandomGenerator.hh:144:0,
>>>                  from
>>> /home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSPosDistribution.hh:141,
>>>                  from
>>> /home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SingleParticleSource.hh:124,
>>>                  from
>>> /home.mirg/GATE71/opengate-public/source/physics/include/GateVSource.hh:16,
>>>                  from
>>> /home.mirg/GATE71/opengate-public/source/physics/include/GateBackToBack.hh:14,
>>>                  from
>>> /home.mirg/GATE71/opengate-public/source/physics/src/GateVSource.cc:16:
>>> /home.mirg/GATE71/geant4.10.01.p01/source/global/management/include/G4Cache.hh:124:12:
>>> error: âG4Cache<VALTYPE>& G4Cache<VALTYPE>::operator=(const
>>> G4Cache<VALTYPE>&) [with VALTYPE = G4SPSRandomGenerator::a_check]â is
>>> private
>>>    G4Cache& operator=(const G4Cache& rhs);
>>>             ^
>>> In file included from
>>> /home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSPosDistribution.hh:141:0,
>>>                  from
>>> /home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SingleParticleSource.hh:124,
>>>                  from
>>> /home.mirg/GATE71/opengate-public/source/physics/include/GateVSource.hh:16,
>>>                  from
>>> /home.mirg/GATE71/opengate-public/source/physics/include/GateBackToBack.hh:14,
>>>                  from
>>> /home.mirg/GATE71/opengate-public/source/physics/src/GateVSource.cc:16:
>>> /home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSRandomGenerator.hh:156:7:
>>> error: within this context
>>>  class G4SPSRandomGenerator {
>>>        ^
>>> In file included from
>>> /home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSRandomGenerator.hh:144:0,
>>>                  from
>>> /home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSPosDistribution.hh:141,
>>>                  from
>>> /home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SingleParticleSource.hh:124,
>>>                  from
>>> /home.mirg/GATE71/opengate-public/source/physics/include/GateVSource.hh:16,
>>>                  from
>>> /home.mirg/GATE71/opengate-public/source/physics/include/GateBackToBack.hh:14,
>>>                  from
>>> /home.mirg/GATE71/opengate-public/source/physics/src/GateVSource.cc:16:
>>> /home.mirg/GATE71/geant4.10.01.p01/source/global/management/include/G4Cache.hh:124:12:
>>> error: âG4Cache<VALTYPE>& G4Cache<VALTYPE>::operator=(const
>>> G4Cache<VALTYPE>&) [with VALTYPE = G4SPSRandomGenerator::a_check]â is
>>> private
>>>    G4Cache& operator=(const G4Cache& rhs);
>>>             ^
>>> In file included from
>>> /home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSPosDistribution.hh:141:0,
>>>                  from
>>> /home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SingleParticleSource.hh:124,
>>>                  from
>>> /home.mirg/GATE71/opengate-public/source/physics/include/GateVSource.hh:16,
>>>                  from
>>> /home.mirg/GATE71/opengate-public/source/physics/include/GateBackToBack.hh:14,
>>>                  from
>>> /home.mirg/GATE71/opengate-public/source/physics/src/GateVSource.cc:16:
>>> /home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSRandomGenerator.hh:156:7:
>>> error: within this context
>>>  class G4SPSRandomGenerator {
>>>        ^
>>> In file included from
>>> /home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSRandomGenerator.hh:144:0,
>>>                  from
>>> /home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSPosDistribution.hh:141,
>>>                  from
>>> /home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SingleParticleSource.hh:124,
>>>                  from
>>> /home.mirg/GATE71/opengate-public/source/physics/include/GateVSource.hh:16,
>>>                  from
>>> /home.mirg/GATE71/opengate-public/source/physics/include/GateBackToBack.hh:14,
>>>                  from
>>> /home.mirg/GATE71/opengate-public/source/physics/src/GateVSource.cc:16:
>>> /home.mirg/GATE71/geant4.10.01.p01/source/global/management/include/G4Cache.hh:124:12:
>>> error: âG4Cache<VALTYPE>& G4Cache<VALTYPE>::operator=(const
>>> G4Cache<VALTYPE>&) [with VALTYPE = G4SPSRandomGenerator::a_check]â is
>>> private
>>>    G4Cache& operator=(const G4Cache& rhs);
>>>             ^
>>> In file included from
>>> /home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSPosDistribution.hh:141:0,
>>>                  from
>>> /home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SingleParticleSource.hh:124,
>>>                  from
>>> /home.mirg/GATE71/opengate-public/source/physics/include/GateVSource.hh:16,
>>>                  from
>>> /home.mirg/GATE71/opengate-public/source/physics/include/GateBackToBack.hh:14,
>>>                  from
>>> /home.mirg/GATE71/opengate-public/source/physics/src/GateVSource.cc:16:
>>> /home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSRandomGenerator.hh:156:7:
>>> error: within this context
>>>  class G4SPSRandomGenerator {
>>>        ^
>>> In file included from
>>> /home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSRandomGenerator.hh:144:0,
>>>                  from
>>> /home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSPosDistribution.hh:141,
>>>                  from
>>> /home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SingleParticleSource.hh:124,
>>>                  from
>>> /home.mirg/GATE71/opengate-public/source/physics/include/GateVSource.hh:16,
>>>                  from
>>> /home.mirg/GATE71/opengate-public/source/physics/include/GateBackToBack.hh:14,
>>>                  from
>>> /home.mirg/GATE71/opengate-public/source/physics/src/GateVSource.cc:16:
>>> /home.mirg/GATE71/geant4.10.01.p01/source/global/management/include/G4Cache.hh:124:12:
>>> error: âG4Cache<VALTYPE>& G4Cache<VALTYPE>::operator=(const
>>> G4Cache<VALTYPE>&) [with VALTYPE = G4SPSRandomGenerator::a_check]â is
>>> private
>>>    G4Cache& operator=(const G4Cache& rhs);
>>>             ^
>>> In file included from
>>> /home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSPosDistribution.hh:141:0,
>>>                  from
>>> /home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SingleParticleSource.hh:124,
>>>                  from
>>> /home.mirg/GATE71/opengate-public/source/physics/include/GateVSource.hh:16,
>>>                  from
>>> /home.mirg/GATE71/opengate-public/source/physics/include/GateBackToBack.hh:14,
>>>                  from
>>> /home.mirg/GATE71/opengate-public/source/physics/src/GateVSource.cc:16:
>>> /home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSRandomGenerator.hh:156:7:
>>> error: within this context
>>>  class G4SPSRandomGenerator {
>>>        ^
>>> In file included from
>>> /home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSRandomGenerator.hh:144:0,
>>>                  from
>>> /home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSPosDistribution.hh:141,
>>>                  from
>>> /home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SingleParticleSource.hh:124,
>>>                  from
>>> /home.mirg/GATE71/opengate-public/source/physics/include/GateVSource.hh:16,
>>>                  from
>>> /home.mirg/GATE71/opengate-public/source/physics/include/GateBackToBack.hh:14,
>>>                  from
>>> /home.mirg/GATE71/opengate-public/source/physics/src/GateVSource.cc:16:
>>> /home.mirg/GATE71/geant4.10.01.p01/source/global/management/include/G4Cache.hh:124:12:
>>> error: âG4Cache<VALTYPE>& G4Cache<VALTYPE>::operator=(const
>>> G4Cache<VALTYPE>&) [with VALTYPE = G4SPSRandomGenerator::a_check]â is
>>> private
>>>    G4Cache& operator=(const G4Cache& rhs);
>>>             ^
>>> In file included from
>>> /home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSPosDistribution.hh:141:0,
>>>                  from
>>> /home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SingleParticleSource.hh:124,
>>>                  from
>>> /home.mirg/GATE71/opengate-public/source/physics/include/GateVSource.hh:16,
>>>                  from
>>> /home.mirg/GATE71/opengate-public/source/physics/include/GateBackToBack.hh:14,
>>>                  from
>>> /home.mirg/GATE71/opengate-public/source/physics/src/GateVSource.cc:16:
>>> /home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSRandomGenerator.hh:156:7:
>>> error: within this context
>>>  class G4SPSRandomGenerator {
>>>        ^
>>> In file included from
>>> /home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSRandomGenerator.hh:144:0,
>>>                  from
>>> /home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSPosDistribution.hh:141,
>>>                  from
>>> /home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SingleParticleSource.hh:124,
>>>                  from
>>> /home.mirg/GATE71/opengate-public/source/physics/include/GateVSource.hh:16,
>>>                  from
>>> /home.mirg/GATE71/opengate-public/source/physics/include/GateBackToBack.hh:14,
>>>                  from
>>> /home.mirg/GATE71/opengate-public/source/physics/src/GateVSource.cc:16:
>>> /home.mirg/GATE71/geant4.10.01.p01/source/global/management/include/G4Cache.hh:124:12:
>>> error: âG4Cache<VALTYPE>& G4Cache<VALTYPE>::operator=(const
>>> G4Cache<VALTYPE>&) [with VALTYPE = G4SPSRandomGenerator::a_check]â is
>>> private
>>>    G4Cache& operator=(const G4Cache& rhs);
>>>             ^
>>> In file included from
>>> /home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSPosDistribution.hh:141:0,
>>>                  from
>>> /home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SingleParticleSource.hh:124,
>>>                  from
>>> /home.mirg/GATE71/opengate-public/source/physics/include/GateVSource.hh:16,
>>>                  from
>>> /home.mirg/GATE71/opengate-public/source/physics/include/GateBackToBack.hh:14,
>>>                  from
>>> /home.mirg/GATE71/opengate-public/source/physics/src/GateVSource.cc:16:
>>> /home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSRandomGenerator.hh:156:7:
>>> error: within this context
>>>  class G4SPSRandomGenerator {
>>>        ^
>>> In file included from
>>> /home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSRandomGenerator.hh:144:0,
>>>                  from
>>> /home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSPosDistribution.hh:141,
>>>                  from
>>> /home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SingleParticleSource.hh:124,
>>>                  from
>>> /home.mirg/GATE71/opengate-public/source/physics/include/GateVSource.hh:16,
>>>                  from
>>> /home.mirg/GATE71/opengate-public/source/physics/include/GateBackToBack.hh:14,
>>>                  from
>>> /home.mirg/GATE71/opengate-public/source/physics/src/GateVSource.cc:16:
>>> /home.mirg/GATE71/geant4.10.01.p01/source/global/management/include/G4Cache.hh:124:12:
>>> error: âG4Cache<VALTYPE>& G4Cache<VALTYPE>::operator=(const
>>> G4Cache<VALTYPE>&) [with VALTYPE = G4SPSRandomGenerator::a_check]â is
>>> private
>>>    G4Cache& operator=(const G4Cache& rhs);
>>>             ^
>>> In file included from
>>> /home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSPosDistribution.hh:141:0,
>>>                  from
>>> /home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SingleParticleSource.hh:124,
>>>                  from
>>> /home.mirg/GATE71/opengate-public/source/physics/include/GateVSource.hh:16,
>>>                  from
>>> /home.mirg/GATE71/opengate-public/source/physics/include/GateBackToBack.hh:14,
>>>                  from
>>> /home.mirg/GATE71/opengate-public/source/physics/src/GateVSource.cc:16:
>>> /home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSRandomGenerator.hh:156:7:
>>> error: within this context
>>>  class G4SPSRandomGenerator {
>>>        ^
>>> In file included from
>>> /home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSRandomGenerator.hh:144:0,
>>>                  from
>>> /home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSPosDistribution.hh:141,
>>>                  from
>>> /home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SingleParticleSource.hh:124,
>>>                  from
>>> /home.mirg/GATE71/opengate-public/source/physics/include/GateVSource.hh:16,
>>>                  from
>>> /home.mirg/GATE71/opengate-public/source/physics/include/GateBackToBack.hh:14,
>>>                  from
>>> /home.mirg/GATE71/opengate-public/source/physics/src/GateVSource.cc:16:
>>> /home.mirg/GATE71/geant4.10.01.p01/source/global/management/include/G4Cache.hh:124:12:
>>> error: âG4Cache<VALTYPE>& G4Cache<VALTYPE>::operator=(const
>>> G4Cache<VALTYPE>&) [with VALTYPE = G4SPSRandomGenerator::bweights_t]â is
>>> private
>>>    G4Cache& operator=(const G4Cache& rhs);
>>>             ^
>>> In file included from
>>> /home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSPosDistribution.hh:141:0,
>>>                  from
>>> /home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SingleParticleSource.hh:124,
>>>                  from
>>> /home.mirg/GATE71/opengate-public/source/physics/include/GateVSource.hh:16,
>>>                  from
>>> /home.mirg/GATE71/opengate-public/source/physics/include/GateBackToBack.hh:14,
>>>                  from
>>> /home.mirg/GATE71/opengate-public/source/physics/src/GateVSource.cc:16:
>>> /home.mirg/GATE71/geant4.10.01.p01/source/event/include/G4SPSRandomGenerator.hh:156:7:
>>> error: within this context
>>>  class G4SPSRandomGenerator {
>>>        ^
>>> In file included from
>>> /opt/rh/devtoolset-2/root/usr/include/c++/4.8.2/bits/stl_tree.h:61:0,
>>>                  from
>>> /opt/rh/devtoolset-2/root/usr/include/c++/4.8.2/map:60,
>>>                  from
>>> /home.mirg/GATE71/geant4.10.01.p01/source/particles/management/include/G4ParticleTable.hh:53,
>>>                  from
>>> /home.mirg/GATE71/opengate-public/source/physics/src/GateVSource.cc:9:
>>> /opt/rh/devtoolset-2/root/usr/include/c++/4.8.2/bits/stl_algobase.h:682:11:
>>> note: synthesized method âG4SPSRandomGenerator&
>>> G4SPSRandomGenerator::operator=(const G4SPSRandomGenerator&)â first
>>> required here
>>>   *__first = __value;
>>>            ^
>>> make[2]: *** [CMakeFiles/Gate.dir/source/physics/src/GateVSource.cc.o]
>>> Error 1
>>> make[2]: *** Waiting for unfinished jobs....
>>> make[1]: *** [CMakeFiles/Gate.dir/all] Error 2
>>> make: *** [all] Error 2
>>>
>>> Thanks,
>>>
>>> --
>>> Carlos F Uribe
>>>
>>> ------------------------------
>>>
>>> Gate-users mailing list
>>> Gate-users at lists.opengatecollaboration.org
>>> http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
>>>
>>>
>
>
> --
> Carlos F Uribe
> http://about.me/carluri
>
> _______________________________________________
> Gate-users mailing list
> Gate-users at lists.opengatecollaboration.org
> http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20150501/7e8f76e1/attachment-0001.html>


More information about the Gate-users mailing list