I have mostly been building -current on NetBSD 6.1.3, which has been fine. I tried today on a NetBSD amd64 6.1.4 machine and got the following build failure. I gather this is something to do with stack checking but somewhat unclear how to fix it...
# link common-target/genhooks c++ -O -I/home/justin/src/external/gpl3/gcc/usr.bin/common-target/.. -I/home/justin/src/external/gpl3/gcc/usr.bin/backend/obj -I/home/justin/src/external/gpl3/gcc/usr.bin/common-target/../gcc/arch/x86_64 -I. -I/home/justin/src/external/gpl3/gcc/dist/include -I/home/justin/src/external/gpl3/gcc/dist/gcc -DGENERATOR_FILE -o genhooks genhooks.lo errors.lo -L/home/justin/src/obj/tooldir.NetBSD-6.1.4-amd64/lib -lnbcompat /home/justin/src/external/gpl3/gcc/usr.bin/host-libiberty/obj/libiberty/libiberty.a genhooks.lo: In function `emit_findices(char const*, char const*)': genhooks.c:(.text+0x71): undefined reference to `__printf_chk' genhooks.lo: In function `emit_documentation(char const*)': genhooks.c:(.text+0x2fc): undefined reference to `__uflow' genhooks.c:(.text+0x323): undefined reference to `stdout' genhooks.c:(.text+0x335): undefined reference to `__overflow' genhooks.c:(.text+0x395): undefined reference to `__printf_chk' genhooks.c:(.text+0x437): undefined reference to `__printf_chk' genhooks.c:(.text+0x4bf): undefined reference to `__printf_chk' genhooks.c:(.text+0x4f7): undefined reference to `__printf_chk' genhooks.c:(.text+0x510): undefined reference to `__printf_chk' genhooks.lo:genhooks.c:(.text+0x527): more undefined references to `__printf_chk' follow errors.lo: In function `warning(char const*, ...)': errors.c:(.text+0x9a): undefined reference to `stderr' errors.c:(.text+0xa1): undefined reference to `__fprintf_chk' errors.c:(.text+0xb5): undefined reference to `stderr' errors.c:(.text+0xba): undefined reference to `__vfprintf_chk' errors.c:(.text+0xc1): undefined reference to `stderr' errors.c:(.text+0xd5): undefined reference to `__overflow' errors.lo: In function `error(char const*, ...)': errors.c:(.text+0x189): undefined reference to `stderr' errors.c:(.text+0x190): undefined reference to `__fprintf_chk' errors.c:(.text+0x1a4): undefined reference to `stderr' errors.c:(.text+0x1a9): undefined reference to `__vfprintf_chk' errors.c:(.text+0x1b0): undefined reference to `stderr' errors.c:(.text+0x1c4): undefined reference to `__overflow' errors.lo: In function `fatal(char const*, ...)': errors.c:(.text+0x282): undefined reference to `stderr' errors.c:(.text+0x289): undefined reference to `__fprintf_chk' errors.c:(.text+0x29d): undefined reference to `stderr' errors.c:(.text+0x2a2): undefined reference to `__vfprintf_chk' errors.c:(.text+0x2a9): undefined reference to `stderr' errors.c:(.text+0x2bd): undefined reference to `__overflow' errors.lo: In function `internal_error(char const*, ...)': errors.c:(.text+0x372): undefined reference to `stderr' errors.c:(.text+0x379): undefined reference to `__fprintf_chk' errors.c:(.text+0x38d): undefined reference to `stderr' errors.c:(.text+0x392): undefined reference to `__vfprintf_chk' errors.c:(.text+0x399): undefined reference to `stderr' errors.c:(.text+0x3ad): undefined reference to `__overflow' *** Failed target: genhooks
