OPINIONATED OMARCHY
TROUBLESHOOTING CORPUS
790
RECORDS
790
AUDITED
0
UNCHECKED
2388
SOURCES
LIVE
pacman-aur medium common DISPUTE

Fix AUR builds failing because base-devel is missing

archomarchyendeavouroscachyosmanjarodesktoplaptop
AUDITED Audited against its sources and confirmed accurate.

Symptom

AUR builds fail immediately with things like bash: makepkg: command not found, ==> ERROR: Cannot find the fakeroot binary, ==> ERROR: Cannot find the strip binary required for object file stripping, or a compiler/patch/autoconf not found error, on a system that used to build AUR packages fine.

Cause

base-devel was converted from a package *group* to a *meta package* in February 2023. Users who installed the group before that have the old members but never receive newly added ones, so tools quietly go missing. Fresh minimal installs simply never had it.

Fix

Install the meta package explicitly, exactly as the Arch news item instructs:


sudo pacman -Syu base-devel

Also ensure git is present for AUR clones:


sudo pacman -S --needed git base-devel

Verify the toolchain:


pacman -Qi base-devel >/dev/null && echo 'base-devel installed as a package'
which makepkg fakeroot gcc make patch

Verify

pacman -Qi base-devel returns package info (not "error: package 'base-devel' was not found"), and makepkg -si runs in any AUR clone.

Sources

aur-build-fails-missing-base-devel