Package Details: powerpc-none-eabi-toolchain 20230502-1

Git Clone URL: https://aur.archlinux.org/powerpc-none-eabi-toolchain.git (read-only, click to copy)
Package Base: powerpc-none-eabi-toolchain
Description: A complete gcc/binutils/newlib toolchain for powerpc-none-eabi
Upstream URL: http://www.gnu.org
Licenses: GPL, BSD
Submitter: Solskogen
Maintainer: CalebW
Last Packager: Solskogen
Votes: 1
Popularity: 0.000000
First Submitted: 2017-12-20 18:15 (UTC)
Last Updated: 2023-05-02 08:09 (UTC)

Latest Comments

Heterology commented on 2026-02-24 08:28 (UTC) (edited on 2026-02-24 09:21 (UTC) by Heterology)

Claude found the fix:

Build fails with GCC 14+/15 — multiple fixes needed

This package fails to build on current Arch Linux (GCC 15, which defaults to C23). Several issues:

  1. -Werror in C code — binutils/bfd, readline, and sim all have warnings promoted to errors
  2. GCC 14 promoted warnings to hard errors — -Wincompatible-pointer-types, -Wint-conversion, -Wimplicit-function-declaration, -Wreturn-mismatch are now errors by default
  3. GCC 15 / C23 empty parentheses — int func() now means int func(void), causing conflicting type errors in sim/ppc/emul_netbsd.c and emul_unix.c (e.g. getrusage)
  4. C++20 -Werror=template-id-cdtor — GDB's C++ code uses template-id in constructors/destructors (DISABLE_COPY_AND_ASSIGN macro), rejected under -Werror
  5. Bundled readline is broken — ancient readline source doesn't compile with modern GCC

Fixes needed in the build() function:

Add --with-system-readline to configure to use the system readline instead of the broken bundled copy: - --enable-host-shared --disable-libssp --disable-libunwind-exceptions --disable-source-highlight + --enable-host-shared --disable-libssp --disable-libunwind-exceptions --disable-source-highlight \ + --with-system-readline

Pass warning suppression flags and force C17 through make (not CFLAGS/CXXFLAGS env vars, as the Makefiles override those): - make + make -j$(nproc) \ + CFLAGS="$CFLAGS -std=gnu17 -Wno-error -Wno-incompatible-pointer-types -Wno-int-conversion -Wno-implicit-function-declaration -Wno-discarded-qualifiers -Wno-old-style-definition -Wno-return-mismatch" \ + CXXFLAGS="$CXXFLAGS -Wno-error -Wno-template-id-cdtor"

Note: after a failed build, you must rm -rf src/obj before retrying, otherwise configure will reject the changed CFLAGS from its cache.