Building on macOS
Nobody has claimed this yet.
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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