Building GCC-4.5.0 for targets i?86-netbsdelf5* and amd64-netbsdelf5* chokes on issues related to ptrdiff_t and further types from stddef.h.
>From what I gather, the cause is these targets not providing _ANSI_H nor _MACHINE_ANSI_H in their <machine/ansi.h> header but them using _I386_ANSI_H_ rsp. _X86_64_ANSI_H_ This breaks the logic which supposed to handle the <machine/ansi.h> for NetBSD targets in ginclude/stddef.h -- Summary: NetBSD _ANSI_H_ vs. _I386_ANSI_H_ and _X86_64_ANSI_H_ Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: corsepiu at gcc dot gnu dot org GCC target triplet: {i?86,amd64}-*-netbsdelf5* http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43952