Build of tetrinet with musl toolchain

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

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

SLOCLanguage
4,203 ansic
22 makefile
4,225 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: tetrinet 0.11-7 (Wed Apr 5 00:31:12 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# cc -O2 -I/usr/include/ncurses -DHAVE_IPV6 -g -Wall -c sockets.c
# cc -O2 -I/usr/include/ncurses -DHAVE_IPV6 -g -Wall -c tetrinet.c
# cc -O2 -I/usr/include/ncurses -DHAVE_IPV6 -g -Wall -c tetris.c
# cc -O2 -I/usr/include/ncurses -DHAVE_IPV6 -g -Wall -c tty.c
# In file included from tetris.c:11:
# ./tetrinet.h:77:12: error: redefinition of 'log' as different kind of symbol
# extern int log;
# ^
# ./tetrinet.h:77:12: note: previous definition is here
# In file included from tetrinet.c:14:
# ./tetrinet.h:77:12: error: redefinition of 'log' as different kind of symbol
# extern int log;
# ^
# ./tetrinet.h:77:12: note: previous definition is here
# tty.c:14:10: fatal error: 'curses.h' file not found
# #include
# ^
# tetrinet.c:24:5: error: redefinition of 'log' as different kind of symbol
# int log = 0; /* Log network traffic to file? */
# ^
# ./tetrinet.h:77:12: note: previous definition is here
# extern int log;
# ^
# tetrinet.c:86:6: warning: array index 32 is past the end of the array (which contains 32 elements) [-Warray-bounds]
# winlist[i].name[sizeof(winlist[i].name)] = 0;
# ^ ~~~~~~~~~~~~~~~~~~~~~~~
# ./tetrinet.h:23:5: note: array 'name' declared here
# char name[32];
# ^
# tetrinet.c:593:7: error: non-object type 'double (double)' is not assignable
# log = 1;
# ~~~ ^
# tetrinet.c:641:44: warning: passing 'unsigned char [4]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# if ((server_sock = conn(server, 31457, ip)) < 0) {
# ^~
# ./sockets.h:15:50: note: passing argument to parameter 'ipbuf' here
# extern int conn(const char *host, int port, char ipbuf[4]);
# ^
# 2 warnings and 3 errors generated.
# In file included from sockets.c:19:
# ./tetrinet.h:77:12: error: redefinition of 'log' as different kind of symbol
# extern int log;
# ^
# ./tetrinet.h:77:12: note: previous definition is here
# sockets.c:69:9: warning: address of function 'log' will always evaluate to 'true' [-Wpointer-bool-conversion]
# if (log) {
# ~~ ^~~
# sockets.c:69:9: note: prefix with the address-of operator to silence this warning
# if (log) {
# ^
# &
# make: *** [Makefile:33: tetrinet.o] Error 1
# make: *** Waiting for unfinished jobs....
# sockets.c:92:9: warning: address of function 'log' will always evaluate to 'true' [-Wpointer-bool-conversion]
# if (log) {
# ~~ ^~~
# sockets.c:92:9: note: prefix with the address-of operator to silence this warning
# if (log) {
# ^
# &
# 1 error generated.
# 2 warnings and 1 error generated.
# 1 error generated.
# make: *** [Makefile:33: tetris.o] Error 1
# make: *** [Makefile:33: sockets.o] Error 1
# make: *** [Makefile:33: tty.o] Error 1
# ==> ERROR: A failure occurred in build().
# Aborting...