[coreboot] Problems building coreboot 4.6 (was: problems with kgpe-d16)

Paul Menzel paulepanter at users.sourceforge.net
Sun Sep 10 09:55:52 CEST 2017


Dear Ian,


Welcome to coreboot!


Am Samstag, den 09.09.2017, 16:31 -0700 schrieb Ian Kelling:
> 1. building 4.6 gives build erro
> 
> $ make crossgcc-x64 BUILDGCC_OPTIONS=-b CPUS=16
> $ make
> […]
>     HOSTCC     cbfstool/lz4hc.o
>     HOSTCC     cbfstool/lz4frame.o
> /nocow/t/coreboot-4.6/util/cbfstool/lz4/lib/lz4frame.c: In function 'LZ4F_decompress':
> /nocow/t/coreboot-4.6/util/cbfstool/lz4/lib/lz4frame.c:1092:33: error: this statement may fall through [-Werror=implicit-fallthrough=]
>                  dctxPtr->dStage = dstage_storeHeader;
>                  ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
> /nocow/t/coreboot-4.6/util/cbfstool/lz4/lib/lz4frame.c:1095:9: note: here
>          case dstage_storeHeader:
>          ^~~~
> cc1: all warnings being treated as errors
> util/cbfstool/Makefile.inc:133: recipe for target 'build/util/cbfstool/lz4frame.o' failed
> make: *** [build/util/cbfstool/lz4frame.o] Error 1

Something is wrong with your environment. The error is fixed by commit
54fd92bc (util/cbfstool/lz4frame.c: Add comment to fall through). But
as I remember, and as the commit message applaudably documents, this
warning is only shown with GCC 7. The coreboot toolchain of the
coreboot 4.6 release still uses GCC 6(?), but definitely not 7. I
suggest you delete `.xcompile`, and if that doesn’t work, please start
from scratch, and give more information. Building with `make V=1` will
also show you, what programs get called.

[…]


Thanks,

Paul
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
URL: <http://mail.coreboot.org/pipermail/coreboot/attachments/20170910/029e7ddd/attachment.asc>


More information about the coreboot mailing list