I suspect that you could fix this by running the following command as
before the build:
sudo pacman -Sy
I always sue -Syu to install packages, and I already
installed/reinstalled some packages today.
Now one thing comes to my mind : lots of pacman stuff are NOT in the usal place.
$ cat /etc/pacman.conf
-----------------------------------
[options]
# The following paths are commented out with their default values listed.
# If you wish to use different paths, uncomment and update the paths.
#RootDir = /
DBPath = /var/lib/pacman
CacheDir = /drawer/pacman/pkg
#CacheDir = /var/cache/pacman/pkg
#LogFile = /var/log/pacman.log
#GPGDir = /etc/pacman.d/gnupg/
HoldPkg = pacman glibc
#XferCommand = /usr/bin/curl -C - -f %u > %o
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
#UseDelta = 0.7
Architecture = auto
------------------------------------------
Could this unusual dir be the cause of this issue ??