Build of ckermit 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
247,610 ansic
4,991 makefile
252,601 total

The process tree of the build process is here.

Several sub-process invocations were improper; see the process tree for details. Summary:

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: ckermit 9.0.302-6 (Wed Apr 5 00:27:08 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# make[1]: Entering directory '/tmp/ckermit/src'
# Making C-Kermit "9.0.302" for Linux 1.2 or later...
# IMPORTANT: Read the comments in the linux section of the
# makefile if you have trouble.
# make xermit KTARGET=${KTARGET:-linuxa} "CC = gcc" "CC2 = gcc" \
# "CFLAGS = -O -DLINUX -pipe -funsigned-char -DFNFLOAT -DCK_POSIX_SIG \
# -DCK_NEWTERM -DTCPSOCKET -DLINUXFSSTND -DNOCOTFMC -DPOSIX \
# -DUSE_STRERROR -DCK_NCURSES -I/usr/include/ncurses -DHAVE_PTMX -DHAVE_OPENPTY -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CRYPT_H " "LNKFLAGS = " \
# "LIBS = -lncurses -lutil -lresolv -lcrypt -lm"
# make[2]: Entering directory '/tmp/ckermit/src'
# gcc -O -DLINUX -pipe -funsigned-char -DFNFLOAT -DCK_POSIX_SIG -DCK_NEWTERM -DTCPSOCKET -DLINUXFSSTND -DNOCOTFMC -DPOSIX -DUSE_STRERROR -DCK_NCURSES -I/usr/include/ncurses -DHAVE_PTMX -DHAVE_OPENPTY -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CRYPT_H -DKTARGET=\"linux\" -c ckcmai.c
# gcc -O -DLINUX -pipe -funsigned-char -DFNFLOAT -DCK_POSIX_SIG -DCK_NEWTERM -DTCPSOCKET -DLINUXFSSTND -DNOCOTFMC -DPOSIX -DUSE_STRERROR -DCK_NCURSES -I/usr/include/ncurses -DHAVE_PTMX -DHAVE_OPENPTY -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CRYPT_H -DKTARGET=\"linux\" -c ckclib.c
# gcc -O -DLINUX -pipe -funsigned-char -DFNFLOAT -DCK_POSIX_SIG -DCK_NEWTERM -DTCPSOCKET -DLINUXFSSTND -DNOCOTFMC -DPOSIX -DUSE_STRERROR -DCK_NCURSES -I/usr/include/ncurses -DHAVE_PTMX -DHAVE_OPENPTY -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CRYPT_H -DKTARGET=\"linux\" -c ckucmd.c
# gcc -O -DLINUX -pipe -funsigned-char -DFNFLOAT -DCK_POSIX_SIG -DCK_NEWTERM -DTCPSOCKET -DLINUXFSSTND -DNOCOTFMC -DPOSIX -DUSE_STRERROR -DCK_NCURSES -I/usr/include/ncurses -DHAVE_PTMX -DHAVE_OPENPTY -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CRYPT_H -DKTARGET=\"linux\" -c ckuusr.c
# ckclib.c:3016:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
# while (c = *ss++ && !flag) {
# ~~^~~~~~~~~~~~~~~~
# ckclib.c:3016:15: note: place parentheses around the assignment to silence this warning
# while (c = *ss++ && !flag) {
# ^
# ( )
# ckclib.c:3016:15: note: use '==' to turn this assignment into an equality comparison
# while (c = *ss++ && !flag) {
# ^
# ==
# ckcmai.c:3160:13: warning: implicit declaration of function 'time' is invalid in C99 [-Wimplicit-function-declaration]
# c = time(NULL);
# ^
# ckclib.c:3156:9: warning: expression result unused [-Wunused-value]
# *s2++;
# ^~~~~
# ckuusr.c:7892:11: warning: add explicit braces to avoid dangling else [-Wdangling-else]
# else n = 0;
# ^
# ckucmd.c:5437:16: warning: '&&' within '||' [-Wlogical-op-parentheses]
# while (k >= 0 && ibuf[k] == CR || ibuf[k] == LF)
# ~~~~~~~^~~~~~~~~~~~~~~~ ~~
# ckucmd.c:5437:16: note: place parentheses around the '&&' expression to silence this warning
# while (k >= 0 && ibuf[k] == CR || ibuf[k] == LF)
# ~~~~~~~^~~~~~~~~~~~~~~~
# ckucmd.c:5439:16: warning: '&&' within '||' [-Wlogical-op-parentheses]
# while (k >= 0 && ibuf[k] == SP || ibuf[k] == HT)
# ~~~~~~~^~~~~~~~~~~~~~~~ ~~
# ckucmd.c:5439:16: note: place parentheses around the '&&' expression to silence this warning
# while (k >= 0 && ibuf[k] == SP || ibuf[k] == HT)
# ~~~~~~~^~~~~~~~~~~~~~~~
# ckuusr.c:13296:57: warning: add explicit braces to avoid dangling else [-Wdangling-else]
# if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0;
# ^
# ckuusr.c:13299:57: warning: add explicit braces to avoid dangling else [-Wdangling-else]
# if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0;
# ^
# ckuusr.c:13304:57: warning: add explicit braces to avoid dangling else [-Wdangling-else]
# if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0;
# ^
# ckuusr.c:13306:57: warning: add explicit braces to avoid dangling else [-Wdangling-else]
# if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0;
# ^
# ckuusr.c:13345:15: warning: result of comparison against a string literal is unspecified (use strncmp instead) [-Wstring-compare]
# if (s) if (s == "") s = NULL;
# ^ ~~
# ckuusr.c:13353:15: warning: result of comparison against a string literal is unspecified (use strncmp instead) [-Wstring-compare]
# if (s) if (s == "") s = NULL;
# ^ ~~
# ckucmd.c:7385:48: error: incomplete definition of type 'struct _IO_FILE'
# debug(F101,"cmdconchk stdin->_cnt","",stdin->_cnt);
# ~~~~~^
# ./ckcdeb.h:5129:51: note: expanded from macro 'debug'
# ((void)(deblog?dodebug(a,b,(char *)(c),(CK_OFF_T)(d)):0))
# ^
# /sysroot/include/bits/alltypes.h:356:16: note: forward declaration of 'struct _IO_FILE'
# typedef struct _IO_FILE FILE;
# ^
# ckucmd.c:7386:14: error: incomplete definition of type 'struct _IO_FILE'
# x = stdin->_cnt;
# ~~~~~^
# /sysroot/include/bits/alltypes.h:356:16: note: forward declaration of 'struct _IO_FILE'
# typedef struct _IO_FILE FILE;
# ^
# 2 warnings and 2 errors generated.
# make[2]: *** [makefile:985: ckucmd.o] Error 1
# make[2]: *** Waiting for unfinished jobs....
# 1 warning generated.
# 2 warnings generated.
# 7 warnings generated.
# make[2]: Leaving directory '/tmp/ckermit/src'
# make[1]: *** [makefile:6054: linuxa] Error 2
# make[1]: Leaving directory '/tmp/ckermit/src'
# make: *** [makefile:6091: linux] Error 2
# ==> ERROR: A failure occurred in build().
# Aborting...