http://bugs.winehq.org/show_bug.cgi?id=22134
--- Comment #3 from Vitaliy Margolen vitaliy@kievinfo.com 2010-03-22 22:51:16 --- I'll repeat my question have you cleaned up your source tree? most of the time this kind of issues caused by extra/bad files in your source tree. Make sure it doesn't have any patches on it. You can do that with something like 'git reset --hard origin'. Of it you want to preserve your current craft if any 'git checkout -b test origin'.
Besides out-of-tree build works just fine here.