| Summary: | Can't compile the examples with latest master branch commit on Mac OS | ||
|---|---|---|---|
| Product: | Geant4 | Reporter: | Semeniouk <igor.semeniouk> |
| Component: | global/management | Assignee: | Gabriele Cosmo <Gabriele.Cosmo> |
| Status: | RESOLVED WORKSFORME | ||
| Severity: | minor | ||
| Priority: | P4 | ||
| Version: | 10.6 | ||
| Hardware: | All | ||
| OS: | All | ||
The error is not related to Geant4, but likely to your MacOS setup (an update of Xcode?). Try re-configuring and re-installing Geant4 from scratch. |
After pulling latest commits from myster branch today I am not able to compile any Geant4 example on my macOS Catalina. The Geant4 compiled without problem, but the compilation of examples failed with massage like I included above. No problem on linux system. On Mac OS the error message: B1>make [ 12%] Building CXX object CMakeFiles/exampleB1.dir/exampleB1.cc.o In file included from /Users/semenjuk/Geant4/share/Geant4-10.6.1/examples/basic/B1/exampleB1.cc:30: In file included from /Users/semenjuk/Geant4/share/Geant4-10.6.1/examples/basic/B1/include/B1DetectorConstruction.hh:33: In file included from /Users/semenjuk/Geant4/include/Geant4/G4VUserDetectorConstruction.hh:37: In file included from /Users/semenjuk/Geant4/include/Geant4/globals.hh:35: In file included from /Users/semenjuk/Geant4/include/Geant4/G4ios.hh:35: In file included from /Users/semenjuk/Geant4/include/Geant4/G4Types.hh:71: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/complex:245: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:317:9: error: no member named 'signbit' in the global namespace using ::signbit; ~~^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:318:9: error: no member named 'fpclassify' in the global namespace using ::fpclassify; ~~^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:319:9: error: no member named 'isfinite' in the global namespace; did you mean 'finite'? using ::isfinite; ~~^ /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/math.h:749:12: note: 'finite' declared here extern int finite(double) ^ <truncated hire> Igor S.