Build of atop with clang_glibc toolchain

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

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

SLOCLanguage
15,897 ansic
171 sh
145 makefile
16,213 total

The process tree of the build process is here.

Several sub-process invocations were improper; see the process tree for details. Summary:

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/sysroot --> /sysroot/sysroot
# /toolchain_root/lib --> /sysroot/lib
# /toolchain_root/sbin --> /sysroot/sbin
# /toolchain_root/lib64 --> /sysroot/lib64
# /toolchain_root/etc --> /sysroot/etc
# /toolchain_root/share --> /sysroot/share
# /toolchain_root/bin --> /sysroot/bin
# /toolchain_root/var --> /sysroot/var
# /toolchain_root/usr --> /sysroot/usr
# /toolchain_root/glibc-build --> /sysroot/glibc-build
# /toolchain_root/x86_64-pc-linux-gnu --> /sysroot/x86_64-pc-linux-gnu
# /toolchain_root/include --> /sysroot/include
# /toolchain_root/libexec --> /sysroot/libexec

CMD: sudo -u tuscan PATH=/usr/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: atop 2.2_3-3 (Thu Apr 13 21:09:25 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Installing missing dependencies...
# resolving dependencies...
# looking for conflicting packages...
#
# Packages (1) cronie-1.5.1-1
#
# Total Installed Size: 0.26 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 cronie...
# Optional dependencies for cronie
# pm-utils: defer anacron on battery power
# smtp-server: send job output via email
# smtp-forwarder: forward job output to email server
# :: Running post-transaction hooks...
# (1/1) Updating manpage index...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# clang -O2 -I. -Wall -c -o atop.o atop.c
# atop.c:274:19: warning: unused variable 'rcsid' [-Wunused-const-variable]
# static const char rcsid[] = "$Id: atop.c,v 1.49 2010/10/23 14:01:00 gerlof Exp $";
# ^
# 1 warning generated.
# clang -O2 -I. -Wall -c -o version.o version.c
# clang -O2 -I. -Wall -c -o various.o various.c
# various.c:101:19: warning: unused variable 'rcsid' [-Wunused-const-variable]
# static const char rcsid[] = "$Id: various.c,v 1.21 2010/11/12 06:16:16 gerlof Exp $";
# ^
# 1 warning generated.
# clang -O2 -I. -Wall -c -o deviate.o deviate.c
# deviate.c:938:23: warning: address of array 'pre->dsk.dsk[j].name' will always evaluate to 'true' [-Wpointer-bool-conversion]
# if (pre->dsk.dsk[j].name) // existing matching entry
# ~~ ~~~~~~~~~~~~~~~~^~~~
# deviate.c:994:23: warning: address of array 'pre->dsk.mdd[j].name' will always evaluate to 'true' [-Wpointer-bool-conversion]
# if (pre->dsk.mdd[j].name) // existing matching entry
# ~~ ~~~~~~~~~~~~~~~~^~~~
# deviate.c:1050:23: warning: address of array 'pre->dsk.lvm[j].name' will always evaluate to 'true' [-Wpointer-bool-conversion]
# if (pre->dsk.lvm[j].name) // existing matching entry
# ~~ ~~~~~~~~~~~~~~~~^~~~
# deviate.c:171:19: warning: unused variable 'rcsid' [-Wunused-const-variable]
# static const char rcsid[] = "$Id: deviate.c,v 1.45 2010/10/23 14:02:03 gerlof Exp $";
# ^
# 4 warnings generated.
# clang -O2 -I. -Wall -c -o procdbase.o procdbase.c
# procdbase.c:61:19: warning: unused variable 'rcsid' [-Wunused-const-variable]
# static const char rcsid[] = "$Id: procdbase.c,v 1.8 2010/04/23 12:19:35 gerlof Exp $";
# ^
# 1 warning generated.
# clang -O2 -I. -Wall -c -o acctproc.o acctproc.c
# acctproc.c:116:19: warning: unused variable 'rcsid' [-Wunused-const-variable]
# static const char rcsid[] = "$Id: acctproc.c,v 1.28 2010/04/23 12:20:19 gerlof Exp $";
# ^
# 1 warning generated.
# clang -O2 -I. -Wall -c -o photoproc.o photoproc.c
# photoproc.c:255:27: warning: if statement has empty body [-Wempty-body]
# if ( chdir("..") == -1);
# ^
# photoproc.c:255:27: note: put the semicolon on a separate line to silence this warning
# photoproc.c:261:27: warning: if statement has empty body [-Wempty-body]
# if ( chdir("..") == -1);
# ^
# photoproc.c:261:27: note: put the semicolon on a separate line to silence this warning
# photoproc.c:267:27: warning: if statement has empty body [-Wempty-body]
# if ( chdir("..") == -1);
# ^
# photoproc.c:267:27: note: put the semicolon on a separate line to silence this warning
# photoproc.c:319:30: warning: if statement has empty body [-Wempty-body]
# if ( chdir("..") == -1);
# ^
# photoproc.c:319:30: note: put the semicolon on a separate line to silence this warning
# photoproc.c:325:30: warning: if statement has empty body [-Wempty-body]
# if ( chdir("..") == -1);
# ^
# photoproc.c:325:30: note: put the semicolon on a separate line to silence this warning
# photoproc.c:331:30: warning: if statement has empty body [-Wempty-body]
# if ( chdir("..") == -1);
# ^
# photoproc.c:331:30: note: put the semicolon on a separate line to silence this warning
# photoproc.c:356:29: warning: if statement has empty body [-Wempty-body]
# if ( chdir("..") == -1); /* thread */
# ^
# photoproc.c:356:29: note: put the semicolon on a separate line to silence this warning
# photoproc.c:360:28: warning: if statement has empty body [-Wempty-body]
# if ( chdir("..") == -1); /* leave task */
# ^
# photoproc.c:360:28: note: put the semicolon on a separate line to silence this warning
# photoproc.c:364:26: warning: if statement has empty body [-Wempty-body]
# if ( chdir("..") == -1); /* leave process-level directry */
# ^
# photoproc.c:364:26: note: put the semicolon on a separate line to silence this warning
# photoproc.c:139:19: warning: unused variable 'rcsid' [-Wunused-const-variable]
# static const char rcsid[] = "$Id: photoproc.c,v 1.33 2010/04/23 12:19:35 gerlof Exp $";
# ^
# 10 warnings generated.
# clang -O2 -I. -Wall -c -o photosyst.o photosyst.c
# photosyst.c:152:19: warning: unused variable 'rcsid' [-Wunused-const-variable]
# static const char rcsid[] = "$Id: photosyst.c,v 1.38 2010/11/19 07:40:40 gerlof Exp $";
# ^
# 1 warning generated.
# clang -O2 -I. -Wall -c -o rawlog.o rawlog.c
# rawlog.c:138:19: warning: unused variable 'rcsid' [-Wunused-const-variable]
# static const char rcsid[] = "$Id: rawlog.c,v 1.32 2010/11/26 06:06:35 gerlof Exp $";
# ^
# 1 warning generated.
# clang -O2 -I. -Wall -c -o ifprop.o ifprop.c
# clang -O2 -I. -Wall -c -o parseable.o parseable.c
# clang -O2 -I. -Wall -c -o showgeneric.o showgeneric.c
# showgeneric.c:258:19: warning: unused variable 'rcsid' [-Wunused-const-variable]
# static const char rcsid[] = "$Id: showgeneric.c,v 1.71 2010/10/25 19:08:32 gerlof Exp $";
# ^
# 1 warning generated.
# clang -O2 -I. -Wall -c -o showlinux.o showlinux.c
# showlinux.c:265:19: warning: unused variable 'rcsid' [-Wunused-const-variable]
# static const char rcsid[] = "$Id: showlinux.c,v 1.70 2010/10/23 14:04:12 gerlof Exp $";
# ^
# 1 warning generated.
# clang -O2 -I. -Wall -c -o showsys.o showsys.c
# showsys.c:71:19: warning: unused variable 'rcsid' [-Wunused-const-variable]
# static const char rcsid[] = "XXXXXX";
# ^
# 1 warning generated.
# clang -O2 -I. -Wall -c -o showprocs.o showprocs.c
# showprocs.c:85:19: warning: unused variable 'rcsid' [-Wunused-const-variable]
# static const char rcsid[] = "$Id: showprocs.c,v 1.15 2011/09/05 11:44:16 gerlof Exp $";
# ^
# 1 warning generated.
# clang -O2 -I. -Wall -c -o atopsar.o atopsar.c
# atopsar.c:32:19: warning: unused variable 'rcsid' [-Wunused-const-variable]
# static const char rcsid[] = "$Id: atopsar.c,v 1.28 2010/11/26 06:19:43 gerlof Exp $";
# ^
# 1 warning generated.
# clang -O2 -I. -Wall -c -o netatopif.o netatopif.c
# clang atop.o version.o various.o deviate.o procdbase.o acctproc.o photoproc.o photosyst.o rawlog.o ifprop.o parseable.o showgeneric.o showlinux.o showsys.o showprocs.o atopsar.o netatopif.o -o atop -lncurses -lz -lm -lrt
# ln -sf atop atopsar
# clang -O2 -I. -Wall -c -o atopacctd.o atopacctd.c
# clang -I. -Wall -c netlink.c
# clang atopacctd.o netlink.o -o atopacctd
# ==> Entering fakeroot environment...
# ==> Starting package()...
# if [ ! -d /tmp/atop/pkg/atop/var/log/atop ]; \
# then mkdir -p /tmp/atop/pkg/atop/var/log/atop; fi
# if [ ! -d /tmp/atop/pkg/atop/usr/bin ]; \
# then mkdir -p /tmp/atop/pkg/atop/usr/bin; fi
# if [ ! -d /tmp/atop/pkg/atop/usr/bin ]; \
# then mkdir -p /tmp/atop/pkg/atop/usr/bin; fi
# if [ ! -d /tmp/atop/pkg/atop/etc/atop ]; \
# then mkdir -p /tmp/atop/pkg/atop/etc/atop; fi
# if [ ! -d /tmp/atop/pkg/atop/usr/share/man/man1 ]; \
# then mkdir -p /tmp/atop/pkg/atop/usr/share/man/man1; fi
# if [ ! -d /tmp/atop/pkg/atop/usr/share/man/man5 ]; \
# then mkdir -p /tmp/atop/pkg/atop/usr/share/man/man5; fi
# if [ ! -d /tmp/atop/pkg/atop/usr/share/man/man8 ]; \
# then mkdir -p /tmp/atop/pkg/atop/usr/share/man/man8; fi
# if [ ! -d /tmp/atop/pkg/atop/etc/cron.d ]; \
# then mkdir -p /tmp/atop/pkg/atop/etc/cron.d; fi
# if [ ! -d /tmp/atop/pkg/atop/etc/logrotate.d ]; \
# then mkdir -p /tmp/atop/pkg/atop/etc/logrotate.d; fi
# #
# cp atop /tmp/atop/pkg/atop/usr/bin/atop
# chown root /tmp/atop/pkg/atop/usr/bin/atop
# chown: changing ownership of '/tmp/atop/pkg/atop/usr/bin/atop': Operation not permitted
# make: *** [Makefile:132: genericinstall] Error 1
# ==> ERROR: A failure occurred in package().
# Aborting...