Build of squashfs-tools with android toolchain

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

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

SLOCLanguage
16,306 ansic
141 makefile
16,447 total

The process tree of the build process is here.

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: squashfs-tools 4.3-4 (Tue Apr 4 20:50:06 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# arm-linux-androideabi-gcc -I. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -DCOMP_DEFAULT=\"gzip\" -Wall -DGZIP_SUPPORT -DLZMA_SUPPORT -DXZ_SUPPORT -DLZO_SUPPORT -DLZ4_SUPPORT -DXATTR_SUPPORT -DXATTR_DEFAULT -c -o mksquashfs.o mksquashfs.c
# arm-linux-androideabi-gcc -I. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -DCOMP_DEFAULT=\"gzip\" -Wall -DGZIP_SUPPORT -DLZMA_SUPPORT -DXZ_SUPPORT -DLZO_SUPPORT -DLZ4_SUPPORT -DXATTR_SUPPORT -DXATTR_DEFAULT -c -o read_fs.o read_fs.c
# arm-linux-androideabi-gcc -I. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -DCOMP_DEFAULT=\"gzip\" -Wall -DGZIP_SUPPORT -DLZMA_SUPPORT -DXZ_SUPPORT -DLZO_SUPPORT -DLZ4_SUPPORT -DXATTR_SUPPORT -DXATTR_DEFAULT -c -o action.o action.c
# arm-linux-androideabi-gcc -I. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -DCOMP_DEFAULT=\"gzip\" -Wall -DGZIP_SUPPORT -DLZMA_SUPPORT -DXZ_SUPPORT -DLZO_SUPPORT -DLZ4_SUPPORT -DXATTR_SUPPORT -DXATTR_DEFAULT -c -o swap.o swap.c
# In file included from read_fs.c:53:0:
# mksquashfs.h:140:1: error: unknown type name 'pthread_mutex_t'
# extern pthread_mutex_t fragment_mutex, dup_mutex;
# ^
# arm-linux-androideabi-gcc -I. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -DCOMP_DEFAULT=\"gzip\" -Wall -DGZIP_SUPPORT -DLZMA_SUPPORT -DXZ_SUPPORT -DLZO_SUPPORT -DLZ4_SUPPORT -DXATTR_SUPPORT -DXATTR_DEFAULT -c -o pseudo.o pseudo.c
# mksquashfs.c: In function 'create_inode':
# mksquashfs.c:987:29: error: called object 'major' is not a function or function pointer
# unsigned int major = major(buf->st_rdev);
# ^
# mksquashfs.c:987:16: note: declared here
# unsigned int major = major(buf->st_rdev);
# ^
# mksquashfs.c:988:29: error: called object 'minor' is not a function or function pointer
# unsigned int minor = minor(buf->st_rdev);
# ^
# mksquashfs.c:988:16: note: declared here
# unsigned int minor = minor(buf->st_rdev);
# ^
# mksquashfs.c:1011:29: error: called object 'major' is not a function or function pointer
# unsigned int major = major(buf->st_rdev);
# ^
# mksquashfs.c:1011:16: note: declared here
# unsigned int major = major(buf->st_rdev);
# ^
# mksquashfs.c:1012:29: error: called object 'minor' is not a function or function pointer
# unsigned int minor = minor(buf->st_rdev);
# ^
# mksquashfs.c:1012:16: note: declared here
# unsigned int minor = minor(buf->st_rdev);
# ^
# make: *** [: read_fs.o] Error 1
# make: *** Waiting for unfinished jobs....
# In file included from action.c:43:0:
# mksquashfs.h:140:1: error: unknown type name 'pthread_mutex_t'
# extern pthread_mutex_t fragment_mutex, dup_mutex;
# ^
# mksquashfs.c: In function 'excluded_match':
# mksquashfs.c:4404:29: error: 'FNM_EXTMATCH' undeclared (first use in this function)
# FNM_PATHNAME|FNM_PERIOD|FNM_EXTMATCH) == 0;
# ^
# mksquashfs.c:4404:29: note: each undeclared identifier is reported only once for each function it appears in
# action.c: In function 'name_fn':
# action.c:1911:29: error: 'FNM_EXTMATCH' undeclared (first use in this function)
# FNM_PATHNAME|FNM_PERIOD|FNM_EXTMATCH) == 0;)
# ^
# action.c:1845:2: note: in definition of macro 'TEST_FN'
# CODE \
# ^
# action.c:1911:29: note: each undeclared identifier is reported only once for each function it appears in
# FNM_PATHNAME|FNM_PERIOD|FNM_EXTMATCH) == 0;)
# ^
# action.c:1845:2: note: in definition of macro 'TEST_FN'
# CODE \
# ^
# action.c: In function 'pathname_fn':
# action.c:1915:29: error: 'FNM_EXTMATCH' undeclared (first use in this function)
# FNM_PATHNAME|FNM_PERIOD|FNM_EXTMATCH) == 0;)
# ^
# action.c:1845:2: note: in definition of macro 'TEST_FN'
# CODE \
# ^
# action.c: In function 'subpathname_fn':
# action.c:1956:2: warning: implicit declaration of function 'strdupa' [-Wimplicit-function-declaration]
# return fnmatch(atom->argv[0], get_start(strdupa(action_data->subpath),
# ^
# action.c:1957:3: warning: passing argument 1 of 'get_start' makes pointer from integer without a cast [enabled by default]
# count_components(atom->argv[0])),
# ^
# action.c:1934:14: note: expected 'char *' but argument is of type 'int'
# static char *get_start(char *s, int n)
# ^
# action.c:1958:27: error: 'FNM_EXTMATCH' undeclared (first use in this function)
# FNM_PATHNAME|FNM_PERIOD|FNM_EXTMATCH) == 0;
# ^
# pseudo.c: In function 'read_pseudo_def':
# pseudo.c:435:11: error: 'S_IFBLK' undeclared (first use in this function)
# mode |= S_IFBLK;
# ^
# pseudo.c:435:11: note: each undeclared identifier is reported only once for each function it appears in
# pseudo.c:438:11: error: 'S_IFCHR' undeclared (first use in this function)
# mode |= S_IFCHR;
# ^
# pseudo.c:441:11: error: 'S_IFDIR' undeclared (first use in this function)
# mode |= S_IFDIR;
# ^
# pseudo.c:444:11: error: 'S_IFREG' undeclared (first use in this function)
# mode |= S_IFREG;
# ^
# make: *** [: pseudo.o] Error 1
# action.c: In function 'name_fn':
# action.c:1839:48: warning: control reaches end of non-void function [-Wreturn-type]
# static int NAME##_fn(struct atom *atom, struct action_data *action_data) \
# ^
# action.c:1909:1: note: in expansion of macro 'TEST_FN'
# TEST_FN(name, ACTION_ALL_LNK, \
# ^
# action.c: In function 'pathname_fn':
# action.c:1839:48: warning: control reaches end of non-void function [-Wreturn-type]
# static int NAME##_fn(struct atom *atom, struct action_data *action_data) \
# ^
# action.c:1913:1: note: in expansion of macro 'TEST_FN'
# TEST_FN(pathname, ACTION_ALL_LNK, \
# ^
# action.c: In function 'subpathname_fn':
# action.c:1959:1: warning: control reaches end of non-void function [-Wreturn-type]
# }
# ^
# make: *** [: action.o] Error 1
# make: *** [: mksquashfs.o] Error 1
# ==> ERROR: A failure occurred in build().
# Aborting...