From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <9332cebafb61e92a38e696d65086d403.axp-list@archive.invalid> X-Archive-Original-Message-ID: <199703041956.OAA31960@avalon.harvard.edu> Date: Tue, 04 Mar 1997 14:56:58 +0500 From: Erik Evensen Subject: Re: gcc-2.7.2.2 / g77-0.5.20 on RH4.1 >>>>> "L" == Lev D Gelb writes: L> OK, I'm trying to compile the new release of g77 on my L> redhat-4.1 box. I'm doing the same thing . . . L> I got the src.rpm for gcc-2.7.2.1, and the 2.7.2.2 L> distribution, unpacked the second, and applied the patches to L> it. L> But, when I then try to apply the g77-0.5.20-included patch to L> the resulting distribution, the patching fails while patching L> "configure", which then does not work. Didn't even try this... L> If... I apply the g77 patch to the clean distribution and THEN L> apply the RedHat patches, it gets about halfway through the L> first "make" of the compiler, with lots of warnings about L> "alloca", and then dies because it can't find "crt0.o"... Including stdlib.h in files which contain alloca gets rid of the warning -- I'm not sure if it introduces any other problems or not yet. As for crt0.o -- what I did is change the occurence of gcrt0, mcrt0, and crt0 in gcc.c and config/alpha/alpha.h to gcrt1, mcrt1, and crt1, respectively. I'm not sure if this the correct fix but it does make things happy for compiling. L> If... I just try to make gcc without g77, the RH patches and L> the gcc-2.7.2.2 distribution work OK. L> If... I just apply the g77 patch to the clean distribution, L> (e.g., following the g77 instructions) It dies on the first L> compile: L> [root@eddie gcc]# make "LANGUAGES=c" cc -DIN_GCC -g L> -I. -I. -I./config \ L> -DGCC_INCLUDE_DIR=\"/usr/lib/gcc-lib/alpha-unknown-linux/2.7.2.2.f.2/include\"\ L> -DGPLUSPLUS_INCLUDE_DIR=\"/usr/lib/g++-include\" \ L> -DLOCAL_INCLUDE_DIR=\"/usr/local/include\" \ L> -DCROSS_INCLUDE_DIR=\"/usr/lib/gcc-lib/alpha-unknown-linux/2.7.2.2.f.2/sys-include\"\ L> -DTOOL_INCLUDE_DIR=\"/usr/alpha-unknown-linux/include\" \ -c L> `echo ./cccp.c | sed 's,^\./,,'` cccp.c:322: conflicting types L> for `sys_errlist' /usr/include/stdio.h:216: previous L> declaration of `sys_errlist' make: *** [cccp.o] Error 1 What I did to fix this is make the following modification in all pieces of code that reference sys_errlist (there aren't that many): the code segment that reads: #if defined(bsd4_4) extern const char *const sys_errlist[]; #else extern char *sys_errlist[]; #endif should become: #if defined(bsd4_4) || defined(__linux__) extern const char *const sys_errlist[]; #else extern char *sys_errlist[]; #endif I've gotten xgcc to compile but it dies trying to compile enquire.c with the message: ./xgcc -B./ -DIN_GCC -g -I./include -DNO_MEM -DNO_LONG_DOUBLE_IO -O0 -I. -c ./enquire.c xgcc: Internal compiler error: program cpp got fatal signal 11 gmake[1]: *** [enquire.o] Error 1 gmake[1]: Leaving directory `/home/erik/erik/tape-960117/gcc-2.7.2.2' gmake: *** [bootstrap] Error 2 It is absolutely consistent about dying at this point so I doubt it is a memory problem like sig 11 usually implies. --erik -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com