Closed DDoSolitary closed 1 year ago
It looks like the same issue, yes. Does it work if you define the macro BOOST_SYSTEM_CLANG_6
, which is defined for Clang 6 and earlier by https://github.com/boostorg/system/blob/36e1236a0f025703def959ae7126e255f968b9b7/include/boost/system/detail/config.hpp#L68?
@pdimov Yes, manually defining the macro fixes the error.
The normal Clang 7.0.0, 7.0.1 works, so this Android build should be something slightly different that identifies as 7.0.2 but isn't. Any suggestions as to how the condition in detail/config.hpp
needs to be changed to fix your issue?
#if defined(__clang__) && (__clang_major__ < 7 || (defined(__APPLE__) && __clang_major__ < 11) || (defined(__ANDROID__) && __clang_major__ == 7))
perhaps?
I also tested normal clang 7.0.0 and can confirm it works. I think adding the __ANDROID__ && clang == 7 check should fix the error for me, though I didn't test any newer clang versions provided by Android NDK
OK, let's give it a try.
I'm trying to build boost 1.80 with the Clang 7 compiler provided by NDK r18b and got the following error
It seems to be the same error for which a special deleted declaration was added a6c4b6329c3b8e3d131d007b87ac691dd65dc85a. But the check fails to catch my clang version.