Build of postgresql with musl toolchain

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

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

SLOCLanguage
808,984 ansic
29,868 yacc
10,637 perl
7,046 lex
5,157 sh
4,375 makefile
65 asm
17 lisp
15 sed
12 python
866,176 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: postgresql 9.5.3-1 (Wed Apr 5 02:11:53 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> Installing missing dependencies...
# error: target not found: tcl>=8.6.0
# ==> ERROR: 'pacman' failed to install missing dependencies.