[coreboot] make crossgcc-i386 : ubsan.c error (with fix!) for GCC
Paul Kocialkowski
contact at paulk.fr
Thu Jun 8 12:38:29 CEST 2017
On Sun, 2017-06-04 at 22:49 +0000, qma ster wrote:
> 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
Submitted to gerrit as https://review.coreboot.org/#/c/20103/
Cheers!
--
Paul Kocialkowski, developer of free digital technology and hardware support
Website: https://www.paulk.fr/
Coding blog: https://code.paulk.fr/
Git repositories: https://git.paulk.fr/ https://git.code.paulk.fr/
More information about the coreboot
mailing list