Build of idnkit with clang_glibc toolchain

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

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

SLOCLanguage
17,890 ansic
7,878 sh
1,674 perl
829 tcl
32 makefile
28,303 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: idnkit 1.0-3 (Thu Apr 13 17:18:21 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# creating cache ./config.cache
# checking host system type... x86_64-unknown-linux-gnu
# checking for gcc... clang
# checking whether the C compiler (clang ) works... yes
# checking whether the C compiler (clang ) is a cross-compiler... no
# checking whether we are using GNU C... yes
# checking whether clang accepts -g... yes
# checking for a BSD compatible install... /usr/bin/install -c
# checking build system type... x86_64-unknown-linux-gnu
# checking for ranlib... ranlib
# checking for ld used by GCC... /usr/bin/ld
# checking if the linker (/usr/bin/ld) is GNU ld... yes
# checking for BSD-compatible nm... /usr/bin/nm -B
# checking whether ln -s works... yes
# updating cache ./config.cache
# loading cache ./config.cache within ltconfig
# checking for object suffix... o
# checking for executable suffix... no
# checking for clang option to produce PIC... -fPIC
# checking if clang PIC flag -fPIC works... yes
# checking if clang supports -c -o file.o... yes
# checking if clang supports -c -o file.lo... yes
# checking if clang supports -fno-rtti -fno-exceptions ... yes
# checking if clang static flag -static works... -static
# checking if the linker (/usr/bin/ld) is GNU ld... yes
# checking whether the linker (/usr/bin/ld) supports shared libraries... yes
# checking command to parse /usr/bin/nm -B output... ok
# checking how to hardcode library paths into programs... immediate
# checking for /usr/bin/ld option to reload object files... -r
# checking dynamic linker characteristics... Linux ld.so
# checking if libtool supports shared libraries... yes
# checking whether to build shared libraries... yes
# checking whether to build static libraries... no
# checking for objdir... .libs
# creating libtool
# updating cache ./config.cache
# loading cache ./config.cache
# checking for perl... /usr/bin/perl
# checking how to run the C preprocessor... clang -E
# checking for unistd.h... yes
# checking for locale.h... yes
# checking for langinfo.h... yes
# checking for pwd.h... yes
# checking for iconv.h... yes
# checking for uid_t in sys/types.h... yes
# checking for ANSI C header files... yes
# checking for BOOL... no
# checking for vsnprintf... yes
# checking for setvbuf... yes
# checking for setlocale... yes
# checking for nl_langinfo... yes
# checking for memmove... yes
# checking for bcopy... yes
# checking for setenv... yes
# checking for unsetenv... yes
# checking for libc shared object... /lib/libc.so
# checking for iconv... yes
# checking for codeset name UTF-8... yes
# updating cache ./config.cache
# creating ./config.status
# creating Makefile
# creating include/Makefile
# creating include/idn/Makefile
# creating include/mdn/Makefile
# creating lib/Makefile
# creating man/Makefile
# creating tools/Makefile
# creating tools/idnconv/Makefile
# creating tools/runidn/Makefile
# creating tools/runidn/runidn
# creating map/Makefile
# creating lib/tests/Makefile
# creating include/config.h
# make[1]: Entering directory '/tmp/idnkit/src/idnkit-1.0-src/include'
# make[2]: Entering directory '/tmp/idnkit/src/idnkit-1.0-src/include/idn'
# make[2]: Nothing to be done for 'all'.
# make[2]: Leaving directory '/tmp/idnkit/src/idnkit-1.0-src/include/idn'
# make[2]: Entering directory '/tmp/idnkit/src/idnkit-1.0-src/include/mdn'
# make[2]: Nothing to be done for 'all'.
# make[2]: Leaving directory '/tmp/idnkit/src/idnkit-1.0-src/include/mdn'
# make[1]: Leaving directory '/tmp/idnkit/src/idnkit-1.0-src/include'
# make[1]: Entering directory '/tmp/idnkit/src/idnkit-1.0-src/lib'
# /bin/sh ../libtool --mode=compile clang -I./../include -I../include -DIDN_RESCONF_DIR="\"/etc\"" -c aliaslist.c
# clang -I./../include -I../include -DIDN_RESCONF_DIR=\"/etc\" -c aliaslist.c -fPIC -DPIC -o aliaslist.lo
# /bin/sh ../libtool --mode=compile clang -I./../include -I../include -DIDN_RESCONF_DIR="\"/etc\"" -c api.c
# clang -I./../include -I../include -DIDN_RESCONF_DIR=\"/etc\" -c api.c -fPIC -DPIC -o api.lo
# /bin/sh ../libtool --mode=compile clang -I./../include -I../include -DIDN_RESCONF_DIR="\"/etc\"" -c checker.c
# clang -I./../include -I../include -DIDN_RESCONF_DIR=\"/etc\" -c checker.c -fPIC -DPIC -o checker.lo
# /bin/sh ../libtool --mode=compile clang -I./../include -I../include -DIDN_RESCONF_DIR="\"/etc\"" -c converter.c
# clang -I./../include -I../include -DIDN_RESCONF_DIR=\"/etc\" -c converter.c -fPIC -DPIC -o converter.lo
# converter.c:957:20: warning: passing 'const char **' to parameter of type 'char **' discards qualifiers in nested pointer types [-Wincompatible-pointer-types-discards-qualifiers]
# (void)iconv(ictx, (const char **)NULL, &inleft, &outbuf, &outleft);
# ^~~~~~~~~~~~~~~~~~~
# /usr/include/iconv.h:42:54: note: passing argument to parameter '__inbuf' here
# extern size_t iconv (iconv_t __cd, char **__restrict __inbuf,
# ^
# converter.c:962:19: warning: passing 'const char **' to parameter of type 'char **' discards qualifiers in nested pointer types [-Wincompatible-pointer-types-discards-qualifiers]
# sz = iconv(ictx, (const char **)&inbuf, &inleft, &to, &outleft);
# ^~~~~~~~~~~~~~~~~~~~~
# /usr/include/iconv.h:42:54: note: passing argument to parameter '__inbuf' here
# extern size_t iconv (iconv_t __cd, char **__restrict __inbuf,
# ^
# converter.c:989:19: warning: passing 'const char **' to parameter of type 'char **' discards qualifiers in nested pointer types [-Wincompatible-pointer-types-discards-qualifiers]
# sz = iconv(ictx, (const char **)NULL, &inleft, &to, &outleft);
# ^~~~~~~~~~~~~~~~~~~
# /usr/include/iconv.h:42:54: note: passing argument to parameter '__inbuf' here
# extern size_t iconv (iconv_t __cd, char **__restrict __inbuf,
# ^
# converter.c:1047:20: warning: passing 'const char **' to parameter of type 'char **' discards qualifiers in nested pointer types [-Wincompatible-pointer-types-discards-qualifiers]
# (void)iconv(ictx, (const char **)NULL, &inleft, &outbuf, &outleft);
# ^~~~~~~~~~~~~~~~~~~
# /usr/include/iconv.h:42:54: note: passing argument to parameter '__inbuf' here
# extern size_t iconv (iconv_t __cd, char **__restrict __inbuf,
# ^
# converter.c:1053:19: warning: passing 'const char **' to parameter of type 'char **' discards qualifiers in nested pointer types [-Wincompatible-pointer-types-discards-qualifiers]
# sz = iconv(ictx, (const char **)&from_ptr, &inleft, &outbuf, &outleft);
# ^~~~~~~~~~~~~~~~~~~~~~~~
# /usr/include/iconv.h:42:54: note: passing argument to parameter '__inbuf' here
# extern size_t iconv (iconv_t __cd, char **__restrict __inbuf,
# ^
# 5 warnings generated.
# /bin/sh ../libtool --mode=compile clang -I./../include -I../include -DIDN_RESCONF_DIR="\"/etc\"" -c debug.c
# clang -I./../include -I../include -DIDN_RESCONF_DIR=\"/etc\" -c debug.c -fPIC -DPIC -o debug.lo
# /bin/sh ../libtool --mode=compile clang -I./../include -I../include -DIDN_RESCONF_DIR="\"/etc\"" -c delimitermap.c
# clang -I./../include -I../include -DIDN_RESCONF_DIR=\"/etc\" -c delimitermap.c -fPIC -DPIC -o delimitermap.lo
# /bin/sh ../libtool --mode=compile clang -I./../include -I../include -DIDN_RESCONF_DIR="\"/etc\"" -c filechecker.c
# clang -I./../include -I../include -DIDN_RESCONF_DIR=\"/etc\" -c filechecker.c -fPIC -DPIC -o filechecker.lo
# /bin/sh ../libtool --mode=compile clang -I./../include -I../include -DIDN_RESCONF_DIR="\"/etc\"" -c filemapper.c
# clang -I./../include -I../include -DIDN_RESCONF_DIR=\"/etc\" -c filemapper.c -fPIC -DPIC -o filemapper.lo
# /bin/sh ../libtool --mode=compile clang -I./../include -I../include -DIDN_RESCONF_DIR="\"/etc\"" -c localencoding.c
# clang -I./../include -I../include -DIDN_RESCONF_DIR=\"/etc\" -c localencoding.c -fPIC -DPIC -o localencoding.lo
# /bin/sh ../libtool --mode=compile clang -I./../include -I../include -DIDN_RESCONF_DIR="\"/etc\"" -c log.c
# clang -I./../include -I../include -DIDN_RESCONF_DIR=\"/etc\" -c log.c -fPIC -DPIC -o log.lo
# /bin/sh ../libtool --mode=compile clang -I./../include -I../include -DIDN_RESCONF_DIR="\"/etc\"" -c mapper.c
# clang -I./../include -I../include -DIDN_RESCONF_DIR=\"/etc\" -c mapper.c -fPIC -DPIC -o mapper.lo
# /bin/sh ../libtool --mode=compile clang -I./../include -I../include -DIDN_RESCONF_DIR="\"/etc\"" -c mapselector.c
# clang -I./../include -I../include -DIDN_RESCONF_DIR=\"/etc\" -c mapselector.c -fPIC -DPIC -o mapselector.lo
# /bin/sh ../libtool --mode=compile clang -I./../include -I../include -DIDN_RESCONF_DIR="\"/etc\"" -c nameprep.c
# clang -I./../include -I../include -DIDN_RESCONF_DIR=\"/etc\" -c nameprep.c -fPIC -DPIC -o nameprep.lo
# /bin/sh ../libtool --mode=compile clang -I./../include -I../include -DIDN_RESCONF_DIR="\"/etc\"" -c normalizer.c
# clang -I./../include -I../include -DIDN_RESCONF_DIR=\"/etc\" -c normalizer.c -fPIC -DPIC -o normalizer.lo
# /bin/sh ../libtool --mode=compile clang -I./../include -I../include -DIDN_RESCONF_DIR="\"/etc\"" -c punycode.c
# clang -I./../include -I../include -DIDN_RESCONF_DIR=\"/etc\" -c punycode.c -fPIC -DPIC -o punycode.lo
# /bin/sh ../libtool --mode=compile clang -I./../include -I../include -DIDN_RESCONF_DIR="\"/etc\"" -c race.c
# clang -I./../include -I../include -DIDN_RESCONF_DIR=\"/etc\" -c race.c -fPIC -DPIC -o race.lo
# /bin/sh ../libtool --mode=compile clang -I./../include -I../include -DIDN_RESCONF_DIR="\"/etc\"" -c res.c
# clang -I./../include -I../include -DIDN_RESCONF_DIR=\"/etc\" -c res.c -fPIC -DPIC -o res.lo
# /bin/sh ../libtool --mode=compile clang -I./../include -I../include -DIDN_RESCONF_DIR="\"/etc\"" -c resconf.c
# clang -I./../include -I../include -DIDN_RESCONF_DIR=\"/etc\" -c resconf.c -fPIC -DPIC -o resconf.lo
# /bin/sh ../libtool --mode=compile clang -I./../include -I../include -DIDN_RESCONF_DIR="\"/etc\"" -c result.c
# clang -I./../include -I../include -DIDN_RESCONF_DIR=\"/etc\" -c result.c -fPIC -DPIC -o result.lo
# result.c:72:13: warning: comparison of unsigned enum expression < 0 is always false [-Wtautological-compare]
# if (result < 0 || result > idn_failure)
# ~~~~~~ ^ ~
# 1 warning generated.
# /bin/sh ../libtool --mode=compile clang -I./../include -I../include -DIDN_RESCONF_DIR="\"/etc\"" -c strhash.c
# clang -I./../include -I../include -DIDN_RESCONF_DIR=\"/etc\" -c strhash.c -fPIC -DPIC -o strhash.lo
# /bin/sh ../libtool --mode=compile clang -I./../include -I../include -DIDN_RESCONF_DIR="\"/etc\"" -c ucs4.c
# clang -I./../include -I../include -DIDN_RESCONF_DIR=\"/etc\" -c ucs4.c -fPIC -DPIC -o ucs4.lo
# /bin/sh ../libtool --mode=compile clang -I./../include -I../include -DIDN_RESCONF_DIR="\"/etc\"" -c ucsmap.c
# clang -I./../include -I../include -DIDN_RESCONF_DIR=\"/etc\" -c ucsmap.c -fPIC -DPIC -o ucsmap.lo
# /bin/sh ../libtool --mode=compile clang -I./../include -I../include -DIDN_RESCONF_DIR="\"/etc\"" -c ucsset.c
# clang -I./../include -I../include -DIDN_RESCONF_DIR=\"/etc\" -c ucsset.c -fPIC -DPIC -o ucsset.lo
# /bin/sh ../libtool --mode=compile clang -I./../include -I../include -DIDN_RESCONF_DIR="\"/etc\"" -c unicode.c
# clang -I./../include -I../include -DIDN_RESCONF_DIR=\"/etc\" -c unicode.c -fPIC -DPIC -o unicode.lo
# /bin/sh ../libtool --mode=compile clang -I./../include -I../include -DIDN_RESCONF_DIR="\"/etc\"" -c unormalize.c
# clang -I./../include -I../include -DIDN_RESCONF_DIR=\"/etc\" -c unormalize.c -fPIC -DPIC -o unormalize.lo
# /bin/sh ../libtool --mode=compile clang -I./../include -I../include -DIDN_RESCONF_DIR="\"/etc\"" -c utf8.c
# clang -I./../include -I../include -DIDN_RESCONF_DIR=\"/etc\" -c utf8.c -fPIC -DPIC -o utf8.lo
# /bin/sh ../libtool --mode=compile clang -I./../include -I../include -DIDN_RESCONF_DIR="\"/etc\"" -c util.c
# clang -I./../include -I../include -DIDN_RESCONF_DIR=\"/etc\" -c util.c -fPIC -DPIC -o util.lo
# /bin/sh ../libtool --mode=compile clang -I./../include -I../include -DIDN_RESCONF_DIR="\"/etc\"" -c version.c
# clang -I./../include -I../include -DIDN_RESCONF_DIR=\"/etc\" -c version.c -fPIC -DPIC -o version.lo
# /bin/sh ../libtool --mode=link ld -o libidnkit.la \
# -version-info 1:2:0 \
# -rpath /usr/lib aliaslist.lo api.lo checker.lo converter.lo debug.lo delimitermap.lo filechecker.lo filemapper.lo localencoding.lo log.lo mapper.lo mapselector.lo nameprep.lo normalizer.lo punycode.lo race.lo res.lo resconf.lo result.lo strhash.lo ucs4.lo ucsmap.lo ucsset.lo unicode.lo unormalize.lo utf8.lo util.lo version.lo
# mkdir .libs
# (cd . && ln -s aliaslist.lo aliaslist.o)
# (cd . && ln -s api.lo api.o)
# (cd . && ln -s checker.lo checker.o)
# (cd . && ln -s converter.lo converter.o)
# (cd . && ln -s debug.lo debug.o)
# (cd . && ln -s delimitermap.lo delimitermap.o)
# (cd . && ln -s filechecker.lo filechecker.o)
# (cd . && ln -s filemapper.lo filemapper.o)
# (cd . && ln -s localencoding.lo localencoding.o)
# (cd . && ln -s log.lo log.o)
# (cd . && ln -s mapper.lo mapper.o)
# (cd . && ln -s mapselector.lo mapselector.o)
# (cd . && ln -s nameprep.lo nameprep.o)
# (cd . && ln -s normalizer.lo normalizer.o)
# (cd . && ln -s punycode.lo punycode.o)
# (cd . && ln -s race.lo race.o)
# (cd . && ln -s res.lo res.o)
# (cd . && ln -s resconf.lo resconf.o)
# (cd . && ln -s result.lo result.o)
# (cd . && ln -s strhash.lo strhash.o)
# (cd . && ln -s ucs4.lo ucs4.o)
# (cd . && ln -s ucsmap.lo ucsmap.o)
# (cd . && ln -s ucsset.lo ucsset.o)
# (cd . && ln -s unicode.lo unicode.o)
# (cd . && ln -s unormalize.lo unormalize.o)
# (cd . && ln -s utf8.lo utf8.o)
# (cd . && ln -s util.lo util.o)
# (cd . && ln -s version.lo version.o)
# clang -shared aliaslist.lo api.lo checker.lo converter.lo debug.lo delimitermap.lo filechecker.lo filemapper.lo localencoding.lo log.lo mapper.lo mapselector.lo nameprep.lo normalizer.lo punycode.lo race.lo res.lo resconf.lo result.lo strhash.lo ucs4.lo ucsmap.lo ucsset.lo unicode.lo unormalize.lo utf8.lo util.lo version.lo -lc -Wl,-soname -Wl,libidnkit.so.1 -o .libs/libidnkit.so.1.0.2
# (cd .libs && rm -f libidnkit.so.1 && ln -s libidnkit.so.1.0.2 libidnkit.so.1)
# (cd .libs && rm -f libidnkit.so && ln -s libidnkit.so.1.0.2 libidnkit.so)
# creating libidnkit.la
# (cd .libs && rm -f libidnkit.la && ln -s ../libidnkit.la libidnkit.la)
# /bin/sh ../libtool --mode=compile clang -I./../include -I../include -DIDN_RESCONF_DIR="\"/etc\"" -DWITHOUT_ICONV -o apilite.lo \
# -c ./api.c
# clang -I./../include -I../include -DIDN_RESCONF_DIR=\"/etc\" -DWITHOUT_ICONV -c ./api.c -fPIC -DPIC -o apilite.lo
# /bin/sh ../libtool --mode=compile clang -I./../include -I../include -DIDN_RESCONF_DIR="\"/etc\"" -DWITHOUT_ICONV -o converterlite.lo \
# -c ./converter.c
# clang -I./../include -I../include -DIDN_RESCONF_DIR=\"/etc\" -DWITHOUT_ICONV -c ./converter.c -fPIC -DPIC -o converterlite.lo
# /bin/sh ../libtool --mode=compile clang -I./../include -I../include -DIDN_RESCONF_DIR="\"/etc\"" -DWITHOUT_ICONV -o reslite.lo \
# -c ./res.c
# clang -I./../include -I../include -DIDN_RESCONF_DIR=\"/etc\" -DWITHOUT_ICONV -c ./res.c -fPIC -DPIC -o reslite.lo
# /bin/sh ../libtool --mode=compile clang -I./../include -I../include -DIDN_RESCONF_DIR="\"/etc\"" -DWITHOUT_ICONV -o resconflite.lo \
# -c ./resconf.c
# clang -I./../include -I../include -DIDN_RESCONF_DIR=\"/etc\" -DWITHOUT_ICONV -c ./resconf.c -fPIC -DPIC -o resconflite.lo
# /bin/sh ../libtool --mode=link ld -o libidnkitlite.la \
# -version-info 1:2:0 \
# -rpath /usr/lib apilite.lo converterlite.lo reslite.lo resconflite.lo aliaslist.lo checker.lo debug.lo delimitermap.lo filechecker.lo filemapper.lo log.lo mapper.lo mapselector.lo nameprep.lo normalizer.lo punycode.lo race.lo result.lo strhash.lo ucsmap.lo ucsset.lo unicode.lo unormalize.lo ucs4.lo utf8.lo util.lo version.lo
# rm -fr .libs/libidnkitlite.la .libs/libidnkitlite.* .libs/libidnkitlite.*
# (cd . && ln -s apilite.lo apilite.o)
# (cd . && ln -s converterlite.lo converterlite.o)
# (cd . && ln -s reslite.lo reslite.o)
# (cd . && ln -s resconflite.lo resconflite.o)
# clang -shared apilite.lo converterlite.lo reslite.lo resconflite.lo aliaslist.lo checker.lo debug.lo delimitermap.lo filechecker.lo filemapper.lo log.lo mapper.lo mapselector.lo nameprep.lo normalizer.lo punycode.lo race.lo result.lo strhash.lo ucsmap.lo ucsset.lo unicode.lo unormalize.lo ucs4.lo utf8.lo util.lo version.lo -lc -Wl,-soname -Wl,libidnkitlite.so.1 -o .libs/libidnkitlite.so.1.0.2
# (cd .libs && rm -f libidnkitlite.so.1 && ln -s libidnkitlite.so.1.0.2 libidnkitlite.so.1)
# (cd .libs && rm -f libidnkitlite.so && ln -s libidnkitlite.so.1.0.2 libidnkitlite.so)
# creating libidnkitlite.la
# (cd .libs && rm -f libidnkitlite.la && ln -s ../libidnkitlite.la libidnkitlite.la)
# sed -e 's%[@]mapdir[@]%/usr/share/idnkit%' \
# < ./idn.conf.sample.in > idn.conf.sample
# /bin/sh ./aliaslist.sh x86_64-unknown-linux-gnu UTF-8 > idnalias.conf.sample
# make[2]: Entering directory '/tmp/idnkit/src/idnkit-1.0-src/lib/tests'
# make[2]: Nothing to be done for 'all'.
# make[2]: Leaving directory '/tmp/idnkit/src/idnkit-1.0-src/lib/tests'
# make[1]: Leaving directory '/tmp/idnkit/src/idnkit-1.0-src/lib'
# make[1]: Entering directory '/tmp/idnkit/src/idnkit-1.0-src/man'
# sed 's%[@]sysconfdir[@]%/etc%' < ./libidnkit.3.in > libidnkitlite.3
# sed 's%[@]sysconfdir[@]%/etc%' < ./idn.conf.5.in > idn.conf.5
# sed 's%[@]sysconfdir[@]%/etc%' < ./idn.conf.5.in > idnrc.5
# sed 's%[@]sysconfdir[@]%/etc%' < ./idn.conf.5.in > idnalias.conf.5
# sed 's%[@]sysconfdir[@]%/etc%' < ./libidnkit.3.in > libidnkit.3
# make[1]: Leaving directory '/tmp/idnkit/src/idnkit-1.0-src/man'
# make[1]: Entering directory '/tmp/idnkit/src/idnkit-1.0-src/tools'
# make[2]: Entering directory '/tmp/idnkit/src/idnkit-1.0-src/tools/idnconv'
# clang -I. -I./../../include -I../../include -c -o idnconv.o idnconv.c
# clang -I. -I./../../include -I../../include -c -o util.o util.c
# clang -I. -I./../../include -I../../include -c -o selectiveencode.o selectiveencode.c
# /bin/sh ../../libtool --mode=link clang -o idnconv \
# idnconv.o util.o selectiveencode.o ../../lib/libidnkit.la
# mkdir .libs
# clang -o .libs/idnconv idnconv.o util.o selectiveencode.o ../../lib/.libs/libidnkit.so
# creating idnconv
# sed -e 's%[@]bindir[@]%/usr/bin%' ./idnslookup.in > idnslookup
# chmod 0755 idnslookup
# make[2]: Leaving directory '/tmp/idnkit/src/idnkit-1.0-src/tools/idnconv'
# make[2]: Entering directory '/tmp/idnkit/src/idnkit-1.0-src/tools/runidn'
# make[2]: Nothing to be done for 'all'.
# make[2]: Leaving directory '/tmp/idnkit/src/idnkit-1.0-src/tools/runidn'
# make[1]: Leaving directory '/tmp/idnkit/src/idnkit-1.0-src/tools'
# make[1]: Entering directory '/tmp/idnkit/src/idnkit-1.0-src/map'
# make[1]: Nothing to be done for 'all'.
# make[1]: Leaving directory '/tmp/idnkit/src/idnkit-1.0-src/map'
# ==> Entering fakeroot environment...
# ==> Starting package()...
# make[1]: Entering directory '/tmp/idnkit/src/idnkit-1.0-src/include'
# make[2]: Entering directory '/tmp/idnkit/src/idnkit-1.0-src/include/idn'
# ../../mkinstalldirs /tmp/idnkit/pkg/idnkit/usr/include/idn
# mkdir /tmp/idnkit/pkg/idnkit/usr
# mkdir /tmp/idnkit/pkg/idnkit/usr/include
# mkdir /tmp/idnkit/pkg/idnkit/usr/include/idn
# for hdr in api.h assert.h checker.h converter.h debug.h delimitermap.h export.h filechecker.h filemapper.h localencoding.h log.h logmacro.h mapper.h mapselector.h nameprep.h normalizer.h punycode.h race.h res.h resconf.h result.h strhash.h ucsmap.h ucsset.h unicode.h unormalize.h ucs4.h utf8.h util.h version.h; do \
# /usr/bin/install -c -m 644 ./$hdr /tmp/idnkit/pkg/idnkit/usr/include/idn/$hdr; \
# done
# make[2]: Leaving directory '/tmp/idnkit/src/idnkit-1.0-src/include/idn'
# make[2]: Entering directory '/tmp/idnkit/src/idnkit-1.0-src/include/mdn'
# make[2]: Nothing to be done for 'install'.
# make[2]: Leaving directory '/tmp/idnkit/src/idnkit-1.0-src/include/mdn'
# make[1]: Leaving directory '/tmp/idnkit/src/idnkit-1.0-src/include'
# make[1]: Entering directory '/tmp/idnkit/src/idnkit-1.0-src/lib'
# make[2]: Entering directory '/tmp/idnkit/src/idnkit-1.0-src/lib/tests'
# make[2]: Nothing to be done for 'all'.
# make[2]: Leaving directory '/tmp/idnkit/src/idnkit-1.0-src/lib/tests'
# ../mkinstalldirs /tmp/idnkit/pkg/idnkit/usr/lib
# mkdir /tmp/idnkit/pkg/idnkit/usr/lib
# /bin/sh ../libtool /usr/bin/install -c -m 644 libidnkitlite.la \
# /tmp/idnkit/pkg/idnkit/usr/lib/libidnkitlite.la
# /usr/bin/install -c -m 644 .libs/libidnkitlite.so.1.0.2 /tmp/idnkit/pkg/idnkit/usr/lib/libidnkitlite.so.1.0.2
# (cd /tmp/idnkit/pkg/idnkit/usr/lib && rm -f libidnkitlite.so.1 && ln -s libidnkitlite.so.1.0.2 libidnkitlite.so.1)
# (cd /tmp/idnkit/pkg/idnkit/usr/lib && rm -f libidnkitlite.so && ln -s libidnkitlite.so.1.0.2 libidnkitlite.so)
# /usr/bin/install -c -m 644 .libs/libidnkitlite.lai /tmp/idnkit/pkg/idnkit/usr/lib/libidnkitlite.la
# libtool: install: warning: remember to run `libtool --finish /usr/lib'
# [ -f /tmp/idnkit/pkg/idnkit/usr/lib/libidnkitlite.a ] \
# && ranlib /tmp/idnkit/pkg/idnkit/usr/lib/libidnkitlite.a
# make[1]: [Makefile:245: install-common] Error 1 (ignored)
# ../mkinstalldirs /tmp/idnkit/pkg/idnkit/etc
# mkdir /tmp/idnkit/pkg/idnkit/etc
# /usr/bin/install -c -m 644 idn.conf.sample \
# /tmp/idnkit/pkg/idnkit/etc/idn.conf.sample
# /usr/bin/install -c -m 644 idnalias.conf.sample \
# /tmp/idnkit/pkg/idnkit/etc/idnalias.conf.sample
# ** installing default idn.conf
# ** installing default idnalias.conf
# ../mkinstalldirs /tmp/idnkit/pkg/idnkit/usr/lib
# /bin/sh ../libtool /usr/bin/install -c -m 644 libidnkit.la \
# /tmp/idnkit/pkg/idnkit/usr/lib/libidnkit.la
# /usr/bin/install -c -m 644 .libs/libidnkit.so.1.0.2 /tmp/idnkit/pkg/idnkit/usr/lib/libidnkit.so.1.0.2
# (cd /tmp/idnkit/pkg/idnkit/usr/lib && rm -f libidnkit.so.1 && ln -s libidnkit.so.1.0.2 libidnkit.so.1)
# (cd /tmp/idnkit/pkg/idnkit/usr/lib && rm -f libidnkit.so && ln -s libidnkit.so.1.0.2 libidnkit.so)
# /usr/bin/install -c -m 644 .libs/libidnkit.lai /tmp/idnkit/pkg/idnkit/usr/lib/libidnkit.la
# libtool: install: warning: remember to run `libtool --finish /usr/lib'
# [ -f /tmp/idnkit/pkg/idnkit/usr/lib/libidnkit.a ] \
# && ranlib /tmp/idnkit/pkg/idnkit/usr/lib/libidnkit.a
# make[1]: [Makefile:266: install-nolite] Error 1 (ignored)
# make[2]: Entering directory '/tmp/idnkit/src/idnkit-1.0-src/lib/tests'
# make[2]: Nothing to be done for 'install'.
# make[2]: Leaving directory '/tmp/idnkit/src/idnkit-1.0-src/lib/tests'
# make[1]: Leaving directory '/tmp/idnkit/src/idnkit-1.0-src/lib'
# make[1]: Entering directory '/tmp/idnkit/src/idnkit-1.0-src/man'
# ../mkinstalldirs /tmp/idnkit/pkg/idnkit/usr/share/man/man3
# mkdir /tmp/idnkit/pkg/idnkit/usr/share
# mkdir /tmp/idnkit/pkg/idnkit/usr/share/man
# mkdir /tmp/idnkit/pkg/idnkit/usr/share/man/man3
# /usr/bin/install -c -m 644 libidnkitlite.3 /tmp/idnkit/pkg/idnkit/usr/share/man/man3/libidnkitlite.3
# ../mkinstalldirs /tmp/idnkit/pkg/idnkit/usr/share/man/man5
# mkdir /tmp/idnkit/pkg/idnkit/usr/share/man/man5
# /usr/bin/install -c -m 644 idn.conf.5 /tmp/idnkit/pkg/idnkit/usr/share/man/man5/idn.conf.5
# /usr/bin/install -c -m 644 idnrc.5 /tmp/idnkit/pkg/idnkit/usr/share/man/man5/idnrc.5
# /usr/bin/install -c -m 644 idnalias.conf.5 /tmp/idnkit/pkg/idnkit/usr/share/man/man5/idnalias.conf.5
# ../mkinstalldirs /tmp/idnkit/pkg/idnkit/usr/share/man/man3
# /usr/bin/install -c -m 644 libidnkit.3 /tmp/idnkit/pkg/idnkit/usr/share/man/man3/libidnkit.3
# make[1]: Leaving directory '/tmp/idnkit/src/idnkit-1.0-src/man'
# make[1]: Entering directory '/tmp/idnkit/src/idnkit-1.0-src/tools'
# make[2]: Entering directory '/tmp/idnkit/src/idnkit-1.0-src/tools/idnconv'
# ../../mkinstalldirs /tmp/idnkit/pkg/idnkit/usr/bin
# mkdir /tmp/idnkit/pkg/idnkit/usr/bin
# /bin/sh ../../libtool --mode=install /usr/bin/install -c idnconv \
# /tmp/idnkit/pkg/idnkit/usr/bin/idnconv
# libtool: install: warning: `../../lib/libidnkit.la' has not been installed in `/usr/lib'
# /usr/bin/install -c .libs/idnconv /tmp/idnkit/pkg/idnkit/usr/bin/idnconv
# ../../mkinstalldirs /tmp/idnkit/pkg/idnkit/usr/share/man/man1
# mkdir /tmp/idnkit/pkg/idnkit/usr/share/man/man1
# /usr/bin/install -c -m 644 ./idnconv.1 /tmp/idnkit/pkg/idnkit/usr/share/man/man1/idnconv.1
# make[2]: Leaving directory '/tmp/idnkit/src/idnkit-1.0-src/tools/idnconv'
# make[2]: Entering directory '/tmp/idnkit/src/idnkit-1.0-src/tools/runidn'
# make[2]: Nothing to be done for 'install'.
# make[2]: Leaving directory '/tmp/idnkit/src/idnkit-1.0-src/tools/runidn'
# make[1]: Leaving directory '/tmp/idnkit/src/idnkit-1.0-src/tools'
# make[1]: Entering directory '/tmp/idnkit/src/idnkit-1.0-src/map'
# ../mkinstalldirs /tmp/idnkit/pkg/idnkit/usr/share/idnkit
# mkdir /tmp/idnkit/pkg/idnkit/usr/share/idnkit
# for map in jp.map; do \
# /usr/bin/install -c -m 644 ./$map /tmp/idnkit/pkg/idnkit/usr/share/idnkit/$map; \
# done
# make[1]: Leaving directory '/tmp/idnkit/src/idnkit-1.0-src/map'
# ==> Tidying install...
# -> Removing doc files...
# -> Purging unwanted files...
# ==> Checking for packaging issue...
# ==> Creating package "idnkit"...
# -> Generating .PKGINFO file...
# -> Generating .BUILDINFO file...
# error: invalid option '--noprogressbar'
# -> Generating .MTREE file...
# -> Compressing package...
# ==> Leaving fakeroot environment.
# ==> Finished making: idnkit 1.0-3 (Thu Apr 13 17:18:34 UTC 2017)

CMD: pacman --query --file idnkit-1.0-3-x86_64.pkg.tar.xz
# idnkit 1.0-3

Creating hybrid package for 'idnkit'

Trying to find vanilla package 'idnkit'...

CMD: pacman --query --file /mirror/idnkit-1.0-3.pkg.tar.xz
# idnkit 1.0-3

Package file has the following structure:
# /.PKGINFO
# /.MTREE
# /etc/idnalias.conf
# /etc/idn.conf
# /usr/lib/libidnkit.so.1.0.2
# /usr/lib/libidnkitlite.so.1.0.2
# /usr/lib/libidnkit.so.1
# /usr/lib/libidnkitlite.so.1
# /usr/lib/libidnkit.so
# /usr/lib/libidnkitlite.so
# /usr/share/idnkit/jp.map
# /usr/share/licenses/idnkit/LICENSE
# /usr/share/man/man5/idn.conf.5.gz
# /usr/share/man/man5/idnrc.5.gz
# /usr/share/man/man5/idnalias.conf.5.gz
# /usr/share/man/man3/libidnkitlite.3.gz
# /usr/share/man/man3/libidnkit.3.gz
# /usr/share/man/man1/idnconv.1.gz
# /usr/bin/idnconv
# /usr/include/idn/nameprep.h
# /usr/include/idn/export.h
# /usr/include/idn/assert.h
# /usr/include/idn/ucs4.h
# /usr/include/idn/logmacro.h
# /usr/include/idn/punycode.h
# /usr/include/idn/race.h
# /usr/include/idn/api.h
# /usr/include/idn/utf8.h
# /usr/include/idn/filechecker.h
# /usr/include/idn/mapselector.h
# /usr/include/idn/ucsset.h
# /usr/include/idn/version.h
# /usr/include/idn/debug.h
# /usr/include/idn/res.h
# /usr/include/idn/mapper.h
# /usr/include/idn/unormalize.h
# /usr/include/idn/strhash.h
# /usr/include/idn/resconf.h
# /usr/include/idn/delimitermap.h
# /usr/include/idn/util.h
# /usr/include/idn/filemapper.h
# /usr/include/idn/normalizer.h
# /usr/include/idn/log.h
# /usr/include/idn/result.h
# /usr/include/idn/unicode.h
# /usr/include/idn/checker.h
# /usr/include/idn/ucsmap.h
# /usr/include/idn/converter.h
# /usr/include/idn/localencoding.h
# /sysroot/usr/lib/libidnkitlite.so.1.0.2
# /sysroot/usr/lib/libidnkitlite.so.1
# /sysroot/usr/lib/libidnkitlite.so
# /sysroot/usr/lib/libidnkitlite.la
# /sysroot/usr/lib/libidnkit.so.1.0.2
# /sysroot/usr/lib/libidnkit.so.1
# /sysroot/usr/lib/libidnkit.so
# /sysroot/usr/lib/libidnkit.la
# /sysroot/usr/include/idn/api.h
# /sysroot/usr/include/idn/assert.h
# /sysroot/usr/include/idn/checker.h
# /sysroot/usr/include/idn/converter.h
# /sysroot/usr/include/idn/debug.h
# /sysroot/usr/include/idn/delimitermap.h
# /sysroot/usr/include/idn/export.h
# /sysroot/usr/include/idn/filechecker.h
# /sysroot/usr/include/idn/filemapper.h
# /sysroot/usr/include/idn/localencoding.h
# /sysroot/usr/include/idn/log.h
# /sysroot/usr/include/idn/logmacro.h
# /sysroot/usr/include/idn/mapper.h
# /sysroot/usr/include/idn/mapselector.h
# /sysroot/usr/include/idn/nameprep.h
# /sysroot/usr/include/idn/normalizer.h
# /sysroot/usr/include/idn/punycode.h
# /sysroot/usr/include/idn/race.h
# /sysroot/usr/include/idn/res.h
# /sysroot/usr/include/idn/resconf.h
# /sysroot/usr/include/idn/result.h
# /sysroot/usr/include/idn/strhash.h
# /sysroot/usr/include/idn/ucsmap.h
# /sysroot/usr/include/idn/ucsset.h
# /sysroot/usr/include/idn/unicode.h
# /sysroot/usr/include/idn/unormalize.h
# /sysroot/usr/include/idn/ucs4.h
# /sysroot/usr/include/idn/utf8.h
# /sysroot/usr/include/idn/util.h
# /sysroot/usr/include/idn/version.h

Generating .MTREE

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

Tar-ing up files

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

CMD: xz -c -z

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

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

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

Attempting to access local repository, attempt 1

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

Printing config logfiles

CMD: config logfiles '/tmp/idnkit/src/idnkit-1.0-src/config.log'
# This file contains any messages produced by compilers while
# running configure, to aid debugging if configure makes a mistake.
#
# configure:582: checking host system type
# configure:959: checking for gcc
# configure:1072: checking whether the C compiler (clang ) works
# configure:1088: clang -o conftest conftest.c 1>&5
# configure:1085:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
# main(){return(0);}
# ^
# 1 warning generated.
# configure:1114: checking whether the C compiler (clang ) is a cross-compiler
# configure:1119: checking whether we are using GNU C
# configure:1128: clang -E conftest.c
# configure:1147: checking whether clang accepts -g
# configure:1190: checking for a BSD compatible install
# configure:1312: checking build system type
# configure:1332: checking for ranlib
# configure:1371: checking for ld used by GCC
# configure:1433: checking if the linker (/usr/bin/ld) is GNU ld
# GNU ld (GNU Binutils) 2.26.1
# configure:1449: checking for BSD-compatible nm
# configure:1485: checking whether ln -s works
# ltconfig:603: checking for object suffix
# ltconfig:604: clang -c conftest.c 1>&5
# ltconfig:629: checking for executable suffix
# ltconfig:630: clang -o conftest conftest.c 1>&5
# conftest.c:1:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
# main () { return 0; }
# ^
# 1 warning generated.
# ltconfig:776: checking if clang PIC flag -fPIC works
# ltconfig:777: clang -c -fPIC -DPIC conftest.c 1>&5
# ltconfig:829: checking if clang supports -c -o file.o
# ltconfig:830: clang -c -o out/conftest2.o conftest.c 1>&5
# ltconfig:862: checking if clang supports -c -o file.lo
# ltconfig:863: clang -c -c -o conftest.lo conftest.c 1>&5
# ltconfig:914: checking if clang supports -fno-rtti -fno-exceptions
# ltconfig:915: clang -c -fno-rtti -fno-exceptions -c conftest.c conftest.c 1>&5
# ltconfig:958: checking if clang static flag -static works
# ltconfig:959: clang -o conftest -static conftest.c 1>&5
# conftest.c:1:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
# main(){return(0);}
# ^
# 1 warning generated.
# GNU ld (GNU Binutils) 2.26.1
# ltconfig:1653: checking if global_symbol_pipe works
# ltconfig:1654: clang -c conftest.c 1>&5
# conftest.c:9:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
# main(){nm_test_var='a';nm_test_func();return(0);}
# ^
# 1 warning generated.
# ltconfig:1657: eval "/usr/bin/nm -B conftest.o | sed -n -e 's/^.*[ ]\([ABCDGISTW]\)[ ][ ]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p' > conftest.nm"
# ltconfig:1709: clang -o conftest -fno-builtin -fno-rtti -fno-exceptions conftest.c conftstm.o 1>&5
# conftest.c:6:1: warning: variable named 'main' with external linkage has undefined behavior [-Wmain]
# extern char main;
# ^
# 1 warning generated.
# configure:1675: checking for perl
# configure:1713: checking how to run the C preprocessor
# configure:1734: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1796: checking for unistd.h
# configure:1806: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1796: checking for locale.h
# configure:1806: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1796: checking for langinfo.h
# configure:1806: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1796: checking for pwd.h
# configure:1806: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1880: checking for iconv.h
# configure:1890: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1916: checking for uid_t in sys/types.h
# configure:1950: checking for ANSI C header files
# configure:1963: clang -E conftest.c >/dev/null 2>conftest.out
# configure:2030: clang -o conftest conftest.c 1>&5
# configure:2025:67: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration]
# if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
# ^
# configure:2025:67: note: include the header or explicitly provide a declaration for 'exit'
# 1 warning generated.
# configure:2054: checking for BOOL
# configure:2236: checking for vsnprintf
# configure:2264: clang -o conftest conftest.c 1>&5
# configure:2248:6: warning: incompatible redeclaration of library function 'vsnprintf' [-Wincompatible-library-redeclaration]
# char vsnprintf();
# ^
# configure:2248:6: note: 'vsnprintf' is a builtin with type 'int (char *, unsigned long, const char *, struct __va_list_tag *)'
# 1 warning generated.
# configure:2236: checking for setvbuf
# configure:2264: clang -o conftest conftest.c 1>&5
# configure:2236: checking for setlocale
# configure:2264: clang -o conftest conftest.c 1>&5
# configure:2236: checking for nl_langinfo
# configure:2264: clang -o conftest conftest.c 1>&5
# configure:2236: checking for memmove
# configure:2264: clang -o conftest conftest.c 1>&5
# configure:2248:6: warning: incompatible redeclaration of library function 'memmove' [-Wincompatible-library-redeclaration]
# char memmove();
# ^
# configure:2248:6: note: 'memmove' is a builtin with type 'void *(void *, const void *, unsigned long)'
# 1 warning generated.
# configure:2236: checking for bcopy
# configure:2264: clang -o conftest conftest.c 1>&5
# configure:2236: checking for setenv
# configure:2264: clang -o conftest conftest.c 1>&5
# configure:2236: checking for unsetenv
# configure:2264: clang -o conftest conftest.c 1>&5
# configure:2938: checking for libc shared object
# configure:3017: checking for iconv
# configure:3035: clang -o conftest conftest.c 1>&5
# configure:3055: checking for codeset name UTF-8
# configure:3092: clang -o conftest conftest.c 1>&5