Skip to content

Compile error for CC=cc ./build-rr.sh hwΒ #122

@Ulrar

Description

@Ulrar

Hi,

I'm trying to compile rumprun on debian 9 (in docker, if that matters at all), but I get this :

$ CC=cc ./build-rr.sh hw >/dev/null
In file included from /builds/hosting/flex/unikernel-haproxy/rumprun/src-netbsd/sys/lib/libunwind/UnwindCursor.hpp:19:0,
                 from /builds/hosting/flex/unikernel-haproxy/rumprun/src-netbsd/sys/lib/libunwind/libunwind.cxx:18:
/builds/hosting/flex/unikernel-haproxy/rumprun/src-netbsd/sys/lib/libunwind/AddressSpace.hpp: In member function '__int64_t _Unwind::LocalAddressSpace::getSLEB128(_Unwind::LocalAddressSpace::pint_t&, _Unwind::LocalAddressSpace::pint_t)':
/builds/hosting/flex/unikernel-haproxy/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
*** Failed command: /builds/hosting/flex/unikernel-haproxy/rumprun/obj-amd64-hw/rumptools/bin/x86_64--netbsd-c++ -frandom-seed=1cdedddb -O2 -g -mno-red-zone -Wall -Wextra -Wno-unused-parameter -fno-stack-protector -Werror -D__NetBSD__ -Ulinux -U__linux -U__linux__ -U__gnu_linux__ --sysroot=/builds/hosting/flex/unikernel-haproxy/rumprun/obj-amd64-hw/rumptools/dest -isystem =/usr/include -isystem /builds/hosting/flex/unikernel-haproxy/rumprun/obj-amd64-hw/rumptools/dest/usr/include/c++ -I/builds/hosting/flex/unikernel-haproxy/rumprun/./obj-amd64-hw/include -c -std=c++0x -funwind-tables -fno-rtti -fno-exceptions -fvisibility=hidden -Wno-old-style-cast -I/builds/hosting/flex/unikernel-haproxy/rumprun/src-netbsd/sys/lib/libunwind /builds/hosting/flex/unikernel-haproxy/rumprun/src-netbsd/sys/lib/libunwind/libunwind.cxx -o libunwind.o

*** Failed target:  dependall
*** Failed command: cd "/builds/hosting/flex/unikernel-haproxy/rumprun/lib/libunwind"; /builds/hosting/flex/unikernel-haproxy/rumprun/obj-amd64-hw/rumptools/bin/nbmake realall
make: *** [/builds/hosting/flex/unikernel-haproxy/rumprun/./obj-amd64-hw/lib/libunwind/libunwind.a] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions