Build of time with android toolchain

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

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

SLOCLanguage
1,395 ansic
232 sh
1,627 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...

Copied permanent toolchain into container-local sysroot
# /toolchain_root/arm-linux-androideabi --> /sysroot/arm-linux-androideabi
# /toolchain_root/COPYING3.LIB --> /sysroot/COPYING3.LIB
# /toolchain_root/sysroot --> /sysroot/sysroot
# /toolchain_root/COPYING.RUNTIME --> /sysroot/COPYING.RUNTIME
# /toolchain_root/lib --> /sysroot/lib
# /toolchain_root/SOURCES --> /sysroot/SOURCES
# /toolchain_root/lib64 --> /sysroot/lib64
# /toolchain_root/share --> /sysroot/share
# /toolchain_root/bin --> /sysroot/bin
# /toolchain_root/COPYING --> /sysroot/COPYING
# /toolchain_root/COPYING3 --> /sysroot/COPYING3
# /toolchain_root/COPYING.LIB --> /sysroot/COPYING.LIB
# /toolchain_root/include --> /sysroot/include
# /toolchain_root/libexec --> /sysroot/libexec

CMD: sudo -u tuscan PATH=/sysroot/bin:/sysroot/libexec/gcc/arm-linux-androideabi/4.8:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin CC=arm-linux-androideabi-gcc CXX=arm-linux-androideabi-g++ red makepkg --noextract --syncdeps --skipinteg --skippgpcheck --skipchecksums --noconfirm --nocolor --log --noprogressbar --nocheck
# ==> Making package: time 1.7-8 (Tue Apr 4 21:36:44 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# creating cache ./config.cache
# checking for gcc... arm-linux-androideabi-gcc
# checking whether we are using GNU C... yes
# checking how to run the C preprocessor... arm-linux-androideabi-gcc -E
# checking for a BSD compatible install... /usr/bin/install -c
# checking whether cross-compiling... yes
# checking for ANSI C header files... yes
# checking for sys/wait.h that is POSIX.1 compatible... yes
# checking for unistd.h... yes
# checking for string.h... yes
# checking for sys/rusage.h... no
# checking for working const... yes
# checking for pid_t... yes
# checking for size_t... yes
# checking return type of signal handlers... void
# checking for struct timeval in sys/time.h... yes
# checking for vprintf... yes
# checking for wait3 that fills in rusage... no
# checking for strerror... yes
# checking for getpagesize... yes
# updating cache ./config.cache
# creating ./config.status
# creating Makefile
# arm-linux-androideabi-gcc -c -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STRING_H=1 -DRETSIGTYPE=void -DHAVE_TIMEVAL=1 -DHAVE_VPRINTF=1 -DHAVE_STRERROR=1 -DHAVE_GETPAGESIZE=1 -I. -I. time.c
# arm-linux-androideabi-gcc -c -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STRING_H=1 -DRETSIGTYPE=void -DHAVE_TIMEVAL=1 -DHAVE_VPRINTF=1 -DHAVE_STRERROR=1 -DHAVE_GETPAGESIZE=1 -I. -I. getopt.c
# arm-linux-androideabi-gcc -c -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STRING_H=1 -DRETSIGTYPE=void -DHAVE_TIMEVAL=1 -DHAVE_VPRINTF=1 -DHAVE_STRERROR=1 -DHAVE_GETPAGESIZE=1 -I. -I. getopt1.c
# arm-linux-androideabi-gcc -c -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STRING_H=1 -DRETSIGTYPE=void -DHAVE_TIMEVAL=1 -DHAVE_VPRINTF=1 -DHAVE_STRERROR=1 -DHAVE_GETPAGESIZE=1 -I. -I. error.c
# getopt.c: In function '_getopt_initialize':
# getopt.c:358:24: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# nonoption_flags_len = strlen (nonoption_flags);
# ^
# getopt.c: In function '_getopt_internal':
# getopt.c:556:32: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# if (nameend - nextchar == strlen (p->name))
# ^
# getopt.c:580:16: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# nextchar += strlen (nextchar);
# ^
# getopt.c:610:17: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# nextchar += strlen (nextchar);
# ^
# getopt.c:626:17: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# nextchar += strlen (nextchar);
# ^
# getopt.c:631:16: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# nextchar += strlen (nextchar);
# ^
# In file included from time.c:34:0:
# resuse.h:43:8: error: redefinition of 'struct rusage'
# struct rusage
# ^
# In file included from /sysroot/sysroot/usr/include/sys/resource.h:35:0,
# from /sysroot/sysroot/usr/include/sys/wait.h:33,
# from wait.h:21,
# from time.c:24:
# /sysroot/sysroot/usr/include/linux/resource.h:29:8: note: originally defined here
# struct rusage {
# ^
# arm-linux-androideabi-gcc -c -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STRING_H=1 -DRETSIGTYPE=void -DHAVE_TIMEVAL=1 -DHAVE_VPRINTF=1 -DHAVE_STRERROR=1 -DHAVE_GETPAGESIZE=1 -I. -I. resuse.c
# make: *** [Makefile:130: time.o] Error 1
# make: *** Waiting for unfinished jobs....
# In file included from resuse.c:42:0:
# resuse.h:43:8: error: redefinition of 'struct rusage'
# struct rusage
# ^
# In file included from /sysroot/sysroot/usr/include/sys/resource.h:35:0,
# from /sysroot/sysroot/usr/include/sys/wait.h:33,
# from wait.h:21,
# from resuse.c:23:
# /sysroot/sysroot/usr/include/linux/resource.h:29:8: note: originally defined here
# struct rusage {
# ^
# make: *** [Makefile:130: resuse.o] Error 1
# ==> ERROR: A failure occurred in build().
# Aborting...

Printing config logfiles

CMD: config logfiles '/tmp/time/src/time-1.7/config.log'
# This file contains any messages produced by compilers while
# running configure, to aid debugging if configure makes a mistake.
#
# configure:627: arm-linux-androideabi-gcc -E conftest.c
# configure:685: arm-linux-androideabi-gcc -E conftest.c >/dev/null 2>conftest.out
# configure:812: arm-linux-androideabi-gcc -o conftest conftest.c 1>&5
# configure:838: arm-linux-androideabi-gcc -E conftest.c >/dev/null 2>conftest.out
# configure:944: arm-linux-androideabi-gcc -c conftest.c 1>&5
# configure:976: arm-linux-androideabi-gcc -E conftest.c >/dev/null 2>conftest.out
# configure:976: arm-linux-androideabi-gcc -E conftest.c >/dev/null 2>conftest.out
# configure:976: arm-linux-androideabi-gcc -E conftest.c >/dev/null 2>conftest.out
# configure:972:24: fatal error: sys/rusage.h: No such file or directory
# #include <$ac_hdr>
# ^
# compilation terminated.
# configure:1056: arm-linux-androideabi-gcc -c conftest.c 1>&5
# configure:1162: arm-linux-androideabi-gcc -c conftest.c 1>&5
# configure:1231: arm-linux-androideabi-gcc -o conftest conftest.c 1>&5
# configure:1214:6: warning: conflicting types for built-in function 'vprintf' [enabled by default]
# char vprintf();
# ^
# configure:1391: arm-linux-androideabi-gcc -o conftest conftest.c 1>&5
# configure:1424: arm-linux-androideabi-gcc -o conftest conftest.c 1>&5