30-Sep-35 17:03 you wrote:
I try to compile a gcc-2.95.1 patched/extended by the gpc-19990813 sources/patch. (Same results with plain gcc-2.95.) This is on alpha-de-linux-gnu and i586-ps-linux-gnu.
I was able to compile gpc 19990813 with gcc 2.95.1 ... It does not work "out of box" though. There are was some manual patching.
After applying the gcc-2.95 patch and moving the p directory, I do a configure and the make bootstrap. I always get the following error about object files that cannot be build (right after libiberty.a is build):
stage1/xgcc -Bstage1/ -B/usr/alphaev5-dec-linux-gnu/bin/ -DGPC -DIN_GCC -DHAIFA -O2 -O3 -pipe -Wall -DHAVE_CONFIG_H -I. -I../../gcc-2.95.1/gcc -I../../gcc-2.95.1/gcc/config -I../../gcc-2.95.1/gcc/../include \ -DGPC_MAJOR=""2"" \ -DGPC_MINOR=""0"" \ -DGPC_RELEASE=""`cat ../../gcc-2.95.1/gcc/p/gpc_release`"" \ -DSTANDARD_STARTFILE_PREFIX="/usr/lib/" -DSTANDARD_EXEC_PREFIX="/usr/lib/gcc-lib/" -DDEFAULT_TARGET_VERSION="2.95.1" -DDEFAULT_TARGET_MACHINE="alphaev5-dec-linux-gnu" -DTOOLDIR_BASE_PREFIX="/usr/" \ -c `echo ../../gcc-2.95.1/gcc/p/gpc.c | sed 's,^./,,'` -o p/gpc.o ../../gcc-2.95.1/gcc/p/gpc.c: In function `read_specs': ../../gcc-2.95.1/gcc/p/gpc.c:1770: warning: implicit declaration of function `read' ../../gcc-2.95.1/gcc/p/gpc.c:1774: warning: implicit declaration of function `close' ../../gcc-2.95.1/gcc/p/gpc.c: In function `delete_if_ordinary': ../../gcc-2.95.1/gcc/p/gpc.c:2092: warning: implicit declaration of function `unlink' ../../gcc-2.95.1/gcc/p/gpc.c: In function `putenv_from_prefixes': ../../gcc-2.95.1/gcc/p/gpc.c:2269: warning: implicit declaration of function `putenv' ../../gcc-2.95.1/gcc/p/gpc.c: In function `find_a_file': ../../gcc-2.95.1/gcc/p/gpc.c:2299: warning: implicit declaration of function `access' ../../gcc-2.95.1/gcc/p/gpc.c: In function `init_automake_temp_file_name': ../../gcc-2.95.1/gcc/p/gpc.c:4821: warning: unused variable `is_pascal' ../../gcc-2.95.1/gcc/p/gpc.c: In function `fatal_error': ../../gcc-2.95.1/gcc/p/gpc.c:5069: warning: implicit declaration of function `getpid' ../../gcc-2.95.1/gcc/p/gpc.c: In function `main': ../../gcc-2.95.1/gcc/p/gpc.c:5087: warning: unused variable `buf' make[2]: *** No rule to make target `choose-temp.o', needed by `xgpc'. Stop. make[2]: Leaving directory `/tmp/gcc/gcc' make[1]: *** [bootstrap] Error 2 make[1]: Leaving directory `/tmp/gcc/gcc' make: *** [bootstrap] Error 2
Is this a known problem ? Any ideas or help ?
There was some problem with version detection in GPC Makefile's. I'm not remember what was wrong but my patches are included in KSI-Linux gcc RPM's (you can download src.rpm from ftp://ftp.ksi-linux.com/pub/Devel/Manticore but unfortunatelly I do not have them handy)...
PS: I am currently using the available binaries for gpc build against gcc-2.8.1 for evaluation. This is not a solution, though, since I want to use it in a mixed C++/FORTRAN/PASCAL project where I need the newer gcc-2.95.