Bug 18103 - libgfortran system header conflict breaks bootstrap on MinGW
Summary: libgfortran system header conflict breaks bootstrap on MinGW
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: libfortran (show other bugs)
Version: 4.0.0
: P2 normal
Target Milestone: 4.0.0
Assignee: Aaron W. LaFramboise
URL:
Keywords: build, patch
Depends on:
Blocks: 16991 18107
  Show dependency treegraph
 
Reported: 2004-10-22 02:54 UTC by Aaron W. LaFramboise
Modified: 2004-12-02 00:43 UTC (History)
2 users (show)

See Also:
Host:
Target: i686-pc-mingw32
Build:
Known to work:
Known to fail:
Last reconfirmed: 2004-11-06 04:33:08


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aaron W. LaFramboise 2004-10-22 02:54:40 UTC
mingw-runtime has a system header called <io.h> (low-level UNIXish I/O
routines).  This conflicts with libgfortran/io/io.h when "io.h" is
included, causing bootstrap to fail when libgfortran is built.
Comment 1 Aaron W. LaFramboise 2004-10-22 02:56:50 UTC
Patch here: <http://gcc.gnu.org/ml/gcc-patches/2004-09/msg01609.html>
Comment 2 Aaron W. LaFramboise 2004-10-22 03:03:55 UTC
Oops, that was definitely the wrong URL.  The right URL for the patch is:
<http://gcc.gnu.org/ml/gcc-patches/2004-09/msg02853.html>.
Comment 3 Aaron W. LaFramboise 2004-10-22 03:05:03 UTC
Forgot that last message.  The original patch URL was correct.  Error between
keyboard and chair.
Comment 4 Andrew Pinski 2004-10-22 11:40:30 UTC
16991 is for libgfortran build problems in general.
Comment 5 Aaron W. LaFramboise 2004-10-27 20:36:27 UTC
In addition to the patch in comment #1, this patch is also needed to fix this
bug: <http://gcc.gnu.org/ml/gcc-patches/2004-10/msg02416.html>.
Comment 6 Aaron W. LaFramboise 2004-11-06 04:33:08 UTC
Still waiting for patch in comment #1 to be approved.
Comment 7 Giovanni Bajo 2004-11-23 02:20:20 UTC
Paul, can you look again at the patch here:
http://gcc.gnu.org/ml/gcc-patches/2004-09/msg01609.html

Is it OK for mainline?
Comment 8 Paul Brook 2004-12-02 00:43:28 UTC
Fixed.