You are not logged in.

#1 2019-11-23 16:50:21

From: Zurich
Registered: 2019-11-14
Posts: 810

Building packages from the AUR

Packages from the AUR can be built by setting the architecture in 'PKGBUILD':

arch=('i486' 'i686' 'pentium4' 'x86_64')

The 'i486', 'i686' and 'pentium4' tokens correspond to the architecture branches of Archlinux32.

Make sure the 'CARCH' variable is set correcly in '/etc/makepkg.conf' (we assume you want to build for newer versions of IA32 architecture supporting SSE2, so we choose 'pentium4'):


also note that 'CHOST' has to remain untouched as:


Make sure you set the compilation flags for C/C++ fitting to the architecture:

CFLAGS="-march=pentium4 -mtune=generic -O2 -pipe -fno-plt"
CXXFLAGS="-march=pentium4 -mtune=generic -O2 -pipe -fno-plt"


#2 2019-11-23 21:38:50

From: Yorkshire, UK
Registered: 2018-06-16
Posts: 1,179

Re: Building packages from the AUR

In my experience, those settings from makepkg.conf are all as you specify if you took a pentum4 version of pacman., with a pacman that detects your system as supporting pentium4  But yes you almost always need to include extra platforms in the arch from the PKGBUILD you downloaded from AUR, and sometimes other stuff, especially if it doesn't actually build everything from source.

Architecture: pentium4, Testing repos: Yes, Hardware: EeePC 901+2GB RAM+OS half on the SD card.


Board footer

Powered by FluxBB