Project

General

Profile

Actions

Bug #263

closed

coreboot build failure on ARM device (due to vboot)

Added by John Doe almost 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Category:
build system
Target version:
-
Start date:
06/18/2020
Due date:
% Done:

0%

Estimated time:
Affected versions:
Needs backport to:
Affected hardware:
Affected OS:

Description

After running the final make command for the coreboot build I got some errors. How Should I continune with my build of coreboot for the x220? The .config file is attached as dotconfig.txt.

Make:

host/arch/arm/lib/crossystem_arch.c: In function 'gpiod_read.constprop':
host/arch/arm/lib/crossystem_arch.c:294:36: error: '%s' directive output may be truncated writing up to 255 bytes into a region of size 25 [-Werror=format-truncation=]
snprintf(buf, sizeof(buf), "/dev/%s", list[i]->d_name);

host/arch/arm/lib/crossystem_arch.c:294:3: note: 'snprintf' output between 6 and 261 bytes into a destination of size 30
snprintf(buf, sizeof(buf), "/dev/%s", list[i]->d_name);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
host/arch/arm/lib/crossystem_arch.c: At top level:
cc1: error: unrecognized command line option '-Wno-address-of-packed-member' [-Werror]
cc1: error: unrecognized command line option '-Wno-unknown-warning' [-Werror]
cc1: all warnings being treated as errors
make[1]: *** [Makefile:1091: /home/anon/coreboot/build/util/vboot_lib/host/arch/arm/lib/crossystem_arch.o] Error 1
make: *** [util/cbfstool/Makefile.inc:133: /home/anon/coreboot/build/util/vboot_lib/libvboot_host.a] Error 2


Files

dotconfig.txt (24.5 KB) dotconfig.txt .config John Doe, 06/18/2020 09:42 AM

Related issues 1 (0 open1 closed)

Is duplicate of coreboot - Bug #145: Building vboot or its components on non-x86 failsResolvedPatrick Georgi10/23/2017

Actions
Actions

Also available in: Atom PDF