-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attempt to fix compilation warnings and optimize usage of VecGeom #7821
Attempt to fix compilation warnings and optimize usage of VecGeom #7821
Conversation
A new Pull Request was created by @civanch (Vladimir Ivantchenko) for branch IB/CMSSW_12_4_X/geant4_vecgeom. @cmsbuild, @smuzaffar, @aandvalenzuela, @iarspider can you please review it and eventually sign? Thanks. |
@smuzaffar , if this PR will be OK it may substitute #7735 |
test parameters:
|
please test |
-1 Failed Tests: Build The following merge commits were also included on top of IB + this PR after doing git cms-merge-topic:
You can see more details here: BuildI found compilation error when building: >> Building big object file tmp/slc7_amd64_gcc10/src/SimG4CMS/Calo/plugins/SimG4CMSCaloPlugins/bigobj/SimG4CMSCaloPlugins.obj >> Building edm plugin tmp/slc7_amd64_gcc10/src/SimG4CMS/Calo/plugins/SimG4CMSCaloPlugins/libSimG4CMSCaloPlugins.so /data/cmsbld/jenkins/workspace/ib-run-pr-tests/testBuildDir/slc7_amd64_gcc10/external/gcc/10.3.0-84898dea653199466402e67d73657f10/bin/../lib/gcc/x86_64-unknown-linux-gnu/10.3.0/../../../../x86_64-unknown-linux-gnu/bin/ld: tmp/slc7_amd64_gcc10/src/SimG4CMS/Calo/plugins/SimG4CMSCaloPlugins/CaloSteppingAction.cc.o: in function `CaloSteppingAction::update(BeginOfRun const*)': CaloSteppingAction.cc:(.text+0x2931): undefined reference to `G4Trap::GetZHalfLength() const' /data/cmsbld/jenkins/workspace/ib-run-pr-tests/testBuildDir/slc7_amd64_gcc10/external/gcc/10.3.0-84898dea653199466402e67d73657f10/bin/../lib/gcc/x86_64-unknown-linux-gnu/10.3.0/../../../../x86_64-unknown-linux-gnu/bin/ld: CaloSteppingAction.cc:(.text+0x2a89): undefined reference to `G4Trap::GetZHalfLength() const' collect2: error: ld returned 1 exit status gmake: *** [tmp/slc7_amd64_gcc10/src/SimG4CMS/Calo/plugins/SimG4CMSCaloPlugins/libSimG4CMSCaloPlugins.so] Error 1 Leaving library rule at src/SimG4CMS/Calo/plugins >> Leaving Package SimG4CMS/Calo >> Package SimG4CMS/Calo built >> Entering Package SimGeneral/CaloAnalysis |
@smuzaffar , I see that SimG4CMS/Calo/plugins/BuildFile.xml does not have explicit |
@civanch , I see that https://github.com/cms-sw/cmssw/blob/master/SimG4CMS/Calo/plugins/CaloSteppingAction.cc#L266-L267 we try to access |
Pull request #7821 was updated. |
@smuzaffar , I step back from geant4.spec change. |
please test |
+externals |
This pull request is fully signed and it will be integrated in one of the next IB/CMSSW_12_4_X/geant4_vecgeom IBs (tests are also fine). This pull request will now be reviewed by the release team before it's merged. @perrotta, @dpiparo, @qliphy (and backports should be raised in the release meeting by the corresponding L2) |
Currently in any local compilation there is a warning related to VecGeom and Geant4:
warning: "G4GEOM_USE_USOLIDS" redefined
34 | #define G4GEOM_USE_USOLIDS
: note: this is the location of the previous definition
There is no run time problems but this warning means some inconsistency of compilation options.
This PR is an attempt to remove it and also to remove G4CutTubs problem within the same version of VecGeom 1.1.18