rumpkernel / rumprun

The Rumprun unikernel and toolchain for various platforms
Other
1.14k stars 128 forks source link

libunwind build error on Debian Stretch #101

Open liuw opened 7 years ago

liuw commented 7 years ago

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.

liuw commented 7 years ago

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

liuw commented 7 years ago

I reported this to LLVM developers. Hopefully it will be fixed soon.

https://bugs.llvm.org/show_bug.cgi?id=33358

liuw commented 7 years ago

Submitted "lib/52691: Please update libunwind in NetBSD" to NetBSD bug tracker.

fabianfreyer commented 6 years ago

This seems to be a duplicate of #86.