I changed my fstab entry to add "noserverino" (I already had "nounix") and I can now run gcc on networked file server. I also saw this advice in the following thread; a kernel bug is mentioned.
http://ubuntuforums.org/showthread.php?t=1312192 -- gcc chokes under Karmic's smbfs https://bugs.launchpad.net/bugs/455122 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs