Build of wipe with musl toolchain

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

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

SLOCLanguage
2,495 sh
2,350 ansic
4,845 total

The process tree of the build process is here.

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: wipe 2.3.1-3 (Wed Apr 5 01:25:59 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# creating cache ./config.cache
# checking host system type... x86_64-unknown-linux-gnu
# checking target system type... x86_64-unknown-linux-gnu
# checking build system type... x86_64-unknown-linux-gnu
# checking for gcc... clang
# checking whether the C compiler (clang ) works... yes
# checking whether the C compiler (clang ) is a cross-compiler... yes
# checking whether we are using GNU C... yes
# checking whether clang accepts -g... yes
# checking for POSIXized ISC... no
# checking how to run the C preprocessor... clang -E
# checking whether clang needs -traditional... no
# checking for a BSD compatible install... /usr/bin/install -c
# checking whether the C compiler accepts -pipe... yes
# checking whether the C compiler accepts -g... yes
# checking whether the C compiler accepts -O0... yes
# checking whether the C compiler accepts -O2... yes
# checking whether the C compiler accepts -ansi... yes
# checking whether the C compiler accepts -pedantic... yes
# checking whether the C compiler accepts -Wall... yes
# checking whether the C compiler accepts -Werror... yes
# checking for dirent.h that defines DIR... yes
# checking for opendir in -ldir... no
# checking for ANSI C header files... yes
# checking for unistd.h... yes
# checking for stdint.h... yes
# checking for fcntl.h... yes
# checking for memory.h... yes
# checking for linux/fs.h... no
# checking for sys/mount.h... yes
# checking for sys/disklabel.h... no
# checking for sys/ioctl.h... yes
# checking for sys/file.h... yes
# checking for sys/stat.h... yes
# checking for sys/time.h... yes
# checking for sys/types.h... yes
# checking for getopt.h... yes
# checking for errno.h... yes
# checking for termio.h... no
# checking for termios.h... yes
# checking for linux/mtio.h... no
# checking for working const... yes
# checking for inline... __inline__
# checking for off_t... yes
# checking for size_t... yes
# checking whether stat file-mode macros are broken... no
# checking for unistd.h... (cached) yes
# checking for getpagesize... yes
# checking for working mmap... no
# checking for getopt... yes
# checking for strnlen... yes
# checking for bzero... yes
# checking for memset... yes
# checking for memcpy... yes
# checking for realloc... yes
# checking for fchmod... yes
# checking for ioctl... yes
# checking for fcntl... yes
# checking for lockf... yes
# checking for flock... yes
# checking for fsync... yes
# checking for fdatasync... yes
# checking for unlink... yes
# checking for rmdir... yes
# checking for remove... yes
# checking for rename... yes
# checking for dirfd... yes
# updating cache ./config.cache
# creating ./config.status
# creating Makefile
# creating config.h
# clang -pipe -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I. -DLINUX -c -o main.o main.c
# clang -pipe -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I. -DLINUX -c -o wipe.o wipe.c
# clang -pipe -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I. -DLINUX -c -o rand.o rand.c
# clang -pipe -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I. -DLINUX -c -o dir.o dir.c
# In file included from main.c:46:
# ./rand.h:31:9: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
# typedef u_int32_t u_rand_t;
# ^~~~~~~~~
# uint32_t
# /sysroot/include/bits/alltypes.h:172:25: note: 'uint32_t' declared here
# typedef unsigned int uint32_t;
# ^
# 1 error generated.
# make: *** [: main.o] Error 1
# make: *** Waiting for unfinished jobs....
# ==> ERROR: A failure occurred in build().
# Aborting...

Printing config logfiles

CMD: config logfiles '/tmp/wipe/src/wipe-2.3.1/config.log'
# This file contains any messages produced by compilers while
# running configure, to aid debugging if configure makes a mistake.
#
# configure:600: checking host system type
# configure:621: checking target system type
# configure:639: checking build system type
# configure:668: checking for gcc
# configure:781: checking whether the C compiler (clang ) works
# configure:797: clang -o conftest conftest.c 1>&5
# configure:794:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
# main(){return(0);}
# ^
# 1 warning generated.
# configure:823: checking whether the C compiler (clang ) is a cross-compiler
# configure:828: checking whether we are using GNU C
# configure:837: clang -E conftest.c
# configure:856: checking whether clang accepts -g
# configure:888: checking for POSIXized ISC
# configure:909: checking how to run the C preprocessor
# configure:930: clang -E conftest.c >/dev/null 2>conftest.out
# configure:990: checking whether clang needs -traditional
# configure:997:10: fatal error: 'sgtty.h' file not found
# #include
# ^
# 1 error generated.
# configure:1015:10: fatal error: 'termio.h' file not found
# #include
# ^
# 1 error generated.
# configure:1047: checking for a BSD compatible install
# configure:1101: checking whether the C compiler accepts -pipe
# configure:1111: clang -c -pipe conftest.c 1>&5
# configure:1123: checking whether the C compiler accepts -g
# configure:1133: clang -c -g conftest.c 1>&5
# configure:1145: checking whether the C compiler accepts -O0
# configure:1155: clang -c -O0 conftest.c 1>&5
# configure:1167: checking whether the C compiler accepts -O2
# configure:1177: clang -c -O2 conftest.c 1>&5
# configure:1189: checking whether the C compiler accepts -ansi
# configure:1199: clang -c -ansi conftest.c 1>&5
# configure:1211: checking whether the C compiler accepts -pedantic
# configure:1221: clang -c -pedantic conftest.c 1>&5
# configure:1233: checking whether the C compiler accepts -Wall
# configure:1243: clang -c -Wall conftest.c 1>&5
# configure:1255: checking whether the C compiler accepts -Werror
# configure:1265: clang -c -Werror conftest.c 1>&5
# configure:1322: checking for dirent.h that defines DIR
# configure:1335: clang -c -ansi -pedantic -D__USE_BSD -D_BSD_SOURCE -D__USE_POSIX -D_POSIX_SOURCE -D_POSIX_MAPPED_FILES conftest.c 1>&5
# configure:1360: checking for opendir in -ldir
# configure:1379: clang -o conftest -ansi -pedantic -D__USE_BSD -D_BSD_SOURCE -D__USE_POSIX -D_POSIX_SOURCE -D_POSIX_MAPPED_FILES conftest.c -ldir 1>&5
# /sysroot/bin/ld: error: cannot find -ldir
# clang-3.8: error: linker command failed with exit code 1 (use -v to see invocation)
# configure: failed program was:
# #line 1368 "configure"
# #include "confdefs.h"
# /* Override any gcc2 internal prototype to avoid an error. */
# /* We use char because int might match the return type of a gcc2
# builtin and then its argument prototype would still apply. */
# char opendir();
#
# int main() {
# opendir()
# ; return 0; }
# configure:1443: checking for ANSI C header files
# configure:1456: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1550: checking for unistd.h
# configure:1560: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1550: checking for stdint.h
# configure:1560: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1550: checking for fcntl.h
# configure:1560: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1550: checking for memory.h
# configure:1560: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1550: checking for linux/fs.h
# configure:1560: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1556:10: fatal error: 'linux/fs.h' file not found
# #include
# ^
# 1 error generated.
# configure: failed program was:
# #line 1555 "configure"
# #include "confdefs.h"
# #include
# configure:1550: checking for sys/mount.h
# configure:1560: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1550: checking for sys/disklabel.h
# configure:1560: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1556:10: fatal error: 'sys/disklabel.h' file not found
# #include
# ^
# 1 error generated.
# configure: failed program was:
# #line 1555 "configure"
# #include "confdefs.h"
# #include
# configure:1550: checking for sys/ioctl.h
# configure:1560: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1550: checking for sys/file.h
# configure:1560: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1550: checking for sys/stat.h
# configure:1560: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1550: checking for sys/time.h
# configure:1560: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1550: checking for sys/types.h
# configure:1560: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1550: checking for getopt.h
# configure:1560: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1550: checking for errno.h
# configure:1560: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1550: checking for termio.h
# configure:1560: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1556:10: fatal error: 'termio.h' file not found
# #include
# ^
# 1 error generated.
# configure: failed program was:
# #line 1555 "configure"
# #include "confdefs.h"
# #include
# configure:1550: checking for termios.h
# configure:1560: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1550: checking for linux/mtio.h
# configure:1560: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1556:10: fatal error: 'linux/mtio.h' file not found
# #include
# ^
# 1 error generated.
# configure: failed program was:
# #line 1555 "configure"
# #include "confdefs.h"
# #include
# configure:1588: checking for working const
# configure:1642: clang -c -ansi -pedantic -D__USE_BSD -D_BSD_SOURCE -D__USE_POSIX -D_POSIX_SOURCE -D_POSIX_MAPPED_FILES conftest.c 1>&5
# configure:1663: checking for inline
# configure:1677: clang -c -ansi -pedantic -D__USE_BSD -D_BSD_SOURCE -D__USE_POSIX -D_POSIX_SOURCE -D_POSIX_MAPPED_FILES conftest.c 1>&5
# configure:1673:3: error: unknown type name 'inline'
# } inline foo() {
# ^
# 1 error generated.
# configure: failed program was:
# #line 1670 "configure"
# #include "confdefs.h"
#
# int main() {
# } inline foo() {
# ; return 0; }
# configure:1677: clang -c -ansi -pedantic -D__USE_BSD -D_BSD_SOURCE -D__USE_POSIX -D_POSIX_SOURCE -D_POSIX_MAPPED_FILES conftest.c 1>&5
# configure:1703: checking for off_t
# configure:1736: checking for size_t
# configure:1769: checking whether stat file-mode macros are broken
# configure:1830: checking for unistd.h
# configure:1869: checking for getpagesize
# configure:1897: clang -o conftest -ansi -pedantic -D__USE_BSD -D_BSD_SOURCE -D__USE_POSIX -D_POSIX_SOURCE -D_POSIX_MAPPED_FILES conftest.c 1>&5
# configure:1922: checking for working mmap
# configure:2095: checking for getopt
# configure:2123: clang -o conftest -ansi -pedantic -D__USE_BSD -D_BSD_SOURCE -D__USE_POSIX -D_POSIX_SOURCE -D_POSIX_MAPPED_FILES conftest.c 1>&5
# configure:2095: checking for strnlen
# configure:2123: clang -o conftest -ansi -pedantic -D__USE_BSD -D_BSD_SOURCE -D__USE_POSIX -D_POSIX_SOURCE -D_POSIX_MAPPED_FILES conftest.c 1>&5
# configure:2095: checking for bzero
# configure:2123: clang -o conftest -ansi -pedantic -D__USE_BSD -D_BSD_SOURCE -D__USE_POSIX -D_POSIX_SOURCE -D_POSIX_MAPPED_FILES conftest.c 1>&5
# configure:2095: checking for memset
# configure:2123: clang -o conftest -ansi -pedantic -D__USE_BSD -D_BSD_SOURCE -D__USE_POSIX -D_POSIX_SOURCE -D_POSIX_MAPPED_FILES conftest.c 1>&5
# configure:2107:6: warning: incompatible redeclaration of library function 'memset' [-Wincompatible-library-redeclaration]
# char memset();
# ^
# configure:2107:6: note: 'memset' is a builtin with type 'void *(void *, int, unsigned long)'
# 1 warning generated.
# configure:2095: checking for memcpy
# configure:2123: clang -o conftest -ansi -pedantic -D__USE_BSD -D_BSD_SOURCE -D__USE_POSIX -D_POSIX_SOURCE -D_POSIX_MAPPED_FILES conftest.c 1>&5
# configure:2107:6: warning: incompatible redeclaration of library function 'memcpy' [-Wincompatible-library-redeclaration]
# char memcpy();
# ^
# configure:2107:6: note: 'memcpy' is a builtin with type 'void *(void *, const void *, unsigned long)'
# 1 warning generated.
# configure:2095: checking for realloc
# configure:2123: clang -o conftest -ansi -pedantic -D__USE_BSD -D_BSD_SOURCE -D__USE_POSIX -D_POSIX_SOURCE -D_POSIX_MAPPED_FILES conftest.c 1>&5
# configure:2107:6: warning: incompatible redeclaration of library function 'realloc' [-Wincompatible-library-redeclaration]
# char realloc();
# ^
# configure:2107:6: note: 'realloc' is a builtin with type 'void *(void *, unsigned long)'
# 1 warning generated.
# configure:2095: checking for fchmod
# configure:2123: clang -o conftest -ansi -pedantic -D__USE_BSD -D_BSD_SOURCE -D__USE_POSIX -D_POSIX_SOURCE -D_POSIX_MAPPED_FILES conftest.c 1>&5
# configure:2095: checking for ioctl
# configure:2123: clang -o conftest -ansi -pedantic -D__USE_BSD -D_BSD_SOURCE -D__USE_POSIX -D_POSIX_SOURCE -D_POSIX_MAPPED_FILES conftest.c 1>&5
# configure:2095: checking for fcntl
# configure:2123: clang -o conftest -ansi -pedantic -D__USE_BSD -D_BSD_SOURCE -D__USE_POSIX -D_POSIX_SOURCE -D_POSIX_MAPPED_FILES conftest.c 1>&5
# configure:2095: checking for lockf
# configure:2123: clang -o conftest -ansi -pedantic -D__USE_BSD -D_BSD_SOURCE -D__USE_POSIX -D_POSIX_SOURCE -D_POSIX_MAPPED_FILES conftest.c 1>&5
# configure:2095: checking for flock
# configure:2123: clang -o conftest -ansi -pedantic -D__USE_BSD -D_BSD_SOURCE -D__USE_POSIX -D_POSIX_SOURCE -D_POSIX_MAPPED_FILES conftest.c 1>&5
# configure:2095: checking for fsync
# configure:2123: clang -o conftest -ansi -pedantic -D__USE_BSD -D_BSD_SOURCE -D__USE_POSIX -D_POSIX_SOURCE -D_POSIX_MAPPED_FILES conftest.c 1>&5
# configure:2095: checking for fdatasync
# configure:2123: clang -o conftest -ansi -pedantic -D__USE_BSD -D_BSD_SOURCE -D__USE_POSIX -D_POSIX_SOURCE -D_POSIX_MAPPED_FILES conftest.c 1>&5
# configure:2095: checking for unlink
# configure:2123: clang -o conftest -ansi -pedantic -D__USE_BSD -D_BSD_SOURCE -D__USE_POSIX -D_POSIX_SOURCE -D_POSIX_MAPPED_FILES conftest.c 1>&5
# configure:2095: checking for rmdir
# configure:2123: clang -o conftest -ansi -pedantic -D__USE_BSD -D_BSD_SOURCE -D__USE_POSIX -D_POSIX_SOURCE -D_POSIX_MAPPED_FILES conftest.c 1>&5
# configure:2095: checking for remove
# configure:2123: clang -o conftest -ansi -pedantic -D__USE_BSD -D_BSD_SOURCE -D__USE_POSIX -D_POSIX_SOURCE -D_POSIX_MAPPED_FILES conftest.c 1>&5
# configure:2095: checking for rename
# configure:2123: clang -o conftest -ansi -pedantic -D__USE_BSD -D_BSD_SOURCE -D__USE_POSIX -D_POSIX_SOURCE -D_POSIX_MAPPED_FILES conftest.c 1>&5
# configure:2095: checking for dirfd
# configure:2123: clang -o conftest -ansi -pedantic -D__USE_BSD -D_BSD_SOURCE -D__USE_POSIX -D_POSIX_SOURCE -D_POSIX_MAPPED_FILES conftest.c 1>&5