[coreboot] make crossgcc-i386 : ubsan.c error (with fix!) for GCC
qma ster
qmastery16 at gmail.com
Mon Jun 5 00:49:52 CEST 2017
Good day! While building the coreboot's toolchain by using GCC 7.1.1
version, I am getting the following error:
ubsan.c:1474:23: error: ISO C++ forbids comparison between pointer and
integer [-fpermissive]
|| xloc.file == '\0' || xloc.file[0] == '\xff'
The fix is very simple - just open
./util/crossgcc/gcc-6.3.0/gcc/ubsan.c and change
|| xloc.file == '\0' || xloc.file[0] == '\xff'
to
|| xloc.file[0] == '\0' || xloc.file[0] == '\xff'
Found this solution here -
https://patchwork.openembedded.org/patch/138884/ . Would be great if
you could somehow import it to your code
Best regards,
qmastery
More information about the coreboot
mailing list