[coreboot] problems with kgpe-d16

Duncan dguthrie at posteo.net
Sun Sep 10 05:11:00 CEST 2017


Hi Ian,

Ian Kelling:
> 1. building 4.6 gives build error
> 
> 
> $ 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
> 
> 
It's not that you technically ~can't~ build Crossgcc-x64, but that
Crossgcc-i386 is generally used. Some boards (quite a few in fact) still
use 32-bit-specific code and routines, so I'd recommend not using
Crossgcc-x64.

> 2. built from git master (588ccaa9), crossgcc without -b this time as
> the build didn't complain about it. seabios doesn't detect my hard
> drive. I have an older coreboot seabios build that does, so it's
> probably a software issue.
> 
You should debug this with an EHCI debug dongle, and compare the two
logs. A bug report might  be helpful if you can reproduce this.

> 
> 3. building 4.5 gives build error
> 
> configure: error: Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
> Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
> their locations.
> 
> I can probably figure that out but if someone knows off the top of their
> head.
> 
>
When I've encountered something like this, it usually arises when you've
selected "build with any toolchain" in your config, and then it realizes
you've not got the required dependencies. If you've successfully build
Crossgcc, then you have no need to select that option, so I'd recommend
disabling it.

Maybe it arose from the fact you've build Crossgcc-x64 and it is looking
specifically for Crossgcc-i386. Someone else should clarify that.

> --
> Ian Kelling | Senior Systems Administrator, Free Software Foundation
> GPG Key: B125 F60B 7B28 7FF6 A2B7  DF8F 170A F0E2 9542 95DF
> https://fsf.org | https://gnu.org
> 

Best,
Duncan



More information about the coreboot mailing list