Skip to content

feeenableexcept is missing on MacOS #730

@valassi

Description

@valassi

feeenableexcept is missing on MacOS...

... and my MR #723 fails the CI

https://github.com/madgraph5/madgraph4gpu/actions/runs/5621540599/job/15232522196

c++  -O3  -std=c++17 -I. -I../../src -I../../../../../test/googletest/install/include -I../../../../../test/googletest/install/include -Wall -Wshadow -Wextra -ffast-math   -march=x86-64  -DMGONGPU_FPTYPE_DOUBLE -DMGONGPU_FPTYPE2_DOUBLE -fPIC -c testxxx.cc -o testxxx.o
testxxx.cc:64:5: error: use of undeclared identifier 'feenableexcept'; did you mean 'feraiseexcept'?
    feenableexcept( FE_INVALID | FE_DIVBYZERO | FE_OVERFLOW | FE_UNDERFLOW ); // debug #701
    ^~~~~~~~~~~~~~
    feraiseexcept
/Applications/Xcode_14.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/fenv.h:299:12: note: 'feraiseexcept' declared here
extern int feraiseexcept(int /* excepts */);
           ^
testxxx.cc:426:5: error: use of undeclared identifier 'fedisableexcept'; did you mean 'feraiseexcept'?
    fedisableexcept( FE_INVALID | FE_DIVBYZERO | FE_OVERFLOW | FE_UNDERFLOW ); // debug #701
    ^~~~~~~~~~~~~~~
    feraiseexcept
/Applications/Xcode_14.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/fenv.h:299:12: note: 'feraiseexcept' declared here
extern int feraiseexcept(int /* excepts */);
           ^
2 errors generated.
make: *** [testxxx.o] Error 1
Error: Process completed with exit code 2.

I will have a quick look if I find a way out. But otherwise, I will just disable this. And if ever fortran tests fail on MacOS, I would just disable MacOS as a platform. We do not really need this anyway.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions