[CMake] Suddendly missing members when compiling on macOS Mojave

Ruben Di Battista rubendibattista at gmail.com
Fri Nov 8 11:18:38 EST 2019


Hello, 

Tryign to compile a project that built correctly since now. I guess something changed on my system, and now I’m getting this error: 

Scanning dependencies of target Mercurve
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f src/libs/CMakeFiles/Mercurve.dir/build.make src/libs/CMakeFiles/Mercurve.dir/build
[  4%] Building CXX object src/libs/CMakeFiles/Mercurve.dir/BlockMerger.cxx.o
cd /Users/rubendibattista/git/x/Mercurve/build/src/libs && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++  -DMercurve_EXPORTS -I/Users/rubendibattista/git/x/Mercurve/src/libs -isystem /opt/local/include/vtk-8.1 -isystem /opt/local/include -isystem /opt/local/include/mpich-mp -isystem /opt/local/include/libxml2  -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -mmacosx-version-min=10.14 -fPIC   -std=gnu++11 -o CMakeFiles/Mercurve.dir/BlockMerger.cxx.o -c /Users/rubendibattista/git/x/Mercurve/src/libs/BlockMerger.cxx
In file included from /Users/rubendibattista/git/x/Mercurve/src/libs/BlockMerger.cxx:21:
In file included from /Users/rubendibattista/git/x/Mercurve/src/libs/BlockMerger.h:28:
In file included from /Users/rubendibattista/git/x/Mercurve/src/libs/types.h:25:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/unordered_set:363:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__hash_table:19:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:314: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:315: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:316:9: error: no member named 'isfinite' in the global namespace

Something got messed up with Xcode update I guess. I also tried to downgrade Xcode without success. Does anyone have hints on how to solve this? In particular I’m not entirely sure that the `-isysroot` flag the cmake provides is correct anymore. Is that possible? 
          _   
-.     .´  |∞∞∞∞
  ',  ;    |∞∞∞∞∞∞
    ˜˜     |∞∞∞∞∞∞∞∞∞ RdB
    ,.,    |∞∞∞∞∞∞
  .'   '.  |∞∞∞∞
-'       `’

https://rdb.is
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20191108/8cb0fd39/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Message signed with OpenPGP using AMPGpg
URL: <https://cmake.org/pipermail/cmake/attachments/20191108/8cb0fd39/attachment.sig>


More information about the CMake mailing list