I apply sed -f $(srcdir)\config\msdos\top.sed to makefiles (created by configure shell) in $(srcdir) and $(srcdir)/gcc directories and after this I run manually configure shell in $(srcdir)/gcc/p/rts. After this I run make CFLAGS="-O2" LDFLAGS="-s" LANGUAGES=pascal and I obtained xgcc, xgpc, cc1, gpcpp, gpc1, libgcc.a and libgpc.a with some non fatal make or cc1, gcc errors.
But gpc1 fails when compiling some files from $(srcdir)/gcc/p/test. It got internal compiler error.
I don't now what to do. Debugging ?
David Kredba
Hello, David Kredba,
you wrote:
I apply sed -f $(srcdir)\config\msdos\top.sed to makefiles (created by configure shell) in $(srcdir) and $(srcdir)/gcc directories and after this I run manually configure shell in $(srcdir)/gcc/p/rts. After this I run make CFLAGS="-O2" LDFLAGS="-s" LANGUAGES=pascal and I obtained xgcc, xgpc, cc1, gpcpp, gpc1, libgcc.a and libgpc.a with some non fatal make or cc1, gcc errors.
Congratulation! Compiling GPC on DJGPP is nontrivial. We are usually cross-compiling from Linux instead - which is much easier.
But gpc1 fails when compiling some files from $(srcdir)/gcc/p/test. It got internal compiler error.
I don't now what to do. Debugging ?
Please send us the output with the error messages (or parts of it if it is too long).
Peter
The problem is solved.
Unpack gcc-2.95.2 to $(DJDIR)/gnu and rename it to gcc-2.952 . Get gcc2952s2.zip - by Andris pavenis@lanet.lv - from ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2gnu and unpack it to the $(DJDIR)/gnu too. Cd $(DJDIR)/gnu/gcc-patch and run sh ./gcc-patch.sh . This made some changes to the source files and make some directories as is build.djg. Copy djbuild1.sh from the attachement to the directory build.djg and overwrite the old file.
Copy the p directory from the gpc-20000707.tar.gz to the $(DJDIR)/gnu/gcc-2.952/gcc and copy gcc-2.95.diff to gcc-2.95.2.diff in p/diffs.
makefiles and other required files. After this run sh ./djbuild1.sh pas and after building compiler run sh ./djbuild1.sh install.
Gpc, gpc1, gpcpp and libgpc.a are now fully functional on DJGPP.
David Kredba