The build took 00h 01m 14s and was NOT successful.
The program in this build is written in the following languages, according to sloccount:
| SLOC | Language | 
|---|---|
| 21,244 | ansic | 
| 725 | python | 
| 35 | cpp | 
| 34 | sh | 
| 26 | makefile | 
| 22,064 | total | 
The process tree of the build process is here.
    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:
        There were existing files in /sysroot, using those
        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: bam 0.5.0-1 (Tue Apr  4 23:02:47 UTC 2017)==> Checking runtime dependencies...==> Checking buildtime dependencies...==> WARNING: Using existing $srcdir/ tree==> Starting build()...compiling using clang...src/tools/txt2c: error while loading shared libraries: /usr/lib/libc.so: invalid ELF headersrc/main.c:480:14: error: use of undeclared identifier 'internal_files'                for(f = 0; internal_files[f].filename; f++)                           ^src/main.c:482:8: error: use of undeclared identifier 'internal_files'                        p = internal_files[f].content;                            ^src/main.c:485:62: error: use of undeclared identifier 'internal_files'                                printf("%s: reading internal file '%s'\n", session.name, internal_files[f].filename);                                                                                         ^src/main.c:490:58: error: use of undeclared identifier 'internal_files'                        ret = lua_load(lua, internal_base_reader, (void *)&p, internal_files[f].filename, NULL);                                                                              ^src/main.c:1122:14: error: use of undeclared identifier 'internal_files'                for(f = 0; internal_files[f].filename; f++)                           ^src/main.c:1124:20: error: use of undeclared identifier 'internal_files'                        printf("%s:\n", internal_files[f].filename);                                        ^src/main.c:1125:9: error: use of undeclared identifier 'internal_files'                        puts(internal_files[f].content);                             ^7 errors generated.In file included from src/support.c:286:/sysroot/include/sys/signal.h:1:2: warning: redirecting incorrect #include  to  [-W#warnings]  #warning redirecting incorrect #include  to   ^1 warning generated.==> ERROR: A failure occurred in build().    Aborting...