On Mon, 26 Mar 2001, Russ Whitaker wrote:
On Mon, 26 Mar 2001, Maurice Lombardi wrote:
Mmm. There is something broken in gpc under gcc-2.9.5.3. It compiles with snapshot gpc-20010315, but it gives lots of errors when running the test suite. As a comparison I have compiled the same snapshot under gcc-2.9.5.2 (the result is on agnes) and it gives zero error for the test suite.
[..]
Has anybody tried to compile gpc with gcc2953 on a linux machine?
Have linux I586 box. While gcc2953 is broken, it *seems* to work. Programs without units compile and work ok. For programs with units, found a work-around.
Using crtdemo.pas as an example:
gpc --automake -c crtdemo.pas gpc -o crtdemo crt.o crtdemo.pas
Peter, here's a suggestion:
In module.c, where the .gpi file gets loaded add the following:
If not automake and not have_c then load the corresponding .o file so linker can find it
If error: "ERR: <filename> not found. Precompile unit or use automake."
So with precompiled units "gpc -o foo foo.pas" should work just fine. That still leaves a problem with automake and, sorry, for that one I don't have a clue.
Russ