Project

General

Profile

Actions

Bug #316

open

[crossgcc] Toolchain building for older Versions broken

Added by Wladislav Artsimovich about 3 years ago. Updated about 3 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
build system
Target version:
-
Start date:
08/04/2021
Due date:
% Done:

0%

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

Description

Building older versions of Coreboot (Tested was 4.10, 4.11, 4.12) errors out at different stages, on Manjaro Linux, with the latest updates. Building from git master works though.
make crossgcc-i386 CPUS=$(nproc) fails with:
4.10:

Building BINUTILS v2.32 for target ... failed. Check 'build-i386-elf-BINUTILS/build.log'.
make[2]: *** [Makefile:26: build_gcc] Error 1
make[1]: *** [Makefile:48: build-i386] Error 2
make *** [util/crossgcc/Makefile.inc:47: crossgcc-i386] Error 2

4.11:

Building BINUTILS v2.32 for target ... failed. Check 'build-i386-elf-BINUTILS/build.log'.
make[2]: *** [Makefile:26: build_gcc] Error 1
make[1]: *** [Makefile:51: build-i386] Error 2
make *** [util/crossgcc/Makefile.inc:48: crossgcc-i386] Error 2

4.12:

Building GCC v8.3.0 for target ... failed. Check 'build-i386-elf-GCC/build.log'.
make[2]: *** [Makefile:26: build_gcc] Error 1
make[1]: *** [Makefile:51: build-i386] Error 2
make *** [util/crossgcc/Makefile.inc:35: crossgcc-i386] Error 2

The logs are attached mentioned in these errors are attached.

System:
  Host: gigi-pc Kernel: 5.10.53-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0 
  Desktop: Budgie 10.5.3 wm: budgie-wm dm: LightDM Distro: Manjaro Linux 
  base: Arch Linux 
CPU:
  Info: Quad Core model: Intel Core2 Extreme Q9300 bits: 64 type: MCP arch: Penryn 
  rev: A cache: L2: 6 MiB 
  flags: lm nx pae sse sse2 sse3 sse4_1 ssse3 bogomips: 20277 
  Speed: 2533 MHz min/max: 1600/2534 MHz boost: enabled Core speeds (MHz): 1: 2533 
  2: 2534 3: 2534 4: 2534 
Graphics:
  Device-1: Intel Mobile 4 Series Integrated Graphics vendor: Lenovo driver: i915 
  v: kernel bus-ID: 00:02.0 chip-ID: 8086:2a42 
  Display: x11 server: X.Org 1.20.11 compositor: budgie-wm driver: loaded: intel 
  resolution: 1920x1200 s-dpi: 96 
  OpenGL: renderer: Mesa DRI Mobile Intel GM45 Express (CTG) v: 2.1 Mesa 21.1.5 
  direct render: Yes

I need to build those older versions to properly build up and test an issue about Coreboot + Grub being broken on the Thinkpad x200 since 4.12.


Files

4.12-build-i386-elf-GCC-build.log (6.59 KB) 4.12-build-i386-elf-GCC-build.log Wladislav Artsimovich, 08/04/2021 04:52 PM
4.11-build-i386-elf-BINUTILS-build.log (133 KB) 4.11-build-i386-elf-BINUTILS-build.log Wladislav Artsimovich, 08/04/2021 04:52 PM
4.10-build-i386-elf-BINUTILS-build.log (187 KB) 4.10-build-i386-elf-BINUTILS-build.log Wladislav Artsimovich, 08/04/2021 04:52 PM
Actions #1

Updated by Iru Cai about 3 years ago

Building crossgcc in coreboot 4.12 looks fine. Can you run make crossgcc-clean then build crossgcc again?
For coreboot 4.11, you can modify util/crossgcc/buildgcc, and change --enable-gold to --disable-gold. But there's still problem building ISAL because of bison version, you can manually update IASL to the latest version.

If you want to build the toolchain with Ada support, you also need https://review.coreboot.org/c/coreboot/+/42158.

Actions

Also available in: Atom PDF