Open emabrey opened 2 years ago
This may be solved by updating the vcpkg submodule, but it will have to wait until tomorrow for me to try troubleshooting this. The other alternative is that the config for Github Runners has a misconfiguration and is passing in a bad value for CMAKE_GENERATOR
.
Here is the log from the CMake acitivty within vcpkg:
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /Applications/Xcode_13.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
Build flags:
Id flags:
The output was:
1
ld: library not found for -lc++
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Performing C++ SOURCE FILE Test _VCPKG_STANDARD_LIBRARY_LIBSTDCXX failed with the following output:
Change Dir: /Users/runner/work/tenacity/tenacity/vcpkg/buildtrees/_vcpkg/build/CMakeFiles/CMakeTmp
Run Build Command(s):/Users/runner/work/tenacity/tenacity/vcpkg/downloads/tools/ninja-1.10.2-osx/ninja cmTC_9d355 && [1/2] Building CXX object CMakeFiles/cmTC_9d355.dir/src.cxx.o
FAILED: CMakeFiles/cmTC_9d355.dir/src.cxx.o
ccache /Applications/Xcode_13.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -D_VCPKG_STANDARD_LIBRARY_LIBSTDCXX -isysroot /Applications/Xcode_13.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.0.sdk -mmacosx-version-min=11.6 -MD -MT CMakeFiles/cmTC_9d355.dir/src.cxx.o -MF CMakeFiles/cmTC_9d355.dir/src.cxx.o.d -o CMakeFiles/cmTC_9d355.dir/src.cxx.o -c /Users/runner/work/tenacity/tenacity/vcpkg/buildtrees/_vcpkg/build/CMakeFiles/CMakeTmp/src.cxx
/Users/runner/work/tenacity/tenacity/vcpkg/buildtrees/_vcpkg/build/CMakeFiles/CMakeTmp/src.cxx:3:2: error: "not libstdc++"
#error "not libstdc++"
^
1 error generated.
ninja: build stopped: subcommand failed.
Source file was:
#include <ciso646>
#if !defined(__GLIBCXX__)
#error "not libstdc++"
#endif
int main() {}
Performing C++ SOURCE FILE Test _VCPKG_STANDARD_LIBRARY_MSVC_STL failed with the following output:
Change Dir: /Users/runner/work/tenacity/tenacity/vcpkg/buildtrees/_vcpkg/build/CMakeFiles/CMakeTmp
Run Build Command(s):/Users/runner/work/tenacity/tenacity/vcpkg/downloads/tools/ninja-1.10.2-osx/ninja cmTC_18a19 && [1/2] Building CXX object CMakeFiles/cmTC_18a19.dir/src.cxx.o
FAILED: CMakeFiles/cmTC_18a19.dir/src.cxx.o
ccache /Applications/Xcode_13.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -D_VCPKG_STANDARD_LIBRARY_MSVC_STL -isysroot /Applications/Xcode_13.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.0.sdk -mmacosx-version-min=11.6 -MD -MT CMakeFiles/cmTC_18a19.dir/src.cxx.o -MF CMakeFiles/cmTC_18a19.dir/src.cxx.o.d -o CMakeFiles/cmTC_18a19.dir/src.cxx.o -c /Users/runner/work/tenacity/tenacity/vcpkg/buildtrees/_vcpkg/build/CMakeFiles/CMakeTmp/src.cxx
/Users/runner/work/tenacity/tenacity/vcpkg/buildtrees/_vcpkg/build/CMakeFiles/CMakeTmp/src.cxx:3:2: error: "not MSVC stl"
#error "not MSVC stl"
^
1 error generated.
ninja: build stopped: subcommand failed.
Source file was:
#include <ciso646>
#if !defined(_MSVC_STL_VERSION) && !(defined(_MSC_VER) && _MSC_VER <= 1900)
#error "not MSVC stl"
#endif
int main() {}
Guidelines
Version/Commit hash
No response
Describe the bug.
The CMake build within the Github Runner for macOS 11 is failing with the following error message:
For example, see https://github.com/tenacityteam/tenacity/runs/4917165526?check_suite_focus=true
Expected behavior
The build should either select the correct build tool or otherwise handle this case on macOS 11 without failing.
OS
macOS Big Sur 11
Additional context
Run cmake -B build -D VCPKG=ON -D CMAKE_BUILD_TYPE=MinSizeRel -D CMAKE_INSTALL_PREFIX=/Users/runner/work/tenacity/tenacity/build/install -- Found Git: /usr/local/bin/git (found version "2.34.1") -- Using dependencies from vcpkg Git submodule -- Bootstrapping vcpkg before install -- Bootstrapping vcpkg before install - failed CMake Error at vcpkg/scripts/buildsystems/vcpkg.cmake:829 (message): vcpkg install failed. See logs for more information: /Users/runner/work/tenacity/tenacity/build/vcpkg-bootstrap.log Call Stack (most recent call first): /usr/local/Cellar/cmake/3.22.1/share/cmake/Modules/CMakeDetermineSystem.cmake:124 (include) CMakeLists.txt:295 (project)
CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage -- Configuring incomplete, errors occurred! Error: Process completed with exit code 1.
This issue is not a duplicate