Build of sloccount with android toolchain

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

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

SLOCLanguage
2,851 perl
610 ansic
559 sh
171 lex
143 makefile
110 ruby
32 haskell
27 cobol
22 php
10 pascal
6 f90
6 fortran
5 cs
4,552 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: sloccount 2.26-7 (Tue Apr 4 21:10:44 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Entering fakeroot environment...
# ==> Starting package()...
# gcc -Wall c_count.c -o c_count
# gcc -Wall lexcount1.c -o lexcount1
# flex -Cfe -t pascal_count.l > pascal_count.c
# gcc -Wall php_count.c -o php_count
# cc1: error: no include path in which to search for stdc-predef.h
# php_count.c:34:19: error: no include path in which to search for stdio.h
# #include
# ^
# php_count.c:35:20: error: no include path in which to search for string.h
# #include
# ^
# php_count.c:36:19: error: no include path in which to search for ctype.h
# #include
# ^
# php_count.c:37:20: error: no include path in which to search for stdlib.h
# #include
# ^
# php_count.c:74:22: error: unknown type name 'FILE'
# void read_input_line(FILE *stream) {
# ^
# php_count.c:92:17: error: unknown type name 'FILE'
# void init_input(FILE *stream) {
# ^
# php_count.c:99:19: error: unknown type name 'FILE'
# void consume_char(FILE *stream) {
# ^
# php_count.c:106:34: error: unknown type name 'FILE'
# int match_consume(const char *m, FILE *stream) {
# ^
# php_count.c:119:18: error: unknown type name 'FILE'
# int current_char(FILE *stream) {
# ^
# php_count.c:124:20: error: unknown type name 'FILE'
# char *rest_of_line(FILE *stream) {
# ^
# php_count.c: In function 'strstrip':
# php_count.c:140:2: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
# for (p= s + strlen(s) - 1; p >= s && isspace(*p); p--) {
# ^
# php_count.c:140:14: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# for (p= s + strlen(s) - 1; p >= s && isspace(*p); p--) {
# ^
# php_count.c:140:2: warning: implicit declaration of function 'isspace' [-Wimplicit-function-declaration]
# for (p= s + strlen(s) - 1; p >= s && isspace(*p); p--) {
# ^
# php_count.c: At top level:
# php_count.c:147:33: error: unknown type name 'FILE'
# long sloc_count(char *filename, FILE *stream) {
# ^
# php_count.c: In function 'count_file':
# php_count.c:270:3: error: unknown type name 'FILE'
# FILE *stream;
# ^
# php_count.c:272:3: warning: implicit declaration of function 'fopen' [-Wimplicit-function-declaration]
# stream = fopen(filename, "r");
# ^
# php_count.c:272:10: warning: assignment makes pointer from integer without a cast [enabled by default]
# stream = fopen(filename, "r");
# ^
# php_count.c:274:3: warning: implicit declaration of function 'init_input' [-Wimplicit-function-declaration]
# init_input(stream);
# ^
# php_count.c:275:3: warning: implicit declaration of function 'sloc_count' [-Wimplicit-function-declaration]
# sloc = sloc_count(filename, stream);
# ^
# php_count.c:276:3: warning: implicit declaration of function 'fclose' [-Wimplicit-function-declaration]
# fclose (stream);
# ^
# php_count.c:278:3: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
# printf("%ld %s\n", sloc, filename);
# ^
# php_count.c:278:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# php_count.c: At top level:
# php_count.c:281:19: error: unknown type name 'FILE'
# char *read_a_line(FILE *file) {
# ^
# php_count.c: In function 'main':
# php_count.c:305:2: error: unknown type name 'FILE'
# FILE *file_list;
# ^
# php_count.c:312:15: error: 'stdin' undeclared (first use in this function)
# init_input(stdin);
# ^
# php_count.c:312:15: note: each undeclared identifier is reported only once for each function it appears in
# php_count.c:314:4: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf("%ld %s\n", sloc, "-");
# ^
# php_count.c:316:2: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
# } else if ((argc == 3) && (!strcmp(argv[1], "-f"))) {
# ^
# php_count.c:320:16: warning: assignment makes pointer from integer without a cast [enabled by default]
# file_list = fopen(argv[2], "r");
# ^
# php_count.c:323:6: warning: implicit declaration of function 'read_a_line' [-Wimplicit-function-declaration]
# while ((s = read_a_line(file_list))) {
# ^
# php_count.c:323:16: warning: assignment makes pointer from integer without a cast [enabled by default]
# while ((s = read_a_line(file_list))) {
# ^
# php_count.c:325:8: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
# free(s);
# ^
# php_count.c:325:8: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# php_count.c:331:2: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf("Total:\n");
# ^
# php_count.c:333:2: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
# exit(0);
# ^
# php_count.c:333:2: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# php_count.c: At top level:
# php_count.c:67:13: warning: 'current_line' defined but not used [-Wunused-variable]
# static char current_line[LONGEST_LINE];
# ^
# php_count.c:68:14: warning: 'clocation' defined but not used [-Wunused-variable]
# static char *clocation; /* points into current_line */
# ^
# php_count.c:69:13: warning: 'sloc' defined but not used [-Wunused-variable]
# static long sloc = 0;
# ^
# php_count.c:70:12: warning: 'sawchar' defined but not used [-Wunused-variable]
# static int sawchar = 0; /* Did you see a character on this line? */
# ^
# php_count.c:71:12: warning: 'beginning_of_line' defined but not used [-Wunused-variable]
# static int beginning_of_line = 0;
# ^
# php_count.c:72:12: warning: 'is_input_eof' defined but not used [-Wunused-variable]
# static int is_input_eof;
# ^
# cc1: error: no include path in which to search for stdc-predef.h
# c_count.c:33:19: error: no include path in which to search for stdio.h
# #include
# ^
# c_count.c:34:20: error: no include path in which to search for string.h
# #include
# ^
# c_count.c:35:19: error: no include path in which to search for ctype.h
# #include
# ^
# c_count.c:36:20: error: no include path in which to search for stdlib.h
# #include
# ^
# c_count.c:59:10: error: unknown type name 'FILE'
# int peek(FILE *stream) {
# ^
# c_count.c:65:19: error: unknown type name 'FILE'
# int ispeek(int c, FILE *stream) {
# ^
# c_count.c:72:14: error: unknown type name 'FILE'
# int getachar(FILE *stream) {
# ^
# c_count.c:85:33: error: unknown type name 'FILE'
# long sloc_count(char *filename, FILE *stream) {
# ^
# c_count.c: In function 'count_file':
# c_count.c:162:3: error: unknown type name 'FILE'
# FILE *stream;
# ^
# c_count.c:164:3: warning: implicit declaration of function 'fopen' [-Wimplicit-function-declaration]
# stream = fopen(filename, "r");
# ^
# c_count.c:164:10: warning: assignment makes pointer from integer without a cast [enabled by default]
# stream = fopen(filename, "r");
# ^
# c_count.c:166:3: warning: implicit declaration of function 'sloc_count' [-Wimplicit-function-declaration]
# sloc = sloc_count(filename, stream);
# ^
# c_count.c:168:3: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
# printf("%ld %s\n", sloc, filename);
# ^
# c_count.c:168:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# c_count.c:169:3: warning: implicit declaration of function 'fclose' [-Wimplicit-function-declaration]
# fclose(stream);
# ^
# c_count.c: At top level:
# c_count.c:172:19: error: unknown type name 'FILE'
# char *read_a_line(FILE *file) {
# ^
# c_count.c: In function 'main':
# c_count.c:196:2: error: unknown type name 'FILE'
# FILE *file_list;
# ^
# c_count.c:203:27: error: 'stdin' undeclared (first use in this function)
# sloc = sloc_count("-", stdin);
# ^
# c_count.c:203:27: note: each undeclared identifier is reported only once for each function it appears in
# c_count.c:204:4: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf("%ld %s\n", sloc, "-");
# ^
# c_count.c:206:2: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
# } else if ((argc == 3) && (!strcmp(argv[1], "-f"))) {
# ^
# make: *** [makefile:137: php_count] Error 1
# make: *** Waiting for unfinished jobs....
# c_count.c:210:16: warning: assignment makes pointer from integer without a cast [enabled by default]
# file_list = fopen(argv[2], "r");
# ^
# c_count.c:213:6: warning: implicit declaration of function 'read_a_line' [-Wimplicit-function-declaration]
# while ((s = read_a_line(file_list))) {
# ^
# c_count.c:213:16: warning: assignment makes pointer from integer without a cast [enabled by default]
# while ((s = read_a_line(file_list))) {
# ^
# c_count.c:215:8: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
# free(s);
# ^
# c_count.c:215:8: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# c_count.c:221:2: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf("Total:\n");
# ^
# cc1: error: no include path in which to search for stdc-predef.h
# c_count.c: At top level:
# c_count.c:57:16: warning: 'warn_embedded_newlines' defined but not used [-Wunused-variable]
# static BOOLEAN warn_embedded_newlines = FALSE;
# ^
# lexcount1.c:29:19: error: no include path in which to search for stdio.h
# #include
# ^
# lexcount1.c:30:19: error: no include path in which to search for ctype.h
# #include
# ^
# lexcount1.c: In function 'peek':
# lexcount1.c:33:2: warning: implicit declaration of function 'getchar' [-Wimplicit-function-declaration]
# int c = getchar();
# ^
# lexcount1.c:34:2: warning: implicit declaration of function 'ungetc' [-Wimplicit-function-declaration]
# ungetc(c, stdin);
# ^
# lexcount1.c:34:12: error: 'stdin' undeclared (first use in this function)
# ungetc(c, stdin);
# ^
# lexcount1.c:34:12: note: each undeclared identifier is reported only once for each function it appears in
# lexcount1.c: In function 'main':
# lexcount1.c:44:29: error: 'EOF' undeclared (first use in this function)
# while ( (c = getchar()) != EOF) {
# ^
# lexcount1.c:47:7: warning: implicit declaration of function 'isspace' [-Wimplicit-function-declaration]
# else if (!isspace(c)) {nonspace = 1;}
# ^
# lexcount1.c:55:2: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
# printf("%ld\n", sloc);
# ^
# lexcount1.c:55:2: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# make: *** [makefile:134: c_count] Error 1
# make: *** [makefile:131: lexcount1] Error 1
# flex: error writing output file
# make: *** [makefile:140: pascal_count.c] Error 1
# ==> ERROR: A failure occurred in package().
# Aborting...