Mail Archives: djgpp/1992/08/06/12:02:56
Hi,
Sorry if this is an old issue, but I didn't follow this list for
some time (too much mail, really! what about a newsgroup?). Due
to lack of disk space, I only recently installed djgpp1.06. All
works fine, but I can't compile pagetest.c (I did not have such
problems with djgcc 1.05). The problem seems not to be with my
environment-settings, as compiling other sources does work (e.g.
compress.c or some quite big programs I wrote before).
When I try to compile pagetest with
`gcc -v pagetest.c'
I get the following:
> Reading specs from f:/gcc2/lib/specs
> gcc version 2.1
> f:/gcc2/bin/cpp.exe -lang-c -v -undef -D__GNUC__=2 -Dunix -Di386 -D__unix__ -D__i386__ -D__unix -D__i386 -D__GO32__ -D__MSDOS__ -DGO32 -DMSDOS -noprecomp pagetest.c i:/cc000042.i
> GNU CPP version 2.1 (80386, BSD syntax)
> f:/gcc2/bin/cc1.exe i:/cc000042.i -quiet -dumpbase pagetest.c -version -o i:/cc000042.s
> GNU C version 2.1 (80386, BSD syntax) compiled by GNU C version 2.1.
> Segmentation violation in pointer 0x00000000 at 40:6e3e8
> Exception 14 at eip=6e3e8
>
Just for completenes I include my `setgcc2.bat' (remark: env-var %temp points to the
ramdisk `i:')
> set COMPILER_PATH=f:/gcc2/bin
> set C_INCLUDE_PATH=f:/gcc2/include
> set CPLUS_INCLUDE_PATH=f:/gcc2/cplusinc:f:/gcc2/include
> set OBJC_INCLUDE_PATH=f:/gcc2/include
> set OBJCPLUS_INCLUDE_PATH=f:/gcc2/include
> set LIBRARY_PATH=f:/gcc2/lib
> set TMPDIR=%TEMP
> set GO32TMP=%TEMP
> set GO32=emu f:/gcc2/emu387/emu387 ansi driver f:/gcc2/drivers/vga.grd gw 640 gh 480
> set BISON_SIMPLE=f:/gcc2/lib/bison.simple
> set BISON_HAIRY=f:/gcc2/lib/bison.hairy
> set FLEX_SKELETON=f:/gcc2/lib/flex.skeleton
> addpath f:\gcc2\bin
And now something really funny: if I compile pagetest.c from within demacs,
the problem does not occur (I'm using himem.sys, so demacs and gcc both
are running as vcpi-clients)
Likewise, the problem is gone if I rename pagetest.c to pagetest.cc, so it
must be really something cc1.exe - specific.
Any help appreciated!
-- Dirk
- Raw text -