Skip to content

Build issues on Darwin #59

@seclorum

Description

@seclorum

The CMakeLists.txt file for this project doesn't seem to like AppleCLang:


$  clang --version
Apple clang version 16.0.0 (clang-1600.0.26.6)
Target: arm64-apple-darwin23.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin


I added a message call to report the value of CMAKE_CXX_COMPILER_ID and when trying to run cmake, get this result:


$ cd luzer
$ git branch -av
* master                                      3f4eb03 fdp: return item index by oneof()
  remotes/origin/HEAD                         -> origin/master
  remotes/origin/ligurio/dev                  0adf54a update paths
  remotes/origin/ligurio/gh-1-fix-luajit      e566ca1 luzer: fix building with LuaJIT [WIP]
  remotes/origin/ligurio/gh-xxxx-fix-counters 1f04ef9 doc [WIP]
  remotes/origin/ligurio/patches              381c9df patches: add LuaJIT v2.1.0
  remotes/origin/ligurio/support-afl          e2838cb luzer: luzer API with AFL [TO SQUASH]
  remotes/origin/ligurio/tmate                5892b22 cmake: fix installation
  remotes/origin/master                       3f4eb03 fdp: return item index by oneof()

$ export LLVM_DIR=/opt/homebrew/Cellar/llvm/20.1.8/lib/cmake

$ cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -S . -B build
-- Found Lua 5.4.8
-- Found Lua interpreter /opt/homebrew/bin/lua5.4
-- Found LLVM 20.1.8
-- CMAKE_CXX_COMPILER_ID = AppleClang
CMake Error at cmake/SetClangRTLib.cmake:29 (message):
  C compiler is not a Clang
Call Stack (most recent call first):
  luzer/CMakeLists.txt:10 (SetClangLibPath)


-- Configuring incomplete, errors occurred!


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions