Open milisarge opened 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.
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...
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.
./build_rr.sh hw
gives this error : https://0x0.st/i_R7.txt