Build of dvtm with musl toolchain

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

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

SLOCLanguage
3,848 ansic
64 sh
55 makefile
3,967 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: dvtm 0.15-2 (Wed Apr 5 00:27:08 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# cleaning
# cp config.def.h config.h
# cleaning
# dvtm build options:
# CFLAGS = -std=c99 -I. -DVERSION="0.15" -DNDEBUG -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -D_XOPEN_SOURCE_EXTENDED
# CC dvtm.c
# CC vt.c
# LDFLAGS = -lc -lutil -lncursesw
# CC = clang
# dvtm.c:24:10: fatal error: 'curses.h' file not found
# #include
# ^
# In file included from vt.c:43:
# ./vt.h:21:10: fatal error: 'curses.h' file not found
# #include
# ^
# 1 error generated.
# 1 error generated.
# make: *** [Makefile:19: vt.o] Error 1
# make: *** Waiting for unfinished jobs....
# make: *** [Makefile:19: dvtm.o] Error 1
# ==> ERROR: A failure occurred in build().
# Aborting...