Skip to content

Fail to build binary under Debian 12 (Bookworm) #1364

@aluciani

Description

@aluciani

Context of the Build

1. What board are you trying to build?

2. What repository:branch are you using to build from?

  • Heads:Master
  • Other (please specify)

3. What version of coreboot are you trying to build

  • 4.13
  • 4.14
  • 4.15
  • 4.17
  • Other (please specify)
    this doesn't work for the librem_14 board, but I've also tried for the x230-hotp-maximized and the t430-hotp-maximized

4. In building the rom where did you get the blobs?

  • No blobs required
  • Provided by the company that installed Heads on the device
  • Extracted from a backup rom taken from this device
  • Extracted from another backup rom taken from another device (please identify the board model)
  • Extracted from the online bios using the automated tools provided in Heads
  • I don't know

5. If using the automated tools to get the blobs did you run the relevant scripts in the blobs directory

  • Yes
  • No

6. What operating system are you using

DEBIAN 12 (Linux 6.1.0-7-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.20-1 (2023-03-19) x86_64 GNU/Linux)

Please describe the problem

I try to build heads (make BOARD=librem=14, t430... or x230....) but there is a compilation error :
When building librem_14 bin

Building packages ...
Building GMP v6.2.1 for host ... ok
Building MPFR v4.1.0 for host ... ok
Building MPC v1.2.1 for host ... ok
Building BINUTILS v2.37 for target ... ok
Building GCC v11.2.0 for target ... failed. Check 'build-i386-elf-GCC/build.log'.
make[3]: *** [Makefile:19: build_gcc] Error 1
make[2]: *** [Makefile:35: build-i386] Error 2
make[1]: *** [util/crossgcc/Makefile.inc:30: crossgcc-i386] Error 2
make[1]: Leaving directory '/home/user/applications/heads/build/x86/coreboot-4.17'
make: *** [modules/coreboot:106: /home/user/applications/heads/build/x86/coreboot-4.17/.xcompile] Error 2

librem_14 build.log : https://privatebin.net/?9e1e4af7ea744768#EWcCXse8c9kUkFtPbeMtisYzcschgdp5RoZSoNtxh5gq

the file : build.log

When building t430-hotp-maximized

Unpacked and patched ... ok
Building packages ...
Building GMP v6.2.0 for host ... ok
Building MPFR v4.1.0 for host ... ok
Building MPC v1.2.0 for host ... ok
Building BINUTILS v2.35 for target ... ok
Building GCC v8.3.0 for target ... failed. Check 'build-i386-elf-GCC/build.log'.
make[3]: *** [Makefile:26: build_gcc] Error 1
make[2]: *** [Makefile:51: build-i386] Error 2
make[1]: *** [util/crossgcc/Makefile.inc:34: crossgcc-i386] Error 2
make[1]: Leaving directory '/home/user/applications/heads/build/x86/coreboot-4.13'
make: *** [modules/coreboot:106: /home/user/applications/heads/build/x86/coreboot-4.13/.xcompile] Error 2

t430-hotp-maximized build.log : https://privatebin.net/?5b4cd00951a608ab#6ve5y7zyLUz7Qt1jLmr8MKmtPzGmZ937pERNvzJ3iSkJ

the file : t430-bin-build.log

I have a thinkpad t430 under debian 11 that I use to update the heads (I recompile each time) and everything is fine
So I think it must be a version problem (of Ada/gnat ? I don't know) but I'm not enough knowledgeable in Makefile to be able to find and propose a solution ...

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Download and install debian bookworm
  2. install the required packages sudo apt install -y build-essential zlib1g-dev uuid-dev libdigest-sha-perl libelf-dev bc bzip2 bison flex git gnupg gawk iasl m4 nasm patch python python2 python3 wget gnat cpio ccache pkg-config cmake libusb-1.0-0-dev autoconf texinfo ncurses-dev doxygen graphviz udev libudev1 libudev-dev automake libtool rsync innoextract sudo libssl-dev device-tree-compiler u-boot-tools sharutils e2fsprogs parted curl unzip
    python is to replace by python-is-python3
    python2 is to replace by 2to3
  3. clone the repo, make=your_board
  4. See error

Expected behavior
It should build the binary

Additional context
All is working under debian 11 I'll put the version of some of the software that are used to build heads

$gnat --version
GNAT 12.2.0
Copyright (C) 1996-2022, Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$nasm --version
NASM version 2.16.01

$gcc --version
gcc (Debian 12.2.0-14) 12.2.0
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions