Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libunwind build error on Debian Stretch #101

Open
liuw opened this issue Jun 8, 2017 · 4 comments
Open

libunwind build error on Debian Stretch #101

liuw opened this issue Jun 8, 2017 · 4 comments

Comments

@liuw
Copy link
Member

liuw commented Jun 8, 2017

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
Copy link
Member Author

liuw commented Jun 8, 2017

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
Copy link
Member Author

liuw commented Jun 9, 2017

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

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

@liuw
Copy link
Member Author

liuw commented Nov 2, 2017

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

@fabianfreyer
Copy link

This seems to be a duplicate of #86.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants