NetBSD declares _Unwind_Ptr as void* which is not compatible
without explicit cast with the compiler-rt version uintptr_t.
Sponsored by <The NetBSD Foundation>
Differential D33878
Handle NetBSD specific _Unwind_Ptr krytarowski on Jun 4 2017, 8:27 AM. Authored by
Details
NetBSD declares _Unwind_Ptr as void* which is not compatible Sponsored by <The NetBSD Foundation>
Diff Detail
Event TimelineComment Actions @kcc this is first step to upstream NetBSD support for sanitizers - to cleanup build issues in compiler-rt.
Comment Actions Kamil, which unwind.h are you using? The outdated copy in libexecinfo.h or the modern one used by libunwind? I see little reason to cater to the bugs in the former... Comment Actions https://github.com/NetBSD/src/blob/trunk/lib/libexecinfo/unwind.h here is the referenced header used by GCC. For Clang/LLVM if I understand correctly the used header is (it overshadows the libexecinfo one): Comment Actions What's the preferred solution to this issue? There is also an option to upfront decide that compiler-rt isn't buildable with GCC.
Comment Actions Committed non-controversial chunks of this. The rest is rescheduled for future in separate review. |
This line must be defined(__NetBSD__) && !defined(__clang__) as the failure is GCC specific. Clang uses custom unwind.h header.