Build of linux-manpages with musl toolchain

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

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

SLOCLanguage
13,909,566 ansic
283,294 asm
34,409 makefile
23,916 perl
11,225 sh
7,591 python
6,597 cpp
4,327 yacc
2,414 lex
1,130 awk
231 pascal
218 lisp
14,284,918 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: linux-manpages 4.6-1 (Wed Apr 5 01:52:10 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> Installing missing dependencies...
# resolving dependencies...
# looking for conflicting packages...
#
# Packages (1) xmlto-0.0.28-1
#
# Total Installed Size: 0.12 MiB
#
# :: Proceed with installation? [Y/n]
# checking keyring...
# checking package integrity...
# loading package files...
# checking for file conflicts...
# checking available disk space...
# :: Processing package changes...
# installing xmlto...
# :: Running post-transaction hooks...
# (1/1) Updating manpage index...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# HOSTCC scripts/basic/fixdep
# clang-3.8: warning: optimization flag '-fno-delete-null-pointer-checks' is not supported
# HOSTCC scripts/docproc
# HOSTCC scripts/check-lc_ctype
# clang-3.8: warning: optimization flag '-fno-delete-null-pointer-checks' is not supported
# clang-3.8: warning: optimization flag '-fno-delete-null-pointer-checks' is not supported
# scripts/docproc.c:183:58: warning: explicitly assigning value of variable of type 'char *' to itself [-Wself-assign]
# static void adddep2(char * file, char * line) { line = line; adddep(file); }
# ~~~~ ^ ~~~~
# scripts/docproc.c:184:46: warning: explicitly assigning value of variable of type 'char *' to itself [-Wself-assign]
# static void noaction(char * line) { line = line; }
# ~~~~ ^ ~~~~
# scripts/docproc.c:185:58: warning: explicitly assigning value of variable of type 'char *' to itself [-Wself-assign]
# static void noaction2(char * file, char * line) { file = file; line = line; }
# ~~~~ ^ ~~~~
# scripts/docproc.c:185:71: warning: explicitly assigning value of variable of type 'char *' to itself [-Wself-assign]
# static void noaction2(char * file, char * line) { file = file; line = line; }
# ~~~~ ^ ~~~~
# 4 warnings generated.
# DOCPROC Documentation/DocBook/z8530book.xml
# DOCPROC Documentation/DocBook/device-drivers.xml
# DOCPROC Documentation/DocBook/kernel-hacking.xml
# DOCPROC Documentation/DocBook/kernel-locking.xml
# DOCPROC Documentation/DocBook/deviceiobook.xml
# make[1]: *** [Documentation/DocBook/Makefile:101: Documentation/DocBook/deviceiobook.xml] Error 255
# make[1]: *** Waiting for unfinished jobs....
# make[1]: *** [Documentation/DocBook/Makefile:101: Documentation/DocBook/z8530book.xml] Error 255
# make[1]: *** [Documentation/DocBook/Makefile:101: Documentation/DocBook/kernel-locking.xml] Error 255
# make[1]: *** [Documentation/DocBook/Makefile:101: Documentation/DocBook/device-drivers.xml] Error 255
# make: *** [Makefile:1390: mandocs] Error 2
# ==> ERROR: A failure occurred in build().
# Aborting...