[SOLVED] package architecture is not valid

Sunday December 9th, 2012By: CyrIng

Using the archlinux ARM distribution for the Raspberry Pi, we were stuck during the yaourt package build with the following error message:

« package architecture is not valid »

Read the forum, the graceful help provided by pepedog leads us to the right solution.

# nano /etc/makepkg.conf

CARCH="armv6h"

CHOST="armv6l-unknown-linux-gnueabihf"

CFLAGS="-march=armv6 -mfloat-abi=hard -mfpu=vfp -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2"

CXXFLAGS="-march=armv6 -mfloat-abi=hard -mfpu=vfp -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2"

LDFLAGS=""

The key answer is CARCH=”armv6h”, change it as soon as possible then update the abs repository.

# abs

$ yaourt -A package

The argument -A forces the compilation to the armv6h architecture even if the PKGBUILD does only contains arch=(‘i686′ ‘x86_64′)