Build of python-pyelftools 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
8,898 python
142 ansic
12 makefile
9,052 total

The process tree of the build process is here.

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: python-pyelftools 0.23-3 (Wed Apr 5 01:43:33 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# running build
# running build_py
# creating build
# creating build/lib
# creating build/lib/elftools
# copying elftools/__init__.py -> build/lib/elftools
# creating build/lib/elftools/elf
# copying elftools/elf/structs.py -> build/lib/elftools/elf
# copying elftools/elf/dynamic.py -> build/lib/elftools/elf
# copying elftools/elf/descriptions.py -> build/lib/elftools/elf
# copying elftools/elf/__init__.py -> build/lib/elftools/elf
# copying elftools/elf/sections.py -> build/lib/elftools/elf
# copying elftools/elf/constants.py -> build/lib/elftools/elf
# copying elftools/elf/enums.py -> build/lib/elftools/elf
# copying elftools/elf/elffile.py -> build/lib/elftools/elf
# copying elftools/elf/relocation.py -> build/lib/elftools/elf
# copying elftools/elf/segments.py -> build/lib/elftools/elf
# copying elftools/elf/gnuversions.py -> build/lib/elftools/elf
# creating build/lib/elftools/common
# copying elftools/common/construct_utils.py -> build/lib/elftools/common
# copying elftools/common/__init__.py -> build/lib/elftools/common
# copying elftools/common/utils.py -> build/lib/elftools/common
# copying elftools/common/exceptions.py -> build/lib/elftools/common
# copying elftools/common/py3compat.py -> build/lib/elftools/common
# creating build/lib/elftools/dwarf
# copying elftools/dwarf/compileunit.py -> build/lib/elftools/dwarf
# copying elftools/dwarf/die.py -> build/lib/elftools/dwarf
# copying elftools/dwarf/dwarfinfo.py -> build/lib/elftools/dwarf
# copying elftools/dwarf/structs.py -> build/lib/elftools/dwarf
# copying elftools/dwarf/descriptions.py -> build/lib/elftools/dwarf
# copying elftools/dwarf/__init__.py -> build/lib/elftools/dwarf
# copying elftools/dwarf/constants.py -> build/lib/elftools/dwarf
# copying elftools/dwarf/callframe.py -> build/lib/elftools/dwarf
# copying elftools/dwarf/locationlists.py -> build/lib/elftools/dwarf
# copying elftools/dwarf/dwarf_expr.py -> build/lib/elftools/dwarf
# copying elftools/dwarf/abbrevtable.py -> build/lib/elftools/dwarf
# copying elftools/dwarf/enums.py -> build/lib/elftools/dwarf
# copying elftools/dwarf/ranges.py -> build/lib/elftools/dwarf
# copying elftools/dwarf/lineprogram.py -> build/lib/elftools/dwarf
# creating build/lib/elftools/construct
# copying elftools/construct/debug.py -> build/lib/elftools/construct
# copying elftools/construct/adapters.py -> build/lib/elftools/construct
# copying elftools/construct/__init__.py -> build/lib/elftools/construct
# copying elftools/construct/core.py -> build/lib/elftools/construct
# copying elftools/construct/macros.py -> build/lib/elftools/construct
# creating build/lib/elftools/construct/lib
# copying elftools/construct/lib/hex.py -> build/lib/elftools/construct/lib
# copying elftools/construct/lib/__init__.py -> build/lib/elftools/construct/lib
# copying elftools/construct/lib/binary.py -> build/lib/elftools/construct/lib
# copying elftools/construct/lib/container.py -> build/lib/elftools/construct/lib
# copying elftools/construct/lib/py3compat.py -> build/lib/elftools/construct/lib
# copying elftools/construct/lib/bitstream.py -> build/lib/elftools/construct/lib
# running build_scripts
# creating build/scripts-3.5
# copying and adjusting scripts/readelf.py -> build/scripts-3.5
# changing mode of build/scripts-3.5/readelf.py from 644 to 755
# /tmp/python-pyelftools/PKGBUILD: line 30: cd: pyelftools-0.23-py2: No such file or directory
# ==> ERROR: A failure occurred in build().
# Aborting...