pavenis@lanet.lv wrote:
Can You update this Pascal compiler (gpc2953b.zip) and documentation and inform me (download site), too?
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.
You need to add one define in gpc.c
#define MKTEMP_EACH_FILE
(see gcc.c for example) It's becoming evident if You run gpc -v --automake .... and view what it spits out.
OK. With this change and the previous replacements of cpp by cpp0, I am able to do a native djgpp build of gpc-20010331. It gives zero error when running the whole test suite, the gpc demos programs and the grx24 pascal demo programs. I have thus uploaded the resulting gpc2953b.zip to agnes under the link: ftp://agnes.dida.physik.uni-essen.de/home/maurice/gpc2953b.zip In the same directory I have uploaded all that I have used to do this native build (to enable compilations of new snapshots): -> the gpc diff file: ftp://agnes.dida.physik.uni-essen.de/home/maurice/gcc-2.95.3.diff (it complains that some hunks are not in proper place. It is easy to correct for that but I prefer to let people to try on other systems with the original diff first in case there would be something special to djgpp) -> the patch to apply to gcc2953s.zip to enable a native build: ftp://agnes.dida.physik.uni-essen.de/home/maurice/build_gpc_djgpp_2953.diff Notice that there is something wrong with the change made by gcc2953s2 to enable better incorporation of gpc into the gcc suite: what is changed in the top level Makefile.in: it produces GPC_FOR_TARGET=gpc instead of GPC_FOR_TARGET=./xgpc -B./ I have not tried to understand, only reverted these changes in the previous diff. -> a batch file ftp://agnes.dida.physik.uni-essen.de/home/maurice/buildgpc2953.bat which automates the whole process: compiling gpc, installing and running the test suite if there is no compilation error. I usually run it during lunch time or at night. Hope this helps Maurice -- Maurice Lombardi Laboratoire de Spectrometrie Physique, Universite Joseph Fourier de Grenoble, BP87 38402 Saint Martin d'Heres Cedex FRANCE Tel: 33 (0)4 76 51 47 51 Fax: 33 (0)4 76 51 45 44 mailto:Maurice.Lombardi@ujf-grenoble.fr