Build of ocrad with android toolchain

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

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

SLOCLanguage
9,478 cpp
311 sh
152 makefile
9,941 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: ocrad 0.25-3 (Tue Apr 4 20:30:59 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 = /usr
# exec_prefix = $(prefix)
# bindir = $(exec_prefix)/bin
# datarootdir = $(prefix)/share
# includedir = ${prefix}/include
# infodir = $(datarootdir)/info
# libdir = ${exec_prefix}/lib
# mandir = $(datarootdir)/man
# CXX = g++
# CPPFLAGS =
# CXXFLAGS =
# LDFLAGS =
# OK. Now you can run make.
# g++ -c -o common.o common.cc
# g++ -c -o segment.o segment.cc
# g++ -c -o mask.o mask.cc
# g++ -c -o rational.o rational.cc
# cc1plus: error: no include path in which to search for stdc-predef.h
# segment.cc:18:19: error: no include path in which to search for climits
# #include
# ^
# cc1plus: error: no include path in which to search for stdc-predef.h
# mask.cc:18:19: error: no include path in which to search for climits
# #include
# ^
# mask.cc:19:19: error: no include path in which to search for cstdlib
# #include
# ^
# mask.cc:20:18: error: no include path in which to search for vector
# #include
# ^
# segment.cc: In member function 'int Csegment::distance(const Csegment&) const':
# segment.cc:47:41: error: 'INT_MAX' was not declared in this scope
# if( !valid() || !seg.valid() ) return INT_MAX;
# ^
# segment.cc: In member function 'int Csegment::distance(int) const':
# segment.cc:56:25: error: 'INT_MAX' was not declared in this scope
# if( !valid() ) return INT_MAX;
# ^
# In file included from mask.cc:24:0:
# mask.h:20:3: error: 'vector' in namespace 'std' does not name a type
# std::vector< Csegment > data; // csegment in each line
# ^
# mask.h: In constructor 'Mask::Mask(const Rectangle&)':
# mask.h:25:24: error: class 'Mask' does not have any field named 'data'
# : Rectangle( re ), data( height(), Csegment( re.left(), re.right() ) ) {}
# ^
# cc1plus: error: no include path in which to search for stdc-predef.h
# make: *** [Makefile:67: segment.o] Error 1
# make: *** Waiting for unfinished jobs....
# common.cc:18:21: error: no include path in which to search for algorithm
# #include
# ^
# common.cc:19:18: error: no include path in which to search for cstdio
# #include
# ^
# mask.h: In constructor 'Mask::Mask(int, int, int, int)':
# mask.h:27:32: error: class 'Mask' does not have any field named 'data'
# : Rectangle( l, t, r, b ), data( height(), Csegment( l, r ) ) {}
# ^
# common.cc:20:19: error: no include path in which to search for cstdlib
# #include
# ^
# common.cc:21:19: error: no include path in which to search for cstring
# #include
# ^
# common.cc:22:18: error: no include path in which to search for string
# #include
# ^
# common.cc:23:18: error: no include path in which to search for vector
# #include
# ^
# mask.cc: In member function 'int Mask::left(int) const':
# mask.cc:29:42: error: 'data' was not declared in this scope
# if( top() <= row && row <= bottom() && data[row-top()].valid() )
# ^
# mask.cc: In member function 'int Mask::right(int) const':
# mask.cc:37:42: error: 'data' was not declared in this scope
# if( top() <= row && row <= bottom() && data[row-top()].valid() )
# ^
# mask.cc: In member function 'void Mask::top(int)':
# mask.cc:46:19: error: 'data' was not declared in this scope
# if( t < top() ) data.insert( data.begin(), top() - t, Csegment() );
# ^
# mask.cc:47:8: error: 'data' was not declared in this scope
# else data.erase( data.begin(), data.begin() + ( t - top() ) );
# ^
# mask.cc: In member function 'void Mask::bottom(int)':
# mask.cc:54:49: error: 'data' was not declared in this scope
# if( b != bottom() ) { Rectangle::bottom( b ); data.resize( height() ); }
# ^
# cc1plus: error: no include path in which to search for stdc-predef.h
# rational.cc:12:21: error: no include path in which to search for algorithm
# #include
# ^
# rational.cc:13:18: error: no include path in which to search for cctype
# #include
# ^
# rational.cc:14:19: error: no include path in which to search for climits
# #include
# ^
# rational.cc:15:19: error: no include path in which to search for cstdlib
# #include
# ^
# rational.cc:16:18: error: no include path in which to search for string
# #include
# ^
# mask.cc: In member function 'void Mask::add_mask(const Mask&)':
# mask.cc:64:22: error: 'data' was not declared in this scope
# Csegment & seg = data[i-top()];
# ^
# mask.cc:65:25: error: 'const class Mask' has no member named 'data'
# seg.add_csegment( m.data[i-m.top()] );
# ^
# In file included from common.cc:25:0:
# common.h:83:3: error: 'vector' in namespace 'std' does not name a type
# std::vector< Filter > filters;
# ^
# common.h:84:3: error: 'FILE' does not name a type
# FILE * outfile, * exportfile;
# ^
# mask.cc: In member function 'void Mask::add_point(int, int)':
# mask.cc:75:3: error: 'data' was not declared in this scope
# data[row-top()].add_point( col );
# ^
# common.h: In constructor 'Control::Control()':
# common.h:90:7: error: class 'Control' does not have any field named 'outfile'
# : outfile( stdout ), exportfile( 0 ),
# ^
# common.h:90:16: error: 'stdout' was not declared in this scope
# : outfile( stdout ), exportfile( 0 ),
# ^
# common.h:90:26: error: class 'Control' does not have any field named 'exportfile'
# : outfile( stdout ), exportfile( 0 ),
# ^
# mask.cc: In member function 'void Mask::add_rectangle(const Rectangle&)':
# mask.cc:87:22: error: 'data' was not declared in this scope
# Csegment & seg = data[i-top()];
# ^
# In file included from common.cc:26:0:
# user_filter.h: At global scope:
# user_filter.h:32:3: error: 'vector' in namespace 'std' does not name a type
# std::vector< int > table1; // -1 or new_code of first 256 UCS chars
# ^
# user_filter.h:33:3: error: 'vector' in namespace 'std' does not name a type
# std::vector< Entry > table2; // codes of UCS chars >= 256
# ^
# user_filter.h:34:3: error: 'string' in namespace 'std' does not name a type
# std::string error_;
# ^
# user_filter.h:39:25: error: 'string' in namespace 'std' does not name a type
# int parse_char( const std::string & line, unsigned &i ) const;
# ^
# user_filter.h:39:39: error: ISO C++ forbids declaration of 'line' with no type [-fpermissive]
# int parse_char( const std::string & line, unsigned &i ) const;
# ^
# user_filter.h:44:9: error: 'string' in namespace 'std' does not name a type
# const std::string & error() const { return error_; }
# ^
# mask.cc: In member function 'bool Mask::includes(const Rectangle&) const':
# mask.cc:100:10: error: 'data' was not declared in this scope
# if( !data[i-top()].includes( seg ) ) return false;
# ^
# mask.cc: In member function 'bool Mask::includes(int, int) const':
# mask.cc:107:47: error: 'data' was not declared in this scope
# return ( row >= top() && row <= bottom() && data[row-top()].includes( col ) );
# ^
# mask.cc: In member function 'int Mask::distance(const Rectangle&) const':
# mask.cc:114:17: error: 'INT_MAX' was not declared in this scope
# int mindist = INT_MAX;
# ^
# In file included from rational.cc:18:0:
# rational.h:123:9: error: 'string' in namespace 'std' does not name a type
# const std::string to_decimal( const unsigned iwidth = 1, int prec = -2 ) const;
# ^
# rational.h:124:9: error: 'string' in namespace 'std' does not name a type
# const std::string to_fraction( const unsigned width = 1 ) const;
# ^
# mask.cc:119:20: error: 'data' was not declared in this scope
# const int hd = data[i-top()].distance( seg );
# ^
# mask.cc: In member function 'int Mask::distance(int, int) const':
# mask.cc:130:17: error: 'INT_MAX' was not declared in this scope
# int mindist = INT_MAX;
# ^
# rational.h: In constructor 'Rational::Rational(int)':
# rational.h:34:18: error: 'INT_MAX' was not declared in this scope
# { if( num < -INT_MAX ) { num = -INT_MAX; den = 0; } }
# ^
# mask.cc:133:20: error: 'abs' is not a member of 'std'
# const int vd = std::abs( i - row );
# ^
# common.cc: In function 'void Ocrad::internal_error(const char*)':
# common.cc:85:3: error: 'fprintf' is not a member of 'std'
# std::fprintf( stderr, "ocrad: internal error: %s\n", msg );
# ^
# common.cc:85:17: error: 'stderr' was not declared in this scope
# std::fprintf( stderr, "ocrad: internal error: %s\n", msg );
# ^
# mask.cc:135:20: error: 'data' was not declared in this scope
# const int hd = data[i-top()].distance( col );
# ^
# common.cc:86:3: error: 'exit' is not a member of 'std'
# std::exit( 3 );
# ^
# rational.h: In member function 'Rational& Rational::operator=(int)':
# rational.h:40:36: error: 'INT_MAX' was not declared in this scope
# { num = n; den = 1; if( num < -INT_MAX ) { num = -INT_MAX; den = 0; }
# ^
# common.cc: In function 'bool Ocrad::similar(int, int, int, int)':
# common.cc:93:20: error: 'abs' is not a member of 'std'
# int difference = std::abs( a - b );
# ^
# common.cc:95:17: error: 'max' is not a member of 'std'
# int max_abs = std::max( std::abs( a ), std::abs( b ) );
# ^
# common.cc:95:27: error: 'abs' is not a member of 'std'
# int max_abs = std::max( std::abs( a ), std::abs( b ) );
# ^
# common.cc:95:42: error: 'abs' is not a member of 'std'
# int max_abs = std::max( std::abs( a ), std::abs( b ) );
# ^
# common.cc: In member function 'bool Charset::enable(const char*)':
# common.cc:103:9: error: 'strcmp' is not a member of 'std'
# if( std::strcmp( name, charset_name[i] ) == 0 )
# ^
# common.cc: In member function 'void Charset::show_error(const char*, const char*) const':
# common.cc:128:16: error: 'strcmp' is not a member of 'std'
# if( arg && std::strcmp( arg, "help" ) != 0 )
# ^
# common.cc:129:7: error: 'fprintf' is not a member of 'std'
# std::fprintf( stderr,"%s: bad charset '%s'\n", program_name, arg );
# ^
# common.cc:129:21: error: 'stderr' was not declared in this scope
# std::fprintf( stderr,"%s: bad charset '%s'\n", program_name, arg );
# ^
# common.cc:130:5: error: 'fputs' is not a member of 'std'
# std::fputs( "Valid charset names:", stderr );
# ^
# common.cc:130:41: error: 'stderr' was not declared in this scope
# std::fputs( "Valid charset names:", stderr );
# ^
# common.cc:132:7: error: 'fprintf' is not a member of 'std'
# std::fprintf( stderr, " %s", charset_name[i] );
# ^
# common.cc:133:5: error: 'fputs' is not a member of 'std'
# std::fputs( "\n", stderr );
# ^
# common.cc: In member function 'bool Transformation::set(const char*)':
# common.cc:141:9: error: 'strcmp' is not a member of 'std'
# if( std::strcmp( name, T_table[i].name ) == 0 )
# ^
# common.cc: In member function 'void Transformation::show_error(const char*, const char*) const':
# common.cc:152:16: error: 'strcmp' is not a member of 'std'
# if( arg && std::strcmp( arg, "help" ) != 0 )
# ^
# common.cc:153:7: error: 'fprintf' is not a member of 'std'
# std::fprintf( stderr,"%s: bad bitmap trasformation '%s'\n", program_name, arg );
# ^
# common.cc:153:21: error: 'stderr' was not declared in this scope
# std::fprintf( stderr,"%s: bad bitmap trasformation '%s'\n", program_name, arg );
# ^
# common.cc:154:5: error: 'fputs' is not a member of 'std'
# std::fputs( "Valid transformation names:", stderr );
# ^
# common.cc:154:48: error: 'stderr' was not declared in this scope
# std::fputs( "Valid transformation names:", stderr );
# ^
# common.cc:156:7: error: 'fprintf' is not a member of 'std'
# std::fprintf( stderr, " %s", T_table[i].name );
# ^
# common.cc:157:5: error: 'fputs' is not a member of 'std'
# std::fputs( "\nRotations are made counter-clockwise.\n", stderr );
# ^
# common.cc: In destructor 'Control::~Control()':
# common.cc:164:21: error: 'filters' was not declared in this scope
# for( unsigned f = filters.size(); f > 0; --f )
# ^
# common.cc: In member function 'bool Control::add_filter(const char*, const char*)':
# common.cc:174:9: error: 'strcmp' is not a member of 'std'
# if( std::strcmp( name, F_table[i].name ) == 0 )
# ^
# common.cc:175:9: error: 'filters' was not declared in this scope
# { filters.push_back( Filter( F_table[i].type ) ); return true; }
# ^
# common.cc:178:17: error: 'strcmp' is not a member of 'std'
# if( name && std::strcmp( name, "help" ) != 0 )
# ^
# common.cc:179:7: error: 'fprintf' is not a member of 'std'
# std::fprintf( stderr,"%s: bad filter '%s'\n", program_name, name );
# ^
# common.cc:179:21: error: 'stderr' was not declared in this scope
# std::fprintf( stderr,"%s: bad filter '%s'\n", program_name, name );
# ^
# common.cc:180:5: error: 'fputs' is not a member of 'std'
# std::fputs( "Valid filter names:", stderr );
# ^
# common.cc:180:40: error: 'stderr' was not declared in this scope
# std::fputs( "Valid filter names:", stderr );
# ^
# common.cc:182:7: error: 'fprintf' is not a member of 'std'
# std::fprintf( stderr, " %s", F_table[i].name );
# ^
# common.cc:183:5: error: 'fputs' is not a member of 'std'
# std::fputs( "\n", stderr );
# ^
# make: *** [Makefile:67: mask.o] Error 1
# common.cc: In member function 'int Control::add_user_filter(const char*, const char*)':
# common.cc:195:5: error: 'filters' was not declared in this scope
# filters.push_back( Filter( user_filterp ) );
# ^
# rational.cc: At global scope:
# rational.cc:59:7: error: 'string' in namespace 'std' does not name a type
# const std::string overflow_string( const int n )
# ^
# common.cc:199:7: error: 'fprintf' is not a member of 'std'
# std::fprintf( stderr,"%s: user filter: %s\n",
# ^
# common.cc:199:21: error: 'stderr' was not declared in this scope
# std::fprintf( stderr,"%s: user filter: %s\n",
# ^
# rational.cc: In function 'int {anonymous}::overflow_value(int)':
# rational.cc:63:24: error: 'INT_MAX' was not declared in this scope
# { if( n > 0 ) return INT_MAX; if( n < 0 ) return -INT_MAX; return 0; }
# ^
# common.cc:200:49: error: 'const class User_filter' has no member named 'error'
# program_name, user_filterp->error().c_str() );
# ^
# rational.cc:63:53: error: 'INT_MAX' was not declared in this scope
# { if( n > 0 ) return INT_MAX; if( n < 0 ) return -INT_MAX; return 0; }
# ^
# rational.cc: In function 'int {anonymous}::lloverflow_value(long long int)':
# rational.cc:66:24: error: 'INT_MAX' was not declared in this scope
# { if( n > 0 ) return INT_MAX; if( n < 0 ) return -INT_MAX; return 0; }
# ^
# common.cc: In member function 'bool Control::set_format(const char*)':
# common.cc:209:7: error: 'strcmp' is not a member of 'std'
# if( std::strcmp( name, "byte" ) == 0 ) { utf8 = false; return true; }
# ^
# rational.cc:66:53: error: 'INT_MAX' was not declared in this scope
# { if( n > 0 ) return INT_MAX; if( n < 0 ) return -INT_MAX; return 0; }
# ^
# common.cc:210:7: error: 'strcmp' is not a member of 'std'
# if( std::strcmp( name, "utf8" ) == 0 ) { utf8 = true; return true; }
# ^
# rational.cc: In member function 'void Rational::normalize(long long int, long long int)':
# rational.cc:81:12: error: 'INT_MAX' was not declared in this scope
# if( n <= INT_MAX && n >= -INT_MAX && d <= INT_MAX && d >= -INT_MAX )
# ^
# rational.cc: In member function 'void Rational::normalize()':
# rational.cc:92:14: error: 'INT_MAX' was not declared in this scope
# if( num < -INT_MAX )
# ^
# rational.cc:99:16: error: 'INT_MAX' was not declared in this scope
# if( den < -INT_MAX ) { num = overflow_value( -num ); den = 0; return; }
# ^
# rational.cc: In member function 'int Rational::round() const':
# rational.cc:150:20: error: 'abs' is not a member of 'std'
# const int rest = std::abs( num ) % den;
# ^
# rational.cc: In member function 'int Rational::parse(const char*)':
# rational.cc:169:10: error: 'isspace' is not a member of 'std'
# while( std::isspace( s[c] ) ) ++c;
# ^
# make: *** [Makefile:67: common.o] Error 1
# rational.cc:172:8: error: 'isdigit' is not a member of 'std'
# if( !std::isdigit( s[c] ) && s[c] != '.' ) return 0;
# ^
# rational.cc:174:10: error: 'isdigit' is not a member of 'std'
# while( std::isdigit( s[c] ) )
# ^
# rational.cc:182:15: error: 'isdigit' is not a member of 'std'
# ++c; if( !std::isdigit( s[c] ) ) return 0;
# ^
# rational.cc:183:12: error: 'isdigit' is not a member of 'std'
# while( std::isdigit( s[c] ) )
# ^
# rational.cc:193:12: error: 'isdigit' is not a member of 'std'
# while( std::isdigit( s[c] ) )
# ^
# rational.cc: At global scope:
# rational.cc:223:7: error: 'string' in namespace 'std' does not name a type
# const std::string Rational::to_decimal( const unsigned iwidth, int prec ) const
# ^
# rational.cc:251:7: error: 'string' in namespace 'std' does not name a type
# const std::string Rational::to_fraction( const unsigned width ) const
# ^
# make: *** [Makefile:67: rational.o] Error 1
# ==> ERROR: A failure occurred in build().
# Aborting...