Build of vlan with android toolchain

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

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

SLOCLanguage
665 ansic
252 perl
208 sh
22 makefile
1,147 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: vlan 1.9-3 (Tue Apr 4 20:49:18 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# rm -f *.o
#
# Making vconfig.c
# gcc -g -D_GNU_SOURCE -Wall -I/home/tuscan/linux/include -c vconfig.c
# cc1: error: no include path in which to search for stdc-predef.h
# vconfig.c:22:19: error: no include path in which to search for errno.h
# #include
# ^
# vconfig.c:23:19: error: no include path in which to search for stdio.h
# #include
# ^
# vconfig.c:24:20: error: no include path in which to search for stdlib.h
# #include
# ^
# vconfig.c:25:20: error: no include path in which to search for unistd.h
# #include
# ^
# vconfig.c:26:19: error: no include path in which to search for fcntl.h
# #include
# ^
# vconfig.c:27:21: error: no include path in which to search for strings.h
# #include
# ^
# vconfig.c:28:23: error: no include path in which to search for sys/ioctl.h
# #include
# ^
# vconfig.c:29:27: error: no include path in which to search for linux/if_vlan.h
# #include
# ^
# vconfig.c:30:27: error: no include path in which to search for linux/sockios.h
# #include
# ^
# vconfig.c:31:20: error: no include path in which to search for string.h
# #include
# ^
# vconfig.c:32:24: error: no include path in which to search for sys/socket.h
# #include
# ^
# vconfig.c:33:23: error: no include path in which to search for sys/types.h
# #include
# ^
# vconfig.c: In function 'show_usage':
# vconfig.c:66:4: warning: implicit declaration of function 'fprintf' [-Wimplicit-function-declaration]
# fprintf(stdout,usage);
# ^
# vconfig.c:66:4: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# vconfig.c:66:12: error: 'stdout' undeclared (first use in this function)
# fprintf(stdout,usage);
# ^
# vconfig.c:66:12: note: each undeclared identifier is reported only once for each function it appears in
# vconfig.c: In function 'hex_to_bytes':
# vconfig.c:77:4: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
# hlen = strlen(hex_str);
# ^
# vconfig.c:77:11: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# hlen = strlen(hex_str);
# ^
# vconfig.c:90:7: warning: implicit declaration of function 'strtoul' [-Wimplicit-function-declaration]
# bytes[j++] = (char)strtoul(hex, &stop, 16);
# ^
# vconfig.c: In function 'main':
# vconfig.c:98:27: error: storage size of 'if_request' isn't known
# struct vlan_ioctl_args if_request;
# ^
# vconfig.c:100:16: error: 'NULL' undeclared (first use in this function)
# char* cmd = NULL;
# ^
# vconfig.c:105:27: error: 'VLAN_NAME_TYPE_PLUS_VID' undeclared (first use in this function)
# unsigned int nm_type = VLAN_NAME_TYPE_PLUS_VID;
# ^
# vconfig.c:109:4: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
# memset(&if_request, 0, sizeof(struct vlan_ioctl_args));
# ^
# vconfig.c:109:4: warning: incompatible implicit declaration of built-in function 'memset' [enabled by default]
# vconfig.c:109:34: error: invalid application of 'sizeof' to incomplete type 'struct vlan_ioctl_args'
# memset(&if_request, 0, sizeof(struct vlan_ioctl_args));
# ^
# vconfig.c:112:7: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stdout,"Expecting argc to be 3-5, inclusive. Was: %d\n",argc);
# ^
# vconfig.c:112:15: error: 'stdout' undeclared (first use in this function)
# fprintf(stdout,"Expecting argc to be 3-5, inclusive. Was: %d\n",argc);
# ^
# vconfig.c:115:7: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
# exit(1);
# ^
# vconfig.c:115:7: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# vconfig.c:120:7: warning: implicit declaration of function 'strcasecmp' [-Wimplicit-function-declaration]
# if (strcasecmp(cmd, "set_name_type") == 0) {
# ^
# vconfig.c:125:23: error: 'VLAN_NAME_TYPE_PLUS_VID_NO_PAD' undeclared (first use in this function)
# nm_type = VLAN_NAME_TYPE_PLUS_VID_NO_PAD;
# ^
# vconfig.c:128:23: error: 'VLAN_NAME_TYPE_RAW_PLUS_VID' undeclared (first use in this function)
# nm_type = VLAN_NAME_TYPE_RAW_PLUS_VID;
# ^
# vconfig.c:131:23: error: 'VLAN_NAME_TYPE_RAW_PLUS_VID_NO_PAD' undeclared (first use in this function)
# nm_type = VLAN_NAME_TYPE_RAW_PLUS_VID_NO_PAD;
# ^
# vconfig.c:136:13: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr,"Invalid name type.\n");
# ^
# vconfig.c:136:21: error: 'stderr' undeclared (first use in this function)
# fprintf(stderr,"Invalid name type.\n");
# ^
# vconfig.c:139:13: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(1);
# ^
# vconfig.c:145:14: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# if (strlen(if_name) > 15) {
# ^
# vconfig.c:148:13: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr,"ERROR: if_name must be 15 characters or less.\n");
# ^
# vconfig.c:149:13: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(1);
# ^
# vconfig.c:151:10: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration]
# strcpy(if_request.device1, if_name);
# ^
# vconfig.c:151:10: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
# vconfig.c:155:10: warning: implicit declaration of function 'atoi' [-Wimplicit-function-declaration]
# vid = atoi(argv[3]);
# ^
# vconfig.c:168:4: warning: implicit declaration of function 'open' [-Wimplicit-function-declaration]
# if ((fd = open(conf_file_name, O_RDONLY)) < 0) {
# ^
# vconfig.c:168:35: error: 'O_RDONLY' undeclared (first use in this function)
# if ((fd = open(conf_file_name, O_RDONLY)) < 0) {
# ^
# vconfig.c:171:7: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr,"WARNING: Could not open /proc/net/vlan/config. Maybe you need to load the 8021q module, or maybe you are not using PROCFS??\n");
# ^
# vconfig.c:175:7: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration]
# close(fd);
# ^
# vconfig.c:179:4: warning: implicit declaration of function 'socket' [-Wimplicit-function-declaration]
# if ((fd = socket(AF_INET, SOCK_STREAM, 0)) < 0) {
# ^
# vconfig.c:179:21: error: 'AF_INET' undeclared (first use in this function)
# if ((fd = socket(AF_INET, SOCK_STREAM, 0)) < 0) {
# ^
# vconfig.c:179:30: error: 'SOCK_STREAM' undeclared (first use in this function)
# if ((fd = socket(AF_INET, SOCK_STREAM, 0)) < 0) {
# ^
# vconfig.c:180:7: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr, "FATAL: Couldn't open a socket..go figure!\n");
# ^
# vconfig.c:181:7: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(2);
# ^
# vconfig.c:186:24: error: 'ADD_VLAN_CMD' undeclared (first use in this function)
# if_request.cmd = ADD_VLAN_CMD;
# ^
# vconfig.c:187:7: warning: implicit declaration of function 'ioctl' [-Wimplicit-function-declaration]
# if (ioctl(fd, SIOCSIFVLAN, &if_request) < 0) {
# ^
# vconfig.c:187:21: error: 'SIOCSIFVLAN' undeclared (first use in this function)
# if (ioctl(fd, SIOCSIFVLAN, &if_request) < 0) {
# ^
# vconfig.c:188:10: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr,"ERROR: trying to add VLAN #%u to IF -:%s:- error: %s\n",
# ^
# vconfig.c:189:21: warning: implicit declaration of function 'strerror' [-Wimplicit-function-declaration]
# vid, if_name, strerror(errno));
# ^
# vconfig.c:189:44: error: 'errno' undeclared (first use in this function)
# vid, if_name, strerror(errno));
# ^
# vconfig.c:190:10: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(3);
# ^
# vconfig.c:193:10: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stdout,"Added VLAN with VID == %u to IF -:%s:-\n",
# ^
# vconfig.c:201:24: error: 'DEL_VLAN_CMD' undeclared (first use in this function)
# if_request.cmd = DEL_VLAN_CMD;
# ^
# vconfig.c:203:10: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr,"ERROR: trying to remove VLAN -:%s:- error: %s\n",
# ^
# vconfig.c:205:10: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(4);
# ^
# vconfig.c:208:10: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stdout,"Removed VLAN -:%s:-\n", if_name);
# ^
# vconfig.c:212:24: error: 'SET_VLAN_EGRESS_PRIORITY_CMD' undeclared (first use in this function)
# if_request.cmd = SET_VLAN_EGRESS_PRIORITY_CMD;
# ^
# vconfig.c:214:10: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr,"ERROR: trying to set egress map on device -:%s:- error: %s\n",
# ^
# vconfig.c:216:10: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(5);
# ^
# vconfig.c:219:10: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stdout,"Set egress mapping on device -:%s:- "
# ^
# vconfig.c:225:24: error: 'SET_VLAN_INGRESS_PRIORITY_CMD' undeclared (first use in this function)
# if_request.cmd = SET_VLAN_INGRESS_PRIORITY_CMD;
# ^
# vconfig.c:227:10: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr,"ERROR: trying to set ingress map on device -:%s:- error: %s\n",
# ^
# vconfig.c:229:10: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(6);
# ^
# vconfig.c:232:10: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stdout,"Set ingress mapping on device -:%s:- "
# ^
# vconfig.c:238:24: error: 'SET_VLAN_FLAG_CMD' undeclared (first use in this function)
# if_request.cmd = SET_VLAN_FLAG_CMD;
# ^
# vconfig.c:240:10: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr,"ERROR: trying to set flag on device -:%s:- error: %s\n",
# ^
# vconfig.c:242:10: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(7);
# ^
# vconfig.c:245:10: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stdout,"Set flag on device -:%s:- "
# ^
# vconfig.c:251:24: error: 'SET_VLAN_NAME_TYPE_CMD' undeclared (first use in this function)
# if_request.cmd = SET_VLAN_NAME_TYPE_CMD;
# ^
# vconfig.c:253:10: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr,"ERROR: trying to set name type for VLAN subsystem, error: %s\n",
# ^
# vconfig.c:255:10: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(8);
# ^
# vconfig.c:258:10: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stdout,"Set name-type for VLAN subsystem."
# ^
# vconfig.c:263:7: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr, "Unknown command -:%s:-\n", cmd);
# ^
# vconfig.c:266:7: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(5);
# ^
# vconfig.c:98:27: warning: unused variable 'if_request' [-Wunused-variable]
# struct vlan_ioctl_args if_request;
# ^
# make: *** [Makefile:32: vconfig.o] Error 1
# ==> ERROR: A failure occurred in build().
# Aborting...