LEDE Project

  • Status Closed
  • Percent Complete
    100%
  • Task Type Bug Report
  • Category Toolchain
  • Assigned To
    Hauke Mehrtens
  • Operating System All
  • Severity Critical
  • Priority Very Low
  • Reported Version Trunk
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: LEDE Project
Opened by nouman8 - 08.06.2017
Last edited by Hauke Mehrtens - 24.06.2017

FS#832 - GCC 6.X Toolchain compile error

/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

Closed by  Hauke Mehrtens
24.06.2017 12:22
Reason for closing:  Fixed
Additional comments about closing:  

This was fixed in this commit:
https://git.l ede-project.org/?p=source.git;a=commitdi ff;h=22e2b402aee17684781ae705a91fb364529 9de9c

nouman8 commented on 08.06.2017 18:00

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/

diizzyy commented on 09.06.2017 09:08

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

nouman8 commented on 09.06.2017 10:31

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

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing