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

FS#832 - GCC 6.X Toolchain compile error #5799

Closed
openwrt-bot opened this issue Jun 8, 2017 · 3 comments
Closed

FS#832 - GCC 6.X Toolchain compile error #5799

openwrt-bot opened this issue Jun 8, 2017 · 3 comments
Labels

Comments

@openwrt-bot
Copy link

@openwrt-bot openwrt-bot commented Jun 8, 2017

nouman8:

/source/build_dir/toolchain-mips_74kc_gcc-6.3.0_musl/gcc-6.3.0/gcc/ubsan.c: In function 'bool ubsan_use_new_style_p(location_t)':
/source/build_dir/toolchain-mips_74kc_gcc-6.3.0_musl/gcc-6.3.0/gcc/ubsan.c:1474:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
|| xloc.file == '\0' || xloc.file[0] == '\xff'
^~~~
make[5]: *** [Makefile:1085: ubsan.o] Error 1
make[5]: Leaving directory '/source/build_dir/toolchain-mips_74kc_gcc-6.3.0_musl/gcc-6.3.0-initial/gcc'
make[4]: *** [Makefile:4115: all-gcc] Error 2
make[4]: Leaving directory '/source/build_dir/toolchain-mips_74kc_gcc-6.3.0_musl/gcc-6.3.0-initial'
make[3]: *** [Makefile:37: /source/build_dir/toolchain-mips_74kc_gcc-6.3.0_musl/gcc-6.3.0-initial/.built] Error 2
make[3]: Leaving directory '/source/toolchain/gcc/initial'
make[2]: *** [toolchain/Makefile:98: toolchain/gcc/initial/compile] Error 2
make[2]: Leaving directory '/source'
make[1]: *** [toolchain/Makefile:94: /source/staging_dir/toolchain-mips_74kc_gcc-6.3.0_musl/stamp/.toolchain_compile] Error 2
make[1]: Leaving directory '/source'
make: *** [/source/include/toplevel.mk:208: world] Error 2

Compiling sources with GCC 6.x after the mess explained in #830 and it fails with the error above

@openwrt-bot
Copy link
Author

@openwrt-bot openwrt-bot commented Jun 8, 2017

nouman8:

did some googling and changed that line
"|| xloc.file == '\0' || xloc.file[0] == '\xff'"
to
"|| xloc.file[0] == '\0' || xloc.file[0] == '\xff'"

which fixed this error as mentioned here https://www.viva64.com/en/b/0425/

@openwrt-bot
Copy link
Author

@openwrt-bot openwrt-bot commented Jun 9, 2017

diizzyy:

Can you please do a pull reqest on github with this patch?

@openwrt-bot
Copy link
Author

@openwrt-bot openwrt-bot commented Jun 9, 2017

nouman8:

no.i hope devs will make patch and merge it soon

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

No branches or pull requests

1 participant