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