Build of foremost with clang_glibc toolchain

The build took 00h 03m 27s and was NOT successful.

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

SLOCLanguage
5,319 ansic
99 makefile
5,418 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: foremost 1.5.7-3 (Thu Apr 13 11:36:18 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# gcc -Wall -O2 -DVERSION=\"1.5.7\" -D__UNIX -D__LINUX -DLARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c main.c
# main.c:281:7: warning: logical not is only applied to the left hand side of this comparison [-Wlogical-not-parentheses]
# if(!strstr(s->config_file,*argv)!=0 && !dir)
# ^ ~~
# main.c:281:7: note: add parentheses after the '!' to evaluate the comparison first
# if(!strstr(s->config_file,*argv)!=0 && !dir)
# ^
# ( )
# main.c:281:7: note: add parentheses around left hand side expression to silence this warning
# if(!strstr(s->config_file,*argv)!=0 && !dir)
# ^
# ( )
# main.c:307:8: warning: logical not is only applied to the left hand side of this comparison [-Wlogical-not-parentheses]
# if(!strstr(s->config_file,*argv)!=0 && !dir)
# ^ ~~
# main.c:307:8: note: add parentheses after the '!' to evaluate the comparison first
# if(!strstr(s->config_file,*argv)!=0 && !dir)
# ^
# ( )
# main.c:307:8: note: add parentheses around left hand side expression to silence this warning
# if(!strstr(s->config_file,*argv)!=0 && !dir)
# ^
# ( )
# 2 warnings generated.
# gcc -Wall -O2 -DVERSION=\"1.5.7\" -D__UNIX -D__LINUX -DLARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c state.c
# gcc -Wall -O2 -DVERSION=\"1.5.7\" -D__UNIX -D__LINUX -DLARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c helpers.c
# gcc -Wall -O2 -DVERSION=\"1.5.7\" -D__UNIX -D__LINUX -DLARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c config.c
# config.c:27:6: warning: expression result unused [-Wunused-value]
# *rd++;
# ^~~~~
# config.c:32:6: warning: expression result unused [-Wunused-value]
# *rd++;
# ^~~~~
# config.c:37:6: warning: expression result unused [-Wunused-value]
# *rd++;
# ^~~~~
# config.c:42:6: warning: expression result unused [-Wunused-value]
# *rd++;
# ^~~~~
# config.c:47:6: warning: expression result unused [-Wunused-value]
# *rd++;
# ^~~~~
# config.c:52:6: warning: expression result unused [-Wunused-value]
# *rd++;
# ^~~~~
# config.c:57:6: warning: expression result unused [-Wunused-value]
# *rd++;
# ^~~~~
# 7 warnings generated.
# gcc -Wall -O2 -DVERSION=\"1.5.7\" -D__UNIX -D__LINUX -DLARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c cli.c
# gcc -Wall -O2 -DVERSION=\"1.5.7\" -D__UNIX -D__LINUX -DLARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c engine.c
# engine.c:245:13: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
# if (block < 0)
# ~~~~~ ^ ~
# engine.c:255:14: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
# if (block2 < 0)
# ~~~~~~ ^ ~
# 2 warnings generated.
# gcc -Wall -O2 -DVERSION=\"1.5.7\" -D__UNIX -D__LINUX -DLARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c dir.c
# dir.c:327:15: warning: comparison of array 'needle->comment' equal to a null pointer is always false [-Wtautological-pointer-compare]
# if (needle->comment == NULL)
# ~~~~~~~~^~~~~~~ ~~~~
# dir.c:387:14: warning: comparison of array 'needle->comment' equal to a null pointer is always false [-Wtautological-pointer-compare]
# if (needle->comment == NULL)
# ~~~~~~~~^~~~~~~ ~~~~
# 2 warnings generated.
# gcc -Wall -O2 -DVERSION=\"1.5.7\" -D__UNIX -D__LINUX -DLARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c extract.c
# extract.c:628:64: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
# htoi((unsigned char *) &h->dir_flag, FOREMOST_LITTLE_ENDIAN) < 0)
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~
# extract.c:640:79: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
# if (htoi((unsigned char *) &h->num_extra_FAT_blocks, FOREMOST_LITTLE_ENDIAN) < 0 ||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~
# extract.c:2148:19: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
# sprintf(comment, ascii_time);
# ^~~~~~~~~~
# extract.c:2367:17: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
# if (filesize < 0 || filesize > buflen)
# ~~~~~~~~ ^ ~
# extract.c:2371:18: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
# if (ufilesize < 0)
# ~~~~~~~~~ ^ ~
# 5 warnings generated.
# gcc -Wall -O2 -DVERSION=\"1.5.7\" -D__UNIX -D__LINUX -DLARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c api.c
# api.c:171:11: warning: comparison of array 'dl->name' equal to a null pointer is always false [-Wtautological-pointer-compare]
# if (dl->name == NULL)
# ~~~~^~~~ ~~~~
# api.c:249:26: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
# if (blknum < -1 || jump < 0 || blknum > buffersize || buffersize < jump)
# ~~~~ ^ ~
# api.c:274:26: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
# if (blknum < -1 || jump < 0 || blknum > buffersize || buffersize < jump)
# ~~~~ ^ ~
# 3 warnings generated.
# gcc -Wall -O2 -DVERSION=\"1.5.7\" -D__UNIX -D__LINUX -DLARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 main.o state.o helpers.o config.o cli.o engine.o dir.o extract.o api.o -o foremost
# ==> Entering fakeroot environment...
# ==> Starting package()...
# install -m 755 foremost /usr/local/bin
# install: cannot create regular file '/usr/local/bin/foremost': Permission denied
# make: *** [Makefile:121: install] Error 1
# ==> ERROR: A failure occurred in package().
# Aborting...