gcc -pipe -march=athlon-xp -Werror -I../../libnbcompat -c /usr/pkgsrc/bootstrap/work/bmake/arch.c
^^^^^
This -pipe comes from my mk.conf and seems to be the trouble maker here.
If I remove that -pipe from the CFLAGS, it compiles just fine!
-- Sebastian Prause