Build of libaio with musl toolchain

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

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

SLOCLanguage
1,369 ansic
121 makefile
14 sh
1,504 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: libaio 0.3.110-1 (Wed Apr 5 00:10:56 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# make[1]: Entering directory '/tmp/libaio/src/libaio-0.3.110/src'
# clang -march=x86-64 -mtune=generic -O2 -pipe -nostdlib -nostartfiles -Wall -I. -fPIC -c -o io_queue_init.ol io_queue_init.c
# clang -march=x86-64 -mtune=generic -O2 -pipe -nostdlib -nostartfiles -Wall -I. -fPIC -c -o io_queue_release.ol io_queue_release.c
# clang -march=x86-64 -mtune=generic -O2 -pipe -nostdlib -nostartfiles -Wall -I. -fPIC -c -o io_queue_wait.ol io_queue_wait.c
# clang -march=x86-64 -mtune=generic -O2 -pipe -nostdlib -nostartfiles -Wall -I. -fPIC -c -o io_queue_run.ol io_queue_run.c
# clang-3.8: clang-3.8: clang-3.8: warningwarningwarning: : : argument unused during compilation: '-nostartfiles'argument unused during compilation: '-nostartfiles'argument unused during compilation: '-nostartfiles'
#
#
# clang-3.8: warning: argument unused during compilation: '-nostartfiles'
# clang -march=x86-64 -mtune=generic -O2 -pipe -nostdlib -nostartfiles -Wall -I. -fPIC -c -o io_getevents.ol io_getevents.c
# clang -march=x86-64 -mtune=generic -O2 -pipe -nostdlib -nostartfiles -Wall -I. -fPIC -c -o io_submit.ol io_submit.c
# clang-3.8: warning: argument unused during compilation: '-nostartfiles'
# clang-3.8: warning: argument unused during compilation: '-nostartfiles'
# clang -march=x86-64 -mtune=generic -O2 -pipe -nostdlib -nostartfiles -Wall -I. -fPIC -c -o io_cancel.ol io_cancel.c
# clang -march=x86-64 -mtune=generic -O2 -pipe -nostdlib -nostartfiles -Wall -I. -fPIC -c -o io_setup.ol io_setup.c
# clang-3.8: warning: argument unused during compilation: '-nostartfiles'
# clang-3.8: warning: argument unused during compilation: '-nostartfiles'
# clang -march=x86-64 -mtune=generic -O2 -pipe -nostdlib -nostartfiles -Wall -I. -fPIC -c -o io_destroy.ol io_destroy.c
# clang-3.8: warning: argument unused during compilation: '-nostartfiles'
# clang -march=x86-64 -mtune=generic -O2 -pipe -nostdlib -nostartfiles -Wall -I. -fPIC -c -o raw_syscall.ol raw_syscall.c
# clang-3.8: warning: argument unused during compilation: '-nostartfiles'
# clang -march=x86-64 -mtune=generic -O2 -pipe -nostdlib -nostartfiles -Wall -I. -fPIC -c -o compat-0_1.ol compat-0_1.c
# clang-3.8: warning: argument unused during compilation: '-nostartfiles'
# clang -shared -march=x86-64 -mtune=generic -O2 -pipe -nostdlib -nostartfiles -Wall -I. -fPIC -c -o io_queue_init.os io_queue_init.c
# clang -shared -march=x86-64 -mtune=generic -O2 -pipe -nostdlib -nostartfiles -Wall -I. -fPIC -c -o io_queue_release.os io_queue_release.c
# clang -shared -march=x86-64 -mtune=generic -O2 -pipe -nostdlib -nostartfiles -Wall -I. -fPIC -c -o io_queue_wait.os io_queue_wait.c
# clang-3.8: warning: argument unused during compilation: '-shared'
# clang-3.8: warning: argument unused during compilation: '-nostartfiles'
# clang-3.8: warning: argument unused during compilation: '-shared'
# clang-3.8: warning: argument unused during compilation: '-nostartfiles'
# compat-0_1.c:22:10: fatal error: 'asm/errno.h' file not found
# #include
# ^
# clang-3.8: warning: argument unused during compilation: '-shared'
# clang-3.8: warning: argument unused during compilation: '-nostartfiles'
# 1 error generated.
# make[1]: *** [Makefile:43: compat-0_1.ol] Error 1
# make[1]: *** Waiting for unfinished jobs....
# make[1]: Leaving directory '/tmp/libaio/src/libaio-0.3.110/src'
# make: *** [Makefile:15: all] Error 2
# ==> ERROR: A failure occurred in build().
# Aborting...