While compiling in a directory exported from an IBM AIX 4.2.1 server, file corruption has been detected in a predictable way for the object code generated by gcc. The problem does not present itself when the directory is exported by a linux, Digital Unix (4.01E) or Solaris (2.6+security fixes). Likewise, the problem is not visible when the kernel being used is a 2.2.10. It seems that this form of file corruption does not happen when simply copying a file from the exported filesystem onto itself.
Assigned to dledford
This sounds like a known AIX NFS server bug. From memory, AIX cannot deal with padded NFS packets, assuming that the NFS packet data length is equal to the IP packet length. See the report at http://www.uwsg.indiana.edu/hypermail/linux/kernel/9911.0/0452.html and the work-around at http://www.uwsg.indiana.edu/hypermail/linux/kernel/9911.0/0549.html There are a couple of NFS patches referenced at http://www.uwsg.indiana.edu/hypermail/linux/kernel/9911.0/0498.html but there is no guarantee that they will help.