https://bugs.winehq.org/show_bug.cgi?id=49588
--- Comment #3 from Rafał Mużyło galtgendo@o2.pl --- The failing command is basically:
cat Make.tmp - <<_WINE_EOF >$tmp/makefile && mv -f $tmp/makefile Makefile && `cat $wine_rules_file` _WINE_EOF
That looks like it could fail only two ways: - one of the files is missing - the $tmp dir is read-only
One way or another, not a gcc problem, unless someone managed to escalate system rebuild into broken system.
As for the mentioned errors, they're exactly the way that standard configure check works.