Build of tsocks with clang_glibc toolchain

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

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

SLOCLanguage
2,484 sh
1,896 ansic
4,380 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: tsocks 1.8beta5-7 (Thu Apr 13 19:37:45 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 whether ln -s works... yes
# checking if the C compiler accepts -Wall... yes
# checking how to run the C preprocessor... clang -E
# checking for ANSI C header files... yes
# checking for dlfcn.h... yes
# checking for sys/socket.h... yes
# checking for arpa/inet.h... yes
# checking for fcntl.h... yes
# checking for sys/poll.h... yes
# checking for unistd.h... yes
# checking for strcspn... yes
# checking for strdup... yes
# checking for strerror... yes
# checking for strspn... yes
# checking for strtol... yes
# checking for connect in -lc... yes
# checking for socket... yes
# checking for inet_aton... yes
# checking for gethostbyname... yes
# checking for dlsym in -ldl... yes
# checking for RTLD_NEXT from dlfcn.h... no
# checking for RTLD_NEXT from dlfcn.h with _GNU_SOURCE... yes
# checking for correct select prototype... select(int n, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout)
# checking for correct connect prototype... connect(int __fd, const struct sockaddr * __addr, socklen_t __len)
# checking for correct close prototype... close(int fd)
# checking for correct poll prototype... poll(struct pollfd *ufds, unsigned long nfds, int timeout)
# updating cache ./config.cache
# creating ./config.status
# creating Makefile
# creating config.h
# clang -fPIC -Wall -I. -c tsocks.c -o tsocks.o
# tsocks.c:215:27: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign]
# (void *) &sock_type, &sock_type_len);
# ^~~~~~~~~~~~~~
# /usr/include/sys/socket.h:221:32: note: passing argument to parameter '__optlen' here
# socklen_t *__restrict __optlen) __THROW;
# ^
# tsocks.c:271:62: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign]
# if (!getpeername(__fd, (struct sockaddr *) &peer_address, &namelen)) {
# ^~~~~~~~
# /usr/include/sys/socket.h:142:26: note: passing argument to parameter '__len' here
# socklen_t *__restrict __len) __THROW;
# ^
# 2 warnings generated.
# clang -fPIC -Wall -I. -c common.c -o common.o
# clang -fPIC -Wall -I. -c parser.c -o parser.o
# clang -fPIC -Wall -I. -nostdlib -shared -o libtsocks.so.1.8 tsocks.o common.o parser.o -ldl -lc
# ln -sf libtsocks.so.1.8 libtsocks.so
# clang -fPIC -Wall -I. -static -o saveme saveme.c
# clang -fPIC -Wall -I. -o inspectsocks inspectsocks.c common.o -lc
# clang -fPIC -Wall -I. -o validateconf validateconf.c common.o parser.o -lc
# ==> Entering fakeroot environment...
# ==> Starting package()...
# /bin/sh mkinstalldirs "/tmp/tsocks/pkg/tsocks/usr/bin"
# mkdir /tmp/tsocks/pkg/tsocks/usr
# mkdir /tmp/tsocks/pkg/tsocks/usr/bin
# /usr/bin/install -c tsocks /tmp/tsocks/pkg/tsocks/usr/bin
# /bin/sh mkinstalldirs "/tmp/tsocks/pkg/tsocks/usr/lib"
# mkdir /tmp/tsocks/pkg/tsocks/usr/lib
# /usr/bin/install -c libtsocks.so.1.8 /tmp/tsocks/pkg/tsocks/usr/lib
# ln -sf libtsocks.so.1.8 /tmp/tsocks/pkg/tsocks/usr/lib/libtsocks.so.1
# ln -sf libtsocks.so.1 /tmp/tsocks/pkg/tsocks/usr/lib/libtsocks.so
# /bin/sh mkinstalldirs "/tmp/tsocks/pkg/tsocks/usr/share/man/man1"
# mkdir /tmp/tsocks/pkg/tsocks/usr/share
# mkdir /tmp/tsocks/pkg/tsocks/usr/share/man
# mkdir /tmp/tsocks/pkg/tsocks/usr/share/man/man1
# /usr/bin/install -c -m 644 tsocks.1 /tmp/tsocks/pkg/tsocks/usr/share/man/man1/
# /bin/sh mkinstalldirs "/tmp/tsocks/pkg/tsocks/usr/share/man/man8"
# mkdir /tmp/tsocks/pkg/tsocks/usr/share/man/man8
# /usr/bin/install -c -m 644 tsocks.8 /tmp/tsocks/pkg/tsocks/usr/share/man/man8/
# /bin/sh mkinstalldirs "/tmp/tsocks/pkg/tsocks/usr/share/man/man5"
# mkdir /tmp/tsocks/pkg/tsocks/usr/share/man/man5
# /usr/bin/install -c -m 644 tsocks.conf.5 /tmp/tsocks/pkg/tsocks/usr/share/man/man5/
# ==> Tidying install...
# -> Removing doc files...
# -> Purging unwanted files...
# ==> Checking for packaging issue...
# ==> Creating package "tsocks"...
# -> Generating .PKGINFO file...
# -> Generating .BUILDINFO file...
# error: invalid option '--noprogressbar'
# -> Generating .MTREE file...
# -> Compressing package...
# ==> Leaving fakeroot environment.
# ==> Finished making: tsocks 1.8beta5-7 (Thu Apr 13 19:37:47 UTC 2017)

CMD: pacman --query --file tsocks-1.8beta5-7-x86_64.pkg.tar.xz
# tsocks 1.8beta5-7

Creating hybrid package for 'tsocks'

Trying to find vanilla package 'tsocks'...

CMD: pacman --query --file /mirror/tsocks-1.8beta5-7.pkg.tar.xz
# tsocks 1.8beta5-7

Package file has the following structure:
# /.PKGINFO
# /.MTREE
# /usr/bin/tsocks
# /usr/lib/libtsocks.so
# /usr/lib/libtsocks.so.1
# /usr/lib/libtsocks.so.1.8
# /usr/share/man/man1/tsocks.1.gz
# /usr/share/man/man5/tsocks.conf.5.gz
# /usr/share/man/man8/tsocks.8.gz
# /usr/share/tsocks/tsocks.conf.complex.example
# /usr/share/tsocks/tsocks.conf.simple.example
# /sysroot/usr/lib/libtsocks.so.1.8
# /sysroot/usr/lib/libtsocks.so.1
# /sysroot/usr/lib/libtsocks.so

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 tsocks.pkg.tar.xz .PKGINFO
# .PKGINFO

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

Attempting to access local repository, attempt 1

CMD: repo-add /var/cache/pacman/pkg/tuscan.db.tar /var/cache/pacman/pkg/tsocks.pkg.tar.xz
# ==> Extracting database to a temporary location...
# ==> Extracting database to a temporary location...
# ==> Adding package '/var/cache/pacman/pkg/tsocks.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/tsocks/src/tsocks-1.8/config.log'
# This file contains any messages produced by compilers while
# running configure, to aid debugging if configure makes a mistake.
#
# configure:624: checking host system type
# configure:648: checking for gcc
# configure:761: checking whether the C compiler (clang ) works
# configure:777: clang -o conftest conftest.c 1>&5
# configure:774:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
# main(){return(0);}
# ^
# 1 warning generated.
# configure:803: checking whether the C compiler (clang ) is a cross-compiler
# configure:808: checking whether we are using GNU C
# configure:817: clang -E conftest.c
# configure:836: checking whether clang accepts -g
# configure:879: checking for a BSD compatible install
# configure:932: checking whether ln -s works
# configure:954: checking if the C compiler accepts -Wall
# configure:965: clang -c -Wall conftest.c 1>&5
# configure:979: checking how to run the C preprocessor
# configure:1000: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1059: checking for ANSI C header files
# configure:1072: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1139: clang -o conftest -Wall conftest.c 1>&5
# configure:1134: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:1134:67: note: include the header or explicitly provide a declaration for 'exit'
# 1 warning generated.
# configure:1165: checking for dlfcn.h
# configure:1175: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1200: checking for sys/socket.h
# configure:1210: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1235: checking for arpa/inet.h
# configure:1245: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1270: checking for fcntl.h
# configure:1280: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1305: checking for sys/poll.h
# configure:1315: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1342: checking for unistd.h
# configure:1352: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1382: checking for strcspn
# configure:1410: clang -o conftest -Wall conftest.c 1>&5
# configure:1394:6: warning: incompatible redeclaration of library function 'strcspn' [-Wincompatible-library-redeclaration]
# char strcspn();
# ^
# configure:1394:6: note: 'strcspn' is a builtin with type 'unsigned long (const char *, const char *)'
# 1 warning generated.
# configure:1382: checking for strdup
# configure:1410: clang -o conftest -Wall conftest.c 1>&5
# configure:1394:6: warning: incompatible redeclaration of library function 'strdup' [-Wincompatible-library-redeclaration]
# char strdup();
# ^
# configure:1394:6: note: 'strdup' is a builtin with type 'char *(const char *)'
# 1 warning generated.
# configure:1382: checking for strerror
# configure:1410: clang -o conftest -Wall conftest.c 1>&5
# configure:1394:6: warning: incompatible redeclaration of library function 'strerror' [-Wincompatible-library-redeclaration]
# char strerror();
# ^
# configure:1394:6: note: 'strerror' is a builtin with type 'char *(int)'
# 1 warning generated.
# configure:1382: checking for strspn
# configure:1410: clang -o conftest -Wall conftest.c 1>&5
# configure:1394:6: warning: incompatible redeclaration of library function 'strspn' [-Wincompatible-library-redeclaration]
# char strspn();
# ^
# configure:1394:6: note: 'strspn' is a builtin with type 'unsigned long (const char *, const char *)'
# 1 warning generated.
# configure:1382: checking for strtol
# configure:1410: clang -o conftest -Wall conftest.c 1>&5
# configure:1441: checking for connect in -lc
# configure:1460: clang -o conftest -Wall conftest.c -lc 1>&5
# configure:1490: checking for socket
# configure:1518: clang -o conftest -Wall conftest.c -lc 1>&5
# configure:1588: checking for inet_aton
# configure:1616: clang -o conftest -Wall conftest.c -lc 1>&5
# configure:1739: checking for gethostbyname
# configure:1767: clang -o conftest -Wall conftest.c -lc 1>&5
# configure:1841: checking for dlsym in -ldl
# configure:1860: clang -o conftest -Wall conftest.c -ldl 1>&5
# configure:1890: checking for RTLD_NEXT from dlfcn.h
# configure:1912: checking for RTLD_NEXT from dlfcn.h with _GNU_SOURCE
# configure:2101: checking for correct select prototype
# configure:2119: clang -c -Wall conftest.c 1>&5
# configure:2139: checking for correct connect prototype
# configure:2162: clang -c -Wall conftest.c 1>&5
# configure:2155:11: error: conflicting types for 'connect'
# int connect(int __fd, const struct sockaddr * __addr, int len);
# ^
# /usr/include/sys/socket.h:137:12: note: previous declaration is here
# extern int connect (int __fd, __CONST_SOCKADDR_ARG __addr, socklen_t __len);
# ^
# 1 error generated.
# configure: failed program was:
# #line 2152 "configure"
# #include "confdefs.h"
#
# #include
# int connect(int __fd, const struct sockaddr * __addr, int len);
#
# int main() {
#
# ; return 0; }
# configure:2162: clang -c -Wall conftest.c 1>&5
# configure:2155:42: warning: declaration of 'struct sockaddr_in' will not be visible outside of this function [-Wvisibility]
# int connect(int __fd, const struct sockaddr_in * __addr, socklen_t __len);
# ^
# configure:2155:11: error: conflicting types for 'connect'
# int connect(int __fd, const struct sockaddr_in * __addr, socklen_t __len);
# ^
# /usr/include/sys/socket.h:137:12: note: previous declaration is here
# extern int connect (int __fd, __CONST_SOCKADDR_ARG __addr, socklen_t __len);
# ^
# 1 warning and 1 error generated.
# configure: failed program was:
# #line 2152 "configure"
# #include "confdefs.h"
#
# #include
# int connect(int __fd, const struct sockaddr_in * __addr, socklen_t __len);
#
# int main() {
#
# ; return 0; }
# configure:2162: clang -c -Wall conftest.c 1>&5
# configure:2155:11: error: conflicting types for 'connect'
# int connect(int __fd, struct sockaddr * __addr, int __len);
# ^
# /usr/include/sys/socket.h:137:12: note: previous declaration is here
# extern int connect (int __fd, __CONST_SOCKADDR_ARG __addr, socklen_t __len);
# ^
# 1 error generated.
# configure: failed program was:
# #line 2152 "configure"
# #include "confdefs.h"
#
# #include
# int connect(int __fd, struct sockaddr * __addr, int __len);
#
# int main() {
#
# ; return 0; }
# configure:2162: clang -c -Wall conftest.c 1>&5
# configure:2193: checking for correct close prototype
# configure:2210: clang -c -Wall conftest.c 1>&5
# configure:2230: checking for correct poll prototype
# configure:2246: clang -c -Wall conftest.c 1>&5