Problem 2244 - Can't compile the examples with latest master branch commit on Mac OS
Summary: Can't compile the examples with latest master branch commit on Mac OS
Status: RESOLVED WORKSFORME
Alias: None
Product: Geant4
Classification: Unclassified
Component: global/management (show other problems)
Version: 10.6
Hardware: All All
: P4 minor
Assignee: Gabriele Cosmo
URL:
Depends on:
Blocks:
 
Reported: 2020-05-25 17:55 CEST by Semeniouk
Modified: 2020-05-25 18:01 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description Semeniouk 2020-05-25 17:55:04 CEST
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.
Comment 1 Gabriele Cosmo 2020-05-25 18:01:15 CEST
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.