foss-for-synopsys-dwc-arc-processors / buildroot

The development tree for Buildroot support for the Synopsys DesignWare ARC processor family
https://github.com/foss-for-synopsys-dwc-arc-processors/toolchain/blob/arc-dev/README.md
Other
7 stars 2 forks source link

Buildroot outdated GCC version #37

Closed luismgsilva closed 1 year ago

luismgsilva commented 1 year ago

After updating from gcc12 to gcc13, it’s no longer feasible to generate a new Linux image utilizing the latest tool version. This is due to the impossibility of selecting the most recent compatible GCC version for the current toolchain.

$ make menuconfig
--->  Toolchains  --->  External toolchain gcc version (12.x)  ---> 

                     ┌─────────────── External toolchain gcc version ────────────────┐
                     │  Use the arrow keys to navigate this window or press the      │  
                     │  hotkey of the item you wish to select followed by the <SPACE │  
                     │  BAR>. Press <?> for additional information about this        │  
                     │ ┌───────────────────────────────────────────────────────────┐ │  
                     │ │                         (X) 12.x                          │ │  
                     │ │                         ( ) 11.x                          │ │  
                     │ │                         ( ) 10.x                          │ │  
                     │ │                         ( ) 9.x                           │ │  
                     │ │                         ( ) 8.x                           │ │  
                     │ │                         ( ) 7.x                           │ │  
                     │ └─────────────────────────────↓(+)──────────────────────────┘ │  
                     ├───────────────────────────────────────────────────────────────┤  
                     │                    <Select>      < Help >                     │  
                     └───────────────────────────────────────────────────────────────┘  

$ make busybox
.....
>>> skeleton  Patching
>>> skeleton  Configuring
>>> skeleton  Building
>>> skeleton  Installing to target
>>> toolchain-external-custom  Extracting
>>> toolchain-external-custom  Patching
>>> toolchain-external-custom  Configuring
Incorrect selection of gcc version: expected 12.x, got 13.1.1
make[1]: *** [package/pkg-generic.mk:283: /scratch/luiss/issues/buildroot/gcc13/workspace/arc64-rootfs/build/toolchain-external-custom/.stamp_configured] Error 1
make: *** [Makefile:23: _all] Error 2

Therefore, can we upgrade the current buildroot version so we are able to generate the rootfs with gcc13, produce a new Linux image and boot with QEMU?

abrodkin commented 1 year ago

@luismgsilva so we need to rebase to a more recent upstream Buildroot I guess. But apparently even the upstream master of Buildroot doesn't have support for GCC 13, see https://git.buildroot.net/buildroot/tree/package/gcc/Config.in.host. So we may either pick-up patches from say https://lists.buildroot.org/pipermail/buildroot/2023-May/667472.html or wait a bit ;)

If we want to do it ourselves, we need:

  1. https://lists.buildroot.org/pipermail/buildroot/2023-May/667472.html
  2. https://lists.buildroot.org/pipermail/buildroot/2023-May/667898.html

Or, alternatively take patches from Romain from https://github.com/RomainNaour/buildroot/commits/toolchain-builder-2023.05. I'll work on it.