Build of lockdev with musl toolchain

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

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

SLOCLanguage
631 ansic
69 makefile
44 perl
744 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: lockdev 1.0.3_1.6-2 (Tue Apr 4 23:41:47 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# gcc -D_PATH_LOCK=\"/run/lock/lockdev\" -fPIC -c -fPIC -o src/lockdev.z src/lockdev.c
# gcc -D_PATH_LOCK=\"/run/lock/lockdev\" -fPIC -c -o src/lockdev.o src/lockdev.c
# src/lockdev.csrc/lockdev.c::131131::44:: errorerror: : "put here a define for MAJOR and MINOR""put here a define for MAJOR and MINOR"
#
# # error "put here a define for MAJOR and MINOR"
# ^# error "put here a define for MAJOR and MINOR"
#
# ^
# src/lockdev.c:242:4: error: "lock filename build missing"
# src/lockdev.c:242:4: error: # error "lock filename build missing""lock filename build missing"
#
# ^
# # error "lock filename build missing"
# ^
# 2 errors generated.
# 2 errors generated.
# make: *** [: src/lockdev.o] Error 1
# make: *** Waiting for unfinished jobs....
# make: *** [Makefile:40: src/lockdev.z] Error 1
# ==> ERROR: A failure occurred in build().
# Aborting...