Re: [coreboot] make crossgcc-i386 : ubsan.c error (with fix!) for GCC
On Sun, 2017-06-04 at 22:49 +, 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/ -- coreboot mailing list: coreboot@coreboot.org https://mail.coreboot.org/mailman/listinfo/coreboot
Re: [coreboot] make crossgcc-i386 : ubsan.c error (with fix!) for GCC
Hi, Le dimanche 04 juin 2017 à 22:49 +, qma ster a écrit : > Good day! While building the coreboot's toolchain by using GCC 7.1.1 > version, I am getting the following error: […] > Found this solution here - > https://patchwork.openembedded.org/patch/138884/ . Would be great if > you could somehow import it to your code I've had the very same issue when building crossgcc today. Would you like to make a patch to coreboot for that? If not, I'll probably end up doing it soon. 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/ signature.asc Description: This is a digitally signed message part -- coreboot mailing list: coreboot@coreboot.org https://mail.coreboot.org/mailman/listinfo/coreboot
[coreboot] make crossgcc-i386 : ubsan.c error (with fix!) for GCC
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 -- coreboot mailing list: coreboot@coreboot.org https://mail.coreboot.org/mailman/listinfo/coreboot