I try, for instance to build icecream (distcc) from AUR, which ends to :
$this->bbcode_second_pass_code('', '...
loading packages...
error: failed to prepare transaction (package architecture is not valid)
:: package icecream-0.9.7-5-armv6l does not have a valid architecture
...')
It is not specific to this package, it also fails to whatever package built with yaourt and PKGBUILD modified to
$this->bbcode_second_pass_code('', 'arch=('armv6h')')
However I do get a pkg.tar.xz in /tmp but no way to install it with
$this->bbcode_second_pass_code('', '# pacman -U pkgname-armv6l.pkg.tar.xz
loading packages...
error: failed to prepare transaction (package architecture is not valid)
:: package icecream-0.9.7-5-armv6l does not have a valid architecture')
Or
$this->bbcode_second_pass_code('', '$ yaourt -U pkgname-armv6l.pkg.tar.xz
loading packages...
error: failed to prepare transaction (package architecture is not valid)
:: package icecream-0.9.7-5-armv6l does not have a valid architecture')
By the way
* Arch
$this->bbcode_second_pass_code('', '$ uname -a
Linux RPi 3.2.27-17-ARCH+ #1 PREEMPT Thu Dec 6 17:29:12 UTC 2012 armv6l GNU/Linux')
* CFlags
$this->bbcode_second_pass_code('', '$ cat /etc/makepkg.conf
#
CARCH="armv6l"
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=""
#-- Make Flags: change this for DistCC/SMP systems
MAKEFLAGS="-j3"
#
BUILDENV=(fakeroot distcc color !ccache check !sign)
# The rest is default')
Please, let me know what's wrong, I'm stuck
-----------------------
EDIT : the solution is to change in /etc/makepkg.conf
$this->bbcode_second_pass_code('', 'CARCH="armv6h"')