Build of figlet with musl toolchain

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

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

SLOCLanguage
3,611 ansic
156 sh
70 makefile
3,837 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: figlet 2.2.5-2 (Wed Apr 5 00:53:02 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# gcc -c -g -O2 -Wall -DTLF_FONTS -DDEFAULTFONTDIR=\"/usr/share/figlet/fonts\" \
# -DDEFAULTFONTFILE=\"standard\" -o figlet.o figlet.c
# gcc -c -g -O2 -Wall -DTLF_FONTS -DDEFAULTFONTDIR=\"/usr/share/figlet/fonts\" \
# -DDEFAULTFONTFILE=\"standard\" -o zipio.o zipio.c
# gcc -c -g -O2 -Wall -DTLF_FONTS -DDEFAULTFONTDIR=\"/usr/share/figlet/fonts\" \
# -DDEFAULTFONTFILE=\"standard\" -o crc.o crc.c
# gcc -c -g -O2 -Wall -DTLF_FONTS -DDEFAULTFONTDIR=\"/usr/share/figlet/fonts\" \
# -DDEFAULTFONTFILE=\"standard\" -o inflate.o inflate.c
# In file included from figlet.c:77:
# ./utf8.h:30:1: error: unknown type name '__BEGIN_DECLS'
# __BEGIN_DECLS
# ^
# ./utf8.h:32:7: error: expected ';' after top level declarator
# size_t utf8_to_wchar(const char *in, size_t insize, wchar_t *out,
# ^
# ;
# ./utf8.h:37:1: error: unknown type name '__END_DECLS'
# __END_DECLS
# ^
# In file included from figlet.c:80:
# ./zipio.h:76:1: error: expected identifier or '('
# typedef struct {
# ^
# ./zipio.h:79:3: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
# } ZFILE;
# ^
# ./zipio.h:93:1: error: unknown type name 'ZFILE'; did you mean 'FILE'?
# ZFILE *Zopen(const char *path, const char *mode);
# ^~~~~
# FILE
# /sysroot/include/bits/alltypes.h:356:25: note: 'FILE' declared here
# typedef struct _IO_FILE FILE;
# ^
# In file included from figlet.c:80:
# ./zipio.h:94:15: error: unknown type name 'ZFILE'; did you mean 'FILE'?
# int _Zgetc(ZFILE *stream);
# ^~~~~
# FILE
# /sysroot/include/bits/alltypes.h:356:25: note: 'FILE' declared here
# typedef struct _IO_FILE FILE;
# ^
# In file included from figlet.c:80:
# ./zipio.h:95:49: error: unknown type name 'ZFILE'; did you mean 'FILE'?
# size_t Zread(void *ptr, size_t size, size_t n, ZFILE *stream);
# ^~~~~
# FILE
# /sysroot/include/bits/alltypes.h:356:25: note: 'FILE' declared here
# typedef struct _IO_FILE FILE;
# ^
# In file included from figlet.c:80:
# ./zipio.h:96:15: error: unknown type name 'ZFILE'; did you mean 'FILE'?
# int Zseek(ZFILE *stream, long offset, int whence);
# ^~~~~
# FILE
# /sysroot/include/bits/alltypes.h:356:25: note: 'FILE' declared here
# typedef struct _IO_FILE FILE;
# ^
# In file included from figlet.c:80:
# ./zipio.h:97:15: error: unknown type name 'ZFILE'; did you mean 'FILE'?
# long Ztell(ZFILE *stream);
# ^~~~~
# FILE
# /sysroot/include/bits/alltypes.h:356:25: note: 'FILE' declared here
# typedef struct _IO_FILE FILE;
# ^
# In file included from figlet.c:80:
# ./zipio.h:98:16: error: unknown type name 'ZFILE'; did you mean 'FILE'?
# int Zclose(ZFILE *stream);
# ^~~~~
# FILE
# /sysroot/include/bits/alltypes.h:356:25: note: 'FILE' declared here
# typedef struct _IO_FILE FILE;
# ^
# figlet.c:353:1: error: expected function body after function declarator
# ZFILE *fp;
# ^
# figlet.c:354:1: error: expected identifier or '('
# {
# ^
# figlet.c:379:1: error: expected function body after function declarator
# ZFILE *fp;
# ^
# figlet.c:380:1: error: expected identifier or '('
# {
# ^
# figlet.c:478:1: error: expected function body after function declarator
# ZFILE *fp;
# ^
# figlet.c:480:1: error: expected identifier or '('
# {
# ^
# figlet.c:497:1: error: expected function body after function declarator
# ZFILE *fp;
# ^
# figlet.c:498:1: error: expected identifier or '('
# {
# ^
# figlet.c:513:1: error: expected function body after function declarator
# ZFILE *fp;
# ^
# fatal error: too many errors emitted, stopping now [-ferror-limit=]
# 1 warning and 20 errors generated.
# gcc -c -g -O2 -Wall -DTLF_FONTS -DDEFAULTFONTDIR=\"/usr/share/figlet/fonts\" \
# -DDEFAULTFONTFILE=\"standard\" -o utf8.o utf8.c
# make: *** [Makefile:65: figlet.o] Error 1
# make: *** Waiting for unfinished jobs....
# In file included from utf8.c:22:
# ./utf8.h:30:1: error: unknown type name '__BEGIN_DECLS'
# __BEGIN_DECLS
# ^
# ./utf8.h:32:7: error: expected ';' after top level declarator
# size_t utf8_to_wchar(const char *in, size_t insize, wchar_t *out,
# ^
# ;
# ./utf8.h:37:1: error: unknown type name '__END_DECLS'
# __END_DECLS
# ^
# utf8.c:33:1: error: expected identifier or '('
# static int __wchar_forbitten(wchar_t sym);
# ^
# 4 errors generated.
# make: *** [Makefile:65: utf8.o] Error 1
# ==> ERROR: A failure occurred in build().
# Aborting...