libunwind build error on Debian Stretch
liuw opened this issue · comments
Wei Liu commented
After fixing #99, there is a new error when building on Stretch because its gcc has stricter settings.
/local/work/Rump-kernels/rumprun/src-netbsd/sys/lib/libunwind/AddressSpace.hpp: In member function '__int64_t _Unwind::LocalAddressSpace::getSLEB128(_Unwind::
LocalAddressSpace::pint_t&, _Unwind::LocalAddressSpace::pint_t)':
/local/work/Rump-kernels/rumprun/src-netbsd/sys/lib/libunwind/AddressSpace.hpp:143:27: error: left shift of negative value [-Werror=shift-negative-value]
result |= (-1LL) << bit;
^~~
cc1plus: all warnings being treated as errors
*** Failed target: libunwind.o
I suppose this should be fixed in netbsd then updating src-netbsd in rumprun.
Wei Liu commented
Hmm... So NetBSD's libunwind comes from LLVM. The upstream LLVM has the same code snippet.
https://github.com/llvm-mirror/libunwind/blob/master/src/AddressSpace.hpp#L171
Wei Liu commented
I reported this to LLVM developers. Hopefully it will be fixed soon.
Wei Liu commented
Submitted "lib/52691: Please update libunwind in NetBSD" to NetBSD bug tracker.
Fabian Freyer commented
This seems to be a duplicate of #86.