Build of reptyr 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
2,260 ansic
38 makefile
32 python
31 sh
2,361 total

The process tree of the build process is here.

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: reptyr 0.6.2-1 (Tue Apr 4 20:37:57 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# arm-linux-androideabi-gcc -Wall -Werror -D_GNU_SOURCE -g -c -o reptyr.o reptyr.c
# arm-linux-androideabi-gcc -Wall -Werror -D_GNU_SOURCE -g -c -o reallocarray.o reallocarray.c
# arm-linux-androideabi-gcc -Wall -Werror -D_GNU_SOURCE -g -c -o attach.o attach.c
# arm-linux-androideabi-gcc -Wall -Werror -D_GNU_SOURCE -g -c -o platform/linux/linux_ptrace.o platform/linux/linux_ptrace.c
# arm-linux-androideabi-gcc -Wall -Werror -D_GNU_SOURCE -g -c -o platform/linux/linux.o platform/linux/linux.c
# platform/linux/linux_ptrace.c:51:30: error: 'enum __ptrace_request' declared inside parameter list [-Werror]
# void *, void*);
# ^
# platform/linux/linux_ptrace.c:51:30: error: its scope is only this definition or declaration, which is probably not what you want [-Werror]
# In file included from platform/linux/linux_ptrace.c:75:0:
# platform/linux/arch/arm.h: In function 'arch_set_syscall':
# platform/linux/arch/arm.h:41:5: error: type of formal parameter 2 is incomplete
# return ptrace_command(child, PTRACE_SET_SYSCALL, 0, sysno);
# ^
# platform/linux/arch/arm.h: In function 'arch_save_syscall':
# platform/linux/arch/arm.h:46:5: error: type of formal parameter 2 is incomplete
# swi = ptrace_command(child, PTRACE_PEEKTEXT, child->user.regs.ARM_pc);
# ^
# platform/linux/linux_ptrace.c: In function 'ptrace_attach_child':
# platform/linux/linux_ptrace.c:101:5: error: type of formal parameter 2 is incomplete
# if (ptrace_command(child, PTRACE_ATTACH) < 0)
# ^
# platform/linux/linux_ptrace.c: In function 'ptrace_finish_attach':
# platform/linux/linux_ptrace.c:118:5: error: type of formal parameter 2 is incomplete
# if (ptrace_command(child, PTRACE_SETOPTIONS, 0,
# ^
# platform/linux/linux_ptrace.c: In function 'ptrace_detach_child':
# platform/linux/linux_ptrace.c:131:5: error: type of formal parameter 2 is incomplete
# if (ptrace_command(child, PTRACE_DETACH, 0, 0) < 0)
# ^
# platform/linux/linux_ptrace.c: In function 'ptrace_wait':
# platform/linux/linux_ptrace.c:151:17: error: type of formal parameter 2 is incomplete
# ptrace_command(child, PTRACE_GETEVENTMSG, 0, &child->forked_pid);
# ^
# platform/linux/linux_ptrace.c: In function 'ptrace_advance_to_state':
# platform/linux/linux_ptrace.c:173:13: error: type of formal parameter 2 is incomplete
# err = ptrace_command(child, PTRACE_SYSCALL, 0, 0);
# ^
# platform/linux/linux_ptrace.c:176:13: error: type of formal parameter 2 is incomplete
# return ptrace_command(child, PTRACE_CONT, 0, 0);
# ^
# platform/linux/linux_ptrace.c: In function 'ptrace_save_regs':
# platform/linux/linux_ptrace.c:198:5: error: type of formal parameter 2 is incomplete
# if (ptrace_command(child, PTRACE_GETREGS, 0, &child->user) < 0)
# ^
# platform/linux/linux_ptrace.c: In function 'ptrace_restore_regs':
# platform/linux/linux_ptrace.c:208:5: error: type of formal parameter 2 is incomplete
# err = ptrace_command(child, PTRACE_SETREGS, 0, &child->user);
# ^
# platform/linux/linux_ptrace.c: In function 'ptrace_remote_syscall':
# platform/linux/linux_ptrace.c:232:5: error: type of formal parameter 2 is incomplete
# setreg(syscall_arg0, p0);
# ^
# platform/linux/linux_ptrace.c:233:5: error: type of formal parameter 2 is incomplete
# setreg(syscall_arg1, p1);
# ^
# platform/linux/linux_ptrace.c:234:5: error: type of formal parameter 2 is incomplete
# setreg(syscall_arg2, p2);
# ^
# platform/linux/linux_ptrace.c:235:5: error: type of formal parameter 2 is incomplete
# setreg(syscall_arg3, p3);
# ^
# platform/linux/linux_ptrace.c:236:5: error: type of formal parameter 2 is incomplete
# setreg(syscall_arg4, p4);
# ^
# platform/linux/linux_ptrace.c:237:5: error: type of formal parameter 2 is incomplete
# setreg(syscall_arg5, p5);
# ^
# platform/linux/linux_ptrace.c:242:5: error: type of formal parameter 2 is incomplete
# rv = ptrace_command(child, PTRACE_PEEKUSER,
# ^
# platform/linux/linux_ptrace.c:247:5: error: type of formal parameter 2 is incomplete
# setreg(reg_ip, *(unsigned long*)((void*)&child->user +
# ^
# platform/linux/linux_ptrace.c: In function 'ptrace_memcpy_to_child':
# platform/linux/linux_ptrace.c:259:9: error: type of formal parameter 2 is incomplete
# if (ptrace_command(child, PTRACE_POKEDATA, dst, *((unsigned long*)src)) < 0)
# ^
# platform/linux/linux_ptrace.c:267:9: error: type of formal parameter 2 is incomplete
# scratch = ptrace_command(child, PTRACE_PEEKDATA, dst);
# ^
# platform/linux/linux_ptrace.c:271:9: error: type of formal parameter 2 is incomplete
# if (ptrace_command(child, PTRACE_POKEDATA, dst, scratch) < 0)
# ^
# platform/linux/linux_ptrace.c: In function 'ptrace_memcpy_from_child':
# platform/linux/linux_ptrace.c:282:9: error: type of formal parameter 2 is incomplete
# scratch = ptrace_command(child, PTRACE_PEEKDATA, src);
# ^
# platform/linux/linux_ptrace.c: At top level:
# platform/linux/linux_ptrace.c:297:30: error: 'enum __ptrace_request' declared inside parameter list [-Werror]
# void *addr, void *data) {
# ^
# platform/linux/linux_ptrace.c:296:80: error: parameter 2 ('req') has incomplete type
# static long __ptrace_command(struct ptrace_child *child, enum __ptrace_request req,
# ^
# cc1: all warnings being treated as errors
# make: *** [: platform/linux/linux_ptrace.o] Error 1
# make: *** Waiting for unfinished jobs....
# reptyr.c: In function 'main':
# reptyr.c:255:46: error: call to 'ptsname' declared with attribute warning: ptsname is not thread-safe; use ptsname_r instead [-Werror]
# err = attach_child(child, ptsname(pty), force_stdio);
# ^
# reptyr.c:265:15: error: call to 'ptsname' declared with attribute warning: ptsname is not thread-safe; use ptsname_r instead [-Werror]
# printf("Opened a new pty: %s\n", ptsname(pty));
# ^
# reptyr.c:269:45: error: call to 'ptsname' declared with attribute warning: ptsname is not thread-safe; use ptsname_r instead [-Werror]
# setenv("REPTYR_PTY", ptsname(pty), 1);
# ^
# reptyr.c:274:37: error: call to 'ptsname' declared with attribute warning: ptsname is not thread-safe; use ptsname_r instead [-Werror]
# f = open(ptsname(pty), O_RDONLY, 0);
# ^
# reptyr.c:277:37: error: call to 'ptsname' declared with attribute warning: ptsname is not thread-safe; use ptsname_r instead [-Werror]
# f = open(ptsname(pty), O_WRONLY, 0);
# ^
# cc1: all warnings being treated as errors
# make: *** [: reptyr.o] Error 1
# ==> ERROR: A failure occurred in build().
# Aborting...