Build of dtc with clang_glibc toolchain

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

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

SLOCLanguage
8,766 ansic
780 sh
629 asm
497 lex
378 yacc
184 makefile
74 perl
11,308 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: dtc 1.4.1-1 (Thu Apr 13 12:46:18 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# DEP tests/dumptrees.c
# DEP tests/trees.S
# DEP tests/testutils.c
# DEP tests/value-labels.c
# DEP tests/asm_tree_dump.c
# DEP tests/truncated_property.c
# DEP tests/subnode_iterate.c
# DEP tests/integer-expressions.c
# DEP tests/utilfdt_test.c
# DEP tests/path_offset_aliases.c
# DEP tests/add_subnode_with_nops.c
# DEP tests/dtbs_equal_unordered.c
# DEP tests/dtb_reverse.c
# DEP tests/dtbs_equal_ordered.c
# DEP tests/extra-terminating-null.c
# DEP tests/incbin.c
# DEP tests/boot-cpuid.c
# DEP tests/phandle_format.c
# DEP tests/path-references.c
# DEP tests/references.c
# DEP tests/string_escapes.c
# DEP tests/propname_escapes.c
# DEP tests/appendprop2.c
# DEP tests/appendprop1.c
# DEP tests/del_node.c
# DEP tests/del_property.c
# DEP tests/setprop.c
# DEP tests/set_name.c
# DEP tests/rw_tree1.c
# DEP tests/open_pack.c
# DEP tests/nopulate.c
# DEP tests/mangle-layout.c
# DEP tests/move_and_save.c
# DEP tests/sw_tree1.c
# DEP tests/nop_node.c
# DEP tests/nop_property.c
# DEP tests/setprop_inplace.c
# DEP tests/addr_size_cells.c
# DEP tests/notfound.c
# DEP tests/sized_cells.c
# DEP tests/char_literal.c
# DEP tests/get_alias.c
# DEP tests/node_offset_by_compatible.c
# DEP tests/node_check_compatible.c
# DEP tests/node_offset_by_phandle.c
# DEP tests/node_offset_by_prop_value.c
# DEP tests/parent_offset.c
# DEP tests/supernode_atdepth_offset.c
# DEP tests/get_path.c
# DEP tests/get_phandle.c
# DEP tests/getprop.c
# DEP tests/get_name.c
# DEP tests/path_offset.c
# DEP tests/subnode_offset.c
# DEP tests/find_property.c
# DEP tests/root_node.c
# DEP tests/get_mem_rsv.c
# DEP libfdt/fdt_addresses.c
# DEP libfdt/fdt_empty_tree.c
# DEP libfdt/fdt_strerror.c
# DEP libfdt/fdt_rw.c
# DEP libfdt/fdt_sw.c
# DEP libfdt/fdt_wip.c
# DEP libfdt/fdt_ro.c
# DEP libfdt/fdt.c
# DEP util.c
# DEP fdtput.c
# DEP fdtget.c
# DEP fdtdump.c
# LEX convert-dtsv0-lexer.lex.c
# make: *** Deleting file 'convert-dtsv0-lexer.lex.c'
# DEP srcpos.c
# BISON dtc-parser.tab.c
# LEX dtc-lexer.lex.c
# DEP treesource.c
# DEP livetree.c
# DEP fstree.c
# DEP flattree.c
# DEP dtc.c
# DEP data.c
# DEP checks.c
# CHK version_gen.h
# UPD version_gen.h
# DEP util.c
# LEX convert-dtsv0-lexer.lex.c
# BISON dtc-parser.tab.c
# DEP dtc-lexer.lex.c
# CHK version_gen.h
# DEP convert-dtsv0-lexer.lex.c
# BISON dtc-parser.tab.c
# CHK version_gen.h
# BISON dtc-parser.tab.c
# CC srcpos.o
# CC util.o
# CC convert-dtsv0-lexer.lex.o
# LD convert-dtsv0
# /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/6.1.1/../../../../lib64/crt1.o: In function `_start':
# (.text+0x20): undefined reference to `main'
# clang-3.8: error: linker command failed with exit code 1 (use -v to see invocation)
# make: *** [Makefile:191: convert-dtsv0] Error 1
# ==> ERROR: A failure occurred in build().
# Aborting...