You are not logged in.
Hi All,
Could we please have arm-linux-gnueabihf-gcc available as an installable package? This toolchain is essential for supporting ARMv7 devices running Linux, such as Raspberry Pi 2/3 in 32‑bit mode, BeagleBone boards, and other embedded Linux platforms.
-Thanks,
Anand
Offline
I found this in AUR:
https://aur.archlinux.org/packages?O=0& … eabihf-gcc
Offline
Yes, I attempted to build on an x86 CPU, but the process failed. I also tried the suggested solution, yet it still isn’t working
# 1. Headers
git clone https://aur.archlinux.org/arm-linux-gnu … eaders.git
cd arm-linux-gnueabihf-linux-api-headers && makepkg -si
# 2. Binutils
git clone https://aur.archlinux.org/arm-linux-gnu … nutils.git
cd arm-linux-gnueabihf-binutils && makepkg -si
# 3. GCC Stage1
git clone https://aur.archlinux.org/arm-linux-gnu … stage1.git
cd arm-linux-gnueabihf-gcc-stage1 && makepkg -si
# 4. Glibc
git clone https://aur.archlinux.org/arm-linux-gnueabihf-glibc.git
cd arm-linux-gnueabihf-glibc && makepkg -si
# 5. GCC Stage2
git clone https://aur.archlinux.org/arm-linux-gnu … stage2.git
cd arm-linux-gnueabihf-gcc-stage2 && makepkg -si
# 6. Final GCC
git clone https://aur.archlinux.org/arm-linux-gnueabihf-gcc.git
cd arm-linux-gnueabihf-gcc && makepkg -si
Offline
arch32 is not Arch and is not supported here.
I Have Linux Perl Can i Download Gnome???
Offline
If he uses an x86_64 machine, to compile any AUR package, this is a valid post.
Yes, I attempted to build on an x86 CPU, but the process failed.
Please post the entire thing for the 1st package, incl. command line and complete output.
Offline
Yes, this is for ARM32-bit cross-compilation on X86
Here is the command to build the arm-linux-gnueabihf-linux
https://gist.github.com/moonlinux/0e72e90252ca3ee2fc9f5c6c3bf8e8f3 $ git clone https://aur.archlinux.org/arm-linux-gnueabihf-linux-api-headers.git
cd arm-linux-gnueabihf-linux-api-headers && makepkg -si
Cloning into 'arm-linux-gnueabihf-linux-api-headers'...
remote: Enumerating objects: 176, done.
remote: Counting objects: 100% (176/176), done.
remote: Compressing objects: 100% (133/133), done.
remote: Total 176 (delta 43), reused 175 (delta 43), pack-reused 0 (from 0)
Receiving objects: 100% (176/176), done.
Resolving deltas: 100% (43/43), done.
==> Making package: arm-linux-gnueabihf-linux-api-headers 6.15.1-1 (Fri 11 Sep 2026 12:50:06 PM IST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Downloading linux-6.15.1.tar.xz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 144.1M 100 144.1M 0 0 1.13M 0 02:07 02:07 2.55M
-> Downloading linux-6.15.1.tar.sign...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 989 100 989 0 0 1330 0 0
==> Validating source files with sha256sums...
linux-6.15.1.tar.xz ... Passed
linux-6.15.1.tar.sign ... Skipped
==> Verifying source file signatures with gpg...
linux-6.15.1.tar ... Passed
==> Extracting sources...
-> Extracting linux-6.15.1.tar.xz with bsdtar
==> Starting build()...Last edited by armoon (2026-09-12 08:03:15)
Offline
Use code tags for terminal output please. Also, the output is not complete, obviously.
Online
Please add --log to the makepkg invocation and post the files it creates somewhere on a public pastebin site.
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
Nothing failed in that arm-linux-gnueabihf-linux-api-headers build in the github gist. The package built, and was installed.
(1/1) reinstalling arm-linux-gnueabihf-linux-api-headers [####################################################] 100%
If you need help with a failing build, we'll need to see that.
FTR, it's unlikely that this toolchain will be added tot the official repos, as the hardware is EOL.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Thanks, there is a dependency on the order of the packages to build and install
$ git clone [url]https://aur.archlinux.org/arm-linux-gnueabihf-gcc-stage1.git[/url]
$ arm-linux-gnueabihf-gcc-stage1
$ makepkg -si --logHere is the build failure log. I could not figure out the reason for the abort
[url]https://gist.github.com/moonlinux/c5a57491876f0e4bf2b1540eda29b17b[/url]
mkdir -p -- go/.deps
mkdir -p -- jit/.deps
mkdir -p -- lto/.deps
mkdir -p -- m2/.deps
mkdir -p -- objc/.deps
mkdir -p -- objcp/.deps
mkdir -p -- rust/.deps
mkdir -p -- c-family/.deps
mkdir -p -- common/.deps
mkdir -p -- analyzer/.deps
mkdir -p -- text-art/.deps
mkdir -p -- rtl-ssa/.deps
mkdir -p -- sym-exec/.deps
config.status: executing default-1 commands
config.status: executing default commands
==> ERROR: A failure occurred in build().
Aborting...Here is the list of the dependency order of the packages
amoon@tcm90q:~/mainline/study/linaro/archpakage/arm-linux-gnueabihf/arm-linux-gnueabihf-gcc-stage2$ makepkg -si --log
==> Making package: arm-linux-gnueabihf-gcc-stage2 15.2.1+r19+g76aeacb436df-1 (Sat 12 Sep 2026 11:12:47 AM IST)
==> Checking runtime dependencies...
==> Installing missing dependencies...
[sudo] password for amoon:
error: target not found: arm-linux-gnueabihf-glibc-headers>=2.40
==> ERROR: 'pacman' failed to install missing dependencies.
==> Missing dependencies:
-> arm-linux-gnueabihf-glibc-headers>=2.40
==> ERROR: Could not resolve all dependencies.
amoon@tcm90q:~/mainline/study/linaro/archpakage/arm-linux-gnueabihf/arm-linux-gnueabihf-gcc-stage2$ cd ../arm-linux-gnueabihf-glibc-headers
amoon@tcm90q:~/mainline/study/linaro/archpakage/arm-linux-gnueabihf/arm-linux-gnueabihf-glibc-headers$ makepkg -si --log
==> Making package: arm-linux-gnueabihf-glibc-headers 2.42+r3+gbc13db739377-1 (Sat 12 Sep 2026 11:13:02 AM IST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Installing missing dependencies...
[sudo] password for amoon:
error: target not found: arm-linux-gnueabihf-gcc-stage1>=15.2.0
==> ERROR: 'pacman' failed to install missing dependencies.
==> Missing dependencies:
-> arm-linux-gnueabihf-gcc-stage1>=15.2.0
==> ERROR: Could not resolve all dependencies.Last edited by armoon (2026-09-12 07:54:02)
Offline
So you lack https://aur.archlinux.org/packages/arm- … gcc-stage1 to build https://aur.archlinux.org/packages/arm- … bc-headers which is required for https://aur.archlinux.org/packages/arm- … gcc-stage2
You do have https://aur.archlinux.org/packages/arm- … f-binutils?
And please use [code][/code] tags. Edit your post in this regard.
Offline
Yes, I have built the packages
amoon@tcm90q:~/mainline/study/linaro/archpakage/arm-linux-gnueabihf/arm-linux-gnueabihf-binutils$ ls
arm-linux-gnueabihf-binutils-2.45+r8+g09be88bfb653-1-x86_64-build.log arm-linux-gnueabihf-binutils-2.45+r8+g09be88bfb653-1-x86_64-prepare.log
arm-linux-gnueabihf-binutils-2.45+r8+g09be88bfb653-1-x86_64-check.log binutils-gdb
arm-linux-gnueabihf-binutils-2.45+r8+g09be88bfb653-1-x86_64-package.log pkg
arm-linux-gnueabihf-binutils-2.45+r8+g09be88bfb653-1-x86_64.pkg.tar.zst PKGBUILD
arm-linux-gnueabihf-binutils-2.45+r8+g09be88bfb653-1-x86_64-pkgver.log src
amoon@tcm90q:~/mainline/study/linaro/archpakage/arm-linux-gnueabihf/arm-linux-gnueabihf-binutils$ Thanks, I will follow the protocol in future posts.
Offline
Have you also *installed* them?
pacman -Qs arm-linux-gnueabihfOffline
Thanks, let me check what's missing on my side
sudo pacman -Qs arm-linux-gnueabihf
local/arm-linux-gnueabihf-binutils 2.45+r8+g09be88bfb653-1
A set of programs to assemble and manipulate binary and object files
local/arm-linux-gnueabihf-linux-api-headers 6.15.1-1
Kernel headers sanitized for use in userspaceOffline
Please building/installing arm-linux-gnueabihf-gcc-stage1 .
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
Thanks, understood. I need to build these packages in a new chroot environment, but it's not working for me, so where can I download the prebuilt packages
Offline
Why is it "not working" for you?
Please don't paraphrase, https://bbs.archlinux.org/viewtopic.php?id=57855
So far we've seen arm-linux-gnueabihf-gcc-stage2 failing to build for lack of arm-linux-gnueabihf-glibc-headers and arm-linux-gnueabihf-glibc-headers failing to build for lack of arm-linux-gnueabihf-gcc-stage1 but no effort to build that.
You need to start w/ arm-linux-gnueabihf-gcc-stage1 then build arm-linux-gnueabihf-glibc-headers and ultimately arm-linux-gnueabihf-gcc-stage2 - clean chroot or not.
Offline
Let me document the steps required to reproduce the issue. The repository is being built using clean‑chroot‑manager,
so you should be able to replicate the problem on your end.
git clone https://github.com/graysky2/clean-chroot-manager.git
cd clean-chroot-manager
make install
# install git and base-devel in chroot
sudo arch-nspawn /scratch/.chroot/root pacman -S git base-devel
# build and install arm-linux-gnueabihf-linux-api-headers
git clone https://aur.archlinux.org/arm-linux-gnueabihf-linux-api-headers.git
cd arm-linux-gnueabihf-linux-api-headers/
sudo ccm s
sudo arch-nspawn /scratch/.chroot/root pacman -U /repo/arm-linux-gnueabihf-linux-api-headers-6.15.1-1-any.pkg.tar.zst
# build and install
git clone https://aur.archlinux.org/arm-linux-gnueabihf-binutils.git
cd arm-linux-gnueabihf-binutils/
sudo ccm s
sudo arch-nspawn /scratch/.chroot/root pacman -U /repo/arm-linux-gnueabihf-binutils-2.45+r8+g09be88bfb653-1-x86_64.pkg.tar.zst
# build and install arm-linux-gnueabihf-gcc-stage1
git clone https://aur.archlinux.org/arm-linux-gnueabihf-gcc-stage1.git
cd arm-linux-gnueabihf-gcc-stage1
sudo ccm s
Here the build fails: logs arm-linux-gnueabihf-gcc-stage1-15.2.1+r19+g76aeacb436df-1-x86_64-build.log
https://gist.github.com/moonlinux/a47e64821909ad8e8cba0c8048df55c7Offline
git clone https://github.com/graysky2/clean-chroot-manager.git cd clean-chroot-manager make install
you don't want to run make install on a modern system with a package manager these days any more
use existing packages instead
https://aur.archlinux.org/packages/clean-chroot-manager
it even notes this in its own doc https://github.com/graysky2/clean-chroo … NSTALL#L16
Don't build this manually, use the AUR package
Last edited by cryptearth (Today 06:32:12)
Offline
Or don't use some abstraction itfp, particularly when you hit errors.
You'll then not miss the obvious errors:
checking stack direction for C alloca... In file included from ../../gcc/libcody/internal.hh:5,
from ../../gcc/libcody/buffer.cc:6:
../../gcc/libcody/cody.hh: In member function ‘void Cody::Detail::MessageBuffer::Space()’:
../../gcc/libcody/cody.hh:113:24: error: no matching function for call to ‘S2C(const char8_t [2])’
113 | Append (Detail::S2C(u8" "));
| ~~~~~~~~~~~^~~~~~~
• there is 1 candidateOffline
// F5
there's even a ppre-built from about a week ago before you started this topic: https://aur.archlinux.org/packages/arm- … hf-gcc-bin
Offline
Yes, but I’m unable to update or install it.
amoon@tcm90q:~$ sudo pacman -Syu arm-linux-gnueabihf-gcc-bin
:: Synchronizing package databases...
core is up to date
extra is up to date
multilib is up to date
error: target not found: arm-linux-gnueabihf-gcc-bin
amoon@tcm90q:~$Offline
Yes, but I’m unable to update or install it.
amoon@tcm90q:~$ sudo pacman -Syu arm-linux-gnueabihf-gcc-bin :: Synchronizing package databases... core is up to date extra is up to date multilib is up to date error: target not found: arm-linux-gnueabihf-gcc-bin amoon@tcm90q:~$
You need to point pacman at the locally built package and use the -U option.
Rlu: 222126
Offline
arm-linux-gnueabihf-gcc-bin is still an AUR package and you install it like any other AUR package; you just don't have to compile anything if you trust the origin of the precompiled binary.
Offline
sorry not sorry to point at the obvious, but ...
@OP
I somewhat smell a lot of missing knowledge about proper use of packages and the AUR, aside from at leastionable reasons about "Why at all?"
if you have some old hardware and try to follow as equal old guides maybe Arch as rolling release distro isn't the best choice
I, too, had to setup a vm using Arch Archive to setup a system from Feb 2022 to build a uefi firmware for my sbc which, too, was long eol at that time (it ended up me having to buy an spi flasher to write back a working firmware after i flashed a bad one)
maybe using something like a debian from 2022 (or from when the last stable around that time was) in a vm is a better support playground
unfortunate C is a quite volatile language - so code that worked years ago might not work anymore today - hence you either have to update the code - or revert the environment
for a project you actively maintain just update might be possible - but in this case setup an older environment seems the simpler option
Offline