http://bugs.winehq.org/show_bug.cgi?id=17046
Peter Ross pross@xvid.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |pross@xvid.org
--- Comment #1 from Peter Ross pross@xvid.org 2009-03-19 05:19:16 --- This is caused by a missing feature or bug in wine that breaks cygwin's symlink implementation. A cygwin symlink (sometimes called a fake symlink or simulated symlink) is a file containing the text '!<symlink>path/to/target\0'.
All the files in /usr/i686-pc-cygwin/bin are cygwin symlink's to the actual binary files in /usr/bin. Wine refuses to execute the symlink files, and therefore gcc fails.
Until this bug is resolved, the following script can used to get cygwin gcc working:
for x in ar.exe as.exe ld.exe nm.exe ranlib.exe strip.exe ; do rm /usr/i686-pc-cygwin/bin/$x ln -s /usr/bin/$x /usr/i686-pc-cygwin/$x done