cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/04/07:31:16

From: Peter Gerwinski <peter AT agnes DOT dida DOT physik DOT uni-essen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: I/O problems
Date: 4 Apr 1998 11:02:07 GMT
Organization: Universitaet Essen
Lines: 46
Message-ID: <6g53vf$ess13@mx2.hrz.uni-essen.de>
NNTP-Posting-Host: agnes.Dida.Physik.Uni-Essen.DE
User-Agent: tin/pre-1.4-971123 (UNIX) (Linux/2.0.33 (i486))
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hello,

I am observing some strange I/O problems with some large programs
written in C (`gpc', `gpc1', etc. - the stages of the GNU Pascal
compiler;-):

  * `gpc' invokes `gpc1'.  When `gpc1' now invokes `gpc' again
    [using pexecute()] which in turn invokes `gpc1', the second
    instance of `gpc1' sometimes reads nonsense [using getc()];
    for example the first two or three characters of a line
    somewhere in the middle of an input file get lost.

  * Sometimes also `gas' reports "I/O error" when invoked
    the same way (from the second instance of `gpc') or
    complains that `c:/temp/ccaaaaaa.s' could not be opened.

  * I tried "FILES=40" and "FILES=80" in my `config.sys'
    without any difference.

  * This holds for plain Novell DOS, for Novell DOS running in
    Linux DOSemu, and for an OS/2 DOS box.

  * The same program under Linux works well.

  * The errors did not happen when GPC was based on and compiled
    with gcc-2.7.2.1 (now gcc-2.8.0).

  * I do not know whether this is related: `ls' sometimes
    fails to retrieve a file that is definitely there
    (`bill4w.pas' in this case):

    g:/djgpp/gpc-test> ls bill4*.pas
    bill4.pas  bill4u.pas  bill4v.pas  bill4w.pas
    g:/djgpp/gpc-test> ls bill4*
    bill4.out  bill4.pas   bill4u.gpi  bill4u.o
    bill4u.pas bill4v.gpi  bill4v.o    bill4v.pas
    bill4w.gpi

Thanks in advance for your help,

    Peter
-- 
    Peter Gerwinski, Essen, Germany, free physicist and programmer
Maintainer GNU Pascal - http://home.pages.de/~GNU-Pascal/ - 1 Oct 1997
PGP key fingerprint:  AC 6C 94 45 BE 28 A4 96  0E CC E9 12 47 25 82 75
                Fight the SPAM! - http://maps.vix.com/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019