Build of r8168 with musl toolchain

The build took 00h 01m 30s and was SUCCESSFUL.

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

SLOCLanguage
25,994 ansic
75 makefile
72 sh
26,141 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: r8168 8.042-2 (Wed Apr 5 00:42:41 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# make: Entering directory '/usr/lib/modules/4.6.3-1-ARCH/build'
# CC [M] /tmp/r8168/src/r8168-8.042/src/r8168_n.o
# CC [M] /tmp/r8168/src/r8168-8.042/src/r8168_asf.o
# CC [M] /tmp/r8168/src/r8168-8.042/src/rtl_eeprom.o
# CC [M] /tmp/r8168/src/r8168-8.042/src/rtltool.o
# clang-3.8: warning: optimization flag '-falign-jumps=1' is not supported
# clang-3.8: warning: optimization flag '-falign-loops=1' is not supported
# clang-3.8: warning: optimization flag '-fno-delete-null-pointer-checks' is not supported
# clang-3.8: warning: optimization flag '-falign-jumps=1' is not supported
# clang-3.8: warning: optimization flag '-falign-loops=1' is not supported
# clang-3.8: warning: optimization flag '-fno-delete-null-pointer-checks' is not supported
# clang-3.8: warning: optimization flag '-falign-jumps=1' is not supported
# clang-3.8: warning: optimization flag '-falign-loops=1' is not supported
# clang-3.8: warning: optimization flag '-fno-delete-null-pointer-checks' is not supported
# clang-3.8: warning: optimization flag '-falign-jumps=1' is not supported
# clang-3.8: warning: optimization flag '-falign-loops=1' is not supported
# clang-3.8: warning: optimization flag '-fno-delete-null-pointer-checks' is not supported
# /tmp/r8168/src/r8168-8.042/src/r8168_n.c:25788:1: warning: unused function '__inittest' [-Wunused-function]
# module_init(rtl8168_init_module);
# ^
# include/linux/module.h:128:27: note: expanded from macro 'module_init'
# static inline initcall_t __inittest(void) \
# ^
# /tmp/r8168/src/r8168-8.042/src/r8168_n.c:25789:1: warning: unused function '__exittest' [-Wunused-function]
# module_exit(rtl8168_cleanup_module);
# ^
# include/linux/module.h:134:27: note: expanded from macro 'module_exit'
# static inline exitcall_t __exittest(void) \
# ^
# 2 warnings generated.
# /tmp/r8168/src/r8168-8.042/src/r8168_n.o: warning: objtool: rtl8168_init_one()+0x16c0: function has unreachable instruction
# LD [M] /tmp/r8168/src/r8168-8.042/src/r8168.o
# Building modules, stage 2.
# MODPOST 1 modules
# WARNING: "mcount" [/tmp/r8168/src/r8168-8.042/src/r8168.ko] undefined!
# CC /tmp/r8168/src/r8168-8.042/src/r8168.mod.o
# clang-3.8: warning: optimization flag '-falign-jumps=1' is not supported
# clang-3.8: warning: optimization flag '-falign-loops=1' is not supported
# clang-3.8: warning: optimization flag '-fno-delete-null-pointer-checks' is not supported
# LD [M] /tmp/r8168/src/r8168-8.042/src/r8168.ko
# make: Leaving directory '/usr/lib/modules/4.6.3-1-ARCH/build'
# ==> Entering fakeroot environment...
# ==> Starting package()...
# ==> Kernel = 4.6.3-1-ARCH
# ==> Tidying install...
# -> Removing doc files...
# -> Purging unwanted files...
# ==> Checking for packaging issue...
# ==> Creating package "r8168"...
# -> Generating .PKGINFO file...
# -> Generating .BUILDINFO file...
# error: invalid option '--noprogressbar'
# -> Adding install file...
# -> Generating .MTREE file...
# -> Compressing package...
# ==> Leaving fakeroot environment.
# ==> Finished making: r8168 8.042-2 (Wed Apr 5 00:43:13 UTC 2017)

CMD: pacman --query --file r8168-8.042-2-x86_64.pkg.tar.xz
# r8168 8.042-2

Creating hybrid package for 'r8168'

Trying to find vanilla package 'r8168'...

CMD: pacman --query --file /mirror/r8168-lts-8.042-2.pkg.tar.xz
# r8168-lts 8.042-2

CMD: pacman --query --file /mirror/r8168-8.042-2.pkg.tar.xz
# r8168 8.042-2

Package file has the following structure:
# /.PKGINFO
# /.BUILDINFO
# /.INSTALL
# /.MTREE
# /usr/lib/modules/extramodules-4.6-ARCH/r8168.ko.gz
# /sysroot/usr/lib/modules/extramodules-4.6-ARCH/r8168.ko.gz

Generating .MTREE

CMD: bsdtar -czf .MTREE --format=mtree --options=!all,use-set,type,uid,mode,time,size,md5,sha256,link .PKGINFO .BUILDINFO .INSTALL usr sysroot

Tar-ing up files

CMD: bsdtar -cf - .PKGINFO .BUILDINFO .INSTALL usr sysroot .MTREE

CMD: xz -c -z

Successfully ran bsdtar -cf - .PKGINFO .BUILDINFO .INSTALL usr sysroot .MTREE | xz -c -z

CMD: bsdtar -tqf r8168.pkg.tar.xz .PKGINFO
# .PKGINFO

Created package at path /var/cache/pacman/pkg/r8168.pkg.tar.xz

Attempting to access local repository, attempt 1

CMD: repo-add /var/cache/pacman/pkg/tuscan.db.tar /var/cache/pacman/pkg/r8168.pkg.tar.xz
# ==> Extracting database to a temporary location...
# ==> Extracting database to a temporary location...
# ==> Adding package '/var/cache/pacman/pkg/r8168.pkg.tar.xz'
# -> Computing checksums...
# -> Creating 'desc' db entry...
# -> Creating 'files' db entry...
# ==> Creating updated database file '/var/cache/pacman/pkg/tuscan.db.tar'