Build of libx86 with clang_glibc toolchain

The build took 00h 01m 14s 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...

Copied permanent toolchain into container-local sysroot
# /toolchain_root/sysroot --> /sysroot/sysroot
# /toolchain_root/lib --> /sysroot/lib
# /toolchain_root/sbin --> /sysroot/sbin
# /toolchain_root/lib64 --> /sysroot/lib64
# /toolchain_root/etc --> /sysroot/etc
# /toolchain_root/share --> /sysroot/share
# /toolchain_root/bin --> /sysroot/bin
# /toolchain_root/var --> /sysroot/var
# /toolchain_root/usr --> /sysroot/usr
# /toolchain_root/glibc-build --> /sysroot/glibc-build
# /toolchain_root/x86_64-pc-linux-gnu --> /sysroot/x86_64-pc-linux-gnu
# /toolchain_root/include --> /sysroot/include
# /toolchain_root/libexec --> /sysroot/libexec

CMD: sudo -u tuscan PATH=/usr/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 (Thu Apr 13 15:21:16 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
# 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.
# clang -c -o thunk.o thunk.c
# 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'
# 3 warnings generated.
# clang -c -o x86emu/decode.o x86emu/decode.c
# clang -c -o x86emu/debug.o x86emu/debug.c
# clang -c -o x86emu/fpu.o x86emu/fpu.c
# clang -c -o x86emu/ops.o x86emu/ops.c
# clang -c -o x86emu/ops2.o x86emu/ops2.c
# clang -c -o x86emu/prim_ops.o x86emu/prim_ops.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 -c -o x86emu/sys.o x86emu/sys.c
# 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
# ar: `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
# 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.
# clang -fPIC -c -o thunk.o thunk.c
# 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'
# 3 warnings generated.
# clang -fPIC -c -o x86emu/decode.o x86emu/decode.c
# clang -fPIC -c -o x86emu/debug.o x86emu/debug.c
# 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
# clang -fPIC -c -o x86emu/prim_ops.o x86emu/prim_ops.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 -c -o x86emu/sys.o x86emu/sys.c
# 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 (Thu Apr 13 15:21:21 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'