SFTtech / SFTtech/openage

Building on macOS

Open
#1,763 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area: buildsystem bug lang: cmake os: macos
Dominant language
Python
Stars
14.4k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

On M4 Macbook. Trying to compile and I got this error when I ran ./configure --compiler="$(brew --prefix llvm)/bin/clang" --download-nyan

The compiler doesn't support required C++20 features:
  * Concepts
  * Default comparisons
The following versions support these features:
  * clang++ >= 10
  * g++ >= 10
  * Microsoft Visual Studio 2019 >= 16.8
Please upgrade your compiler to build openage.


CMake Error at buildsystem/CheckCompilerFeatures.cmake:57 (message):
  aborting
Call Stack (most recent call first):
  CMakeLists.txt:174 (include)

I tried this earlier and it seems like it should compile but I am unsure what's going on:

(brew --prefix llvm)/bin/clang++ -std=c++20 /Users/tarek/Downloads/test.cpp  -o test_cpp20
tarek@Mac openage % ./test_cpp20
Testing Concept: 6
Testing Comparison (p1 < p2): true
Testing Comparison (p1 == p1): true

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the ./configure command on macOS and inspect buildsystem/CheckCompilerFeatures.cmake, especially the failure reported from CMakeLists.txt:174. Compare the compiler selected by --compiler with the compiler used for the C++20 feature checks; done means the configured build accepts the available compiler or reports the actual mismatch clearly.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, cpp, macos
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.