Build of beep with android toolchain

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

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

SLOCLanguage
245 ansic
14 makefile
259 total

The process tree of the build process is here.

Several sub-process invocations were improper; see the process tree for details. Summary:

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: beep 1.3-3 (Tue Apr 4 21:12:44 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# gcc -Wall -o beep beep.c
# cc1: error: no include path in which to search for stdc-predef.h
# beep.c:19:19: error: no include path in which to search for fcntl.h
# #include
# ^
# beep.c:20:20: error: no include path in which to search for getopt.h
# #include
# ^
# beep.c:21:20: error: no include path in which to search for signal.h
# #include
# ^
# beep.c:22:19: error: no include path in which to search for stdio.h
# #include
# ^
# beep.c:23:20: error: no include path in which to search for stdlib.h
# #include
# ^
# beep.c:24:20: error: no include path in which to search for string.h
# #include
# ^
# beep.c:25:20: error: no include path in which to search for unistd.h
# #include
# ^
# beep.c:26:23: error: no include path in which to search for sys/ioctl.h
# #include
# ^
# beep.c:27:23: error: no include path in which to search for sys/types.h
# #include
# ^
# beep.c:28:22: error: no include path in which to search for linux/kd.h
# #include
# ^
# beep.c:29:25: error: no include path in which to search for linux/input.h
# #include
# ^
# beep.c:97:24: error: 'NULL' undeclared here (not in a function)
# char *console_device = NULL;
# ^
# beep.c: In function 'do_beep':
# beep.c:102:5: warning: implicit declaration of function 'ioctl' [-Wimplicit-function-declaration]
# if(ioctl(console_fd, KIOCSOUND, freq != 0
# ^
# beep.c:102:26: error: 'KIOCSOUND' undeclared (first use in this function)
# if(ioctl(console_fd, KIOCSOUND, freq != 0
# ^
# beep.c:102:26: note: each undeclared identifier is reported only once for each function it appears in
# beep.c:105:7: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
# printf("\a"); /* Output the only beep we can, in an effort to fall back on usefulness */
# ^
# beep.c:105:7: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# beep.c:106:7: warning: implicit declaration of function 'perror' [-Wimplicit-function-declaration]
# perror("ioctl");
# ^
# beep.c:110:25: error: storage size of 'e' isn't known
# struct input_event e;
# ^
# beep.c:112:15: error: 'EV_SND' undeclared (first use in this function)
# e.type = EV_SND;
# ^
# beep.c:113:15: error: 'SND_TONE' undeclared (first use in this function)
# e.code = SND_TONE;
# ^
# beep.c:116:6: warning: implicit declaration of function 'write' [-Wimplicit-function-declaration]
# write(console_fd, &e, sizeof(struct input_event));
# ^
# beep.c:116:35: error: invalid application of 'sizeof' to incomplete type 'struct input_event'
# write(console_fd, &e, sizeof(struct input_event));
# ^
# beep.c:110:25: warning: unused variable 'e' [-Wunused-variable]
# struct input_event e;
# ^
# beep.c: In function 'handle_signal':
# beep.c:126:5: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
# free(console_device);
# ^
# beep.c:126:5: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# beep.c:129:8: error: 'SIGINT' undeclared (first use in this function)
# case SIGINT:
# ^
# beep.c:133:7: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration]
# close(console_fd);
# ^
# beep.c:134:7: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
# exit(signum);
# ^
# beep.c:134:7: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# beep.c:137:7: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(signum);
# ^
# beep.c: In function 'usage_bail':
# beep.c:144:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf("Usage:\n%s [-f freq] [-l length] [-r reps] [-d delay] "
# ^
# beep.c:150:3: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(1);
# ^
# beep.c: In function 'parse_command_line':
# beep.c:177:17: error: array type has incomplete element type
# struct option opt_list[7] = {{"help", 0, NULL, 'h'},
# ^
# beep.c:184:3: warning: implicit declaration of function 'getopt_long' [-Wimplicit-function-declaration]
# while((c = getopt_long(argc, argv, "f:l:r:d:D:schvVne:", opt_list, NULL))
# ^
# beep.c:185:5: error: 'EOF' undeclared (first use in this function)
# != EOF) {
# ^
# beep.c:190:7: warning: implicit declaration of function 'sscanf' [-Wimplicit-function-declaration]
# if(!sscanf(optarg, "%f", &argfreq) || (argfreq >= 20000 /* ack! */) ||
# ^
# beep.c:190:11: warning: incompatible implicit declaration of built-in function 'sscanf' [enabled by default]
# if(!sscanf(optarg, "%f", &argfreq) || (argfreq >= 20000 /* ack! */) ||
# ^
# beep.c:190:18: error: 'optarg' undeclared (first use in this function)
# if(!sscanf(optarg, "%f", &argfreq) || (argfreq >= 20000 /* ack! */) ||
# ^
# beep.c:195:4: warning: implicit declaration of function 'fprintf' [-Wimplicit-function-declaration]
# fprintf(stderr, "WARNING: multiple -f values given, only last "
# ^
# beep.c:195:4: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# beep.c:195:12: error: 'stderr' undeclared (first use in this function)
# fprintf(stderr, "WARNING: multiple -f values given, only last "
# ^
# beep.c:235:7: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf("%s\n",VERSION_STRING);
# ^
# beep.c:236:7: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(0);
# ^
# beep.c:241:7: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
# result->next = (beep_parms_t *)malloc(sizeof(beep_parms_t));
# ^
# beep.c:241:38: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
# result->next = (beep_parms_t *)malloc(sizeof(beep_parms_t));
# ^
# beep.c:256:7: warning: implicit declaration of function 'strdup' [-Wimplicit-function-declaration]
# console_device = strdup(optarg);
# ^
# beep.c:256:24: warning: incompatible implicit declaration of built-in function 'strdup' [enabled by default]
# console_device = strdup(optarg);
# ^
# beep.c:177:17: warning: unused variable 'opt_list' [-Wunused-variable]
# struct option opt_list[7] = {{"help", 0, NULL, 'h'},
# ^
# beep.c: In function 'play_beep':
# beep.c:271:7: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr, "[DEBUG] %d times %d ms beeps (%d delay between, "
# ^
# beep.c:271:15: error: 'stderr' undeclared (first use in this function)
# fprintf(stderr, "[DEBUG] %d times %d ms beeps (%d delay between, "
# ^
# beep.c:277:5: warning: implicit declaration of function 'open' [-Wimplicit-function-declaration]
# console_fd = open(console_device, O_WRONLY);
# ^
# beep.c:277:39: error: 'O_WRONLY' undeclared (first use in this function)
# console_fd = open(console_device, O_WRONLY);
# ^
# beep.c:285:5: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf("\a"); /* Output the only beep we can, in an effort to fall back on usefulness */
# ^
# beep.c:287:5: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(1);
# ^
# beep.c:290:3: warning: implicit declaration of function 'EVIOCGSND' [-Wimplicit-function-declaration]
# if (ioctl(console_fd, EVIOCGSND(0)) != -1)
# ^
# beep.c:299:5: warning: implicit declaration of function 'usleep' [-Wimplicit-function-declaration]
# usleep(1000*parms.length); /* wait... */
# ^
# beep.c: In function 'main':
# beep.c:313:41: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
# beep_parms_t *parms = (beep_parms_t *)malloc(sizeof(beep_parms_t));
# ^
# beep.c:323:3: warning: implicit declaration of function 'signal' [-Wimplicit-function-declaration]
# signal(SIGINT, handle_signal);
# ^
# beep.c:323:10: error: 'SIGINT' undeclared (first use in this function)
# signal(SIGINT, handle_signal);
# ^
# beep.c:340:7: warning: implicit declaration of function 'setvbuf' [-Wimplicit-function-declaration]
# setvbuf(stdin, NULL, _IONBF, 0);
# ^
# beep.c:340:15: error: 'stdin' undeclared (first use in this function)
# setvbuf(stdin, NULL, _IONBF, 0);
# ^
# beep.c:340:28: error: '_IONBF' undeclared (first use in this function)
# setvbuf(stdin, NULL, _IONBF, 0);
# ^
# beep.c:341:15: error: 'stdout' undeclared (first use in this function)
# setvbuf(stdout, NULL, _IONBF, 0);
# ^
# beep.c:342:7: warning: implicit declaration of function 'fgets' [-Wimplicit-function-declaration]
# while(fgets(sin, 4096, stdin)) {
# ^
# beep.c:345:6: warning: implicit declaration of function 'putchar' [-Wimplicit-function-declaration]
# putchar(*ptr);
# ^
# beep.c:346:6: warning: implicit declaration of function 'fflush' [-Wimplicit-function-declaration]
# fflush(stdout);
# ^
# beep.c:350:4: warning: implicit declaration of function 'fputs' [-Wimplicit-function-declaration]
# fputs(sin, stdout);
# ^
# beep.c:359:5: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(parms);
# ^
# beep.c:364:5: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(console_device);
# ^
# beep.c:366:10: error: 'EXIT_SUCCESS' undeclared (first use in this function)
# return EXIT_SUCCESS;
# ^
# beep.c:367:1: warning: control reaches end of non-void function [-Wreturn-type]
# }
# ^
# make: *** [Makefile:14: beep] Error 1
# ==> ERROR: A failure occurred in build().
# Aborting...