Build of libcap with vanilla toolchain

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

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

SLOCLanguage
2,698 ansic
644 sh
172 makefile
3,514 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...

CMD: sudo -u tuscan red makepkg --noextract --syncdeps --skipinteg --skippgpcheck --skipchecksums --noconfirm --nocolor --log --noprogressbar --nocheck
# ==> Making package: libcap 2.25-1 (Wed Aug 24 13:09:21 UTC 2016)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# make: Entering directory '/tmp/libcap/src/libcap-2.25'
# make -C libcap all
# make[1]: Entering directory '/tmp/libcap/src/libcap-2.25/libcap'
# => making cap_names.list.h from /usr/include/linux/capability.h
# perl -e 'while ($l=<>) { if ($l =~ /^\#define[ \t](CAP[_A-Z]+)[ \t]+([0-9]+)\s+$/) { $tok=$1; $val=$2; $tok =~ tr/A-Z/a-z/; print "{\"$tok\",$val},\n"; } }' /usr/include/linux/capability.h | fgrep -v 0x > cap_names.list.h
# sed -e 's,@prefix@,/usr,' \
# -e 's,@exec_prefix@,,' \
# -e 's,@libdir@,/lib64,' \
# -e 's,@includedir@,/usr/include,' \
# -e 's,@VERSION@,2.25,' \
# -e 's,@deps@,,' \
# libcap.pc.in >libcap.pc
# gcc -O2 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -fPIC -I/usr/include -I/tmp/libcap/src/libcap-2.25/libcap/../libcap/include _makenames.c -o _makenames
# ./_makenames > cap_names.h
# gcc -O2 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Dlinux -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -g -fPIC -I/usr/include -I/tmp/libcap/src/libcap-2.25/libcap/../libcap/include -c cap_alloc.c -o cap_alloc.o
# gcc -O2 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Dlinux -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -g -fPIC -I/usr/include -I/tmp/libcap/src/libcap-2.25/libcap/../libcap/include -c cap_proc.c -o cap_proc.o
# gcc -O2 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Dlinux -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -g -fPIC -I/usr/include -I/tmp/libcap/src/libcap-2.25/libcap/../libcap/include -c cap_extint.c -o cap_extint.o
# gcc -O2 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Dlinux -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -g -fPIC -I/usr/include -I/tmp/libcap/src/libcap-2.25/libcap/../libcap/include -c cap_flag.c -o cap_flag.o
# gcc -O2 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Dlinux -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -g -fPIC -I/usr/include -I/tmp/libcap/src/libcap-2.25/libcap/../libcap/include -c cap_text.c -o cap_text.o
# gcc -O2 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Dlinux -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -g -fPIC -I/usr/include -I/tmp/libcap/src/libcap-2.25/libcap/../libcap/include -c cap_file.c -o cap_file.o
# gcc -Wl,-x -shared -O2 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Dlinux -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -g -L/tmp/libcap/src/libcap-2.25/libcap/../libcap -Wl,-soname,libcap.so.2 -o libcap.so.2.25 cap_alloc.o cap_proc.o cap_extint.o cap_flag.o cap_text.o cap_file.o
# ar rcs libcap.a cap_alloc.o cap_proc.o cap_extint.o cap_flag.o cap_text.o cap_file.o
# ranlib libcap.a
# ln -sf libcap.so.2.25 libcap.so.2
# ln -sf libcap.so.2 libcap.so
# make[1]: Leaving directory '/tmp/libcap/src/libcap-2.25/libcap'
# make -C pam_cap all
# make[1]: Entering directory '/tmp/libcap/src/libcap-2.25/pam_cap'
# gcc -O2 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Dlinux -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -g -fPIC -I/usr/include -I/tmp/libcap/src/libcap-2.25/pam_cap/../libcap/include -c pam_cap.c -o pam_cap.o
# pam_cap.c: In function 'parse_args':
# pam_cap.c:213:9: warning: variable 'ctrl' set but not used [-Wunused-but-set-variable]
# int ctrl=0;
# ^~~~
# gcc -Wl,-x -shared -L/tmp/libcap/src/libcap-2.25/pam_cap/../libcap -o pam_cap.so pam_cap.o -L../libcap -lcap
# make testcompile
# make[2]: Entering directory '/tmp/libcap/src/libcap-2.25/pam_cap'
# gcc -O2 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Dlinux -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -g -L/tmp/libcap/src/libcap-2.25/pam_cap/../libcap -o testcompile test.c pam_cap.o -lpam -ldl -L../libcap -lcap
# make[2]: Leaving directory '/tmp/libcap/src/libcap-2.25/pam_cap'
# make[1]: Leaving directory '/tmp/libcap/src/libcap-2.25/pam_cap'
# make -C progs all
# make[1]: Entering directory '/tmp/libcap/src/libcap-2.25/progs'
# gcc -fPIC -I/usr/include -I/tmp/libcap/src/libcap-2.25/progs/../libcap/include -O2 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Dlinux -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -g -c getpcaps.c -o getpcaps.o
# gcc -fPIC -I/usr/include -I/tmp/libcap/src/libcap-2.25/progs/../libcap/include -O2 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Dlinux -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -g -c capsh.c -o capsh.o
# gcc -fPIC -I/usr/include -I/tmp/libcap/src/libcap-2.25/progs/../libcap/include -O2 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Dlinux -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -g -c getcap.c -o getcap.o
# gcc -fPIC -I/usr/include -I/tmp/libcap/src/libcap-2.25/progs/../libcap/include -O2 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Dlinux -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -g -c setcap.c -o setcap.o
# gcc -O2 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Dlinux -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -g -L/tmp/libcap/src/libcap-2.25/progs/../libcap -o getpcaps getpcaps.o -L../libcap -lcap
# gcc -O2 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Dlinux -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -g -L/tmp/libcap/src/libcap-2.25/progs/../libcap -o getcap getcap.o -L../libcap -lcap
# gcc -O2 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Dlinux -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -g -L/tmp/libcap/src/libcap-2.25/progs/../libcap -o setcap setcap.o -L../libcap -lcap
# gcc -O2 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Dlinux -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -g -L/tmp/libcap/src/libcap-2.25/progs/../libcap -o capsh capsh.o -L../libcap -lcap
# make[1]: Leaving directory '/tmp/libcap/src/libcap-2.25/progs'
# make -C doc all
# make[1]: Entering directory '/tmp/libcap/src/libcap-2.25/doc'
# make[1]: Nothing to be done for 'all'.
# make[1]: Leaving directory '/tmp/libcap/src/libcap-2.25/doc'
# make: Leaving directory '/tmp/libcap/src/libcap-2.25'
# ==> Entering fakeroot environment...
# ==> Starting package()...
# make -C libcap install
# make[1]: Entering directory '/tmp/libcap/src/libcap-2.25/libcap'
# mkdir -p -m 0755 /tmp/libcap/pkg/libcap/usr/include/sys
# install -m 0644 include/sys/capability.h /tmp/libcap/pkg/libcap/usr/include/sys
# mkdir -p -m 0755 /tmp/libcap/pkg/libcap/usr//lib
# install -m 0644 libcap.a /tmp/libcap/pkg/libcap/usr//lib/libcap.a
# install -m 0644 libcap.so.2.25 /tmp/libcap/pkg/libcap/usr//lib/libcap.so.2.25
# ln -sf libcap.so.2.25 /tmp/libcap/pkg/libcap/usr//lib/libcap.so.2
# ln -sf libcap.so.2 /tmp/libcap/pkg/libcap/usr//lib/libcap.so
# mkdir -p -m 0755 /tmp/libcap/pkg/libcap/usr//lib/pkgconfig
# install -m 0644 libcap.pc /tmp/libcap/pkg/libcap/usr//lib/pkgconfig/libcap.pc
# make[1]: Leaving directory '/tmp/libcap/src/libcap-2.25/libcap'
# make -C pam_cap install
# make[1]: Entering directory '/tmp/libcap/src/libcap-2.25/pam_cap'
# make testcompile
# make[2]: Entering directory '/tmp/libcap/src/libcap-2.25/pam_cap'
# make[2]: 'testcompile' is up to date.
# make[2]: Leaving directory '/tmp/libcap/src/libcap-2.25/pam_cap'
# mkdir -p -m 0755 /tmp/libcap/pkg/libcap/usr//lib/security
# install -m 0755 pam_cap.so /tmp/libcap/pkg/libcap/usr//lib/security
# make[1]: Leaving directory '/tmp/libcap/src/libcap-2.25/pam_cap'
# make -C progs install
# make[1]: Entering directory '/tmp/libcap/src/libcap-2.25/progs'
# mkdir -p -m 0755 /tmp/libcap/pkg/libcap/usr/sbin
# for p in getpcaps capsh getcap setcap ; do \
# install -m 0755 $p /tmp/libcap/pkg/libcap/usr/sbin ; \
# done
# make[1]: Leaving directory '/tmp/libcap/src/libcap-2.25/progs'
# make -C doc install
# make[1]: Entering directory '/tmp/libcap/src/libcap-2.25/doc'
# mkdir -p -m 755 /tmp/libcap/pkg/libcap/usr/share/man/man1 /tmp/libcap/pkg/libcap/usr/share/man/man3 /tmp/libcap/pkg/libcap/usr/share/man/man8
# for man in \
# /tmp/libcap/pkg/libcap/usr/share/man/man1 capsh.1 \
# /tmp/libcap/pkg/libcap/usr/share/man/man3 cap_init.3 cap_free.3 cap_dup.3 cap_clear.3 cap_clear_flag.3 cap_get_flag.3 cap_set_flag.3 cap_compare.3 cap_get_proc.3 cap_get_pid.3 cap_set_proc.3 cap_get_file.3 cap_get_fd.3 cap_set_file.3 cap_set_fd.3 cap_copy_ext.3 cap_size.3 cap_copy_int.3 cap_from_text.3 cap_to_text.3 cap_from_name.3 cap_to_name.3 capsetp.3 capgetp.3 libcap.3 cap_get_bound.3 cap_drop_bound.3 \
# /tmp/libcap/pkg/libcap/usr/share/man/man8 getcap.8 setcap.8 \
# ; \
# do \
# case $man in \
# /*) sub=$man ; continue ;; \
# esac; \
# install -m 644 $man $sub ; \
# done
# make[1]: Leaving directory '/tmp/libcap/src/libcap-2.25/doc'
# ==> Tidying install...
# -> Removing doc files...
# -> Purging unwanted files...
# ==> Checking for packaging issue...
# ==> Creating package "libcap"...
# -> Generating .PKGINFO file...
# -> Generating .BUILDINFO file...
# error: invalid option '--noprogressbar'
# -> Generating .MTREE file...
# -> Compressing package...
# ==> Leaving fakeroot environment.
# ==> Finished making: libcap 2.25-1 (Wed Aug 24 13:09:25 UTC 2016)

CMD: pacman --query --file libcap-2.25-1-x86_64.pkg.tar.xz
# libcap 2.25-1

Creating hybrid package for 'libcap'

Trying to find vanilla package 'libcap'...

CMD: pacman --query --file /mirror/libcap-2.25-1.pkg.tar.xz
# libcap 2.25-1

Package file has the following structure:
# /.PKGINFO
# /.BUILDINFO
# /.MTREE
# /usr/bin/getpcaps
# /usr/bin/capsh
# /usr/bin/setcap
# /usr/bin/getcap
# /usr/share/man/man8/setcap.8.gz
# /usr/share/man/man8/getcap.8.gz
# /usr/share/man/man1/capsh.1.gz
# /usr/share/man/man3/cap_to_text.3.gz
# /usr/share/man/man3/cap_get_pid.3.gz
# /usr/share/man/man3/cap_clear_flag.3.gz
# /usr/share/man/man3/cap_get_file.3.gz
# /usr/share/man/man3/cap_get_bound.3.gz
# /usr/share/man/man3/cap_get_fd.3.gz
# /usr/share/man/man3/cap_drop_bound.3.gz
# /usr/share/man/man3/cap_set_flag.3.gz
# /usr/share/man/man3/cap_copy_ext.3.gz
# /usr/share/man/man3/cap_copy_int.3.gz
# /usr/share/man/man3/cap_get_proc.3.gz
# /usr/share/man/man3/cap_clear.3.gz
# /usr/share/man/man3/cap_set_proc.3.gz
# /usr/share/man/man3/cap_from_name.3.gz
# /usr/share/man/man3/libcap.3.gz
# /usr/share/man/man3/capsetp.3.gz
# /usr/share/man/man3/cap_set_file.3.gz
# /usr/share/man/man3/cap_to_name.3.gz
# /usr/share/man/man3/cap_init.3.gz
# /usr/share/man/man3/cap_dup.3.gz
# /usr/share/man/man3/capgetp.3.gz
# /usr/share/man/man3/cap_free.3.gz
# /usr/share/man/man3/cap_set_fd.3.gz
# /usr/share/man/man3/cap_get_flag.3.gz
# /usr/share/man/man3/cap_from_text.3.gz
# /usr/share/man/man3/cap_compare.3.gz
# /usr/share/man/man3/cap_size.3.gz
# /usr/share/doc/libcap/capability.conf.example
# /usr/include/sys/capability.h
# /usr/lib/libcap.so.2
# /usr/lib/libcap.so.2.25
# /usr/lib/libcap.so
# /usr/lib/pkgconfig/libcap.pc
# /usr/lib/security/pam_cap.so
# /sysroot/usr/lib/libcap.a
# /sysroot/usr/lib/libcap.so.2.25
# /sysroot/usr/lib/libcap.so.2
# /sysroot/usr/lib/libcap.so
# /sysroot/usr/lib/pkgconfig/libcap.pc
# /sysroot/usr/lib/security/pam_cap.so
# /sysroot/usr/include/sys/capability.h

Generating .MTREE

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

Tar-ing up files

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

CMD: xz -c -z

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

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

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

Attempting to access local repository, attempt 1

CMD: repo-add /var/cache/pacman/pkg/tuscan.db.tar /var/cache/pacman/pkg/libcap.pkg.tar.xz
# ==> ERROR: Failed to acquire lockfile: /var/cache/pacman/pkg/tuscan.db.tar.lck.
# ==> ERROR: Held by process 1826

Attempting to access local repository, attempt 2

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