This appears to be related to the size of the code-base. The problem occurred with something like 20,000 classes in the codebase. I tried again with just the base and testing libraries, and a cluster of four small classes. This compiles OK.