Error in egcs FORTRAN I/O?

Paul Bunyk paul@pbunyk.physics.sunysb.edu
Fri Jan 2 14:26:00 GMT 1998


Toon Moene writes:
 > Paul,
 > 
 > >  I'm trying to use egcs 1.0 to compile our simulation
 > >  program (mix of FORTRAN and C). Everything went really
 > >  great (and performance jumped 20% up in comparison to
 > >  Absoft F77) until I run into an I/O error (reproducible).
 > >  I'm trying to execute the statement
 > >  	READ(10,END=100,FMT='(I4)') NERR1 and it fails
 > >  (with run-time error) in the middle of the file. 'errno'
 > >  is set to 29 (#define ESPIPE          29      /* Illegal
 > >  seek */) and I suspect that it happens right on the 4-K
 > >  block boundary.
 > 
 > [ On Red Hat 5.0-Intel ]
 > 
 > This suggests that it is a library problem (it could be libf2c.a  
 > that is at fault, or an underlying library - such as the libc  
 > library on your OS).  Therefore, the following questions are  
 > relevant:
 > 
 >     * The libc version on your system (find out by "echo /lib/libc.so.*")

RedHat now packages Linux with new GNU libc, that might be the source
of this problem:
	lib/libc.so.6 -> libc-2.0.5.so

 > 
 >     * The binutils version on your system (find out with "as -v" or  
 > "ld -v")

pbunyk:~> as -v
GNU assembler version 2.8.1 (i686-pc-linux-gnu), using BFD version linux-2.8.1.0.1
pbunyk:~> ld -v
GNU ld version 2.8.1 (with BFD linux-2.8.1.0.1)

 > 
 >     * The version of ldd/ld.so on your system (find out with "ldd -v")

pbunyk:~> ldd --version 
ldd (GNU libc) 2.0.5

 > 
 > (Copied straight from the pre-release questionnaire ...)
 > 
 > A complete Fortran program showing the problem would be nice too.

I would send it, but it is rather large and not that easy to build;
moreover, it takes probably an hour of runtime to get to this
problem. This is why I'm suggesting to look into the details
myself... Or maybe someone have encouuntered a similar problem and
patch already exists...

 > 
 > Thanks,
 > Toon.

Thank you,

Paul

-- 
  ("`-''-/").___..--''"`-._   UNIX *is* user-friendly, he is just very 
   `6_ 6  )   `-.  (     ).`-.__.`) picky about who his friends are...
   (_Y_.)'  ._   )  `._ `. ``-..-'      Paul Bunyk, Research Scientist
 _..`--'_..-_/  /--'_.' ,'art by           (and part-time UN*X sysadm)
(il),-''  (li),'  ((!.-' F. Lee http://pbunyk.physics.sunysb.edu/~paul



More information about the Gcc mailing list