Martin Marques wrote:
Yes. Unpack gpc sources, make sure that p subdirectory from gpc source tree appears as gcc-4.1.2/gcc/p is gcc source tree (either use move or a symlink), configure and make.
Didn't work. :-(
make[2]: se ingresa al directorio `/usr/src/redhat/BUILD/gcc-4.1.2-20070925/host-x86_64-unknown-linux-gnu/gcc' gcc -c -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute -DHAVE_CONFIG_H -I. -I. -I../.././gcc -I../.././gcc/. -I../.././gcc/../include -I../.././gcc/../libcpp/include ../.././gcc/dbxout.c -o dbxout.o ../.././gcc/dbxout.c: In function ?dbxout_type?: ../.././gcc/dbxout.c:1978: error: ?have_used_extensions? no se declaró aquí (primer uso en esta función) ../.././gcc/dbxout.c:1978: error: (Cada identificador no declarado solamente se reporta una vez ../.././gcc/dbxout.c:1978: error: ara cada funcion en la que aparece.) make[2]: *** [dbxout.o] Error 1 make[2]: se sale del directorio `/usr/src/redhat/BUILD/gcc-4.1.2-20070925/host-x86_64-unknown-linux-gnu/gcc' make[1]: *** [all-gcc] Error 2 make[1]: se sale del directorio `/usr/src/redhat/BUILD/gcc-4.1.2-20070925' make: *** [all] Error 2
Any ideas?
Do you really use use gcc-4.1.2? The name gcc-4.1.2-20070925 indicates that you have different version. IIRC the patch /usr/src/redhat/BUILD/ is was used for Redhat modified sources, which are usually different than official version.
I would suggest to try to use unmodified gcc-4.1.2. If for some reason you need to use RedHat/Fedora specific version, please make sure first that you can compile gcc alone -- without gpc.
Concerning the error message: it tells you that the identifier 'have_used_extensions' is undefined. AFAICS this identifier does not apper in gcc-4.1.2 (change log claims that it was removed in 2005). Gpc patches some gcc files, but the patch also does not contain it. So I think that you get message about 'have_used_extensions' because your 'gcc-4.1.2-20070925' is a modified version and that the modification contains error.