Build of fdupes with musl toolchain

The build took 00h 01m 10s and was NOT successful.

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

SLOCLanguage
1,195 ansic
32 makefile
1,227 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...

There were existing files in /sysroot, using those
# /sysroot/lib
# /sysroot/share
# /sysroot/bin
# /sysroot/include
# /sysroot/libexec

CMD: sudo -u tuscan PATH=/sysroot/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: fdupes 1.51-4 (Tue Apr 4 22:57:07 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# gcc -Wall -O -g -I. -DVERSION=\"1.51\" -D_FILE_OFFSET_BITS=64 -c -o fdupes.o fdupes.c
# gcc -Wall -O -g -I. -DVERSION=\"1.51\" -D_FILE_OFFSET_BITS=64 -c -o md5/md5.o md5/md5.c
# fdupes.c:646:62: warning: format specifies type 'long long' but the argument has type 'off_t' (aka 'long') [-Wformat]
# if (ISFLAG(flags, F_SHOWSIZE)) printf("%lld byte%seach:\n", files->size,
# ~~~~ ^~~~~~~~~~~
# %ld
# fdupes.c:799:62: warning: format specifies type 'long long' but the argument has type 'off_t' (aka 'long') [-Wformat]
# if (ISFLAG(flags, F_SHOWSIZE)) printf(" (%lld byte%seach)", files->size,
# ~~~~ ^~~~~~~~~~~
# %ld
# fdupes.c:1167:13: error: cannot assign to variable 'stdin' with const-qualified type 'FILE *const' (aka 'struct _IO_FILE *const')
# stdin = freopen("/dev/tty", "r", stdin);
# ~~~~~ ^
# /sysroot/include/stdio.h:55:20: note: variable 'stdin' declared const here
# extern FILE *const stdin;
# ~~~~~~~~~~~~~~~~~~~^~~~~
# 2 warnings and 1 error generated.
# make: *** [: fdupes.o] Error 1
# make: *** Waiting for unfinished jobs....
# ==> ERROR: A failure occurred in build().
# Aborting...