Build of catdoc with musl toolchain

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

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

SLOCLanguage
4,200 ansic
262 tcl
208 sh
4,670 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...

There were existing files in /sysroot, using those
# /sysroot/lib
# /sysroot/share
# /sysroot/bin
# /sysroot/include
# /sysroot/libexec

CMD: sudo -u tuscan PATH=/sysroot/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin CC=clang CXX=clang++ red makepkg --noextract --syncdeps --skipinteg --skippgpcheck --skipchecksums --noconfirm --nocolor --log --noprogressbar --nocheck
# ==> Making package: catdoc 0.94.4-1 (Tue Apr 4 23:06:38 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# creating cache ./config.cache
# checking for gcc... clang
# checking whether the C compiler (clang ) works... yes
# checking whether the C compiler (clang ) is a cross-compiler... yes
# checking whether we are using GNU C... yes
# checking whether clang accepts -g... yes
# checking whether byte ordering is bigendian... no
# checking for a BSD compatible install... /usr/bin/install -c
# checking how to run the C preprocessor... clang -E
# checking for ANSI C header files... yes
# checking for unistd.h... yes
# checking for langinfo.h... yes
# checking For nl_langinfo(CODESET)... yes
# checking for working const... yes
# checking whether setvbuf arguments are reversed... configure: error: can not run test program while cross compiling
# ==> ERROR: A failure occurred in build().
# Aborting...

Printing config logfiles

CMD: config logfiles '/tmp/catdoc/src/catdoc-0.94.4/config.log'
# This file contains any messages produced by compilers while
# running configure, to aid debugging if configure makes a mistake.
#
# configure:549: checking for gcc
# configure:662: checking whether the C compiler (clang ) works
# configure:678: clang -o conftest conftest.c 1>&5
# configure:675:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
# main(){return(0);}
# ^
# 1 warning generated.
# configure:704: checking whether the C compiler (clang ) is a cross-compiler
# configure:709: checking whether we are using GNU C
# configure:718: clang -E conftest.c
# configure:737: checking whether clang accepts -g
# configure:776: checking whether byte ordering is bigendian
# configure:794: clang -c conftest.c 1>&5
# configure:809: clang -c conftest.c 1>&5
# configure:804:2: error: use of undeclared identifier 'not'
# not big endian
# ^
# 1 error generated.
# configure: failed program was:
# #line 798 "configure"
# #include "confdefs.h"
# #include
# #include
# int main() {
#
# #if BYTE_ORDER != BIG_ENDIAN
# not big endian
# #endif
# ; return 0; }
# configure:896: checking for a BSD compatible install
# configure:1080: checking how to run the C preprocessor
# configure:1101: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1160: checking for ANSI C header files
# configure:1173: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1267: checking for unistd.h
# configure:1277: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1314: checking for langinfo.h
# configure:1324: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1342: checking For nl_langinfo(CODESET)
# configure:1351: clang -c conftest.c 1>&5
# configure:1381: checking for working const
# configure:1435: clang -c conftest.c 1>&5
# configure:1457: checking whether setvbuf arguments are reversed