Build of echat with musl toolchain

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

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

SLOCLanguage
6,398 ansic
57 makefile
4 sh
6,459 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: echat 0.04beta1-5 (Wed Apr 5 00:27:19 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# Compiling chat_chnl.c
# Compiling chat_cmnd.c
# Making echat 0.04beta1
# Compiling chat_conf.c
# LIBS = -lcurses
# CFLAGS = -Wall -g -O2
# DEFINES = -DFREEBSD -DCHARSET
# Compiling chat_cset.c
# chat_cmnd.c:213:72: warning: data argument not used by format string [-Wformat-extra-args]
# CMD_FAVORITE, CMD_FAVORITE1, CMD_IGNORE, CMD_IGNORE1, CMD_BAN, CMD_BCAST);
# ^
# ./chat_cmnd.h:41:25: note: expanded from macro 'CMD_BCAST'
# #define CMD_BCAST "bcast"
# ^
# Compiling chat_parm.c
# chat_parm.c:60:21: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
# fprintf(stdout, message);
# ^~~~~~~
# 1 warning generated.
# Compiling chat_syst.c
# Compiling chat_user.c
# Compiling curs_strn.c
# curs_strn.c:9:10: fatal error: 'curses.h' file not found
# #include
# ^
# 1 error generated.
# make: *** [Makefile:35: curs_strn.o] Error 1
# make: *** Waiting for unfinished jobs....
# 1 warning generated.
# ==> ERROR: A failure occurred in build().
# Aborting...