Date: Sat, 26 Oct 1996 23:57:57 +0200 Message-Id: <3.0b36.16.19961026225755.0ae7603e@hal.nt.tuwien.ac.at> To: djgpp AT delorie DOT com From: Anton Helm Subject: problem with cpp (?) Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=====================_846395876==_" --=====================_846395876==_ Content-Type: text/plain; charset="us-ascii" I just discovered the following problem: when compiling the attached c program parser.c (actually generated by bison) in plain MS-DOS environment with CWSDPMI as DPMI server I get the following output: gcc -v -c parser.c Reading specs from c:/djgpp/lib\specs gcc version 2.7.2.1 c:/djgpp/bin\cpp.exe -lang-c -v -undef -D__GNUC__=2 -D__GNUC_MINOR__=7 -Dunix - Di386 -DGO32 -DMSDOS -DDJGPP=2 -DDJGPP_MINOR=1 -D__unix__ -D__i386__ -D__GO32__ -D__MSDOS__ -D__DJGPP__=2 -D__DJGPP_MINOR__=1 -D__unix -D__i386 -D__GO32 -D__MSD OS -D__DJGPP=2 -D__DJGPP_MINOR=1 parser.c e:/gnu\ccjaaaaa GNU CPP version 2.7.2.1 (80386, BSD syntax) #include "..." search starts here: #include <...> search starts here: c:/djgpp/include c:/djgpp/contrib/grx20/include /usr/local/include /usr/local/go32/include /usr/local/lib/gcc-lib/go32/2.7.2.1/include /usr/include End of search list. cpp.exe I/O error on output gcc didn't return to DOS and locked the system completely. The screen was flickering slightly. A hard reboot was necessary. After rebooting I found the file e:/gnu\ccjaaaaa but its size was 0 byte. The same command in a win3.1 DOS box worked fine: gcc -v -c parser.c Reading specs from c:/djgpp/lib\specs gcc version 2.7.2.1 c:/djgpp/bin\cpp.exe -lang-c -v -undef -D__GNUC__=2 -D__GNUC_MINOR__=7 -Dunix - Di386 -DGO32 -DMSDOS -DDJGPP=2 -DDJGPP_MINOR=1 -D__unix__ -D__i386__ -D__GO32__ -D__MSDOS__ -D__DJGPP__=2 -D__DJGPP_MINOR__=1 -D__unix -D__i386 -D__GO32 -D__MSD OS -D__DJGPP=2 -D__DJGPP_MINOR=1 parser.c e:/gnu\ccjaaaaa GNU CPP version 2.7.2.1 (80386, BSD syntax) #include "..." search starts here: #include <...> search starts here: c:/djgpp/include c:/djgpp/contrib/grx20/include /usr/local/include /usr/local/go32/include /usr/local/lib/gcc-lib/go32/2.7.2.1/include /usr/include End of search list. c:/djgpp/bin\cc1.exe e:/gnu\ccjaaaaa -quiet -dumpbase parser.c -version -o e:/g nu\cckaaaaa GNU C version 2.7.2.1 (80386, BSD syntax) compiled by GNU C version 2.7.2.1. c:/djgpp/bin\as.exe -o parser.o e:/gnu\cckaaaaa Experiments: 1) I tried changing the temporary directory in DJGPP.ENV to a different disk. Result: as above (the filename has changed...) 2) I tried calling cpp directly cpp parser.c parser.cpp (no other commandline options) Result: it works fine. 3) I tried cpp.exe of gcc v 2.7.2 Result: as above (the version number of cpp changed...) 4) I tried cpp.exe of gcc v 2.6.3 (DJGPP v1.12m4 with go32.exe) Works in MS-DOS and win31 5) Back to cpp.exe of gcc v 2.7.2.1 Editing parser.c The problem was gone when I added a #define SOMETHING 123 ^^^^^^^^^ ^^^ (any name here) (any value here) at the top of parser.c . I found also some other methods to prevent cpp from crashing, but none of them actually changes the functionality of parser.c (just reformating, inserting dummy code etc.) . Software: DJGPP v2.0.1 bison v 1.24 (was used to generate parser.c) CWSDPMI V0.90+ (r3) MS-DOS 6.22 Hardware: 486DX2, 20MB RAM, plenty of diskspace (Yes, I checked all disks when I saw this "error on output" message. All disks are OK.) I think that there is a bug either in cpp or in CWSDPMI. Did anyone else observe such a behavior? I'll continue experimenting with different releases of cpp, gcc and cwsdpmi tomorrow and post some results. Please reply by mail. I'm currently not reading news. Regards, Tony --=====================_846395876==_ Content-Type: application/zip; name="PARSER.ZIP" Content-Transfer-Encoding: x-uuencode Content-Disposition: attachment; filename="PARSER.ZIP" begin 600 PARSER.ZIP M4$L#!!0````(`$ZL6B$';[3J@!T``']M```(````4$%24T52+D/M/?USVS:R M/RMS^1\V[J65;-FQ9,=QK#@WBJVDGN?8'G^T];09'TU"$BX4J2$IV[I>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