"The build timeout" build failure(s) — clang 3.5.0

The binary produced by clang is wrong when built with -D_FORTIFY_SOURCE=2. For example, the code:
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>

int main ()
{
    char *data;
    int  pagesize;
    int fd, foo;
    pagesize = getpagesize ();
    fd = open ("conftest.mmap", O_RDWR);
    data = (char *) malloc (pagesize);
    foo = read (fd, data, pagesize);
}
compiled with:
clang++ -o conftest -g  -O2  -D_FORTIFY_SOURCE=2 conftest.cpp
will be stucked in an infinity loop. Reported upstream as bug 16821
PackageVersionSupposed error messageFull log Bug report
adacgi 1.6-18Build killed with signal TERM after 62 minutes of inactivity Log
binutils 2.24.51.20140818-1checking whether compiler driver understands Ada Build killed with signal TERM after 61 minutes of inactivity Log
binutils-arm-none-eabi 5Build killed with signal TERM after 69 minutes of inactivity Log
binutils-avr 2.24+Atmel3.4.4-1Build killed with signal TERM after 104 minutes of inactivity Log
binutils-h8300-hms 2.16.1-10Build killed with signal TERM after 66 minutes of inactivity Log
binutils-m68hc1x 1:2.18-3.3checking whether compiler driver understands Ada Build killed with signal TERM after 72 minutes of inactivity Log
binutils-mingw-w64 5.1checking whether compiler driver understands Ada Build killed with signal TERM after 68 minutes of inactivity Log
binutils-msp430 2.22~msp20120406-5checking whether compiler driver understands Ada Build killed with signal TERM after 70 minutes of inactivity Log
binutils-z80 4Build killed with signal TERM after 73 minutes of inactivity Log
ccseapps 2.5-4Build killed with signal TERM after 89 minutes of inactivity Log
crash 7.0.7-1Build killed with signal TERM after 61 minutes of inactivity Log
cross-binutils 0.6checking whether compiler driver understands Ada Build killed with signal TERM after 72 minutes of inactivity Log
elpa 2013.11.008-1Build killed with signal TERM after 72 minutes of inactivity Log
etl 0.04.17-1Build killed with signal TERM after 60 minutes of inactivity Log
ferret-vis 6.6.2-4Build killed with signal TERM after 72 minutes of inactivity Log
gcc-3.3 1:3.3.6ds1-27.1Build killed with signal TERM after 62 minutes of inactivity Log
gcc-4.4 4.4.7-8Build killed with signal TERM after 78 minutes of inactivity Log
gcc-4.6 4.6.4-7Build killed with signal TERM after 60 minutes of inactivity Log
gcc-4.7 4.7.4-3Build killed with signal TERM after 64 minutes of inactivity Log
gcc-4.8 4.8.3-10Build killed with signal TERM after 63 minutes of inactivity Log
gcc-4.9 4.9.1-12Build killed with signal TERM after 62 minutes of inactivity Log
gcc-arm-none-eabi 11Build killed with signal TERM after 67 minutes of inactivity Log
gcc-avr 1:4.8.1+Atmel3.4.4-2checking whether compiler driver understands Ada Build killed with signal TERM after 60 minutes of inactivity Log
gcc-h8300-hms 1:3.4.6+dfsg2-2checking whether compiler driver understands Ada Build killed with signal TERM after 63 minutes of inactivity Log
gcc-m68hc1x 1:3.3.6+3.1+dfsg-3Build killed with signal TERM after 68 minutes of inactivity Log
gcc-mingw-w64 14.2Build killed with signal TERM after 71 minutes of inactivity Log
gcc-msp430 4.6.3~mspgcc-20120406-7Build killed with signal TERM after 76 minutes of inactivity Log
gdb 7.7.1+dfsg-3checking whether compiler driver understands Ada Build killed with signal TERM after 76 minutes of inactivity Log
gdb-arm-none-eabi 6Build killed with signal TERM after 61 minutes of inactivity Log
gdb-avr 7.7-1Build killed with signal TERM after 70 minutes of inactivity Log
gdb-mingw-w64 9Build killed with signal TERM after 66 minutes of inactivity Log
gdb-msp430 7.2a~mspgcc-20111205-3checking whether compiler driver understands Ada Build killed with signal TERM after 63 minutes of inactivity Log
gnat-4.6 4.6.4-4Build killed with signal TERM after 61 minutes of inactivity Log
gnat-4.9 4.9.1-1Build killed with signal TERM after 61 minutes of inactivity Log
gnat-mingw-w64 14checking whether compiler driver understands Ada Build killed with signal TERM after 61 minutes of inactivity Log
pike7.8 7.8.866-3Build killed with signal TERM after 60 minutes of inactivity Log
sdcc 3.4.0+dfsg-2Build killed with signal TERM after 63 minutes of inactivity Log
stalin 0.11-5Build killed with signal TERM after 60 minutes of inactivity Log
strongswan 5.2.0-2Build killed with signal TERM after 60 minutes of inactivity Log

39 errors