Build of sc with musl toolchain

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

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

SLOCLanguage
14,758 ansic
1,315 yacc
209 makefile
99 lisp
4 sed
16,385 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: sc 7.16-6 (Wed Apr 5 00:29:53 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# patching file sc.h
# patching file cmds.c
# patching file abbrev.c
# patching file range.c
# patching file vi.c
# patching file vmtbl.c
# patching file Makefile
# patching file color.c
# patching file debian/sc.dirs
# patching file debian/control
# patching file debian/compat
# patching file debian/changelog
# patching file debian/copyright
# patching file debian/rules
# patching file debian/sc.docs
# patching file debian/sc.install
# patching file debian/sc.manpages
# patching file frame.c
# patching file sc.c
# patching file sort.c
# patching file xmalloc.c
# patching file screen.c
# patching file lex.c
# patching file interp.c
# patching file help.c
# gcc -DSYSV3 -O2 -pipe -DDFLT_PAGER=\"less\" -c abbrev.c
# gcc -DSYSV3 -O2 -pipe -DDOBACKUPS -c cmds.c
# gcc -DSYSV3 -O2 -pipe -c -o color.o color.c
# gcc -DSYSV3 -O2 -pipe -DDOBACKUPS -c crypt.c
# color.c:20:10: fatal error: 'curses.h' file not found
# #include
# ^
# cmds.c:23:10: fatal error: 'curses.h' file not found
# #include
# ^
# abbrev.c:22:10: fatal error: 'curses.h' file not found
# #include
# ^
# gcc -DSYSV3 -O2 -pipe -c -o format.o format.c
# 1 error generated.
# make: *** [: color.o] Error 1
# make: *** Waiting for unfinished jobs....
# 1 error generated.
# make: *** [Makefile:403: abbrev.o] Error 1
# 1 error generated.
# make: *** [Makefile:406: cmds.o] Error 1
# ==> ERROR: A failure occurred in build().
# Aborting...