buildroot/package/gcc
Waldemar Brodkorb 5acaac7122 package/gcc: fix powerpc toolchain issues with 64-bit capable cores
Some of the powerpc CPUs supported by Buildroot are dual mode CPUs,
which means 32 Bit and 64 Bit mode is supported, and for any 64-bit
capable CPU, GCC defaults to using 64-bit, even if the toolchain tuple
starts with powerpc-* (and not powerpc64-*). This causes issues when
building toolchains with uClibc or musl.

In order to resolve this, we force GCC to understand we want to
generate 32-bit code, using the --with-cpu-32 option.

See here the gcc documentation for details about --with-cpu-32:
https://gcc.gnu.org/install/configure.html

See here for a discussion on the musl mailinglist about the error:
https://inbox.vuxu.org/musl/20220722162900.GB1320090@port70.net/

Fixes:
 - http://autobuild.buildroot.net/results/450/4509d8cfb7d99beb4ef023f170490def1d90f92c
 - http://autobuild.buildroot.net/results/654/6545a464d49f9f3c6740a5208cfad7f09ec4cb8b
 - http://autobuild.buildroot.net/results/cf8/cf866d5320b069eb1e8b4f05e8e58de0ad2ec7b5

Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2023-08-26 21:51:26 +02:00
..
8.4.0
10.4.0 package/gcc: remove gcc 10.x 2023-07-28 22:05:50 +02:00
11.4.0 package/gcc: or1k: Only define TARGET_HAVE_TLS when HAVE_AS_TLS 2023-07-28 21:33:04 +02:00
12.3.0 package/gcc: or1k: Only define TARGET_HAVE_TLS when HAVE_AS_TLS 2023-07-28 21:33:04 +02:00
13.2.0 package/gcc, .checkpackageignore: fix warnings about gcc 13.2.0 patches 2023-07-28 22:50:56 +02:00
arc-2020.09-release
gcc-final
gcc-initial package/gcc/gcc-initial: fix typo 2023-02-22 15:56:10 +01:00
Config.in.host package/gcc: remove gcc 10.x 2023-07-28 22:05:50 +02:00
gcc.hash package/gcc: add support for gcc 13 2023-07-28 22:04:50 +02:00
gcc.mk package/gcc: fix powerpc toolchain issues with 64-bit capable cores 2023-08-26 21:51:26 +02:00