Opened 10 years ago

Closed 10 years ago

#47404 closed defect (fixed)

gate: build broken after upgrading to Geant4.10.01.p01

Reported by: mojca (Mojca Miklavec) Owned by: mojca (Mojca Miklavec)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: gate geant4.10.1

Description

After upgrading to Geant4.10.01.p01, Gate no longer builds:

[ 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 {
      ^

Here's the necessary patch for Gate (which I didn't commit yet due to compilation error):

  • Portfile

     
    1616github.setup        OpenGATE Gate ${git_sha}
    1717name                gate
    1818version             7.1
    19 revision            1
     19revision            2
    2020# version           7.1-git-${git_date}-${git_sha}
    2121
    2222## official repository
     
    153153}
    154154variant geant4101 conflicts geant4100 description {Use Geant4 10.1} {
    155155    set geant.version       10.1
    156     set geant.revision      0
     156    set geant.revision      1
    157157    set geant.port_name     geant4.${geant.version}
    158158    set geant.data_versions ${geant.data_versions_10.1}
    159159    set geant.datadir       ${prefix}/share/Geant4/Data/Geant4.${geant.version}

Change History (1)

comment:1 Changed 10 years ago by mojca (Mojca Miklavec)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.