Closed trevorhardy closed 11 months ago
I've done a bit more testing and I'm getting the same error when trying to build v3.3.2 and v3.2.1. Based on the folders I'm seeing in my "install" folder on my computer, I'm fairly certain I have been able to build v3.3.2 on this computer in the past. Maybe this is more an issue with my Boost installation?
My guess would be some sort of incompatibility between the older version of boost and the newest version of appleClang.
Hopefully the newer versions of boost fix it
If need be I think there is a CMake option to disable that bit of code, I can dig that up if you want
This is relevant but I'm still fuzzy on what's going on exactly. Is boost 1.82.0 (I upgraded) not C++17 compatible? https://stackoverflow.com/questions/63577103/what-is-an-equivalent-replacement-for-stdunary-function-in-c17
I'm going to try adding the following option and see if it will build: _LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION
OK, I feel foolish: how do I set the flag? I normally just use ccmake
to set my build options and (as you might guess) this flag is not one of the options.
in the HELICS CMAKE set GMLC_UTILITIES_USE_BOOST_SPIRIT=OFF in some way. That will disable that bit of code.
That flag you were referencing would have to be set in the C++ code, you would have to set it via the CMAKE_CXX_FLAGS
Setting your flag (by editing CMakeCache.txt after generating by running cmake ..
and ccmake .
), @phlptp, allowed me to build v3.4.0 on my machine. I'm closing this out.
Describe the bug Unable to build main branch of HELICS library with AppleClang.
Environment (please complete the following information):
Compile error messages