From: Erik Evensen <erik@avalon.harvard.edu>
Subject: Re: gcc-2.7.2.2 / g77-0.5.20 on RH4.1
Date: Tue, 04 Mar 1997 14:56:58 +0500 [thread overview]
Message-ID: <9332cebafb61e92a38e696d65086d403.axp-list@archive.invalid> (raw)
>>>>> "L" == Lev D Gelb <gelb@cheme.cornell.edu> 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
next reply other threads:[~1997-03-04 9:56 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-03-04 9:56 Erik Evensen [this message]
-- strict thread matches above, loose matches on Subject: below --
1997-03-13 21:43 gcc-2.7.2.2 / g77-0.5.20 on RH4.1 J
1997-03-13 10:22 Erik Evensen
1997-03-12 5:43 Erik Evensen
1997-03-05 18:43 Toon Moene
[not found] <9703042119.AA18379@moene.indiv.nluug.nl>
1997-03-04 22:39 ` Richard Henderson
1997-03-04 21:19 Toon Moene
1997-02-22 2:01 A problem porting sbrk Steven White
1997-03-04 19:02 ` gcc-2.7.2.2 / g77-0.5.20 on RH4.1 Lev D Gelb
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox