Build of perl-berkeleydb with musl toolchain

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

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

SLOCLanguage
16,062 ansic
11,228 perl
744 makefile
28,034 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-berkeleydb 0.55-2 (Wed Apr 5 00:44:58 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# Parsing config.in...
# Looks Good.
# Checking if your kit is complete...
# Looks good
# Generating a Unix-style Makefile
# Writing Makefile for BerkeleyDB
# Writing MYMETA.yml and MYMETA.json
# Running Mkbootstrap for BerkeleyDB ()
# "/usr/bin/perl" "/usr/share/perl5/core_perl/ExtUtils/xsubpp" -noprototypes -typemap "/usr/share/perl5/core_perl/ExtUtils/typemap" -typemap "typemap" BerkeleyDB.xs > BerkeleyDB.xsc && mv BerkeleyDB.xsc BerkeleyDB.c
# chmod 644 "BerkeleyDB.bs"
# cp BerkeleyDB.pm blib/lib/BerkeleyDB.pm
# cp BerkeleyDB.pod blib/lib/BerkeleyDB.pod
# cp BerkeleyDB/Hash.pm blib/lib/BerkeleyDB/Hash.pm
# cp mkconsts.pl blib/lib/mkconsts.pl
# cp BerkeleyDB/Btree.pm blib/lib/BerkeleyDB/Btree.pm
# cp scan.pl blib/lib/scan.pl
# Warning: Found a 'CODE' section which seems to be using 'RETVAL' but no 'OUTPUT' section. in BerkeleyDB.xs, line 5856
# Warning: Found a 'CODE' section which seems to be using 'RETVAL' but no 'OUTPUT' section. in BerkeleyDB.xs, line 5884
# cc -c -I/usr/local/BerkeleyDB/include -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 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -DVERSION=\"0.55\" -DXS_VERSION=\"0.55\" -fPIC "-I/usr/lib/perl5/core_perl/CORE" BerkeleyDB.c
# BerkeleyDB.xs:76:10: fatal error: 'db.h' file not found
# #include
# ^
# 1 error generated.
# make: *** [Makefile:363: BerkeleyDB.o] Error 1
# ==> ERROR: A failure occurred in build().
# Aborting...