Build of squashfs-tools with musl toolchain

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

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

SLOCLanguage
16,306 ansic
141 makefile
16,447 total

The process tree of the build process is here.

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: squashfs-tools 4.3-4 (Wed Apr 5 00:25:43 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# clang -I. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -DCOMP_DEFAULT=\"gzip\" -Wall -DGZIP_SUPPORT -DLZMA_SUPPORT -DXZ_SUPPORT -DLZO_SUPPORT -DLZ4_SUPPORT -DXATTR_SUPPORT -DXATTR_DEFAULT -c -o mksquashfs.o mksquashfs.c
# clang -I. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -DCOMP_DEFAULT=\"gzip\" -Wall -DGZIP_SUPPORT -DLZMA_SUPPORT -DXZ_SUPPORT -DLZO_SUPPORT -DLZ4_SUPPORT -DXATTR_SUPPORT -DXATTR_DEFAULT -c -o read_fs.o read_fs.c
# clang -I. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -DCOMP_DEFAULT=\"gzip\" -Wall -DGZIP_SUPPORT -DLZMA_SUPPORT -DXZ_SUPPORT -DLZO_SUPPORT -DLZ4_SUPPORT -DXATTR_SUPPORT -DXATTR_DEFAULT -c -o action.o action.c
# clang -I. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -DCOMP_DEFAULT=\"gzip\" -Wall -DGZIP_SUPPORT -DLZMA_SUPPORT -DXZ_SUPPORT -DLZO_SUPPORT -DLZ4_SUPPORT -DXATTR_SUPPORT -DXATTR_DEFAULT -c -o swap.o swap.c
# clang -I. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -DCOMP_DEFAULT=\"gzip\" -Wall -DGZIP_SUPPORT -DLZMA_SUPPORT -DXZ_SUPPORT -DLZO_SUPPORT -DLZ4_SUPPORT -DXATTR_SUPPORT -DXATTR_DEFAULT -c -o pseudo.o pseudo.c
# pseudo.c:435:11: error: use of undeclared identifier 'S_IFBLK'
# mode |= S_IFBLK;
# ^
# pseudo.c:438:11: error: use of undeclared identifier 'S_IFCHR'
# mode |= S_IFCHR;
# ^
# pseudo.c:441:11: error: use of undeclared identifier 'S_IFDIR'
# mode |= S_IFDIR;
# ^
# pseudo.c:444:11: error: use of undeclared identifier 'S_IFREG'
# mode |= S_IFREG;
# ^
# 4 errors generated.
# clang -I. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -DCOMP_DEFAULT=\"gzip\" -Wall -DGZIP_SUPPORT -DLZMA_SUPPORT -DXZ_SUPPORT -DLZO_SUPPORT -DLZ4_SUPPORT -DXATTR_SUPPORT -DXATTR_DEFAULT -c -o compressor.o compressor.c
# make: *** [: pseudo.o] Error 1
# make: *** Waiting for unfinished jobs....
# action.c:1911:29: error: use of undeclared identifier 'FNM_EXTMATCH'
# FNM_PATHNAME|FNM_PERIOD|FNM_EXTMATCH) == 0;)
# ^
# action.c:1915:29: error: use of undeclared identifier 'FNM_EXTMATCH'
# FNM_PATHNAME|FNM_PERIOD|FNM_EXTMATCH) == 0;)
# ^
# action.c:1958:27: error: use of undeclared identifier 'FNM_EXTMATCH'
# FNM_PATHNAME|FNM_PERIOD|FNM_EXTMATCH) == 0;
# ^
# 3 errors generated.
# make: *** [: action.o] Error 1
# mksquashfs.c:4404:29: error: use of undeclared identifier 'FNM_EXTMATCH'
# FNM_PATHNAME|FNM_PERIOD|FNM_EXTMATCH) == 0;
# ^
# 1 error generated.
# make: *** [: mksquashfs.o] Error 1
# ==> ERROR: A failure occurred in build().
# Aborting...