Forgot the attachements :) I don't attach gpcpp.c (cause it's 360k) I'll send it to anyone asking.
On Wed, 16 May 2001, Prof. A Olowofoyeku (The African Chief) wrote:
On 15 May 2001, at 16:39, Matthias Braun wrote:
Hello, I've got problems with compiling gpc snapshot from 12.5 and latest cygwin with gcc 2.95.3-4 I did like described in the faq, and I had some problems I solved: -There was no patch for gcc 2.95.3-4 so I took the one for 2.95.3 -GPLUSPLUS_INCLUDE_DIR and TOOL_INCDLUDE_DIR wasn't declared in gpcpp.c, I found an #undeclare in cygwin.h and deletet it.
I am not sure that you should do that. I think you should trust that whoever undeclared it knew what they were doing. I normally can compile GPC for both Cygwin and Mingw without touching anything other than to apply the GPC patch.
So I looked into the cccp.c file which seems to be the c counterpart to gpcpp.c, here they did a #ifdef TOOL_INCLUDE_DIR around the critical parts, so I did the same for gpcpp.c and restored original cygwin.h. But this gives the same effect as before.
After that compiling worked, but if I use the compile now, the following appears: (gpc -v test.pas)
Do you have all the latest GNU tools and headers and libraries? You shouldn't have had to change cygwin.h to be able to build GPC successfully.
Yes, I used the setup utility from cygwin.com and installed experimental releases (gcc package isn't marked experimental anyway). I installed all the tools there.
[...]
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.
Matze
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
On 16 May 01, at 20:14, Frank Heckenbach wrote:
[...]
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.
No such thing exists in my Cygwin specs file.
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) Author of: Chief's Installer Pro for Win32 http://www.bigfoot.com/~African_Chief/chief32.htm Email: African_Chief@bigfoot.com