Build of ed with android toolchain

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

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

SLOCLanguage
2,538 ansic
226 sh
120 makefile
2,884 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: ed 1.13-2 (Tue Apr 4 21:10:53 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# configure: WARNING: unrecognized option: '--build=x86_64-unknown-linux'
# configure: WARNING: unrecognized option: '--host=arm-linux-androideabi'
#
# creating config.status
# creating Makefile
# VPATH = .
# prefix =
# exec_prefix = $(prefix)
# bindir = /usr/bin
# datarootdir = $(prefix)/share
# infodir = /usr/share/info
# mandir = /usr/share/man
# program_prefix =
# CC = gcc
# CPPFLAGS =
# CFLAGS =
# LDFLAGS =
# OK. Now you can run make.
# gcc -c -o buffer.o buffer.c
# gcc -c -o carg_parser.o carg_parser.c
# gcc -c -o global.o global.c
# gcc -c -o io.o io.c
# cc1: error: no include path in which to search for stdc-predef.h
# carg_parser.c:20:20: error: no include path in which to search for stdlib.h
# #include
# ^
# carg_parser.c:21:20: error: no include path in which to search for string.h
# #include
# ^
# cc1: error: no include path in which to search for stdc-predef.h
# global.c:20:19: error: no include path in which to search for errno.h
# #include
# ^
# global.c:21:19: error: no include path in which to search for stdio.h
# #include
# ^
# global.c:22:20: error: no include path in which to search for stdlib.h
# #include
# ^
# global.c:23:20: error: no include path in which to search for string.h
# #include
# ^
# carg_parser.c: In function 'ap_resize_buffer':
# carg_parser.c:29:19: warning: incompatible implicit declaration of built-in function 'realloc' [enabled by default]
# if( buf ) buf = realloc( buf, min_size );
# ^
# carg_parser.c:30:14: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
# else buf = malloc( min_size );
# ^
# carg_parser.c: In function 'push_back_record':
# carg_parser.c:38:19: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# const int len = strlen( argument );
# ^
# carg_parser.c:50:3: warning: incompatible implicit declaration of built-in function 'strncpy' [enabled by default]
# strncpy( p->argument, argument, len + 1 );
# ^
# carg_parser.c: In function 'add_error':
# carg_parser.c:58:19: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# const int len = strlen( msg );
# ^
# carg_parser.c:62:3: warning: incompatible implicit declaration of built-in function 'strncpy' [enabled by default]
# strncpy( ap->error + ap->error_size, msg, len + 1 );
# ^
# carg_parser.c: In function 'free_data':
# carg_parser.c:71:40: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# for( i = 0; i < ap->data_size; ++i ) free( ap->data[i].argument );
# ^
# global.c: In function 'clear_active_list':
# global.c:39:21: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# if( active_list ) free( active_list );
# ^
# carg_parser.c: In function 'parse_long_option':
# carg_parser.c:92:11: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# if( strlen( options[i].name ) == len ) /* Exact match found */
# ^
# global.c: In function 'set_active_node':
# global.c:62:23: error: 'errno' undeclared (first use in this function)
# show_strerror( 0, errno );
# ^
# global.c:62:23: note: each undeclared identifier is reported only once for each function it appears in
# carg_parser.c: In function 'ap_init':
# carg_parser.c:252:21: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# if( non_options ) free( non_options );
# ^
# carg_parser.c: In function 'ap_free':
# carg_parser.c:260:21: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# if( ap->error ) { free( ap->error ); ap->error = 0; }
# ^
# make: *** [Makefile:54: global.o] Error 1
# make: *** Waiting for unfinished jobs....
# make: *** [Makefile:54: carg_parser.o] Error 1
# cc1: error: no include path in which to search for stdc-predef.h
# io.c:20:19: error: no include path in which to search for errno.h
# #include
# ^
# io.c:21:19: error: no include path in which to search for stdio.h
# #include
# ^
# io.c:22:20: error: no include path in which to search for string.h
# #include
# ^
# io.c: In function 'put_tty_line':
# io.c:34:24: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# if( gflags & GNP ) { printf( "%d\t", current_addr() ); col = 8; }
# ^
# io.c:41:64: error: 'stdout' undeclared (first use in this function)
# if( ++col > window_columns() ) { col = 1; fputs( "\\\n", stdout ); }
# ^
# io.c:41:64: note: each undeclared identifier is reported only once for each function it appears in
# io.c:45:26: warning: incompatible implicit declaration of built-in function 'strchr' [enabled by default]
# char * const p = strchr( escapes, ch );
# ^
# cc1: error: no include path in which to search for stdc-predef.h
# io.c: In function 'get_extended_line':
# io.c:104:3: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy( buf, *ibufpp, len );
# ^
# buffer.c:20:19: error: no include path in which to search for errno.h
# #include
# ^
# buffer.c:21:20: error: no include path in which to search for limits.h
# #include
# ^
# buffer.c:22:19: error: no include path in which to search for stdio.h
# #include
# ^
# buffer.c:23:20: error: no include path in which to search for stdlib.h
# #include
# ^
# buffer.c:24:20: error: no include path in which to search for string.h
# #include
# ^
# buffer.c:25:20: error: no include path in which to search for unistd.h
# #include
# ^
# buffer.c:26:22: error: no include path in which to search for sys/file.h
# #include
# ^
# buffer.c:27:22: error: no include path in which to search for sys/stat.h
# #include
# ^
# io.c: In function 'get_tty_line':
# io.c:143:14: error: 'EOF' undeclared (first use in this function)
# if( c == EOF )
# ^
# io.c:145:19: error: 'stdin' undeclared (first use in this function)
# if( ferror( stdin ) )
# ^
# io.c:147:33: error: 'errno' undeclared (first use in this function)
# show_strerror( "stdin", errno );
# ^
# io.c: At top level:
# io.c:172:39: error: unknown type name 'FILE'
# static const char * read_stream_line( FILE * const fp, int * const sizep,
# ^
# io.c:207:26: error: unknown type name 'FILE'
# static long read_stream( FILE * const fp, const int addr )
# ^
# io.c: In function 'read_file':
# io.c:251:3: error: unknown type name 'FILE'
# FILE * fp;
# ^
# buffer.c:39:1: error: unknown type name 'FILE'
# static FILE * sfp = 0; /* scratch file pointer */
# ^
# io.c:255:29: warning: assignment makes pointer from integer without a cast [enabled by default]
# if( *filename == '!' ) fp = popen( filename + 1, "r" );
# ^
# io.c:256:11: warning: assignment makes pointer from integer without a cast [enabled by default]
# else fp = fopen( strip_escapes( filename ), "r" );
# ^
# io.c:259:30: error: 'errno' undeclared (first use in this function)
# show_strerror( filename, errno );
# ^
# io.c:272:21: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# if( !scripted() ) fprintf( stderr, "%lu\n", size );
# ^
# io.c:272:30: error: 'stderr' undeclared (first use in this function)
# if( !scripted() ) fprintf( stderr, "%lu\n", size );
# ^
# buffer.c: In function 'dup_line_node':
# buffer.c:95:33: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
# line_t * const p = (line_t *) malloc( sizeof (line_t) );
# ^
# io.c: At top level:
# io.c:278:27: error: unknown type name 'FILE'
# static long write_stream( FILE * const fp, int from, const int to )
# ^
# buffer.c:98:23: error: 'errno' undeclared (first use in this function)
# show_strerror( 0, errno );
# ^
# buffer.c:98:23: note: each undeclared identifier is reported only once for each function it appears in
# io.c: In function 'write_file':
# io.c:309:3: error: unknown type name 'FILE'
# FILE * fp;
# ^
# io.c:313:29: warning: assignment makes pointer from integer without a cast [enabled by default]
# if( *filename == '!' ) fp = popen( filename + 1, "w" );
# ^
# buffer.c: In function 'append_lines':
# buffer.c:124:21: error: 'stdin' undeclared (first use in this function)
# { clearerr( stdin ); return ( size == 0 ); }
# ^
# io.c:314:11: warning: assignment makes pointer from integer without a cast [enabled by default]
# else fp = fopen( strip_escapes( filename ), mode );
# ^
# io.c:317:30: error: 'errno' undeclared (first use in this function)
# show_strerror( filename, errno );
# ^
# io.c:330:21: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# if( !scripted() ) fprintf( stderr, "%lu\n", size );
# ^
# buffer.c: In function 'clear_yank_buffer':
# io.c:330:30: error: 'stderr' undeclared (first use in this function)
# if( !scripted() ) fprintf( stderr, "%lu\n", size );
# ^
# buffer.c:157:5: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free( lp );
# ^
# buffer.c: In function 'close_sbuf':
# buffer.c:173:25: error: 'errno' undeclared (first use in this function)
# show_strerror( 0, errno );
# ^
# buffer.c: In function 'get_sbuf_line':
# buffer.c:266:28: error: 'SEEK_SET' undeclared (first use in this function)
# if( fseek( sfp, sfpos, SEEK_SET ) != 0 )
# ^
# buffer.c:268:25: error: 'errno' undeclared (first use in this function)
# show_strerror( 0, errno );
# ^
# buffer.c: In function 'init_buffers':
# buffer.c:296:12: error: 'stdin' undeclared (first use in this function)
# setvbuf( stdin, 0, _IONBF, 0 );
# ^
# buffer.c:296:22: error: '_IONBF' undeclared (first use in this function)
# setvbuf( stdin, 0, _IONBF, 0 );
# ^
# buffer.c: In function 'join_lines':
# buffer.c:317:5: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy( buf + size, s, bp->len );
# ^
# buffer.c: In function 'open_sbuf':
# buffer.c:385:7: warning: assignment makes pointer from integer without a cast [enabled by default]
# sfp = tmpfile();
# ^
# buffer.c:388:23: error: 'errno' undeclared (first use in this function)
# show_strerror( 0, errno );
# ^
# buffer.c: In function 'path_max':
# buffer.c:400:3: error: 'errno' undeclared (first use in this function)
# errno = 0;
# ^
# buffer.c:401:32: error: '_PC_PATH_MAX' undeclared (first use in this function)
# result = pathconf( filename, _PC_PATH_MAX );
# ^
# buffer.c: In function 'put_sbuf_line':
# buffer.c:442:41: warning: incompatible implicit declaration of built-in function 'memchr' [enabled by default]
# const char * const p = (const char *) memchr( buf, '\n', size );
# ^
# buffer.c:451:25: error: 'SEEK_END' undeclared (first use in this function)
# if( fseek( sfp, 0L, SEEK_END ) != 0 )
# ^
# buffer.c:453:25: error: 'errno' undeclared (first use in this function)
# show_strerror( 0, errno );
# ^
# buffer.c:460:12: warning: incompatible implicit declaration of built-in function 'fwrite' [enabled by default]
# if( (int)fwrite( buf, 1, len, sfp ) != len ) /* assert: interrupts disabled */
# ^
# make: *** [Makefile:54: io.o] Error 1
# buffer.c: In function 'clear_undo_stack':
# buffer.c:545:9: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free( bp );
# ^
# buffer.c: In function 'push_undo_atom':
# buffer.c:570:23: error: 'errno' undeclared (first use in this function)
# show_strerror( 0, errno );
# ^
# buffer.c:575:7: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free( ustack );
# ^
# make: *** [Makefile:54: buffer.o] Error 1
# ==> ERROR: A failure occurred in build().
# Aborting...