Performing C++ SOURCE FILE Test HAVE_STDATOMIC failed with the following output: Change Dir: /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-dil1iW Run Build Command(s):/usr/bin/make -f Makefile cmTC_30bb9/fast && /Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_30bb9.dir/build.make CMakeFiles/cmTC_30bb9.dir/build Building CXX object CMakeFiles/cmTC_30bb9.dir/src.cxx.o /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DHAVE_STDATOMIC -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -std=c++17 -MD -MT CMakeFiles/cmTC_30bb9.dir/src.cxx.o -MF CMakeFiles/cmTC_30bb9.dir/src.cxx.o.d -o CMakeFiles/cmTC_30bb9.dir/src.cxx.o -c /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-dil1iW/src.cxx In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-dil1iW/src.cxx:1: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:97:11: error: reference to unresolved using declaration template ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-dil1iW/src.cxx:1: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:97:25: error: reference to unresolved using declaration template ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-dil1iW/src.cxx:1: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:100:18: error: reference to unresolved using declaration static const intmax_t value = __static_gcd<_Yp, _Xp % _Yp>::value; ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-dil1iW/src.cxx:1: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:103:11: error: reference to unresolved using declaration template ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-dil1iW/src.cxx:1: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:106:18: error: reference to unresolved using declaration static const intmax_t value = _Xp; ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-dil1iW/src.cxx:1: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:112:18: error: reference to unresolved using declaration static const intmax_t value = 1; ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-dil1iW/src.cxx:1: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:117:11: error: reference to unresolved using declaration template ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-dil1iW/src.cxx:1: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:117:25: error: reference to unresolved using declaration template ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-dil1iW/src.cxx:1: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:120:18: error: reference to unresolved using declaration static const intmax_t value = _Xp / __static_gcd<_Xp, _Yp>::value * _Yp; ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-dil1iW/src.cxx:1: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:123:11: error: reference to unresolved using declaration template ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-dil1iW/src.cxx:1: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:126:18: error: reference to unresolved using declaration static const intmax_t value = _Xp < 0 ? -_Xp : _Xp; ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-dil1iW/src.cxx:1: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:129:11: error: reference to unresolved using declaration template ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-dil1iW/src.cxx:1: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:132:18: error: reference to unresolved using declaration static const intmax_t value = _Xp == 0 ? 0 : (_Xp < 0 ? -1 : 1); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-dil1iW/src.cxx:1: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:135:11: error: reference to unresolved using declaration template ::value> ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-dil1iW/src.cxx:1: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:135:25: error: reference to unresolved using declaration template ::value> ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-dil1iW/src.cxx:1: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:135:39: error: reference to unresolved using declaration template ::value> ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-dil1iW/src.cxx:1: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:138:11: error: reference to unresolved using declaration template ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-dil1iW/src.cxx:1: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:138:25: error: reference to unresolved using declaration template ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-dil1iW/src.cxx:1: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:141:18: error: reference to unresolved using declaration static const intmax_t min = (1LL << (sizeof(intmax_t) * CHAR_BIT - 1)) + 1; ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. make[1]: *** [CMakeFiles/cmTC_30bb9.dir/src.cxx.o] Error 1 make: *** [cmTC_30bb9/fast] Error 2 Source file was: #include #include int main(int, char **) { volatile std::atomic size_1; volatile std::atomic size_2; volatile std::atomic size_4; volatile std::atomic size_8; ++size_1; ++size_2; ++size_4; ++size_8; (void)size_1.load(std::memory_order_relaxed); (void)size_2.load(std::memory_order_relaxed); (void)size_4.load(std::memory_order_relaxed); (void)size_8.load(std::memory_order_relaxed); return 0; } Performing C++ SOURCE FILE Test HAVE_STDATOMIC_WITH_LIB failed with the following output: Change Dir: /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-mGlyKI Run Build Command(s):/usr/bin/make -f Makefile cmTC_2a75a/fast && /Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_2a75a.dir/build.make CMakeFiles/cmTC_2a75a.dir/build Building CXX object CMakeFiles/cmTC_2a75a.dir/src.cxx.o /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DHAVE_STDATOMIC_WITH_LIB -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -std=c++17 -MD -MT CMakeFiles/cmTC_2a75a.dir/src.cxx.o -MF CMakeFiles/cmTC_2a75a.dir/src.cxx.o.d -o CMakeFiles/cmTC_2a75a.dir/src.cxx.o -c /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-mGlyKI/src.cxx In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-mGlyKI/src.cxx:1: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:97:11: error: reference to unresolved using declaration template ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-mGlyKI/src.cxx:1: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:97:25: error: reference to unresolved using declaration template ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-mGlyKI/src.cxx:1: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:100:18: error: reference to unresolved using declaration static const intmax_t value = __static_gcd<_Yp, _Xp % _Yp>::value; ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-mGlyKI/src.cxx:1: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:103:11: error: reference to unresolved using declaration template ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-mGlyKI/src.cxx:1: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:106:18: error: reference to unresolved using declaration static const intmax_t value = _Xp; ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-mGlyKI/src.cxx:1: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:112:18: error: reference to unresolved using declaration static const intmax_t value = 1; ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-mGlyKI/src.cxx:1: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:117:11: error: reference to unresolved using declaration template ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-mGlyKI/src.cxx:1: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:117:25: error: reference to unresolved using declaration template ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-mGlyKI/src.cxx:1: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:120:18: error: reference to unresolved using declaration static const intmax_t value = _Xp / __static_gcd<_Xp, _Yp>::value * _Yp; ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-mGlyKI/src.cxx:1: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:123:11: error: reference to unresolved using declaration template ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-mGlyKI/src.cxx:1: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:126:18: error: reference to unresolved using declaration static const intmax_t value = _Xp < 0 ? -_Xp : _Xp; ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-mGlyKI/src.cxx:1: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:129:11: error: reference to unresolved using declaration template ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-mGlyKI/src.cxx:1: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:132:18: error: reference to unresolved using declaration static const intmax_t value = _Xp == 0 ? 0 : (_Xp < 0 ? -1 : 1); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-mGlyKI/src.cxx:1: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:135:11: error: reference to unresolved using declaration template ::value> ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-mGlyKI/src.cxx:1: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:135:25: error: reference to unresolved using declaration template ::value> ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-mGlyKI/src.cxx:1: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:135:39: error: reference to unresolved using declaration template ::value> ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-mGlyKI/src.cxx:1: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:138:11: error: reference to unresolved using declaration template ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-mGlyKI/src.cxx:1: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:138:25: error: reference to unresolved using declaration template ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-mGlyKI/src.cxx:1: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:141:18: error: reference to unresolved using declaration static const intmax_t min = (1LL << (sizeof(intmax_t) * CHAR_BIT - 1)) + 1; ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. make[1]: *** [CMakeFiles/cmTC_2a75a.dir/src.cxx.o] Error 1 make: *** [cmTC_2a75a/fast] Error 2 Source file was: #include #include int main(int, char **) { volatile std::atomic size_1; volatile std::atomic size_2; volatile std::atomic size_4; volatile std::atomic size_8; ++size_1; ++size_2; ++size_4; ++size_8; (void)size_1.load(std::memory_order_relaxed); (void)size_2.load(std::memory_order_relaxed); (void)size_4.load(std::memory_order_relaxed); (void)size_8.load(std::memory_order_relaxed); return 0; } Performing C++ SOURCE FILE Test ATOMICS_LOCK_FREE_INSTRUCTIONS failed with the following output: Change Dir: /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-DnzAo9 Run Build Command(s):/usr/bin/make -f Makefile cmTC_27674/fast && /Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_27674.dir/build.make CMakeFiles/cmTC_27674.dir/build Building CXX object CMakeFiles/cmTC_27674.dir/src.cxx.o /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DATOMICS_LOCK_FREE_INSTRUCTIONS -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -std=c++17 -MD -MT CMakeFiles/cmTC_27674.dir/src.cxx.o -MF CMakeFiles/cmTC_27674.dir/src.cxx.o.d -o CMakeFiles/cmTC_27674.dir/src.cxx.o -c /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-DnzAo9/src.cxx In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-DnzAo9/src.cxx:2: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:97:11: error: reference to unresolved using declaration template ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-DnzAo9/src.cxx:2: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:97:25: error: reference to unresolved using declaration template ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-DnzAo9/src.cxx:2: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:100:18: error: reference to unresolved using declaration static const intmax_t value = __static_gcd<_Yp, _Xp % _Yp>::value; ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-DnzAo9/src.cxx:2: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:103:11: error: reference to unresolved using declaration template ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-DnzAo9/src.cxx:2: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:106:18: error: reference to unresolved using declaration static const intmax_t value = _Xp; ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-DnzAo9/src.cxx:2: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:112:18: error: reference to unresolved using declaration static const intmax_t value = 1; ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-DnzAo9/src.cxx:2: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:117:11: error: reference to unresolved using declaration template ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-DnzAo9/src.cxx:2: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:117:25: error: reference to unresolved using declaration template ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-DnzAo9/src.cxx:2: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:120:18: error: reference to unresolved using declaration static const intmax_t value = _Xp / __static_gcd<_Xp, _Yp>::value * _Yp; ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-DnzAo9/src.cxx:2: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:123:11: error: reference to unresolved using declaration template ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-DnzAo9/src.cxx:2: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:126:18: error: reference to unresolved using declaration static const intmax_t value = _Xp < 0 ? -_Xp : _Xp; ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-DnzAo9/src.cxx:2: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:129:11: error: reference to unresolved using declaration template ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-DnzAo9/src.cxx:2: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:132:18: error: reference to unresolved using declaration static const intmax_t value = _Xp == 0 ? 0 : (_Xp < 0 ? -1 : 1); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-DnzAo9/src.cxx:2: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:135:11: error: reference to unresolved using declaration template ::value> ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-DnzAo9/src.cxx:2: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:135:25: error: reference to unresolved using declaration template ::value> ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-DnzAo9/src.cxx:2: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:135:39: error: reference to unresolved using declaration template ::value> ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-DnzAo9/src.cxx:2: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:138:11: error: reference to unresolved using declaration template ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-DnzAo9/src.cxx:2: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:138:25: error: reference to unresolved using declaration template ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-DnzAo9/src.cxx:2: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:141:18: error: reference to unresolved using declaration static const intmax_t min = (1LL << (sizeof(intmax_t) * CHAR_BIT - 1)) + 1; ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. make[1]: *** [CMakeFiles/cmTC_27674.dir/src.cxx.o] Error 1 make: *** [cmTC_27674/fast] Error 2 Source file was: #include #include std::atomic n8 (0); // riscv64 std::atomic n64 (0); // armel, mipsel, powerpc int main() { ++n8; ++n64; return 0; } Performing C++ SOURCE FILE Test ATOMICS_IN_LIBRARY failed with the following output: Change Dir: /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-HCByoz Run Build Command(s):/usr/bin/make -f Makefile cmTC_4831f/fast && /Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_4831f.dir/build.make CMakeFiles/cmTC_4831f.dir/build Building CXX object CMakeFiles/cmTC_4831f.dir/src.cxx.o /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DATOMICS_IN_LIBRARY -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -std=c++17 -MD -MT CMakeFiles/cmTC_4831f.dir/src.cxx.o -MF CMakeFiles/cmTC_4831f.dir/src.cxx.o.d -o CMakeFiles/cmTC_4831f.dir/src.cxx.o -c /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-HCByoz/src.cxx In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-HCByoz/src.cxx:2: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:97:11: error: reference to unresolved using declaration template ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-HCByoz/src.cxx:2: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:97:25: error: reference to unresolved using declaration template ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-HCByoz/src.cxx:2: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:100:18: error: reference to unresolved using declaration static const intmax_t value = __static_gcd<_Yp, _Xp % _Yp>::value; ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-HCByoz/src.cxx:2: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:103:11: error: reference to unresolved using declaration template ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-HCByoz/src.cxx:2: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:106:18: error: reference to unresolved using declaration static const intmax_t value = _Xp; ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-HCByoz/src.cxx:2: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:112:18: error: reference to unresolved using declaration static const intmax_t value = 1; ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-HCByoz/src.cxx:2: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:117:11: error: reference to unresolved using declaration template ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-HCByoz/src.cxx:2: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:117:25: error: reference to unresolved using declaration template ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-HCByoz/src.cxx:2: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:120:18: error: reference to unresolved using declaration static const intmax_t value = _Xp / __static_gcd<_Xp, _Yp>::value * _Yp; ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-HCByoz/src.cxx:2: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:123:11: error: reference to unresolved using declaration template ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-HCByoz/src.cxx:2: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:126:18: error: reference to unresolved using declaration static const intmax_t value = _Xp < 0 ? -_Xp : _Xp; ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-HCByoz/src.cxx:2: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:129:11: error: reference to unresolved using declaration template ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-HCByoz/src.cxx:2: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:132:18: error: reference to unresolved using declaration static const intmax_t value = _Xp == 0 ? 0 : (_Xp < 0 ? -1 : 1); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-HCByoz/src.cxx:2: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:135:11: error: reference to unresolved using declaration template ::value> ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-HCByoz/src.cxx:2: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:135:25: error: reference to unresolved using declaration template ::value> ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-HCByoz/src.cxx:2: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:135:39: error: reference to unresolved using declaration template ::value> ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-HCByoz/src.cxx:2: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:138:11: error: reference to unresolved using declaration template ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-HCByoz/src.cxx:2: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:138:25: error: reference to unresolved using declaration template ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ In file included from /Users/marktravis/Development/wt/build/CMakeFiles/CMakeScratch/TryCompile-HCByoz/src.cxx:2: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/atomic:523: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/chrono:686: /Library/Developer/CommandLineTools/usr/include/c++/v1/ratio:141:18: error: reference to unresolved using declaration static const intmax_t min = (1LL << (sizeof(intmax_t) * CHAR_BIT - 1)) + 1; ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:185:1: note: using declaration annotated with 'using_if_exists' here using ::intmax_t _LIBCPP_USING_IF_EXISTS; ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. make[1]: *** [CMakeFiles/cmTC_4831f.dir/src.cxx.o] Error 1 make: *** [cmTC_4831f/fast] Error 2 Source file was: #include #include std::atomic n8 (0); // riscv64 std::atomic n64 (0); // armel, mipsel, powerpc int main() { ++n8; ++n64; return 0; }