Build of libtermkey with musl 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
3,428 ansic
100 makefile
3,528 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...

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: libtermkey 0.18-2 (Wed Apr 5 00:29:37 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Installing missing dependencies...
# resolving dependencies...
# looking for conflicting packages...
#
# Packages (1) unibilium-1.2.0-1
#
# Total Installed Size: 0.23 MiB
#
# :: Proceed with installation? [Y/n]
# checking keyring...
# checking package integrity...
# loading package files...
# checking for file conflicts...
# checking available disk space...
# :: Processing package changes...
# installing unibilium...
# :: Running post-transaction hooks...
# (1/1) Updating manpage index...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# libtool --quiet --mode=compile --tag=CC clang -Wall -std=c99 -DHAVE_UNIBILIUM -o termkey.lo -c termkey.c
# libtool --quiet --mode=compile --tag=CC clang -Wall -std=c99 -DHAVE_UNIBILIUM -o driver-csi.lo -c driver-csi.c
# libtool --quiet --mode=compile --tag=CC clang -Wall -std=c99 -DHAVE_UNIBILIUM -o driver-ti.lo -c driver-ti.c
# libtool --quiet --mode=compile --tag=CC clang -Wall -std=c99 -DHAVE_UNIBILIUM -o demo.lo -c demo.c
# libtool --quiet --mode=compile --tag=CC clang -Wall -std=c99 -DHAVE_UNIBILIUM -o demo-async.lo -c demo-async.c
# libtool --quiet --mode=compile --tag=CC clang -o demo-glib.lo -c demo-glib.c -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
# libtool --quiet --mode=link --tag=CC clang -rpath /usr/lib -version-info 13:0:12 -lunibilium -o libtermkey.la termkey.lo driver-csi.lo driver-ti.lo
# /r: `u' modifier ignored since `D' is the default (see `U')
# libtool --quiet --mode=link --tag=CC clang -o demo libtermkey.la demo.lo
# libtool --quiet --mode=link --tag=CC clang -o demo-async libtermkey.la demo-async.lo
# libtool --quiet --mode=link --tag=CC clang -o demo-glib libtermkey.la demo-glib.lo -lglib-2.0
# /sysroot/bin/ld: error: cannot find -lglib-2.0
# .libs/demo-glib.o:demo-glib.c:function main: error: undefined reference to 'g_main_loop_new'
# .libs/demo-glib.o:demo-glib.c:function main: error: undefined reference to 'g_io_channel_unix_new'
# .libs/demo-glib.o:demo-glib.c:function main: error: undefined reference to 'g_io_add_watch'
# .libs/demo-glib.o:demo-glib.c:function main: error: undefined reference to 'g_main_loop_run'
# .libs/demo-glib.o:demo-glib.c:function stdin_io: error: undefined reference to 'g_source_remove'
# .libs/demo-glib.o:demo-glib.c:function stdin_io: error: undefined reference to 'g_timeout_add'
# clang-3.8: error: linker command failed with exit code 1 (use -v to see invocation)
# make: *** [Makefile:83: demo-glib] Error 1
# make: *** Waiting for unfinished jobs....
# ==> ERROR: A failure occurred in build().
# Aborting...