rumpkernel / rumprun

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

Compilation error #133

Open milisarge opened 4 years ago

milisarge commented 4 years ago

./build_rr.sh hw gives this error : https://0x0.st/i_R7.txt

teamsignprompt commented 4 years ago

In build_rr.sh

Find the following:

# Disable new errors on GCC 7 which break netbsd-src compilation
    #
    [ `${CC} -dumpversion | cut -f1 -d.` -ge 7 ] \
        && extracflags="$extracflags CPPFLAGS=-Wimplicit-fallthrough=0"

And change it to:

# Disable new errors on GCC 7 which break netbsd-src compilation
    #
    [ `${CC} -dumpversion | cut -f1 -d.` -ge 7 ] \
        && extracflags="$extracflags -F CPPFLAGS=-Wimplicit-fallthrough=0 -F CPPFLAGS=-Wno-shift-negative-value"

I have no idea what effect this has, but did allow me to do a successful build.

milisarge commented 4 years ago

i have gcc 9.1.0 , it wont work at me but i set it to 9 and tried with your line. But still same error...

ghost commented 4 years ago

Just disable all of the stupid errors.

# Disable new errors on GCC 7 which break netbsd-src compilation
    #
    [ `${CC} -dumpversion | cut -f1 -d.` -ge 7 ] \
        && extracflags="$extracflags -F CPPFLAGS=-Wimplicit-fallthrough=0 -F CPPFLAGS=-Wno-error"

Works for me, GCC 9.3.0 on Gentoo.