rumpkernel / rumprun

The Rumprun unikernel and toolchain for various platforms

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

libunwind build error on Debian Stretch

liuw opened this issue · comments

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.

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

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

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

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

This seems to be a duplicate of #86.