Skip to content

The appleclang-release preset use the clang-20 compile and failes on OSX #171

@ClausKlein

Description

@ClausKlein
bash-5.2$ cmake --workflow appleclang-release 
Executing workflow step 1 of 3: configure preset "appleclang-release"

-- The CXX compiler identification is Clang 20.1.5
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/local/Cellar/llvm/20.1.5/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The C compiler identification is Clang 20.1.5
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/local/Cellar/llvm/20.1.5/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Looking for __cpp_lib_ranges
-- Looking for __cpp_lib_ranges - found
Examples to be built: identity_direct_usage;identity_as_default_projection
-- Configuring done (33.3s)
-- Generating done (0.1s)
-- Build files have been written to: /Users/clausklein/Workspace/cpp/beman-project/exemplar/build/appleclang-release

Executing workflow step 2 of 3: build preset "appleclang-release"

[2/12] Linking CXX static library src/beman/exemplar/libbeman.exemplar.a
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: src/beman/exemplar/libbeman.exemplar.a(identity.cpp.o) has no symbols
[7/12] Linking CXX executable examples/beman.exemplar.examples.identity_as_default_projection
FAILED: examples/beman.exemplar.examples.identity_as_default_projection 
: && /usr/local/Cellar/llvm/20.1.5/bin/clang++ -O3  -O2 -g -DNDEBUG -Wl,-search_paths_first -Wl,-headerpad_max_install_names  examples/CMakeFiles/beman.exemplar.examples.identity_as_default_projection.dir/identity_as_default_projection.cpp.o -o examples/beman.exemplar.examples.identity_as_default_projection  src/beman/exemplar/libbeman.exemplar.a && :
ld: archive member '/' not a mach-o file in '/Users/clausklein/Workspace/cpp/beman-project/exemplar/build/appleclang-release/src/beman/exemplar/libbeman.exemplar.a'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
[8/12] Linking CXX executable examples/beman.exemplar.examples.identity_direct_usage
FAILED: examples/beman.exemplar.examples.identity_direct_usage 
: && /usr/local/Cellar/llvm/20.1.5/bin/clang++ -O3  -O2 -g -DNDEBUG -Wl,-search_paths_first -Wl,-headerpad_max_install_names  examples/CMakeFiles/beman.exemplar.examples.identity_direct_usage.dir/identity_direct_usage.cpp.o -o examples/beman.exemplar.examples.identity_direct_usage  src/beman/exemplar/libbeman.exemplar.a && :
ld: archive member '/' not a mach-o file in '/Users/clausklein/Workspace/cpp/beman-project/exemplar/build/appleclang-release/src/beman/exemplar/libbeman.exemplar.a'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
[9/12] Building CXX object _deps/googletest-build/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o
ninja: build stopped: subcommand failed.
bash-5.2$

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions