Build of perl-term-readline-gnu with musl toolchain

The build took 00h 01m 01s and was NOT successful.

The program in this build is written in the following languages, according to sloccount:

SLOCLanguage
1,668 perl
115 ansic
1,783 total

The process tree of the build process is here.

Several sub-process invocations were improper; see the process tree for details. Summary:

List of Errors

Log

To avoid scrolling, you may jump to the last line of the invocation of makepkg that was used to build this package.

Removed vanilla repositories from pacman.conf and added:
# [tuscan]
# Server = file:///var/cache/pacman/pkg/

CMD: pacman -Syy --noconfirm
# :: Synchronizing package databases...
# downloading tuscan.db...

There were existing files in /sysroot, using those
# /sysroot/lib
# /sysroot/share
# /sysroot/bin
# /sysroot/include
# /sysroot/libexec

CMD: sudo -u tuscan PATH=/sysroot/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin CC=clang CXX=clang++ red makepkg --noextract --syncdeps --skipinteg --skippgpcheck --skipchecksums --noconfirm --nocolor --log --noprogressbar --nocheck
# ==> Making package: perl-term-readline-gnu 1.31-2 (Wed Apr 5 00:06:53 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# patching file Makefile.PL
# Hunk #1 succeeded at 79 (offset 21 lines).
# Found `/usr/lib/libncurses.so'.
# cc -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_STRING_H rlver.c -o rlver -Wl,-O1,--sort-common,--as-needed,-z,relro -fstack-protector-strong -L/usr/local/lib -lreadline -lncurses
# rlver.c:3:10: fatal error: 'readline/readline.h' file not found
# #include
# ^
# 1 error generated.
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# Could not compile rlver.c.
#
# system(): Inappropriate ioctl for device
#
# If you have installed the GNU Readline Library (libreadline.{a,so} and
# readline/readline.h, etc.) on directories for which your perl is not
# configured to search (refer the value of `ccflags' and `libpath' in
# the output of `perl -V'), specify the paths as follows;
#
# perl Makefile.PL --includedir=/yourdir/include --libdir=/yourdir/lib
# or
# perl Makefile.PL --prefix=/yourdir
#
# Note that the GNU Readline Library version 2.0 and earlier causes error
# here. Update it to version 2.1 and/or later.
#
# Read INSTALL for more details.
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# ==> ERROR: A failure occurred in build().
# Aborting...