Bug 18105 - Compile errors in libgfortran/io/unix.c break Windows bootstrap
Summary: Compile errors in libgfortran/io/unix.c break Windows bootstrap
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 03:17 UTC by Aaron W. LaFramboise
Modified: 2004-11-06 04:34 UTC (History)
1 user (show)

See Also:
Host:
Target: i686-pc-mingw32
Build:
Known to work:
Known to fail:
Last reconfirmed: 2004-10-22 11:42:54


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 03:17:42 UTC
MinGW doesn't have the macros S_IRGRP, S_IWGRP, S_IROTH, or S_IWOTH that are
used in unix.c.

It also does not have mkstemp().  There is a mkstemps() in libiberty, but it
does not appear to be usable for this:
<http://gcc.gnu.org/ml/gcc/2004-09/msg00949.html>.
Comment 1 Aaron W. LaFramboise 2004-10-22 03:20:12 UTC
Patch here: <http://gcc.gnu.org/ml/gcc-patches/2004-10/msg01171.html>.  The
identifiers are defined if not, and temporary files are created with mktemp() if
mkstemp() is not availible.
Comment 2 Aaron W. LaFramboise 2004-10-27 20:37:27 UTC
Revised patch here: <http://gcc.gnu.org/ml/gcc-patches/2004-10/msg02417.html>.
Comment 3 Aaron W. LaFramboise 2004-10-27 21:19:48 UTC
Revised patch here: <http://gcc.gnu.org/ml/gcc-patches/2004-10/msg02422.html> 
(honest).
Comment 4 Aaron W. LaFramboise 2004-11-06 04:34:04 UTC
Fixed.