Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 114367 - g77 gcc-3.x.x: increase the number of possible file unit numbers for g77
Summary: g77 gcc-3.x.x: increase the number of possible file unit numbers for g77
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-03 10:04 UTC by Markus Dittrich (RETIRED)
Modified: 2006-03-16 00:52 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to increase the number of available file descriptors for g77 (gcc-mxunit-increase-gentoo.patch,395 bytes, patch)
2005-12-03 10:06 UTC, Markus Dittrich (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Dittrich (RETIRED) gentoo-dev 2005-12-03 10:04:18 UTC
Currently, fortran code compiled with g77 (gcc-3.x) can only use a maximum of 100    
file units due to a hard coded limit     
    
#define MXUNIT 100     
    
in gcc-3.x.x/libf2c/libI77/fio.h (see "info g77" and  MXUNIT for more details).    
 
The quantum chemistry code sci-chemistry/gamess which I am maintaining    
has recently introduced new functionality which requires access to more    
than 100 file units (300, to be precise) and these routines, therefore, don't    
run properly with our current g77 setup. Future development of the code   
will likely increase the number of routines that will have to have access to    
larger file units.   
   
I would therefore like to ask if it would be possible to increase the number of   
available file units in our g77 installs and I've attached a patch that accomplishes 
this and works fine on my system (pentium 4m, gcc-3.4.4-r1).  
Unfortunately, I don't know the internals of gcc very well and can't judge if this patch 
introduces any unpleasant side effects. If not, I would be very grateful if you could 
consider including this change.  

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Markus Dittrich (RETIRED) gentoo-dev 2005-12-03 10:06:06 UTC
Created attachment 73990 [details, diff]
patch to increase the number of available file descriptors for g77
Comment 2 SpanKY gentoo-dev 2005-12-03 12:44:37 UTC
added to patch list for 3.3.6/3.4.4 ... it'll be in next patchset we roll
Comment 3 Markus Dittrich (RETIRED) gentoo-dev 2005-12-03 13:22:59 UTC
Thanks for the immediate response and great:) 
 
cheers, 
Markus