Build of rt3562sta with android toolchain

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

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

SLOCLanguage
85,402 ansic
462 makefile
85,864 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: rt3562sta 2.4.1.1_r3-12 (Tue Apr 4 20:47:25 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# make -C tools
# cp -f os/linux/Makefile.6 /tmp/rt3562sta/src/rt3562sta-linux-r3/os/linux/Makefile
# make[1]: Entering directory '/tmp/rt3562sta/src/rt3562sta-linux-r3/tools'
# gcc -g bin2h.c -o bin2h
# make -C /usr/lib/modules/4.6.3-1-ARCH/build SUBDIRS=/tmp/rt3562sta/src/rt3562sta-linux-r3/os/linux modules
# make[1]: Entering directory '/usr/lib/modules/4.6.3-1-ARCH/build'
# cc1: error: no include path in which to search for stdc-predef.h
# bin2h.c:28:19: error: no include path in which to search for stdio.h
# #include
# ^
# bin2h.c:29:20: error: no include path in which to search for string.h
# #include
# ^
# bin2h.c:30:20: error: no include path in which to search for stdlib.h
# #include
# ^
# bin2h.c: In function 'main':
# bin2h.c:34:5: error: unknown type name 'FILE'
# FILE *infile, *outfile;
# ^
# bin2h.c:42:5: warning: incompatible implicit declaration of built-in function 'memset' [enabled by default]
# memset(infname,0,1024);
# ^
# bin2h.c:49:10: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf("Environment value \"RT28xx_DIR\" not export \n");
# ^
# bin2h.c:54:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf("Environment value \"CHIPSET\" not export \n");
# ^
# bin2h.c:57:5: warning: incompatible implicit declaration of built-in function 'strcat' [enabled by default]
# strcat(infname,rt28xxdir);
# ^
# bin2h.c:80:12: warning: assignment makes pointer from integer without a cast [enabled by default]
# infile = fopen(infname,"r");
# ^
# bin2h.c:81:20: error: 'FILE' undeclared (first use in this function)
# if (infile == (FILE *) NULL)
# ^
# bin2h.c:81:20: note: each undeclared identifier is reported only once for each function it appears in
# bin2h.c:81:26: error: expected expression before ')' token
# if (infile == (FILE *) NULL)
# ^
# bin2h.c:83:10: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf("Can't read file %s \n",infname);
# ^
# bin2h.c:86:13: warning: assignment makes pointer from integer without a cast [enabled by default]
# outfile = fopen(outfname,"w");
# ^
# bin2h.c:88:27: error: expected expression before ')' token
# if (outfile == (FILE *) NULL)
# ^
# bin2h.c:90:10: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf("Can't open write file %s \n",outfname);
# ^
# bin2h.c:116:2: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default]
# sprintf(cc,"%02x",c);
# ^
# bin2h.c:125:5: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(0);
# ^
# make[1]: *** [Makefile:2: all] Error 1
# make[1]: Leaving directory '/tmp/rt3562sta/src/rt3562sta-linux-r3/tools'
# make: *** [Makefile:249: build_tools] Error 2
# make: *** Waiting for unfinished jobs....
# arch/x86/Makefile:133: stack-protector enabled but compiler support broken
# Makefile:667: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported by compiler
# CC [M] /tmp/rt3562sta/src/rt3562sta-linux-r3/os/linux/../../common/crypt_md5.o
# cc: error: unrecognized command line option '-mno-sse'
# cc: error: unrecognized command line option '-mno-mmx'
# cc: error: unrecognized command line option '-mno-sse2'
# cc: error: unrecognized command line option '-mno-3dnow'
# cc: error: unrecognized command line option '-m64'
# cc: error: unrecognized command line option '-mno-red-zone'
# cc: error: unrecognized command line option '-mcmodel=kernel'
# cc: error: unrecognized command line option '-fstack-protector-strong'
# CC [M] /tmp/rt3562sta/src/rt3562sta-linux-r3/os/linux/../../common/crypt_sha2.o
# make[2]: *** [scripts/Makefile.build:292: /tmp/rt3562sta/src/rt3562sta-linux-r3/os/linux/../../common/crypt_md5.o] Error 1
# make[2]: *** Waiting for unfinished jobs....
# CC [M] /tmp/rt3562sta/src/rt3562sta-linux-r3/os/linux/../../common/crypt_hmac.o
# CC [M] /tmp/rt3562sta/src/rt3562sta-linux-r3/os/linux/../../common/crypt_aes.o
# cc: error: unrecognized command line option '-mno-sse'
# cc: error: unrecognized command line option '-mno-mmx'
# cc: error: unrecognized command line option '-mno-sse2'
# cc: error: unrecognized command line option '-mno-3dnow'
# cc: error: unrecognized command line option '-m64'
# cc: error: unrecognized command line option '-mno-red-zone'
# cc: error: unrecognized command line option '-mcmodel=kernel'
# cc: error: unrecognized command line option '-fstack-protector-strong'
# make[2]: *** [scripts/Makefile.build:292: /tmp/rt3562sta/src/rt3562sta-linux-r3/os/linux/../../common/crypt_sha2.o] Error 1
# cc: error: unrecognized command line option '-mno-sse'
# cc: error: unrecognized command line option '-mno-mmx'
# cc: error: unrecognized command line option '-mno-sse2'
# cc: error: unrecognized command line option '-mno-3dnow'
# cc: error: unrecognized command line option '-m64'
# cc: error: unrecognized command line option '-mno-red-zone'
# cc: error: unrecognized command line option '-mcmodel=kernel'
# cc: error: unrecognized command line option '-fstack-protector-strong'
# make[2]: *** [scripts/Makefile.build:292: /tmp/rt3562sta/src/rt3562sta-linux-r3/os/linux/../../common/crypt_hmac.o] Error 1
# cc: error: unrecognized command line option '-mno-sse'
# cc: error: unrecognized command line option '-mno-mmx'
# cc: error: unrecognized command line option '-mno-sse2'
# cc: error: unrecognized command line option '-mno-3dnow'
# cc: error: unrecognized command line option '-m64'
# cc: error: unrecognized command line option '-mno-red-zone'
# cc: error: unrecognized command line option '-mcmodel=kernel'
# cc: error: unrecognized command line option '-fstack-protector-strong'
# make[2]: *** [scripts/Makefile.build:292: /tmp/rt3562sta/src/rt3562sta-linux-r3/os/linux/../../common/crypt_aes.o] Error 1
# make[1]: *** [Makefile:1429: _module_/tmp/rt3562sta/src/rt3562sta-linux-r3/os/linux] Error 2
# make[1]: Leaving directory '/usr/lib/modules/4.6.3-1-ARCH/build'
# make: *** [Makefile:270: LINUX] Error 2
# ==> ERROR: A failure occurred in build().
# Aborting...