You are not logged in.

#1 2026-09-09 16:01:26

armoon
Member
Registered: 2018-11-14
Posts: 13

Request to Add arm-linux-gnueabihf-gcc Package

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

#2 2026-09-09 17:12:15

ua4000
Member
Registered: 2015-10-14
Posts: 565

Re: Request to Add arm-linux-gnueabihf-gcc Package

Offline

#3 2026-09-10 11:17:18

armoon
Member
Registered: 2018-11-14
Posts: 13

Re: Request to Add arm-linux-gnueabihf-gcc Package

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

#4 2026-09-10 17:04:02

killertofus
Member
Registered: 2025-02-10
Posts: 236

Re: Request to Add arm-linux-gnueabihf-gcc Package

arch32 is not Arch and is not supported here.

https://bbs.archlinux.org/misc.php?action=rules


I Have Linux Perl Can i Download Gnome???

Offline

#5 2026-09-10 18:31:14

ua4000
Member
Registered: 2015-10-14
Posts: 565

Re: Request to Add arm-linux-gnueabihf-gcc Package

If he uses an x86_64 machine, to compile any AUR package, this is a valid post.

armoon wrote:

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

#6 2026-09-11 07:29:17

armoon
Member
Registered: 2018-11-14
Posts: 13

Re: Request to Add arm-linux-gnueabihf-gcc Package

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

#7 2026-09-11 08:11:09

Whoracle
Member
Registered: 2010-11-02
Posts: 242

Re: Request to Add arm-linux-gnueabihf-gcc Package

Use code tags for terminal output please. Also, the output is not complete, obviously.

Online

#8 2026-09-11 19:06:21

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,404

Re: Request to Add arm-linux-gnueabihf-gcc Package

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

#9 2026-09-11 20:45:06

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,653
Website

Re: Request to Add arm-linux-gnueabihf-gcc Package

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

#10 2026-09-12 04:58:46

armoon
Member
Registered: 2018-11-14
Posts: 13

Re: Request to Add arm-linux-gnueabihf-gcc Package

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 --log

Here 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

#11 2026-09-12 07:16:59

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,796

Offline

#12 2026-09-12 08:00:34

armoon
Member
Registered: 2018-11-14
Posts: 13

Re: Request to Add arm-linux-gnueabihf-gcc Package

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

#13 2026-09-12 08:03:09

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,796

Re: Request to Add arm-linux-gnueabihf-gcc Package

Have you also *installed* them?

pacman -Qs arm-linux-gnueabihf

Offline

#14 2026-09-12 08:09:11

armoon
Member
Registered: 2018-11-14
Posts: 13

Re: Request to Add arm-linux-gnueabihf-gcc Package

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 userspace

Offline

#15 2026-09-12 10:14:23

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,404

Re: Request to Add arm-linux-gnueabihf-gcc Package

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

#16 Yesterday 05:13:38

armoon
Member
Registered: 2018-11-14
Posts: 13

Re: Request to Add arm-linux-gnueabihf-gcc Package

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

#17 Yesterday 06:01:21

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,796

Re: Request to Add arm-linux-gnueabihf-gcc Package

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

#18 Today 05:20:48

armoon
Member
Registered: 2018-11-14
Posts: 13

Re: Request to Add arm-linux-gnueabihf-gcc Package

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/a47e64821909ad8e8cba0c8048df55c7

Offline

#19 Today 06:29:26

cryptearth
Member
Registered: 2024-02-03
Posts: 2,330

Re: Request to Add arm-linux-gnueabihf-gcc Package

armoon wrote:
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

#20 Today 06:38:46

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,796

Re: Request to Add arm-linux-gnueabihf-gcc Package

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 candidate

=> https://archlinux.org/packages/extra/x86_64/gcc15/

Offline

#21 Today 06:41:35

cryptearth
Member
Registered: 2024-02-03
Posts: 2,330

Re: Request to Add arm-linux-gnueabihf-gcc Package

// 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

#22 Today 09:06:06

armoon
Member
Registered: 2018-11-14
Posts: 13

Re: Request to Add arm-linux-gnueabihf-gcc Package

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

#23 Today 09:44:33

SimonJ
Member
From: Spain
Registered: 2021-05-11
Posts: 377
Website

Re: Request to Add arm-linux-gnueabihf-gcc Package

armoon wrote:

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

#24 Today 10:08:39

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,796

Re: Request to Add arm-linux-gnueabihf-gcc Package

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

#25 Today 11:26:34

cryptearth
Member
Registered: 2024-02-03
Posts: 2,330

Re: Request to Add arm-linux-gnueabihf-gcc Package

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

Board footer

Powered by FluxBB