[PATCH] GCC bootstrap failure on cygwin is gawk 3.1.2 bug!

Kelley Cook kcook34@ford.com
Thu Jun 19 15:00:00 GMT 2003


>Kelley Cook wrote:-
>
>> Probably "Don't use an unpatched gawk 3.1.2"
>> 
>> Thanks to Roger, Cygwin has already released a patched gawk 3.1.2.
>
>Ah, cool.  I think I'll let this go then.
>
>Neil.

Neil,

Unfortunately, the Cygwin patch to gawk doesn't seem to fix the problem.  In your particular case, under Cygwin, options.h and options.c are generating incomplete files (which is seems to be dependendent on ordering) which results in a missing "--version" in the common as well as "-wimport" in F77.

On the thought that maybe the binary of gawk 3.1.2 still was wrong, I recompiled stock gawk 3.1.2 (with patch) and still got flaky answers with RS="".

Then, I thought of a very simple and certainly portable workaround, which is attached.

Comparison of the newly generated options.h and options.c against the previous version showed the same files with the addition of the two missing entries.

Bootstraped on pentium4-pc-cygwin --disable-pch.

Kelley Cook

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: opts.sh.diff
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20030619/682a19c3/attachment.ksh>


More information about the Gcc-patches mailing list