According to Maurice Lombardi:
I have tried to build gpc-971001 from the zip sources for DJGPP v2.01 I use plain DOS with or without bash shell:
-unzip fresh new gcc-2721 in directory %DJDIR%\gnu\ -unzip gpc sources to %DJDIR%, then put the p\ tree as subdirectory of gcc-2721
then follow instructions contained in p\config\msdos\readme2.dj.
It builds gcc, but then stops without building gpc ?
Strange. :-(
Anyway, when you have reached this step, the following is known to work: `cd' to `\djgpp\gnu\gpc\p' and do `make ../xgpc', `make ../gpc1', `make ../gpc-cpp', and `make ../libgpc.a' from there. This builds the respective `.exe' files, although we do *not* specify the extension `.exe'. After that, move the `.exe's to `\djgpp\bin', and `libgpc.a' to '\djgpp\lib' to install.
Other problems found:
1- the p\config\msdos\configur.bat must be in dos format (return-linefeed) to run in plain dos [...].
Fixed.
2- there is a problem with backward slashes \ in the makefile in lines like ./bi-arity < $(srcdir)\bytecode.def >tmp-bc-arity.h (three times). Seems to come from the application of gnu\gcc-2721\config\msdos\top.sed and is already present in the compilation of gcc alone. I have filed a bug report to dj delorie, and fixed it manually after running configure go32 which produces this makefile.
So there is nothing we could do about that ... may I ask you to document it in `README2.DJ'?
3- [`.gdbinit' vs. `_gdbinit']
Okay. It will be fixed in the next `.zip' release.
Thanks for your cooperation,
Peter
Dipl.-Phys. Peter Gerwinski, Essen, Germany, free physicist and programmer peter.gerwinski@uni-essen.de - http://home.pages.de/~peter.gerwinski/ [971005] maintainer GNU Pascal [971001] - http://home.pages.de/~gnu-pascal/ [971005]
Peter Gerwinski wrote:
It builds gcc, but then stops without building gpc ?
Strange. :-(
Anyway, when you have reached this step, the following is known to work:
`cd' to `\djgpp\gnu\gpc\p' and do `make ../xgpc', `make ../gpc1',
`make ../gpc-cpp', and `make ../libgpc.a' from there.
rather cd \djgpp\gnu\gcc-2721\p
make finds no rule to build ../xgpc there (they are in make-lan.in)
but it works by issuing make xgpc in the parent directory
\djgpp\gnu\gcc-2721 (the rule is indeed in the generated makefile)
make gpc1 in this parent directory does not work (there is a rule but it
does not find a file)
but it starts to work with
cd p
make ../gpc1 like you had said
However it stops because it does not find gpc-config.h
Such a file is contained in p/config/msdos/gpc-conf.h
I can put this file in the p directory but I really no more know what I
am doing. There is also a file gpc-conf.in in the p directory.
The others .c and .h files contained in p/config/msdos are used by
configur.bat in update instructions, and xxx.in files are used there to
build makefiles through sed instructions.
There is probably one line missing in this configure.bat to build
gpc-config.h but what line exactly ?
Thanks in advance.