-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
macOS build failure #4
Comments
The log you post is very confusing. Generally, when you execute: "cmake --build . -- protoc -j8", there's no way to get into the runtimes libcxx's building unless some cmake directory is in the wrong place. |
"It works on my box"? That was my truthful experience. I suggest you may test on a brand-new Mac to see whether you can reproduce the issues. |
Following the standard non-Linux macOS build procedure, I got past the protoc step:
This looks much more normal. Maybe you do not have to use BTW, the same repo directory worked in Linux (with different build directories). The build was smooth and successful. |
Your clang within Xcode is too old to support C++20, updating to the latest Xcode will fix your compilation error. |
I understand it cannot fully support C++20, but that is the latest version available for Ventura. |
Also, the README said "before the version of macOS 11". I am already at 13, but the Apple Clang available from Apple still does not work. So the documentation is not very precise, either. If you want people on Ventura/Monterey to use icpp, you had better either provide binaries (this also solves the installation issue I mentioned in issue #3), or make the code compatible with earlier Apple Clang releases. This is the smoother path. Or solve the main issue here: make building with the bundled Clang work. I would guess that switching to fmtlib would be easier than solving the weird build issue here. |
If your system default clang doesn't support C++20 before the version of macOS 14, you should compile your own clang and apply it like on Linux. This is a very complicated process. So I strongly recommend that you update your macOS and Xcode to the latest version to have the C++20 support to simplify the building. |
Hi, the main issue was exactly the Linux steps did not work on macOS!!! |
Describe the bug
The described steps do not work on macOS.
Desktop (please complete the following information):
Additional context
As hinted in README, I followed the Linux steps.
I went a bit farther with Apple Clang, but it failed on
std::format
during thecmake --build . -- icpp icppcli imod iopad icpp-gadget icpp-server -j8
step.The text was updated successfully, but these errors were encountered: