[Gate-users] Gate 7.1 build broken after updating to Geant4.10.01.p01

Marc Chamberland MarcChamberland at cmail.carleton.ca
Fri Apr 10 17:53:01 CEST 2015


For what it’s worth, I can reproduce the compilation errors, too. I’m compiling with:

Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn)


Marc



__________________________

Marc Chamberland, MSc
PhD candidate
Department of Physics
Carleton University
Ottawa (ON)

> On Apr 9, 2015, at 17:17, Mojca Miklavec <mojca.miklavec.lists at gmail.com> wrote:
> 
> Hi,
> 
> Today I updated Geant4 from version 4.10.01 to 4.10.01.p01 and Gate no
> longer compiles for me. Below is the first error (followed by many
> others). I was surprised because Geant4 developers aren't really known
> for breaking backward compatibility with patch releases.
> 
> I'm using clang 3.4 which is not fully C++11 compatible (at least not
> without switching to a different stdlib) in case that this was the
> reason for the failure.
> 
> I will try to investigate where the problem could be, but I wanted to
> report an issue. Maybe others will be able to reproduce it and
> diagnose it faster than I can. (There is a chance that it's not
> related to the code in Gate and that Geant4 is to blame.)
> 
> Mojca
> 
> 
> 
> [ 87%] Building CXX object
> CMakeFiles/Gate.dir/source/physics/src/GateVSourceMessenger.cc.o
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
>  -DG4INTY_USE_QT -DG4UI_USE -DG4UI_USE_QT -DG4UI_USE_TCSH -DG4VERBOSE
> -DG4VIS_USE -DG4VIS_USE_OPENGL -DG4VIS_USE_OPENGLQT
> -DG4_STORE_TRAJECTORY -pipe -Os -arch x86_64 -stdlib=libstdc++ -W
> -Wall -pedantic -Wno-non-virtual-dtor -Wno-long-long -Wwrite-strings
> -Wpointer-arith -Woverloaded-virtual -Wno-variadic-macros -Wshadow
> -pipe -Qunused-arguments -std=c++98 -pipe -Os -arch x86_64
> -stdlib=libstdc++  -Wno-shadow -DNDEBUG -DNDEBUG -arch x86_64
> -mmacosx-version-min=10.7 -F//System/Library/Frameworks
> -I/opt/local/libexec/root5/include/root -I/path/to/build -isystem
> /opt/local/include/Geant4/Geant4.10.1/Geant4 -isystem
> /opt/local/include -isystem /opt/local/include/QtCore -isystem
> /opt/local/include/QtGui -isystem /opt/local/include/QtOpenGL
> -I/path/to/Gate-a20d5f0/source/arf/include
> -I/path/to/Gate-a20d5f0/source/geometry/include
> -I/path/to/Gate-a20d5f0/source/physics/include
> -I/path/to/Gate-a20d5f0/source/digits_hits/include
> -I/path/to/Gate-a20d5f0/source/general/include
> -I/path/to/Gate-a20d5f0/source/externals/clhep/include
> -I/path/to/Gate-a20d5f0/source/externals/itk-mhd
> -I/path/to/Gate-a20d5f0/source/externals/itk-mhd/itkzlib
> -I/path/to/Gate-a20d5f0/source/externals/itk-mhd/MetaIO
> -I/path/to/build/itk-mhd    -o
> CMakeFiles/Gate.dir/source/physics/src/GateVSourceMessenger.cc.o -c
> /path/to/Gate-a20d5f0/source/physics/src/GateVSourceMessenger.cc
> In file included from
> /path/to/Gate-a20d5f0/source/physics/src/GateVSource.cc:16:
> In file included from
> /path/to/Gate-a20d5f0/source/physics/include/GateBackToBack.hh:14:
> In file included from
> /path/to/Gate-a20d5f0/source/physics/include/GateVSource.hh:16:
> In file included from
> /opt/local/include/Geant4/Geant4.10.1/Geant4/G4SingleParticleSource.hh:124:
> In file included from
> /opt/local/include/Geant4/Geant4.10.1/Geant4/G4SPSPosDistribution.hh:141:
> /opt/local/include/Geant4/Geant4.10.1/Geant4/G4SPSRandomGenerator.hh:156:7:
> error: field of type 'G4Cache<G4SPSRandomGenerator::a_check>' has
> private copy constructor
> class G4SPSRandomGenerator {
>      ^
> _______________________________________________
> 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