Build of p2c with clang_glibc toolchain

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

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

SLOCLanguage
38,617 ansic
2,499 pascal
170 makefile
101 perl
41,387 total

The process tree of the build process is here.

Several sub-process invocations were improper; see the process tree for details. Summary:

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: p2c 1.21alpha2-11 (Thu Apr 13 14:03:52 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# cc makeproto.c -o makeproto
# makeproto.c:137:5: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration]
# exit(1);
# ^
# makeproto.c:137:5: note: include the header or explicitly provide a declaration for 'exit'
# makeproto.c:171:23: warning: implicit declaration of function 'atoi' is invalid in C99 [-Wimplicit-function-declaration]
# typetab = atoi(argv[1] + 2);
# ^
# 2 warnings generated.
# ./makeproto -n -m -h -t16 -a35 -s1 -i trans.c stuff.c out.c comment.c lex.c parse.c decl.c expr.c pexpr.c funcs.c dir.c hpmods.c citmods.c -o p2c.proto
# ./makeproto -n -m -h -t16 -a35 -s0 -x trans.c stuff.c out.c comment.c lex.c parse.c decl.c expr.c pexpr.c funcs.c dir.c hpmods.c citmods.c -o p2c.hdrs
# cc -c -DHASDUMPS -DP2C_HOME=\"/usr/lib/p2c\" trans.c
# In file included from trans.c:23:
# ./trans.h:1776:42: error: redefinition of 'logf' as different kind of symbol
# extern FILE *inf, *outf, *codef, *hdrf, *logf;
# ^
# ./trans.h:1776:42: note: previous definition is here
# trans.c:158:32: warning: 'break' is bound to current loop, GCC binds it to the enclosing loop [-Wgcc-compat]
# while (--i >= 0 && strcmp(rctable[i].name, cp)) ;
# ^
# ./trans.h:92:34: note: expanded from macro 'strcmp'
# { _diff = _aa[-1] - _bb[-1]; break; } \
# ^
# trans.c:591:10: error: non-object type 'float (float)' is not assignable
# logf = fopen(name, "w");
# ~~~~ ^
# trans.c:592:9: warning: address of function 'logf' will always evaluate to 'true' [-Wpointer-bool-conversion]
# if (logf) {
# ~~ ^~~~
# trans.c:592:9: note: prefix with the address-of operator to silence this warning
# if (logf) {
# ^
# &
# trans.c:593:10: warning: incompatible pointer types passing 'float (float)' to parameter of type 'FILE *' (aka 'struct _IO_FILE *') [-Wincompatible-pointer-types]
# fprintf(logf, "\nTranslation of %s to %s by p2c %s\n",
# ^~~~
# /usr/include/stdio.h:356:38: note: passing argument to parameter '__stream' here
# extern int fprintf (FILE *__restrict __stream,
# ^
# trans.c:595:10: warning: incompatible pointer types passing 'float (float)' to parameter of type 'FILE *' (aka 'struct _IO_FILE *') [-Wincompatible-pointer-types]
# fprintf(logf, "Translated");
# ^~~~
# /usr/include/stdio.h:356:38: note: passing argument to parameter '__stream' here
# extern int fprintf (FILE *__restrict __stream,
# ^
# trans.c:598:14: warning: incompatible pointer types passing 'float (float)' to parameter of type 'FILE *' (aka 'struct _IO_FILE *') [-Wincompatible-pointer-types]
# fprintf(logf, " by %s", uname);
# ^~~~
# /usr/include/stdio.h:356:38: note: passing argument to parameter '__stream' here
# extern int fprintf (FILE *__restrict __stream,
# ^
# trans.c:600:10: warning: incompatible pointer types passing 'float (float)' to parameter of type 'FILE *' (aka 'struct _IO_FILE *') [-Wincompatible-pointer-types]
# fprintf(logf, " on %s", ctime(&starting_time));
# ^~~~
# /usr/include/stdio.h:356:38: note: passing argument to parameter '__stream' here
# extern int fprintf (FILE *__restrict __stream,
# ^
# trans.c:601:10: warning: incompatible pointer types passing 'float (float)' to parameter of type 'FILE *' (aka 'struct _IO_FILE *') [-Wincompatible-pointer-types]
# fprintf(logf, "\n\n");
# ^~~~
# /usr/include/stdio.h:356:38: note: passing argument to parameter '__stream' here
# extern int fprintf (FILE *__restrict __stream,
# ^
# trans.c:613:9: warning: address of function 'logf' will always evaluate to 'true' [-Wpointer-bool-conversion]
# if (logf) {
# ~~ ^~~~
# trans.c:613:9: note: prefix with the address-of operator to silence this warning
# if (logf) {
# ^
# &
# trans.c:614:10: warning: incompatible pointer types passing 'float (float)' to parameter of type 'FILE *' (aka 'struct _IO_FILE *') [-Wincompatible-pointer-types]
# fprintf(logf, "\n\n");
# ^~~~
# /usr/include/stdio.h:356:38: note: passing argument to parameter '__stream' here
# extern int fprintf (FILE *__restrict __stream,
# ^
# trans.c:616:57: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration]
# fprintf(logf, "Total memory used: %ld bytes.\n", (long)sbrk(0));
# ^
# trans.c:616:10: warning: incompatible pointer types passing 'float (float)' to parameter of type 'FILE *' (aka 'struct _IO_FILE *') [-Wincompatible-pointer-types]
# fprintf(logf, "Total memory used: %ld bytes.\n", (long)sbrk(0));
# ^~~~
# /usr/include/stdio.h:356:38: note: passing argument to parameter '__stream' here
# extern int fprintf (FILE *__restrict __stream,
# ^
# trans.c:619:10: warning: incompatible pointer types passing 'float (float)' to parameter of type 'FILE *' (aka 'struct _IO_FILE *') [-Wincompatible-pointer-types]
# fprintf(logf, "Processed %d source lines in %ld:%ld seconds.\n",
# ^~~~
# /usr/include/stdio.h:356:38: note: passing argument to parameter '__stream' here
# extern int fprintf (FILE *__restrict __stream,
# ^
# trans.c:623:10: warning: incompatible pointer types passing 'float (float)' to parameter of type 'FILE *' (aka 'struct _IO_FILE *') [-Wincompatible-pointer-types]
# fprintf(logf, "\n\nTranslation completed on %s", ctime(&ending_time));
# ^~~~
# /usr/include/stdio.h:356:38: note: passing argument to parameter '__stream' here
# extern int fprintf (FILE *__restrict __stream,
# ^
# trans.c:624:9: warning: incompatible pointer types passing 'float (float)' to parameter of type 'FILE *' (aka 'struct _IO_FILE *') [-Wincompatible-pointer-types]
# fclose(logf);
# ^~~~
# /usr/include/stdio.h:237:26: note: passing argument to parameter '__stream' here
# extern int fclose (FILE *__stream);
# ^
# trans.c:782:10: warning: implicit truncation from 'int' to bitfield changes value from 65535 to -1 [-Wbitfield-constant-conversion]
# bft.f1 = 0xffff;
# ^ ~~~~~~
# trans.c:952:10: error: non-object type 'float (float)' is not assignable
# logf = NULL;
# ~~~~ ^
# 15 warnings and 3 errors generated.
# make: *** [Makefile:89: trans.o] Error 1
# ==> ERROR: A failure occurred in build().
# Aborting...