Build of hardlink with musl toolchain

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

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

SLOCLanguage
813 ansic
69 sh
41 makefile
923 total

The process tree of the build process is here.

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: hardlink 0.3.0-1 (Wed Apr 5 00:47:02 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# Checking for GETOPT_LONG... FAIL
# Checking for POSIX_FADVISE... FAIL
# Checking for XATTR... FAIL
# Checking for libpcreposix... FAIL
# clang -DHAVE_CONFIG_H -o hardlink.o -c hardlink.c
# clang -o hardlink hardlink.o -lpcreposix
# /sysroot/bin/ld: error: cannot find -lpcreposix
# clang-3.8: error: linker command failed with exit code 1 (use -v to see invocation)
# make: *** [Makefile:51: hardlink] Error 1
# ==> ERROR: A failure occurred in build().
# Aborting...

Printing config logfiles

CMD: config logfiles '/tmp/hardlink/src/hardlink-0.3.0/config.log'
# Checking for GETOPT_LONG.../sysroot/bin/ld: error: cannot find -lpcreposix
# clang-3.8: error: linker command failed with exit code 1 (use -v to see invocation)
# FAIL
# Checking for POSIX_FADVISE.../sysroot/bin/ld: error: cannot find -lpcreposix
# clang-3.8: error: linker command failed with exit code 1 (use -v to see invocation)
# FAIL
# Checking for XATTR.../sysroot/bin/ld: error: cannot find -lpcreposix
# clang-3.8: error: linker command failed with exit code 1 (use -v to see invocation)
# FAIL
# Checking for libpcreposix...configure.c:56:10: fatal error: 'pcreposix.h' file not found
# #include
# ^
# 1 error generated.
# FAIL