Bug 340371 - MXUNIT parameter too small
Summary: MXUNIT parameter too small
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: gcc3
Version: 5.1
Hardware: All
OS: Linux
low
low
Target Milestone: ---
: ---
Assignee: Jakub Jelinek
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-10-19 19:39 UTC by kirk l. holub
Modified: 2013-03-21 19:01 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-03-21 19:01:46 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description kirk l. holub 2007-10-19 19:39:33 UTC
Description of problem:
A FORTRAN program we use in a production environment fails after
trying to open too many files.  We can work around the problem my
updating the file libf2c/libI77/fio.h  and replacing
#define MXUNIT 100
with line:
#define MXUNIT 10000
and then, of course, rebuilding and reinstalling gcc.

Although this works, we would like to avoid having to repeat this
produre whenever gcc is updated.  And since we update the release
number when we rebuild the rpm, just to keep things straight, our
system in now out of sync with respect to Red Hat Network.

So, the bottom line, would it be possible to increase MXUNIT in the
production release of gcc?

Thanks.

--Kirk  

Version-Release number of selected component (if applicable):
gcc-3.2.3

How reproducible:
Always

Steps to Reproduce:
1. not applicable
    

Actual Results:  Our production FORTRAN code stops due to lack of file
handles

Expected Results:  Our program should have run to completion.

Additional info:
This defect was posted as 127157 in July 2004.  That posting was just closed
simply because it was registered against RHEL3.  This same defect continues to
impact our operations when using RHEL5+.

Comment 1 Jeff Law 2013-03-21 19:01:46 UTC
There are no plans to issue additional Red Hat Enterprise Linux updates for the older gcc-3 based toolchains which contain the g77 Fortran front-end and associated libf2c runtime.

The standard compilers on Red Hat Enterprise Linux 5 (gcc-4.1 and gcc-4.4 based) contain the gfortran Fortran front-end and libgfortran.  The libgfortran runtime dynamically manages units and as far as I can tell has no builtin maximum unit number.


Note You need to log in before you can comment on or make changes to this bug.