-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compile acts/master on my mac #3900
Comments
Hey @qgl90, thanks for the report! We do build on macOS 14 in our CI, and Can you share the error that you get? I'm guessing it's some failure in the |
Hi, @paulgessinger , Here is what i get with cmake ../
|
@stephenswat we stumbled over a |
@qgl90 Can you try running CMake with |
When I saw this bug with @AJPfleger on Friday, we were able to resolve it by passing |
@stephenswat @AJPfleger could be that the default is being applied too late, and that's why it fails to compile. Would be good to double check this with @qgl90's |
Hi, sorry for the late, [ Renatos-MacBook-Pro.local ] renato @ ~/Desktop/tracking/acts/build (main)
$|=>cmake --debug-trycompile ../
debug trycompile on
-- The CXX compiler identification is AppleClang 15.0.0.15000100
-- Detecting CXX compiler ABI info
CMake Debug Log at /opt/homebrew/share/cmake/Modules/CMakeDetermineCompilerABI.cmake:74 (try_compile):
Executing try_compile (CMAKE_CXX_ABI_COMPILED) in:
/Users/renato/Desktop/tracking/acts/build/CMakeFiles/CMakeScratch/TryCompile-kcBBN8
Call Stack (most recent call first):
/opt/homebrew/share/cmake/Modules/CMakeTestCXXCompiler.cmake:26 (CMAKE_DETERMINE_COMPILER_ABI)
CMakeLists.txt:14 (project)
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Setting default build type: RelWithDebInfo
-- Using compiler flags: -Wall -Wextra -Wpedantic -Wshadow -Wzero-as-null-pointer-constant -Wold-style-cast -Wfloat-conversion -Wnull-dereference
-- Looking for C++ include filesystem
CMake Debug Log at /opt/homebrew/share/cmake/Modules/CheckIncludeFileCXX.cmake:98 (try_compile):
Executing try_compile (_CXX_FILESYSTEM_HAVE_HEADER) in:
/Users/renato/Desktop/tracking/acts/build/CMakeFiles/CMakeScratch/TryCompile-xRiY01
Call Stack (most recent call first):
cmake/FindFilesystem.cmake:154 (check_include_file_cxx)
CMakeLists.txt:312 (find_package)
-- Looking for C++ include filesystem - found
-- Performing Test CXX_FILESYSTEM_NO_LINK_NEEDED
CMake Debug Log at /opt/homebrew/share/cmake/Modules/Internal/CheckSourceRuns.cmake:99 (try_run):
Executing try_compile (CXX_FILESYSTEM_NO_LINK_NEEDED_COMPILED) in:
/Users/renato/Desktop/tracking/acts/build/CMakeFiles/CMakeScratch/TryCompile-dwPM9w
Call Stack (most recent call first):
/opt/homebrew/share/cmake/Modules/CheckCXXSourceRuns.cmake:52 (cmake_check_source_runs)
cmake/FindFilesystem.cmake:119 (check_cxx_source_runs)
cmake/FindFilesystem.cmake:231 (_cmcm_check_cxx_source)
CMakeLists.txt:312 (find_package)
-- Performing Test CXX_FILESYSTEM_NO_LINK_NEEDED - Failed
-- Performing Test CXX_FILESYSTEM_STDCPPFS_NEEDED
CMake Debug Log at /opt/homebrew/share/cmake/Modules/Internal/CheckSourceRuns.cmake:99 (try_run):
Executing try_compile (CXX_FILESYSTEM_STDCPPFS_NEEDED_COMPILED) in:
/Users/renato/Desktop/tracking/acts/build/CMakeFiles/CMakeScratch/TryCompile-fhNH6K
Call Stack (most recent call first):
/opt/homebrew/share/cmake/Modules/CheckCXXSourceRuns.cmake:52 (cmake_check_source_runs)
cmake/FindFilesystem.cmake:119 (check_cxx_source_runs)
cmake/FindFilesystem.cmake:239 (_cmcm_check_cxx_source)
CMakeLists.txt:312 (find_package)
-- Performing Test CXX_FILESYSTEM_STDCPPFS_NEEDED - Failed
-- Performing Test CXX_FILESYSTEM_CPPFS_NEEDED
CMake Debug Log at /opt/homebrew/share/cmake/Modules/Internal/CheckSourceRuns.cmake:99 (try_run):
Executing try_compile (CXX_FILESYSTEM_CPPFS_NEEDED_COMPILED) in:
/Users/renato/Desktop/tracking/acts/build/CMakeFiles/CMakeScratch/TryCompile-1jBLUM
Call Stack (most recent call first):
/opt/homebrew/share/cmake/Modules/CheckCXXSourceRuns.cmake:52 (cmake_check_source_runs)
cmake/FindFilesystem.cmake:119 (check_cxx_source_runs)
cmake/FindFilesystem.cmake:244 (_cmcm_check_cxx_source)
CMakeLists.txt:312 (find_package)
-- Performing Test CXX_FILESYSTEM_CPPFS_NEEDED - Failed
CMake Error at cmake/FindFilesystem.cmake:286 (message):
Cannot run simple program using std::filesystem
Call Stack (most recent call first):
CMakeLists.txt:312 (find_package)
-- Configuring incomplete, errors occurred! this is what i get |
Thanks @qgl90. Indeed
looks like it's not using the C++20 flag if it's not explicitly given. |
I have tried to compile on my mac the latest acts master branch.
It turned out that it was not able to compile due to the find_package(FileSystem REQUIRED)
. What i did has been to change in CMakeLists.txt, adding filesystem from boost
and fully comment out the
With those 2 changes the code compile on my mac, after having installed with
brew
botheigen
andboost
Mac os version :
Apple M3 Pro, MacOS 14.3 (23D56)
The text was updated successfully, but these errors were encountered: