Skip to content
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

Unable to build on macOS 14 #6707

Closed
mangerlahn opened this issue Oct 5, 2023 · 4 comments
Closed

Unable to build on macOS 14 #6707

mangerlahn opened this issue Oct 5, 2023 · 4 comments

Comments

@mangerlahn
Copy link

Building this project on macOS 14 currently fails. The accompanying Xcode 15 supports a version of C++ that does not contain std::unary_function, a function used by boost 1.7x. This has been resolved with boost 1.8x, which can't be used here because it also breaks the build.

The fix suggested here worked, I just needed to add

add_compile_definitions(_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION)

to the CMakeLists.txt file. Another workaround would of course be to restore compatibility with boost 1.8x.

The second issue I encountered was, that for some reason multiple unused result and unused parameter warnings popped up. As they were treated as errors, the build failed. By modifying the CMakeLists.txt again I was able to build successfully.
I added

add_compile_options(-Wno-unused-result -Wno-unused-parameter)

I have little experience with all of this, that's why I post this as a bug report instead of a PR. Not sure if it would be better to fix the affected code.

@adriantabirta
Copy link

I have the same problem

@loweas
Copy link

loweas commented Oct 6, 2023

I as well. First workaround helped (thank you!) but can't seem to work around the next one where I get unused-results.

@danpat
Copy link
Member

danpat commented Oct 6, 2023

I made a PR to suppress most of those problems in #6709 - it's nothing fancy, just marks some unused results as ... unused, to keep the compiler happy.

@mangerlahn
Copy link
Author

This has been resolved by #6709, thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants