Build of reptyr with musl toolchain

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

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

SLOCLanguage
2,260 ansic
38 makefile
32 python
31 sh
2,361 total

The process tree of the build process is here.

List of Errors

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: reptyr 0.6.2-1 (Wed Apr 5 00:11:17 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# clang -Wall -Werror -D_GNU_SOURCE -g -c -o reptyr.o reptyr.c
# clang -Wall -Werror -D_GNU_SOURCE -g -c -o reallocarray.o reallocarray.c
# clang -Wall -Werror -D_GNU_SOURCE -g -c -o attach.o attach.c
# clang -Wall -Werror -D_GNU_SOURCE -g -c -o platform/linux/linux_ptrace.o platform/linux/linux_ptrace.c
# In file included from platform/linux/linux_ptrace.c:26:
# In file included from platform/linux/../platform.h:26:
# platform/linux/../linux/linux.h:27:10: fatal error: 'linux/major.h' file not found
# #include
# ^
# In file included from reptyr.c:37:
# In file included from ./platform/platform.h:26:
# ./platform/linux/linux.h:27:10: fatal error: 'linux/major.h' file not found
# #include
# ^
# clang -Wall -Werror -D_GNU_SOURCE -g -c -o platform/linux/linux.o platform/linux/linux.c
# In file included from attach.c:46:
# In file included from ./platform/platform.h:26:
# ./platform/linux/linux.h:27:10: fatal error: 'linux/major.h' file not found
# #include
# ^
# 1 error generated.
# make: *** [: reptyr.o] Error 1
# make: *** Waiting for unfinished jobs....
# In file included from platform/linux/linux.c:25:
# platform/linux/linux.h:27:10: fatal error: 'linux/major.h' file not found
# #include
# ^
# 1 error generated.
# make: *** [: platform/linux/linux_ptrace.o] Error 1
# 1 error generated.
# make: *** [: attach.o] Error 1
# 1 error generated.
# make: *** [: platform/linux/linux.o] Error 1
# ==> ERROR: A failure occurred in build().
# Aborting...