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

Compilation error #133

Open
milisarge opened this issue May 12, 2020 · 3 comments
Open

Compilation error #133

milisarge opened this issue May 12, 2020 · 3 comments

Comments

@milisarge
Copy link

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

@teamsignprompt
Copy link

teamsignprompt commented Jul 20, 2020

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

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

ghost commented Sep 8, 2020

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.

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