I'm in the process of moving some pascal code from an old sun compiler to gpc, and encountered a problem with rewrite. Here's a little program that illustrates it:
Program Main(input,output); Var assembly : text; begin rewrite(assembly,'output.file'); writeln(assembly,'Hello'); writeln(assembly,'Goodbye...'); end.
Ths compiles ok, but when I run it, I get the error message
?GPC runtime error: (gpc-rts) Internal file namei wrong (#700)
when the rewrite is executed.
We appear to have version 2.7.2.1 of gpc installed, and I'm running it on a Sun UltraSPARC (Solaris 2.5).
I'd be grateful if someone could tell me whether this is a known bug, and if it is, whether it's fixed in a later version of gpc.
Please reply directly to me at jcbeatty@uwaterloo.ca - I'm not yet a member of the gpc mailing list.
Thanks immensely.
regards, john beatty
------------------------------ Prof. John C. Beatty Computer Science Department University of Waterloo 200 University Avenue Waterloo, Ontario Canada N2L 3G1 +1 (519) 888-4567 x 4525 voice +1 (519) 885-1208 fax
John C. Beatty wrote:
[...] We appear to have version 2.7.2.1 of gpc installed, and I'm running it on a Sun UltraSPARC (Solaris 2.5).
This looks like gpc-2.0, corresponding to gcc-2.7.2.x. Since those days, the GPC RTS has been practically re-written. Upgrading to gpc-19980830 (corresponding to gcc-2.8.x or EGCS) will solve your problem. Please get it from
ftp://agnes.dida.physik.uni-essen.de/gnu-pascal/beta/ .
This release is denoted "beta" because it is constantly being worked on. In fact it is much more stable than gpc-2.0.
The next beta release will appear _really soon now_[tm], so it makes sense to watch the address above and/or the GPC mailing list. To subscribe to the list, write to gpc-request@hut.fi.
Merry Christmas,
Peter