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 #1

Updated by Paul Menzel almost 4 years ago

  1. What version of coreboot do you use?
  2. What build environment do you use? (What distribution?)
Actions #2

Updated by John Doe almost 4 years ago

What version of coreboot do you use?

Coreboot 4.12? I don't know where to look to see the version. I did "git clone
http://review.coreboot.org/coreboot.git" yesterday.

What build environment do you use? (What distribution?)

Board: Rpi3
Distro: Raspbian GNU/Linux 10 (buster)
GCC/G++: 4:8.3.0-1+rpi2
Make: 4.2.1-1.2
gnat: 8.0.1
libssl-dev: 1.1.1d-0+deb10u3+rpt1
flex: 2.6.4-6.2
bison: 2:3.3.2.dfsg-1
ACPICA (iasl): 20200110
pkg-config: 0.29-6

Actions #3

Updated by Paul Menzel almost 4 years ago

  • Subject changed from X220 Coreboot Build Failure to X220 Coreboot Build Failure on ARM device

I only now saw, that you are building on ARM. I guess you ran make crossgcc-i386?

Anyways, thank you for the report. As a workaround, I recommend to build the image on an x86 system, and copy the resulting build/coreboot.rom to the Raspberry PI to flash it.

Actions #4

Updated by Patrick Georgi almost 4 years ago

  • Is duplicate of Bug #145: Building vboot or its components on non-x86 fails added
Actions #5

Updated by Patrick Georgi almost 4 years ago

  • Tracker changed from Support to Bug
  • Subject changed from X220 Coreboot Build Failure on ARM device to coreboot build failure on ARM device (due to vboot)
  • Status changed from Response Needed to Closed
  • Assignee set to Patrick Georgi

Paul's recommendation to build on x86 and push the binary to the RPi to flash is a suitable workaround.

The build error is an example of a class of issues on non-x86 that I'll look into. I'm marking this as a duplicate of #145 even if the details are different (architecture, vboot component being built) because the root cause is the same.

Actions

Also available in: Atom PDF