Build of mtd-utils 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
31,661 ansic
521 sh
248 makefile
32,430 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: mtd-utils 1.5.2-1 (Wed Apr 5 00:25:34 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# make: Entering directory '/tmp/mtd-utils/src/mtd-utils-1.5.2'
# CHK include/version.h
# CC lib/libmtd.o
# CC ftl_format.o
# CC lib/libmtd_legacy.o
# CC lib/libcrc32.o
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# In file included from lib/libmtd_legacy.c:34:
# In file included from ./include/mtd/mtd-user.h:26:
# ./include/mtd/mtd-abi.h:23:10: fatal error: 'linux/types.h' file not found
# #include
# ^
# In file included from lib/libmtd.c:36:
# In file included from ./include/mtd/mtd-user.h:26:
# ./include/mtd/mtd-abi.h:23:10: fatal error: 'linux/types.h' file not found
# #include
# ^
# CC lib/libfec.o
# In file included from ftl_format.c:51:
# In file included from ./include/mtd/mtd-user.h:26:
# ./include/mtd/mtd-abi.h:23:10: fatal error: 'linux/types.h' file not found
# #include
# ^
# 1 error generated.
# clang-3.8: warning: -Wl,--gc-sections: 'linker' input unused
# make: *** [common.mk:83: /tmp/mtd-utils/src/mtd-utils-1.5.2/lib/libmtd_legacy.o] Error 1
# make: *** Waiting for unfinished jobs....
# 1 error generated.
# make: *** [common.mk:83: /tmp/mtd-utils/src/mtd-utils-1.5.2/ftl_format.o] Error 1
# 1 error generated.
# make: *** [common.mk:83: /tmp/mtd-utils/src/mtd-utils-1.5.2/lib/libmtd.o] Error 1
# make: Leaving directory '/tmp/mtd-utils/src/mtd-utils-1.5.2'
# ==> ERROR: A failure occurred in build().
# Aborting...