Build of glib-perl with musl toolchain

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

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

SLOCLanguage
17,093 ansic
4,827 perl
1,060 makefile
22,980 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: glib-perl 1.321-2 (Wed Apr 5 02:02:57 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> Installing missing dependencies...
# resolving dependencies...
# looking for conflicting packages...
#
# Packages (2) perl-extutils-depends-0.405-1 perl-extutils-pkgconfig-1.15-1
#
# Total Installed Size: 0.07 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 perl-extutils-depends...
# installing perl-extutils-pkgconfig...
# :: Running post-transaction hooks...
# (1/1) Updating manpage index...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# Including generated API documentation...
# Checking if your kit is complete...
# Looks good
# Unrecognized argument in LIBS ignored: '-pthread'
# Generating a Unix-style Makefile
# Writing Makefile for Glib
# Writing MYMETA.yml and MYMETA.json
# Running Mkbootstrap for Glib ()
# [ XS Glib.xs ]
# chmod 644 "Glib.bs"
# [ XS GUtils.xs ]
# [ XS GError.xs ]
# cp /tmp/glib-perl/src/Glib-1.321/typemap blib/arch/Glib/Install/typemap
# cp build/IFiles.pm blib/arch/Glib/Install/Files.pm
# cp gperl_marshal.h blib/arch/Glib/Install/gperl_marshal.h
# cp lib/Glib/MakeHelper.pm blib/lib/Glib/MakeHelper.pm
# cp lib/Glib/GenPod.pm blib/lib/Glib/GenPod.pm
# cp doctypes blib/arch/Glib/Install/doctypes
# cp lib/Glib/CodeGen.pm blib/lib/Glib/CodeGen.pm
# cp lib/Glib/ParseXSDoc.pm blib/lib/Glib/ParseXSDoc.pm
# cp gperl.h blib/arch/Glib/Install/gperl.h
# cp devel.pod blib/lib/Glib/devel.pod
# cp lib/Glib/Object/Subclass.pm blib/lib/Glib/Object/Subclass.pm
# cp lib/Glib.pm blib/lib/Glib.pm
# [ XS GLog.xs ]
# [ XS GType.xs ]
# [ XS GBoxed.xs ]
# [ XS GObject.xs ]
# [ XS GValue.xs ]
# [ XS GClosure.xs ]
# [ XS GSignal.xs ]
# [ XS GMainLoop.xs ]
# [ XS GIOChannel.xs ]
# [ XS GParamSpec.xs ]
# [ XS GKeyFile.xs ]
# [ XS GOption.xs ]
# [ XS GBookmarkFile.xs ]
# [ XS GVariant.xs ]
# [ CC gperl-gtypes.c ]
# Parsing XS files...
# [ CC Glib.c ]
# [ CC GError.c ]
# [ CC GUtils.c ]
# [ CC GLog.c ]
# [ CC GType.c ]
# [ CC GBoxed.c ]
# [ CC GObject.c ]
# [ CC GValue.c ]
# [ CC GClosure.c ]
# [ CC GSignal.c ]
# [ CC GMainLoop.c ]
# [ CC GIOChannel.c ]
# [ CC GParamSpec.c ]
# [ CC GKeyFile.c ]
# [ CC GOption.c ]
# GOption.xs:52:3: warning: 'g_option_group_free' is deprecated [-Wdeprecated-declarations]
# g_option_group_free (group);
# ^
# [ CC GBookmarkFile.c ]
# [ CC GVariant.c ]
# Creating XS API documentation...
# /usr/include/glib-2.0/glib/goption.h:368:15: note: 'g_option_group_free' has been explicitly marked deprecated here
# void g_option_group_free (GOptionGroup *group);
# ^
# 1 warning generated.
# rm -f blib/arch/auto/Glib/Glib.so
# [ LD blib/arch/auto/Glib/Glib.so ]
# /sysroot/bin/ld: error: cannot find -lgobject-2.0
# /sysroot/bin/ld: error: cannot find -lglib-2.0
# /sysroot/bin/ld: error: cannot find -lgthread-2.0
# clang-3.8: error: linker command failed with exit code 1 (use -v to see invocation)
# make: *** [Makefile:614: blib/arch/auto/Glib/Glib.so] Error 1
# ==> ERROR: A failure occurred in build().
# Aborting...