Date: Thu, 20 Jun 1996 07:54:53 +0200 (IST) From: Eli Zaretskii To: djgpp AT delorie DOT com Cc: "Laurence J. Nicholl" Subject: Building f2c w/ djgpp v2 (fwd) Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII ---------- Forwarded message ---------- Date: Wed, 19 Jun 1996 15:51:19 -0500 From: Laurence J. Nicholl Has anyone had any luck in building a valid f2c.exe with the DJGPP v2 compiler? By adapting R. Araki's patches (from the f2c package found under v1apps, simtel etc.), I've been able to build good versions of the f2c libraries (libF77/libI77), but the converter is another story. I was able to fix a problem with generation of the "gram.c" file from bison, so the build now proceeds smoothly from start to finish. However, the resulting binary will not convert fortran files. It executes briefly on .f, then . . . ==================== .f: MAIN: Compiler error line 3 of .f: do_format: Unknown token type in intermediate file ==================== The preceding example error message occurs with _any_ fortran file, with the line # corresponding to the first executable line in the source file. One unsuccessful "fix" I tried for this was changing the file names in "sysdep.c" to conform to DOS 8.3 specs. No dice. This is not a _serious_ problem, since the NetLib folks provide a 32-bit DOS binary (compiled with Symantech 7.0, I believe) which works quite nicely with the DJGPP-compiled libF77/libI77. The Symantech binary seems a little slow, however, and it would be nice to be able to build the entire f2c system in one step. Thanks for any suggestions! L.J. Nicholl