I got the same problem when compiling a new svn revision with some intermediate files left from the build of a previous revision. Removing the content of the build folder before compiling the new version solved the issue.