On 9/25/2026 8:54 AM, Daniel P. Berrangé wrote: > On Fri, Sep 25, 2026 at 08:20:44AM -0700, Pierrick Bouvier wrote: >> On 9/25/2026 2:40 AM, Daniel P. Berrangé wrote: >>> On Thu, Sep 24, 2026 at 09:39:41PM +0000, Pierrick Bouvier wrote: >>>> This allows to pick host compiler automatically on fedora, as those >>>> binaries are installed with 'gcc' package. >>>> >>>> This covers all host arch supported to this day: >>>> https://fedoraproject.org/wiki/Architectures >>>> - x86_64 >>>> - aarch64 >>>> - ppc64le >>>> - riscv64 >>>> - s390x >>>> Note: QEMU and Fedora don't support 32-bit hosts anymore. >>> >>> Regardless of what installation arches Fedora targets, it >>> ships cross compilers for pretty much everything. In F44 >>> I see the following GCC available: >>> >>> gcc-aarch64-linux-gnu.x86_64 16.2.1-1.fc44 updates >>> gcc-alpha-linux-gnu.x86_64 16.2.1-1.fc44 updates >>> gcc-arc-linux-gnu.x86_64 16.2.1-1.fc44 updates >>> gcc-arm-linux-gnu.x86_64 16.2.1-1.fc44 updates >>> gcc-avr32-linux-gnu.x86_64 16.2.1-1.fc44 updates >>> gcc-bfin-linux-gnu.x86_64 16.2.1-1.fc44 updates >>> gcc-c6x-linux-gnu.x86_64 16.2.1-1.fc44 updates >>> gcc-frv-linux-gnu.x86_64 16.2.1-1.fc44 updates >>> gcc-h8300-linux-gnu.x86_64 16.2.1-1.fc44 updates >>> gcc-hppa-linux-gnu.x86_64 16.2.1-1.fc44 updates >>> gcc-hppa64-linux-gnu.x86_64 16.2.1-1.fc44 updates >>> gcc-ia64-linux-gnu.x86_64 16.2.1-1.fc44 updates >>> gcc-loongarch64-linux-gnu.x86_64 16.2.1-1.fc44 updates >>> gcc-m68k-linux-gnu.x86_64 16.2.1-1.fc44 updates >>> gcc-microblaze-linux-gnu.x86_64 16.2.1-1.fc44 updates >>> gcc-mips64-linux-gnu.x86_64 16.2.1-1.fc44 updates >>> gcc-mn10300-linux-gnu.x86_64 16.2.1-1.fc44 updates >>> gcc-openrisc-linux-gnu.x86_64 16.2.1-1.fc44 updates >>> gcc-powerpc64-linux-gnu.x86_64 16.2.1-1.fc44 updates >>> gcc-powerpc64le-linux-gnu.x86_64 16.2.1-1.fc44 updates >>> gcc-ppc64-linux-gnu.x86_64 16.2.1-1.fc44 updates >>> gcc-ppc64le-linux-gnu.x86_64 16.2.1-1.fc44 updates >>> gcc-riscv32-linux-gnu.x86_64 16.2.1-1.fc44 updates >>> gcc-riscv64-linux-gnu.x86_64 16.2.1-1.fc44 updates >>> gcc-s390x-linux-gnu.x86_64 16.2.1-1.fc44 updates >>> gcc-sparc64-linux-gnu.x86_64 16.2.1-1.fc44 updates >>> gcc-x86_64-linux-gnu.x86_64 16.2.1-1.fc44 updates >>> gcc-xtensa-linux-gnu.x86_64 16.2.1-1.fc44 updates >>> >>> >> >> We want to detect host compiler here (redhat-* variants), as mentioned >> in commit description. It addresses original request from Paolo. Cross >> compilers above are already detected with current cc field. > > Oh, I see what you mean. Itis dealing with the naming difference > between 'redhat-linux-gnu' and just 'linux-gnu' in the compilers > for the native vs cross arch RPMs. >
Right. I'm not super familiar with Fedora, is there any fundamental difference between this toolchain and linux-gnu variant, in terms of ABI or anything else? Or is it just a distinction for "Our toolchain with additional patches" vs upstream one? I tried to find some info, but didn't really find anything useful. > > With regards, > Daniel
