Build of cpulimit with clang_glibc toolchain

The build took 00h 04m 00s and was SUCCESSFUL.

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

SLOCLanguage
1,348 ansic
261 sh
40 makefile
1,649 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...

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: cpulimit 20160304-1 (Thu Apr 13 12:03:57 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# cd src && make all
# make[1]: Entering directory '/tmp/cpulimit/src/cpulimit-20160304/src'
# clang -c list.c
# clang -c process_iterator.c
# clang -c process_group.c
# process_group.c:64:15: warning: implicit declaration of function 'basename' is invalid in C99 [-Wimplicit-function-declaration]
# if (strncmp(basename(proc.command), process_name, strlen(process_name))==0 && kill(pid,SIGCONT)==0) {
# ^
# process_group.c:64:15: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'const char *' [-Wint-conversion]
# if (strncmp(basename(proc.command), process_name, strlen(process_name))==0 && kill(pid,SIGCONT)==0) {
# ^~~~~~~~~~~~~~~~~~~~~~
# /usr/include/string.h:143:33: note: passing argument to parameter '__s1' here
# extern int strncmp (const char *__s1, const char *__s2, size_t __n)
# ^
# 2 warnings generated.
# clang -o cpulimit cpulimit.c list.o process_iterator.o process_group.o
# cpulimit.c:46:18: warning: extra tokens at end of #ifdef directive [-Wextra-tokens]
# #ifdef __APPLE__ || __FREEBSD__
# ^
# //
# cpulimit.c:328:19: warning: implicit declaration of function 'memrchr' is invalid in C99 [-Wimplicit-function-declaration]
# char *p = (char*)memrchr(argv[0], (unsigned int)'/', strlen(argv[0]));
# ^
# cpulimit.c:328:12: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast]
# char *p = (char*)memrchr(argv[0], (unsigned int)'/', strlen(argv[0]));
# ^
# 3 warnings generated.
# make[1]: Leaving directory '/tmp/cpulimit/src/cpulimit-20160304/src'
# cd tests && make all
# make[1]: Entering directory '/tmp/cpulimit/src/cpulimit-20160304/tests'
# clang -o busy busy.c -lpthread
# clang -I../src -o process_iterator_test process_iterator_test.c ../src/list.o ../src/process_iterator.o ../src/process_group.o -lpthread
# process_iterator_test.c:31:18: warning: extra tokens at end of #ifdef directive [-Wextra-tokens]
# #ifdef __APPLE__ || __FREEBSD__
# ^
# //
# 1 warning generated.
# make[1]: Leaving directory '/tmp/cpulimit/src/cpulimit-20160304/tests'
# ==> Entering fakeroot environment...
# ==> Starting package()...
# ==> Tidying install...
# -> Removing doc files...
# -> Purging unwanted files...
# ==> Checking for packaging issue...
# ==> Creating package "cpulimit"...
# -> Generating .PKGINFO file...
# -> Generating .BUILDINFO file...
# error: invalid option '--noprogressbar'
# -> Generating .MTREE file...
# -> Compressing package...
# ==> Leaving fakeroot environment.
# ==> Finished making: cpulimit 20160304-1 (Thu Apr 13 12:04:08 UTC 2017)

CMD: pacman --query --file cpulimit-20160304-1-x86_64.pkg.tar.xz
# cpulimit 20160304-1

Creating hybrid package for 'cpulimit'

Trying to find vanilla package 'cpulimit'...

CMD: pacman --query --file /mirror/cpulimit-20160304-1.pkg.tar.xz
# cpulimit 20160304-1

Package file has the following structure:
# /.PKGINFO
# /.BUILDINFO
# /.MTREE
# /usr/bin/cpulimit
# /usr/share/doc/cpulimit/README.md

Generating .MTREE

CMD: bsdtar -czf .MTREE --format=mtree --options=!all,use-set,type,uid,mode,time,size,md5,sha256,link .PKGINFO .BUILDINFO usr

Tar-ing up files

CMD: bsdtar -cf - .PKGINFO .BUILDINFO usr .MTREE

CMD: xz -c -z

Successfully ran bsdtar -cf - .PKGINFO .BUILDINFO usr .MTREE | xz -c -z

CMD: bsdtar -tqf cpulimit.pkg.tar.xz .PKGINFO
# .PKGINFO

Created package at path /var/cache/pacman/pkg/cpulimit.pkg.tar.xz

Attempting to access local repository, attempt 1

CMD: repo-add /var/cache/pacman/pkg/tuscan.db.tar /var/cache/pacman/pkg/cpulimit.pkg.tar.xz
# ==> Extracting database to a temporary location...
# ==> Extracting database to a temporary location...
# ==> Adding package '/var/cache/pacman/pkg/cpulimit.pkg.tar.xz'
# -> Computing checksums...
# -> Creating 'desc' db entry...
# -> Creating 'files' db entry...
# ==> Creating updated database file '/var/cache/pacman/pkg/tuscan.db.tar'