Build of libwlocate with clang_glibc toolchain

The build took 00h 01m 22s and was SUCCESSFUL.

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

SLOCLanguage
6,343 java
1,924 ansic
1,674 cpp
783 php
129 sh
79 makefile
10,932 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: libwlocate 1:0.1-1 (Thu Apr 13 15:35:53 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Installing missing dependencies...
# resolving dependencies...
# looking for conflicting packages...
#
# Packages (1) wireless_tools-30.pre9-1
#
# Total Installed Size: 0.33 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 wireless_tools...
# :: Running post-transaction hooks...
# (1/1) Updating manpage index...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# gcc -Wall -fPIC -shared -Wno-unused -O2 -g0 -DNDEBUG -D_REENTRANT -DENV_LINUX -I. -I.. -c connect.c -o connect.o
# clang-3.8: warning: argument unused during compilation: '-shared'
# gcc -Wall -fPIC -shared -Wno-unused -O2 -g0 -DNDEBUG -D_REENTRANT -DENV_LINUX -I. -I.. -c wlan.c -o wlan.o
# clang-3.8: warning: argument unused during compilation: '-shared'
# gcc -Wall -fPIC -shared -Wno-unused -O2 -g0 -DNDEBUG -D_REENTRANT -DENV_LINUX -I. -I.. -c libwlocate.c -o libwlocate.o
# clang-3.8: warning: argument unused during compilation: '-shared'
# libwlocate.c:65:20: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
# domain,strlen(data));
# ^~~~~~~~~~~~
# libwlocate.c:103:21: warning: if statement has empty body [-Wempty-body]
# if (pos);
# ^
# libwlocate.c:103:21: note: put the semicolon on a separate line to silence this warning
# libwlocate.c:110:21: warning: if statement has empty body [-Wempty-body]
# if (pos);
# ^
# libwlocate.c:110:21: note: put the semicolon on a separate line to silence this warning
# libwlocate.c:117:21: warning: if statement has empty body [-Wempty-body]
# if (pos);
# ^
# libwlocate.c:117:21: note: put the semicolon on a separate line to silence this warning
# 4 warnings generated.
# gcc -Wall -fPIC -shared -Wno-unused -O2 -g0 -DNDEBUG -D_REENTRANT -DENV_LINUX -I. -I.. -c iwlist.c -o iwlist.o
# clang-3.8: warning: argument unused during compilation: '-shared'
# iwlist.c:19:28: warning: tentative definition of variable with internal linkage has incomplete non-array type 'struct iwscan_state' [-Wtentative-definition-incomplete-type]
# static struct iwscan_state state;
# ^
# iwlist.c:19:15: note: forward declaration of 'struct iwscan_state'
# static struct iwscan_state state;
# ^
# iwlist.c:130:8: warning: explicitly assigning value of variable of type 'char **' to itself [-Wself-assign]
# args = args; count = count;
# ~~~~ ^ ~~~~
# iwlist.c:130:22: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign]
# args = args; count = count;
# ~~~~~ ^ ~~~~~
# 3 warnings generated.
# gcc -shared -Wl,--no-as-needed -o libwlocate.so connect.o wlan.o libwlocate.o iwlist.o -lm -liw
# gcc -Wall -O2 -g0 -DNDEBUG -DENV_LINUX -D_REENTRANT -DNDEBUG -L/usr/lib -L/usr/local/lib/ -I. -c -o trace.o trace.c
# clang-3.8: warning: argument unused during compilation: '-L/usr/lib'
# clang-3.8: warning: argument unused during compilation: '-L/usr/local/lib/'
# gcc -Wall -O2 -g0 -DNDEBUG -DENV_LINUX -D_REENTRANT -DNDEBUG -L/usr/lib -L/usr/local/lib/ -I. -o lwtrace trace.o -L. -lwlocate -lm
# strip lwtrace
# ==> Entering fakeroot environment...
# ==> Starting package()...
# ==> Tidying install...
# -> Removing doc files...
# -> Purging unwanted files...
# ==> Checking for packaging issue...
# ==> Creating package "libwlocate"...
# -> Generating .PKGINFO file...
# -> Generating .BUILDINFO file...
# error: invalid option '--noprogressbar'
# -> Generating .MTREE file...
# -> Compressing package...
# ==> Leaving fakeroot environment.
# ==> Finished making: libwlocate 1:0.1-1 (Thu Apr 13 15:35:56 UTC 2017)

CMD: pacman --query --file libwlocate-1:0.1-1-x86_64.pkg.tar.xz
# libwlocate 1:0.1-1

Creating hybrid package for 'libwlocate'

Trying to find vanilla package 'libwlocate'...

CMD: pacman --query --file /mirror/libwlocate-1:0.1-1.pkg.tar.xz
# libwlocate 1:0.1-1

Package file has the following structure:
# /.PKGINFO
# /.MTREE
# /usr/lib/libwlocate.so
# /usr/include/libwlocate.h
# /usr/bin/lwtrace
# /sysroot/usr/lib/libwlocate.so
# /sysroot/usr/include/libwlocate.h

Generating .MTREE

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

Tar-ing up files

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

CMD: xz -c -z

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

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

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

Attempting to access local repository, attempt 1

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