Error: SPEC mismatch! Current working directory does not match either TOPDIR, ORIGINAL_TOPDIR or CANONICAL_TOPDIR

Steve Drach steve.drach at
Tue Jul 7 18:53:14 UTC 2015

I ran across this error when I accidentally did

$ cd JDK9

instead of 

$ cd jdk9

No matter what I did, cd’ing in/out of directory again, blowing away build/* and starting over, etc., I could not get it to forget the upper case JDK9.  And I couldn’t find that string in any file anywhere (at least any relevant file).

I tried mv’ing the top level directory to jdk9-bad, but then I got other makefile errors.  But then I mv’ed it back to jdk9 and voila!  I could build again.  Clearly magical.

BTW, I’m running OS X 10.10.4

More information about the build-dev mailing list