Bug #263
closedcoreboot build failure on ARM device (due to vboot)
0%
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
Updated by Paul Menzel over 4 years ago
- What version of coreboot do you use?
- What build environment do you use? (What distribution?)
Updated by John Doe over 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
Updated by Paul Menzel over 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.
Updated by Patrick Georgi over 4 years ago
- Is duplicate of Bug #145: Building vboot or its components on non-x86 fails added
Updated by Patrick Georgi over 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.