Matthias Braun wrote:
[...]
GNU Pascal version 2.95.3-4 (cygwin special) (i586-pc-cygwin32) compiled by GNU C version 2.95.3-3 (cygwin special). GNU Pascal version is actually 20010512, based on gcc-2.95.3-4 (cygwin special) as -o /PlatteC/WINDOWS/TEMP/ccc85291 /PlatteC/WINDOWS/TEMP/ccb85291 gpc.exe: Internal compiler error in `do_spec_1', at p/gpc.c:4500
I have never seen this problem before. The GPC that you built is obviously broken. Why? I have no idea. Could it be a problem with your "specs" file? Perhaps Peter or Frank might have an idea what this error means.
I reinstalled everything, I did some tests, compiling works if I use the following sequence: gpc -c -o test.o test.pas gcc test.o -o test.exe -lgpc So It seems only an error reading the specs file, but I don't understand the spec file syntax :/. So I've attached it along with the changed gpcpp.c to this mail.
The specs file contains some `%q...' entries which GPC does not understand. According to a quick glance, even gcc-2.95.3 does not know it. It is perhaps in a special patch used on cygwin? Then you might have to apply the patch (probably not automatically) to GPC.
Or you just remove the `%q...' things from the specs. AFAICS, they only provide library dirs, and you can achieve the same with `-L foo' on the command line.
Frank