It's not a linker error, and x86_64 mainline gcc 4.10.0 20140727 fails similarly.
nm bytearraymodel_p.o | grep __warn
U __warn_memset_zero_len
Linking this object file against libc_nonshared.a (which is where this symbol is defined) generates the linker warning which is turned into an error by -Wl,--fatal-warnings.
It's not a linker error, and x86_64 mainline gcc 4.10.0 20140727 fails similarly.
nm bytearraymodel_p.o | grep __warn memset_ zero_len
U __warn_
Linking this object file against libc_nonshared.a (which is where this symbol is defined) generates the linker warning which is turned into an error by -Wl,--fatal- warnings.
So a gcc bug.