Build of libx86 with musl toolchain

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

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

SLOCLanguage
20,186 ansic
108 makefile
20,294 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: libx86 1.1-5 (Wed Apr 5 00:06:29 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# patching file lrmi.c
# make LIBRARY=static static
# make[1]: Entering directory '/tmp/libx86/src/libx86-1.1'
# clang -c -o x86-common.o x86-common.c
# clang -c -o thunk.o thunk.c
# clang -c -o x86emu/decode.o x86emu/decode.c
# clang -c -o x86emu/debug.o x86emu/debug.c
# x86-common.c:193:10: warning: cast to 'unsigned short *' from smaller integer type 'int' [-Wint-to-pointer-cast]
# return *(unsigned short *)(i * 4 + 2);
# ^
# x86-common.c:200:10: warning: cast to 'unsigned short *' from smaller integer type 'int' [-Wint-to-pointer-cast]
# return *(unsigned short *)(i * 4);
# ^
# thunk.c:150:3: warning: incompatible pointer types initializing 'x86emuu32 (*)(X86EMU_pioAddr)' (aka 'unsigned int (*)(unsigned short)') with an expression of type 'unsigned long (*)(unsigned short)' [-Wincompatible-pointer-types]
# (&x_inl),
# ^~~~~~~~
# thunk.c:153:3: warning: incompatible pointer types initializing 'void (*)(X86EMU_pioAddr, x86emuu32)' (aka 'void (*)(unsigned short, unsigned int)') with an expression of type 'void (*)(unsigned short, unsigned long)' [-Wincompatible-pointer-types]
# (&x_outl)
# ^~~~~~~~~
# thunk.c:172:2: warning: indirection of non-volatile null pointer will be deleted, not trap [-Wnull-dereference]
# *((char *)0) = 0x4f; /* Make sure that we end up jumping back to a
# ^~~~~~~~~~~~
# thunk.c:172:2: note: consider using __builtin_trap() or qualifying pointer with 'volatile'
# 2 warnings generated.
# clang -c -o x86emu/fpu.o x86emu/fpu.c
# clang -c -o x86emu/ops.o x86emu/ops.c
# 3 warnings generated.
# clang -c -o x86emu/ops2.o x86emu/ops2.c
# clang -c -o x86emu/prim_ops.o x86emu/prim_ops.c
# clang -c -o x86emu/sys.o x86emu/sys.c
# x86emu/prim_ops.c:2284:6: warning: absolute value function 'abs' given an argument of type 'x86emus64' (aka 'long long') but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value]
# if (abs(div) > 0x7fffffff) {
# ^
# x86emu/prim_ops.c:2284:6: note: use function 'llabs' instead
# if (abs(div) > 0x7fffffff) {
# ^~~
# llabs
# x86emu/prim_ops.c:2357:6: warning: taking the absolute value of unsigned type 'x86emuu32' (aka 'unsigned int') has no effect [-Wabsolute-value]
# if (abs(div) > 0xff) {
# ^
# x86emu/prim_ops.c:2357:6: note: remove the call to 'abs' since unsigned values cannot be negative
# if (abs(div) > 0xff) {
# ^~~
# x86emu/prim_ops.c:2380:6: warning: taking the absolute value of unsigned type 'x86emuu32' (aka 'unsigned int') has no effect [-Wabsolute-value]
# if (abs(div) > 0xffff) {
# ^
# x86emu/prim_ops.c:2380:6: note: remove the call to 'abs' since unsigned values cannot be negative
# if (abs(div) > 0xffff) {
# ^~~
# x86emu/prim_ops.c:2409:6: warning: taking the absolute value of unsigned type 'x86emuu64' (aka 'unsigned long long') has no effect [-Wabsolute-value]
# if (abs(div) > 0xffffffff) {
# ^
# x86emu/prim_ops.c:2409:6: note: remove the call to 'abs' since unsigned values cannot be negative
# if (abs(div) > 0xffffffff) {
# ^~~
# 4 warnings generated.
# ar cru libx86.a x86-common.o thunk.o x86emu/decode.o x86emu/debug.o x86emu/fpu.o x86emu/ops.o x86emu/ops2.o x86emu/prim_ops.o x86emu/sys.o
# /r: `u' modifier ignored since `D' is the default (see `U')
# make[1]: Leaving directory '/tmp/libx86/src/libx86-1.1'
# make objclean
# make[1]: Entering directory '/tmp/libx86/src/libx86-1.1'
# make -C x86emu clean
# make[2]: Entering directory '/tmp/libx86/src/libx86-1.1/x86emu'
# rm -f *.a *.o *~
# make[2]: Leaving directory '/tmp/libx86/src/libx86-1.1/x86emu'
# rm -f *.o *~
# make[1]: Leaving directory '/tmp/libx86/src/libx86-1.1'
# make LIBRARY=shared shared
# make[1]: Entering directory '/tmp/libx86/src/libx86-1.1'
# clang -fPIC -c -o x86-common.o x86-common.c
# clang -fPIC -c -o thunk.o thunk.c
# clang -fPIC -c -o x86emu/decode.o x86emu/decode.c
# clang -fPIC -c -o x86emu/debug.o x86emu/debug.c
# x86-common.c:193:10: warning: cast to 'unsigned short *' from smaller integer type 'int' [-Wint-to-pointer-cast]
# return *(unsigned short *)(i * 4 + 2);
# ^
# x86-common.c:200:10: warning: cast to 'unsigned short *' from smaller integer type 'int' [-Wint-to-pointer-cast]
# return *(unsigned short *)(i * 4);
# ^
# 2 warnings generated.
# thunk.c:150:3: warning: incompatible pointer types initializing 'x86emuu32 (*)(X86EMU_pioAddr)' (aka 'unsigned int (*)(unsigned short)') with an expression of type 'unsigned long (*)(unsigned short)' [-Wincompatible-pointer-types]
# (&x_inl),
# ^~~~~~~~
# thunk.c:153:3: warning: incompatible pointer types initializing 'void (*)(X86EMU_pioAddr, x86emuu32)' (aka 'void (*)(unsigned short, unsigned int)') with an expression of type 'void (*)(unsigned short, unsigned long)' [-Wincompatible-pointer-types]
# (&x_outl)
# ^~~~~~~~~
# thunk.c:172:2: warning: indirection of non-volatile null pointer will be deleted, not trap [-Wnull-dereference]
# *((char *)0) = 0x4f; /* Make sure that we end up jumping back to a
# ^~~~~~~~~~~~
# thunk.c:172:2: note: consider using __builtin_trap() or qualifying pointer with 'volatile'
# clang -fPIC -c -o x86emu/fpu.o x86emu/fpu.c
# clang -fPIC -c -o x86emu/ops.o x86emu/ops.c
# clang -fPIC -c -o x86emu/ops2.o x86emu/ops2.c
# 3 warnings generated.
# clang -fPIC -c -o x86emu/prim_ops.o x86emu/prim_ops.c
# clang -fPIC -c -o x86emu/sys.o x86emu/sys.c
# x86emu/prim_ops.c:2284:6: warning: absolute value function 'abs' given an argument of type 'x86emus64' (aka 'long long') but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value]
# if (abs(div) > 0x7fffffff) {
# ^
# x86emu/prim_ops.c:2284:6: note: use function 'llabs' instead
# if (abs(div) > 0x7fffffff) {
# ^~~
# llabs
# x86emu/prim_ops.c:2357:6: warning: taking the absolute value of unsigned type 'x86emuu32' (aka 'unsigned int') has no effect [-Wabsolute-value]
# if (abs(div) > 0xff) {
# ^
# x86emu/prim_ops.c:2357:6: note: remove the call to 'abs' since unsigned values cannot be negative
# if (abs(div) > 0xff) {
# ^~~
# x86emu/prim_ops.c:2380:6: warning: taking the absolute value of unsigned type 'x86emuu32' (aka 'unsigned int') has no effect [-Wabsolute-value]
# if (abs(div) > 0xffff) {
# ^
# x86emu/prim_ops.c:2380:6: note: remove the call to 'abs' since unsigned values cannot be negative
# if (abs(div) > 0xffff) {
# ^~~
# x86emu/prim_ops.c:2409:6: warning: taking the absolute value of unsigned type 'x86emuu64' (aka 'unsigned long long') has no effect [-Wabsolute-value]
# if (abs(div) > 0xffffffff) {
# ^
# x86emu/prim_ops.c:2409:6: note: remove the call to 'abs' since unsigned values cannot be negative
# if (abs(div) > 0xffffffff) {
# ^~~
# 4 warnings generated.
# clang -fPIC -o libx86.so.1 -shared -Wl,-soname,libx86.so.1 x86-common.o thunk.o x86emu/decode.o x86emu/debug.o x86emu/fpu.o x86emu/ops.o x86emu/ops2.o x86emu/prim_ops.o x86emu/sys.o
# make[1]: Leaving directory '/tmp/libx86/src/libx86-1.1'
# ==> Entering fakeroot environment...
# ==> Starting package()...
# install -D libx86.so.1 /tmp/libx86/pkg/libx86/usr/lib/libx86.so.1
# install -D libx86.a /tmp/libx86/pkg/libx86/usr/lib/libx86.a
# ln -sf libx86.so.1 /tmp/libx86/pkg/libx86/usr/lib/libx86.so
# install -p -m 0644 -D lrmi.h /tmp/libx86/pkg/libx86/usr/include/libx86.h
# ==> Tidying install...
# -> Removing doc files...
# -> Purging unwanted files...
# ==> Checking for packaging issue...
# ==> Creating package "libx86"...
# -> Generating .PKGINFO file...
# -> Generating .BUILDINFO file...
# error: invalid option '--noprogressbar'
# -> Generating .MTREE file...
# -> Compressing package...
# ==> Leaving fakeroot environment.
# ==> Finished making: libx86 1.1-5 (Wed Apr 5 00:06:34 UTC 2017)

CMD: pacman --query --file libx86-1.1-5-x86_64.pkg.tar.xz
# libx86 1.1-5

Creating hybrid package for 'libx86'

Trying to find vanilla package 'libx86'...

CMD: pacman --query --file /mirror/libx86emu-1.7_1-1.pkg.tar.xz
# libx86emu 1.7_1-1

CMD: pacman --query --file /mirror/libx86-1.1-5.pkg.tar.xz
# libx86 1.1-5

Package file has the following structure:
# /.PKGINFO
# /.BUILDINFO
# /.MTREE
# /usr/lib/libx86.so
# /usr/lib/libx86.so.1
# /usr/include/libx86.h
# /usr/share/licenses/libx86/LICENSE
# /sysroot/usr/lib/libx86.so.1
# /sysroot/usr/lib/libx86.a
# /sysroot/usr/lib/libx86.so
# /sysroot/usr/include/libx86.h

Generating .MTREE

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

Tar-ing up files

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

CMD: xz -c -z

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

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

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

Attempting to access local repository, attempt 1

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