Conversation
dietmarkuehl
left a comment
There was a problem hiding this comment.
The first two comments are really questsions which may need to be addressed. I think we need to find an agreeable compromise for the Makefile. Maybe my suggestion works?
| [beman_submodule] | ||
| remote=https://github.com/bemanproject/infra-workflows.git | ||
| commit_hash=962bc39d246b4dd3e1fc34250a66d188610c30e7 | ||
| allow_untracked_files=True |
There was a problem hiding this comment.
Isn't that needed for the Beman submodule stuff? ... or is that abandoned?
There was a problem hiding this comment.
I synched with examplar, AFAIK we have only infra as beman_submodule?
| {"preset": "appleclang-debug", "runner": "macos-latest"}, | ||
| {"preset": "appleclang-release", "runner": "macos-latest"}, |
There was a problem hiding this comment.
what happened to these tests?
There was a problem hiding this comment.
In this case I synched with execution, I have to check again.
Co-authored-by: Dietmar Kühl <dietmar.kuehl@me.com>
I have build errors with apple clang on my iMAC?bash-5.3$ cmake --preset appleclang-release --log-level=VERBOSE --fresh
Preset CMake variables:
BEMAN_USE_MODULES:BOOL="FALSE"
BEMAN_USE_STD_MODULE:BOOL="FALSE"
CMAKE_BUILD_TYPE="RelWithDebInfo"
CMAKE_CXX_EXTENSIONS:BOOL="TRUE"
CMAKE_CXX_STANDARD="23"
CMAKE_CXX_STANDARD_REQUIRED:BOOL="TRUE"
CMAKE_EXPORT_COMPILE_COMMANDS:BOOL="TRUE"
CMAKE_INSTALL_MESSAGE="LAZY"
CMAKE_PROJECT_TOP_LEVEL_INCLUDES="infra/cmake/use-fetch-content.cmake"
CMAKE_SKIP_TEST_ALL_DEPENDENCY:BOOL="FALSE"
CMAKE_TOOLCHAIN_FILE="infra/cmake/appleclang-toolchain.cmake"
-- The CXX compiler identification is AppleClang 16.0.0.16000026
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES=/usr/local/include;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1;/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/16/include;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include;/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
-- BEMAN_USE_MODULES=FALSE
-- BEMAN_USE_STD_MODULE=FALSE
-- CMAKE_CXX_SCAN_FOR_MODULES=OFF
-- beman-install-library(beman.execution): COMPONENT 'execution'
-- beman_install_library(beman.execution): EXPORT_NAME execution_headers for TARGET 'beman.execution_headers'
-- beman-install-library(beman.execution): 'beman.execution_headers' has INTERFACE_HEADER_SETS=public_headers;detail_headers
CMake Warning at cmake/beman-install-library.cmake:159 (message):
beman_install_library(beman.execution): 'beman.execution' is not a target
Call Stack (most recent call first):
CMakeLists.txt:102 (beman_install_library)
-- beman-install-library(beman.execution): Add find_dependency(Threads)
-- Configuring done (0.7s)
-- Generating done (0.2s)
-- Build files have been written to: /Users/clausklein/Workspace/cpp/beman-project/execution26/build/appleclang-release
bash-5.3$ pwd
/Users/clausklein/Workspace/cpp/beman-project/execution26
bash-5.3$
[1/215] Building CXX object tests/beman/execution/CMakeFiles/beman.execution.exec-env.test.dir/exec-env.test.cpp.o
FAILED: [code=1] tests/beman/execution/CMakeFiles/beman.execution.exec-env.test.dir/exec-env.test.cpp.o
ccache /usr/bin/c++ -I/Users/clausklein/Workspace/cpp/beman-project/execution26/tests/beman/execution/include -I/Users/clausklein/Workspace/cpp/beman-project/execution26/include -isystem /usr/local/include -isystem /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1 -isystem /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/16/include -isystem /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -isystem /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -O3 -O2 -g -DNDEBUG -std=gnu++23 -MD -MT tests/beman/execution/CMakeFiles/beman.execution.exec-env.test.dir/exec-env.test.cpp.o -MF tests/beman/execution/CMakeFiles/beman.execution.exec-env.test.dir/exec-env.test.cpp.o.d -o tests/beman/execution/CMakeFiles/beman.execution.exec-env.test.dir/exec-env.test.cpp.o -c /Users/clausklein/Workspace/cpp/beman-project/execution26/tests/beman/execution/exec-env.test.cpp
clang++: error: unable to execute command: Segmentation fault: 11
clang++: error: clang frontend command failed due to signal (use -v to see invocation)
Apple clang version 16.0.0 (clang-1600.0.26.6)
Target: x86_64-apple-darwin23.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
clang++: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang++: note: diagnostic msg: /var/folders/wb/ckvxxgls5db7qyhqq4y5_l1c0000gq/T/exec-env-0a7287.cpp
clang++: note: diagnostic msg: /var/folders/wb/ckvxxgls5db7qyhqq4y5_l1c0000gq/T/exec-env-0a7287.sh
clang++: note: diagnostic msg: Crash backtrace is located in
clang++: note: diagnostic msg: /Users/clausklein/Library/Logs/DiagnosticReports/clang_<YYYY-MM-DD-HHMMSS>_<hostname>.crash
clang++: note: diagnostic msg: (choose the .crash file that corresponds to your crash)
clang++: note: diagnostic msg:
******************** |
|
|
|
|
||
| target_sources(beman.task PRIVATE task.cpp) | ||
|
|
||
| # TODO(CK): file(GLOB ...) must not used in production code! |
There was a problem hiding this comment.
My current plan is to migrate the content of task to beman.execution and update it to more closely match the specification. After that I think this repository contains just one file. However, I think I can actually just list few files anyway.
| FetchContent_Declare( | ||
| execution | ||
| # SOURCE_DIR ${CMAKE_SOURCE_DIR}/../execution | ||
| GIT_REPOSITORY https://github.com/bemanproject/execution | ||
| GIT_TAG a098f90 | ||
| GIT_TAG 07d53da | ||
| SYSTEM | ||
| FIND_PACKAGE_ARGS | ||
| 0.2.0 | ||
| EXACT | ||
| NAMES | ||
| beman.execution | ||
| COMPONENTS | ||
| execution_headers | ||
| ) | ||
| FetchContent_MakeAvailable(execution) | ||
|
|
||
| add_subdirectory(src/beman/task) | ||
|
|
||
| #=============================================================================== | ||
| # NOTE: this must be done before tests! CK | ||
| include(./cmake/beman-install-library.cmake) | ||
| beman_install_library(${CMAKE_PROJECT_NAME} TARGETS ${CMAKE_PROJECT_NAME} | ||
| # TODO: DEPENDENCIES [===[beman.inplace_vector 1.0.0]===] [===[beman.scope 0.0.1 EXACT]===] fmt | ||
| DEPENDENCIES [===[beman.execution 0.2.0 EXACT]===] | ||
| ) | ||
| #=============================================================================== | ||
|
|
There was a problem hiding this comment.
NOTE: this are the major cmake code changes!
Disable BEMAN_BUILDSYS_SANITIZER in cmake presets
02ecb44 to
da2738f
Compare
Use beman-install-library.cmake