None of the traces you've sent reproduce the originally-reported problem
of "No space left on device". The latest trace instead shows:
1. 337 successful sequences of the form 'fd = open("confdir-14B---",
...); fchdir (fd); close (fd);'.
2. 179 successful sequences of the form 'chdir("..");
rmdir("confdir-14B---");'.
3. 35 sequences of the form: a successful 'chdir("..")' followed by an
unsuccesful rmdir call with argument that is (unusually) not in the
ktrace output. Each rmdir call fails with "No such file or directory".
4. 75 sequences of a chdir("..") followed by a rmdir("confdir-14B---")
that fails with "Directory not empty".
My guess is that this old Mac OS X "rm" has corrupted internal memory
somehow. Let's not waste more time on it.
How about the following idea for old Mac OS X?
A. Build and install GNU coreutils first.
B. Put coreutils "rm" early in your PATH.
C. Build everything else.