Build of tdb with musl toolchain

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

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

SLOCLanguage
21,378 python
20,274 ansic
169 sh
80 makefile
41,901 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...

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: tdb 1.3.8-1 (Wed Apr 5 01:54:47 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# Checking for program gcc or cc : clang
# Checking for program cpp : /usr/sbin/cpp
# Checking for program ar : /sysroot/bin/ar
# Checking for program ranlib : /sysroot/bin/ranlib
# Checking for gcc : ok
# Checking for program git : /usr/sbin/git
# Check for -MD : yes
# Checking for program gdb : not found
# Checking build system : Linux ef1cad65c62c 4.10.6-1-ARCH #1 SMP PREEMPT Mon Mar 27 08:28:22 CEST 2017 x86_64 GNU/Linux
# Checking for header sys/utsname.h : yes
# Checking uname sysname type : not found
# Checking uname machine type : not found
# Checking uname release type : not found
# Checking uname version type : not found
# Checking for header stdio.h : yes
# Checking simple C program : /tmp/tdb/src/tdb-1.3.8/lib/replace/../../buildtools/wafsamba/wscript:310: error: the configuration failed (see '/tmp/tdb/src/tdb-1.3.8/bin/config.log')
# ==> ERROR: A failure occurred in build().
# Aborting...

Printing config logfiles

CMD: config logfiles '/tmp/tdb/src/tdb-1.3.8/bin/config.log'
# # project tdb (1.3.8) configured on Wed Apr 5 01:54:48 2017 by
# # waf 1.5.19 (abi 7, python 2070cf0 on linux2)
# # using ./buildtools/bin/waf configure --host=x86_64-unknown-linux --prefix=/usr --localstatedir=/var --sysconfdir=/etc/samba
# #
#
# ----------------------------------------
# Checking for program gcc or cc
# find program=['gcc', 'cc'] paths=[] var='CC'
# -> 'clang'
#
# ----------------------------------------
# Checking for program cpp
# find program=['cpp'] paths=[] var='CPP'
# -> '/usr/sbin/cpp'
#
# ----------------------------------------
# Checking for program ar
# find program=['ar'] paths=[] var='AR'
# -> '/sysroot/bin/ar'
#
# ----------------------------------------
# Checking for program ranlib
# find program=['ranlib'] paths=[] var='RANLIB'
# -> '/sysroot/bin/ranlib'
#
# ----------------------------------------
# Checking for gcc
# ok
#
# ----------------------------------------
# Checking for program git
# find program=['git'] paths=[] var='GIT'
# -> '/usr/sbin/git'
#
# ----------------------------------------
# Check for -MD
# ==>
# int main() {return 0;}
#
# <==
# [1/1] Compiling test.c
# ['clang', '-MD', '../test.c', '-c', '-o', '/tmp/tdb/src/tdb-1.3.8/bin/.conf_check_0/testbuild/default/test_1.o']
# yes
#
# ----------------------------------------
# Checking for program gdb
# find program=['gdb'] paths=[] var=None
# -> ''
#
# ----------------------------------------
# Checking build system
# Linux ef1cad65c62c 4.10.6-1-ARCH #1 SMP PREEMPT Mon Mar 27 08:28:22 CEST 2017 x86_64 GNU/Linux
#
# ----------------------------------------
# Checking for header sys/utsname.h
# ==>
# #include
#
# int main(void) { return 0; }
# <==
# [1/1] Compiling test.c
# ['clang', '-MD', '../test.c', '-c', '-o', 'default/test_1.o']
# yes
#
# ----------------------------------------
# Checking uname sysname type
# ==>
# #define BUILD_SYSTEM "Linux ef1cad65c62c 4.10.6-1-ARCH #1 SMP PREEMPT Mon Mar 27 08:28:22 CEST 2017 x86_64 GNU/Linux"
# #define HAVE_SYS_UTSNAME_H 1
# #include
#
# int main(void) {
# struct utsname n;
# if (uname(&n) == -1) return -1;
# printf("%s", n.sysname);
# ; return 0; }
#
# <==
# [1/2] Compiling test.c
# ../test.c:8:32: warning: implicitly declaring library function 'printf' with type 'int (const char *, ...)' [-Wimplicit-function-declaration]
# printf("%s", n.sysname);
# ^
# ../test.c:8:32: note: include the header or explicitly provide a declaration for 'printf'
# 1 warning generated.
# ['clang', '-MD', '-Idefault', '-I..', '-Idefault', '-I..', '../test.c', '-c', '-o', 'default/test_1.o']
# [2/2] Linking default/testprog
# ['clang', 'default/test_1.o', '-o', '/tmp/tdb/src/tdb-1.3.8/bin/.conf_check_0/testbuild/default/testprog']
#
# /tmp/tdb/src/tdb-1.3.8/bin/.conf_check_0/testbuild/default/testprog: error while loading shared libraries: /usr/lib/libc.so: invalid ELF header
#
# returncode 127
# not found
#
# ----------------------------------------
# Checking uname machine type
# ==>
# #define BUILD_SYSTEM "Linux ef1cad65c62c 4.10.6-1-ARCH #1 SMP PREEMPT Mon Mar 27 08:28:22 CEST 2017 x86_64 GNU/Linux"
# #define HAVE_SYS_UTSNAME_H 1
# /* #undef SYSTEM_UNAME_SYSNAME */
# #include
#
# int main(void) {
# struct utsname n;
# if (uname(&n) == -1) return -1;
# printf("%s", n.machine);
# ; return 0; }
#
# <==
# [1/2] Compiling test.c
# ../test.c:9:32: warning: implicitly declaring library function 'printf' with type 'int (const char *, ...)' [-Wimplicit-function-declaration]
# printf("%s", n.machine);
# ^
# ../test.c:9:32: note: include the header or explicitly provide a declaration for 'printf'
# 1 warning generated.
# ['clang', '-MD', '-Idefault', '-I..', '-Idefault', '-I..', '../test.c', '-c', '-o', 'default/test_1.o']
# [2/2] Linking default/testprog
# ['clang', 'default/test_1.o', '-o', '/tmp/tdb/src/tdb-1.3.8/bin/.conf_check_0/testbuild/default/testprog']
#
# /tmp/tdb/src/tdb-1.3.8/bin/.conf_check_0/testbuild/default/testprog: error while loading shared libraries: /usr/lib/libc.so: invalid ELF header
#
# returncode 127
# not found
#
# ----------------------------------------
# Checking uname release type
# ==>
# #define BUILD_SYSTEM "Linux ef1cad65c62c 4.10.6-1-ARCH #1 SMP PREEMPT Mon Mar 27 08:28:22 CEST 2017 x86_64 GNU/Linux"
# #define HAVE_SYS_UTSNAME_H 1
# /* #undef SYSTEM_UNAME_SYSNAME */
# /* #undef SYSTEM_UNAME_MACHINE */
# #include
#
# int main(void) {
# struct utsname n;
# if (uname(&n) == -1) return -1;
# printf("%s", n.release);
# ; return 0; }
#
# <==
# [1/2] Compiling test.c
# ../test.c:10:32: warning: implicitly declaring library function 'printf' with type 'int (const char *, ...)' [-Wimplicit-function-declaration]
# printf("%s", n.release);
# ^
# ../test.c:10:32: note: include the header or explicitly provide a declaration for 'printf'
# 1 warning generated.
# ['clang', '-MD', '-Idefault', '-I..', '-Idefault', '-I..', '../test.c', '-c', '-o', 'default/test_1.o']
# [2/2] Linking default/testprog
# ['clang', 'default/test_1.o', '-o', '/tmp/tdb/src/tdb-1.3.8/bin/.conf_check_0/testbuild/default/testprog']
#
# /tmp/tdb/src/tdb-1.3.8/bin/.conf_check_0/testbuild/default/testprog: error while loading shared libraries: /usr/lib/libc.so: invalid ELF header
#
# returncode 127
# not found
#
# ----------------------------------------
# Checking uname version type
# ==>
# #define BUILD_SYSTEM "Linux ef1cad65c62c 4.10.6-1-ARCH #1 SMP PREEMPT Mon Mar 27 08:28:22 CEST 2017 x86_64 GNU/Linux"
# #define HAVE_SYS_UTSNAME_H 1
# /* #undef SYSTEM_UNAME_SYSNAME */
# /* #undef SYSTEM_UNAME_MACHINE */
# /* #undef SYSTEM_UNAME_RELEASE */
# #include
#
# int main(void) {
# struct utsname n;
# if (uname(&n) == -1) return -1;
# printf("%s", n.version);
# ; return 0; }
#
# <==
# [1/2] Compiling test.c
# ../test.c:11:32: warning: implicitly declaring library function 'printf' with type 'int (const char *, ...)' [-Wimplicit-function-declaration]
# printf("%s", n.version);
# ^
# ../test.c:11:32: note: include the header or explicitly provide a declaration for 'printf'
# 1 warning generated.
# ['clang', '-MD', '-Idefault', '-I..', '-Idefault', '-I..', '../test.c', '-c', '-o', 'default/test_1.o']
# [2/2] Linking default/testprog
# ['clang', 'default/test_1.o', '-o', '/tmp/tdb/src/tdb-1.3.8/bin/.conf_check_0/testbuild/default/testprog']
#
# /tmp/tdb/src/tdb-1.3.8/bin/.conf_check_0/testbuild/default/testprog: error while loading shared libraries: /usr/lib/libc.so: invalid ELF header
#
# returncode 127
# not found
#
# ----------------------------------------
# Checking for header stdio.h
# ==>
# #include
#
# int main(void) { return 0; }
# <==
# [1/1] Compiling test.c
# ['clang', '-MD', '../test.c', '-c', '-o', 'default/test_1.o']
# yes
#
# ----------------------------------------
# Checking simple C program
# ==>
# #define BUILD_SYSTEM "Linux ef1cad65c62c 4.10.6-1-ARCH #1 SMP PREEMPT Mon Mar 27 08:28:22 CEST 2017 x86_64 GNU/Linux"
# #define HAVE_SYS_UTSNAME_H 1
# /* #undef SYSTEM_UNAME_SYSNAME */
# /* #undef SYSTEM_UNAME_MACHINE */
# /* #undef SYSTEM_UNAME_RELEASE */
# /* #undef SYSTEM_UNAME_VERSION */
# #define HAVE_STDIO_H 1
# #include
#
# int main(void) { printf("hello world"); return 0; }
#
# <==
# [1/2] Compiling test.c
# ['clang', '-I/tmp/tdb/src/tdb-1.3.8/lib/replace/../../buildtools/wafsamba', '-MD', '-Idefault', '-I..', '-Idefault', '-I..', '../test.c', '-c', '-o', 'default/test_1.o']
# [2/2] Linking default/testprog
# ['clang', 'default/test_1.o', '-o', '/tmp/tdb/src/tdb-1.3.8/bin/.conf_check_0/testbuild/default/testprog']
#
# /tmp/tdb/src/tdb-1.3.8/bin/.conf_check_0/testbuild/default/testprog: error while loading shared libraries: /usr/lib/libc.so: invalid ELF header
#
# returncode 127