While I was working on my source files I created a subdirectory called old_source and to keep a copy of what I had while I tried an experiement.
It looks like the phdl compiler looks down through subdirectories to find any .phdl source files and includes them in the source list. That caused some unexpected errors because it found files in my old_source directory. It is common for people to have odd bits of designs down in subdirectories. Most people would not expect those bits to be included in the compile. This may not be the behavior we want.
Pete
Anonymous