Build of bin86 with clang_glibc toolchain

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

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

SLOCLanguage
14,312 ansic
1,500 asm
161 sh
113 makefile
16,086 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: bin86 0.16.21-1 (Thu Apr 13 12:14:25 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# set -e ; for d in ld as; do \
# (cd $d && make "LIBS=" "CFLAGS=-O2 -D_POSIX_SOURCE" "LDFLAGS=" "BINDIR=/usr/bin" "LIBDIR=/usr/lib" "CC=clang" all;); \
# done
# make[1]: Entering directory '/tmp/bin86/src/bin86-0.16.21/ld'
# clang -O2 -D_POSIX_SOURCE -DREL_OUTPUT -c dumps.c -o dumps.o
# clang -O2 -D_POSIX_SOURCE -DREL_OUTPUT -c io.c -o io.o
# clang -O2 -D_POSIX_SOURCE -DREL_OUTPUT -c ld.c -o ld.o
# clang -O2 -D_POSIX_SOURCE -DREL_OUTPUT -c readobj.c -o readobj.o
# clang -O2 -D_POSIX_SOURCE -DREL_OUTPUT -c table.c -o table.o
# clang -O2 -D_POSIX_SOURCE -DREL_OUTPUT -c typeconv.c -o typeconv.o
# clang -O2 -D_POSIX_SOURCE -DREL_OUTPUT -c linksyms.c -o linksyms.o
# clang -O2 -D_POSIX_SOURCE -DREL_OUTPUT -c mkar.c -o mkar.o
# clang -O2 -D_POSIX_SOURCE -DREL_OUTPUT -c writex86.c -o writex86.o
# clang -O2 -D_POSIX_SOURCE -DREL_OUTPUT -c writebin.c
# clang -O2 -D_POSIX_SOURCE -DREL_OUTPUT -c writeemu.c -o writeemu.o
# clang dumps.o io.o ld.o readobj.o table.o typeconv.o linksyms.o mkar.o writex86.o writebin.o writeemu.o -o ld86
# clang -O2 -D_POSIX_SOURCE objchop.c -o objchop
# objchop.c:11:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
# main()
# ^
# 1 warning generated.
# clang -O2 -D_POSIX_SOURCE catimage.c -o catimage
# catimage.c:31:2: error: "Compile error: struct exec invalid (long not 32 bit ?)"
# #error "Compile error: struct exec invalid (long not 32 bit ?)"
# ^
# catimage.c:42:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
# main(argc, argv)
# ^
# catimage.c:50:7: warning: implicit declaration of function 'fatal' is invalid in C99 [-Wimplicit-function-declaration]
# fatal("Usage: catimage mem.bin boot.out [a1.out] ... [a9.out]");
# ^
# catimage.c:52:4: warning: implicit declaration of function 'open_obj' is invalid in C99 [-Wimplicit-function-declaration]
# open_obj(argv[2]);
# ^
# catimage.c:57:4: warning: implicit declaration of function 'read_symtable' is invalid in C99 [-Wimplicit-function-declaration]
# read_symtable();
# ^
# catimage.c:67:22: error: invalid operands to binary expression ('char *' and 'int')
# (header.a_text>>4), (header.a_total>>4));
# ~~~~~~~~~~~~~^ ~
# catimage.c:67:43: error: invalid operands to binary expression ('char *' and 'int')
# (header.a_text>>4), (header.a_total>>4));
# ~~~~~~~~~~~~~~^ ~
# catimage.c:72:10: warning: implicit declaration of function 'copy_segment' is invalid in C99 [-Wimplicit-function-declaration]
# copy_segment(image_offset, A_TEXTPOS(header), header.a_text);
# ^
# catimage.c:73:23: warning: incompatible pointer to integer conversion assigning to 'long' from 'char *' [-Wint-conversion]
# image_offset += header.a_text;
# ^ ~~~~~~~~~~~~~
# catimage.c:76:37: warning: implicit declaration of function 'A_DATAPOS' is invalid in C99 [-Wimplicit-function-declaration]
# copy_segment(image_offset, A_DATAPOS(header), header.a_data);
# ^
# catimage.c:81:29: error: invalid operands to binary expression ('char *' and 'char *')
# header.a_text+header.a_data);
# ~~~~~~~~~~~~~^~~~~~~~~~~~~~
# catimage.c:84:7: warning: implicit declaration of function 'patch_bin' is invalid in C99 [-Wimplicit-function-declaration]
# patch_bin(text_offt[image_id], (unsigned)(text_off>>4));
# ^
# catimage.c:87:20: warning: incompatible pointer to integer conversion assigning to 'long' from 'char *' [-Wint-conversion]
# image_offset += header.a_total;
# ^ ~~~~~~~~~~~~~~
# catimage.c:103:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
# open_obj(fname)
# ^
# catimage.c:120:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
# copy_segment(out_offset, in_offset, length)
# ^
# catimage.c:146:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
# patch_bin(file_off, value)
# ^
# catimage.c:166:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
# read_symtable()
# ^
# catimage.c:172:15: warning: comparison of array 'header.a_syms' equal to a null pointer is always false [-Wtautological-pointer-compare]
# if( header.a_syms == 0 )
# ~~~~~~~^~~~~~ ~
# catimage.c:175:19: warning: implicit declaration of function 'A_SYMPOS' is invalid in C99 [-Wimplicit-function-declaration]
# if( fseek(ifd, A_SYMPOS(header), 0) < 0 )
# ^
# catimage.c:178:11: warning: incompatible pointer to integer conversion assigning to 'int' from 'Long' (aka 'char [4]') [-Wint-conversion]
# nitems = header.a_syms;
# ^ ~~~~~~~~~~~~~
# catimage.c:186:11: warning: implicitly declaring library function 'memcmp' with type 'int (const void *, const void *, unsigned long)' [-Wimplicit-function-declaration]
# if( memcmp(item.n_name, "__seg", 5) != 0 || item.n_name[6] != '_' )
# ^
# catimage.c:186:11: note: include the header or explicitly provide a declaration for 'memcmp'
# catimage.c:203:19: warning: incompatible pointer to integer conversion assigning to 'long' from 'Long' (aka 'char [4]') [-Wint-conversion]
# base_off = header.a_text;
# ^ ~~~~~~~~~~~~~
# catimage.c:209:47: warning: incompatible pointer to integer conversion assigning to 'unsigned long' from 'char *' [-Wint-conversion]
# case 'd': data_offt[item.n_name[5]-'0'] = base_off+item.n_value; break;
# ^ ~~~~~~~~~~~~~~~~~~~~~
# catimage.c:210:47: warning: incompatible pointer to integer conversion assigning to 'unsigned long' from 'char *' [-Wint-conversion]
# case 't': text_offt[item.n_name[5]-'0'] = base_off+item.n_value; break;
# ^ ~~~~~~~~~~~~~~~~~~~~~
# catimage.c:237:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
# fatal(str)
# ^
# 21 warnings and 4 errors generated.
# make[1]: *** [: catimage] Error 1
# make[1]: Leaving directory '/tmp/bin86/src/bin86-0.16.21/ld'
# make: *** [Makefile:28: all] Error 1
# ==> ERROR: A failure occurred in build().
# Aborting...