Build of datemath with android toolchain

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

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

SLOCLanguage
440 ansic
241 lex
181 yacc
21 makefile
883 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...

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: datemath 2.0.10-5 (Tue Apr 4 19:39:37 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# File ./util.c is read-only; trying to patch anyway
# patching file ./util.c
# gcc -W -Wall -pedantic -c -o datemath.o datemath.c
# bison --defines --output=gram.c gram.y
# gcc -W -Wall -pedantic -c -o util.o util.c
# flex -t lex.l > lex.c
# cc1: error: no include path in which to search for stdc-predef.h
# datemath.c:110:19: error: no include path in which to search for stdio.h
# #include
# ^
# datemath.c:111:20: error: no include path in which to search for stdlib.h
# #include
# ^
# datemath.c:112:20: error: no include path in which to search for unistd.h
# #include
# ^
# datemath.c:113:20: error: no include path in which to search for string.h
# #include
# ^
# datemath.c:114:20: error: no include path in which to search for malloc.h
# #include
# ^
# datemath.c:120:24: error: 'NULL' undeclared here (not in a function)
# const char *ProgName = NULL;
# ^
# datemath.c: In function 'main':
# datemath.c:135:2: warning: implicit declaration of function 'setbuf' [-Wimplicit-function-declaration]
# setbuf(stdout, (char *)0);
# ^
# datemath.c:135:9: error: 'stdout' undeclared (first use in this function)
# setbuf(stdout, (char *)0);
# ^
# datemath.c:135:9: note: each undeclared identifier is reported only once for each function it appears in
# datemath.c:137:2: warning: implicit declaration of function 'getopt' [-Wimplicit-function-declaration]
# while ( (c = getopt(argc, argv, "VL9:24C")) != EOF )
# ^
# datemath.c:137:49: error: 'EOF' undeclared (first use in this function)
# while ( (c = getopt(argc, argv, "VL9:24C")) != EOF )
# ^
# datemath.c:157:4: warning: implicit declaration of function 'atoi' [-Wimplicit-function-declaration]
# century19_year = atoi(optarg);
# ^
# datemath.c:157:26: error: 'optarg' undeclared (first use in this function)
# century19_year = atoi(optarg);
# ^
# datemath.c:165:4: warning: implicit declaration of function 'fprintf' [-Wimplicit-function-declaration]
# fprintf(stderr, "%s\n", Version);
# ^
# datemath.c:165:4: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# datemath.c:165:12: error: 'stderr' undeclared (first use in this function)
# fprintf(stderr, "%s\n", Version);
# ^
# datemath.c:166:4: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
# exit(EXIT_SUCCESS);
# ^
# datemath.c:166:4: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# datemath.c:178:11: error: 'optind' undeclared (first use in this function)
# for (i = optind; i < argc; i++ )
# ^
# datemath.c:180:3: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
# len += strlen(argv[i]) + 1;
# ^
# datemath.c:180:10: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# len += strlen(argv[i]) + 1;
# ^
# datemath.c:185:3: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr, "ERROR: missing datemath expression\n");
# ^
# datemath.c:192:2: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
# if ( (exprbuf = malloc(len)) == 0 )
# ^
# datemath.c:192:18: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
# if ( (exprbuf = malloc(len)) == 0 )
# ^
# datemath.c:197:3: warning: implicit declaration of function 'strcat' [-Wimplicit-function-declaration]
# strcat(exprbuf, argv[optind++]);
# ^
# datemath.c:197:3: warning: incompatible implicit declaration of built-in function 'strcat' [enabled by default]
# datemath.c:208:4: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
# printf("got token %d [%s]\n", tok, yytext);
# ^
# datemath.c:208:4: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# datemath.c:210:3: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(EXIT_SUCCESS);
# ^
# datemath.c:215:3: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit( yyparse() == 0 ? EXIT_SUCCESS : EXIT_FAILURE);
# ^
# datemath.c: In function 'usage':
# datemath.c:246:2: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr, "%s\n\n", Version);
# ^
# datemath.c:246:10: error: 'stderr' undeclared (first use in this function)
# fprintf(stderr, "%s\n\n", Version);
# ^
# datemath.c:254:2: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(EXIT_FAILURE);
# ^
# make: *** [: datemath.o] Error 1
# make: *** Waiting for unfinished jobs....
# cc1: error: no include path in which to search for stdc-predef.h
# util.c:12:19: error: no include path in which to search for stdio.h
# #include
# ^
# util.c:13:20: error: no include path in which to search for assert.h
# #include
# ^
# util.c:14:20: error: no include path in which to search for stdarg.h
# #include
# ^
# util.c:15:20: error: no include path in which to search for stdlib.h
# #include
# ^
# util.c:16:20: error: no include path in which to search for string.h
# #include
# ^
# util.c:17:19: error: no include path in which to search for ctype.h
# #include
# ^
# util.c: In function 'die':
# util.c:109:1: error: unknown type name 'va_list'
# va_list args;
# ^
# util.c:111:2: warning: implicit declaration of function 'va_start' [-Wimplicit-function-declaration]
# va_start(args, format);
# ^
# util.c:114:3: warning: implicit declaration of function 'fprintf' [-Wimplicit-function-declaration]
# (void)fprintf(stderr, "%s: ", ProgName);
# ^
# util.c:114:9: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# (void)fprintf(stderr, "%s: ", ProgName);
# ^
# util.c:114:17: error: 'stderr' undeclared (first use in this function)
# (void)fprintf(stderr, "%s: ", ProgName);
# ^
# util.c:114:17: note: each undeclared identifier is reported only once for each function it appears in
# util.c:116:2: warning: implicit declaration of function 'vfprintf' [-Wimplicit-function-declaration]
# vfprintf(stderr, format, args);
# ^
# util.c:117:2: warning: implicit declaration of function 'fputc' [-Wimplicit-function-declaration]
# fputc('\n', stderr);
# ^
# util.c:119:2: warning: implicit declaration of function 'va_end' [-Wimplicit-function-declaration]
# va_end(args);
# ^
# util.c:121:2: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
# exit(EXIT_FAILURE);
# ^
# util.c:121:2: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# util.c: In function 'strlower':
# util.c:194:2: warning: implicit declaration of function 'assert' [-Wimplicit-function-declaration]
# assert(s != 0);
# ^
# util.c:198:3: warning: implicit declaration of function 'isupper' [-Wimplicit-function-declaration]
# if (isupper(*s))
# ^
# util.c:199:4: warning: implicit declaration of function 'tolower' [-Wimplicit-function-declaration]
# *s = tolower(*s);
# ^
# make: *** [: util.o] Error 1
# flex: error writing output file
# make: *** [: lex.c] Error 1
# make: *** [Makefile:34: gram.c] Segmentation fault (core dumped)
# rm lex.c
# ==> ERROR: A failure occurred in build().
# Aborting...