After installing RPMS for perl from the CD and running Configure and accepting the standard defaults. [root@server perl5.005_03]# make `sh cflags libperl.a miniperlmain.o` miniperlmain.c CCCMD = cc -DPERL_CORE -c -Dbool=char -DHAS_BOOL -I/usr/local/include -O2 `sh cflags libperl.a perl.o` perl.c CCCMD = cc -DPERL_CORE -c -Dbool=char -DHAS_BOOL -I/usr/local/include -O2 `sh cflags libperl.a gv.o` gv.c CCCMD = cc -DPERL_CORE -c -Dbool=char -DHAS_BOOL -I/usr/local/include -O2 `sh cflags libperl.a toke.o` toke.c CCCMD = cc -DPERL_CORE -c -Dbool=char -DHAS_BOOL -I/usr/local/include -O2 cc: Internal compiler error: program cc1 got fatal signal 7 make: *** [toke.o] Error 1
This is a compiler problem, not a perl problem. Make sure that you are using either Red Hat 6.0 or Raw Hide egcs compiler (this is what we use to build perl). If the problem persists, you may have a problem with your build machine and/or options specified when building perl. You might try rebuilding the standard perl src.rpm from either Red Hat 6.0 or Raw Hide in order to sort out what your problem is.
OK I used gcc sh Configure -Dcc=gcc I now get the follwing chmod 644 ../../lib/auto/Opcode/Opcode.bs make[1]: Leaving directory `/usr/src/redhat/SOURCES/perl5.005_03/ext/Opcode' Making POSIX (dynamic) Processing hints file hints/linux.pl Note (probably harmless): No library found for -lcposix Writing Makefile for POSIX make[1]: Entering directory `/usr/src/redhat/SOURCES/perl5.005_03/ext/POSIX' mkdir ../../lib/auto/POSIX make[1]: Leaving directory `/usr/src/redhat/SOURCES/perl5.005_03/ext/POSIX' make[1]: Entering directory `/usr/src/redhat/SOURCES/perl5.005_03/ext/POSIX' cp POSIX.pod ../../lib/POSIX.pod cp POSIX.pm ../../lib/POSIX.pm AutoSplitting ../../lib/POSIX.pm (../../lib/auto/POSIX) ../../miniperl -I../../lib -I../../lib ../../lib/ExtUtils/xsubpp -noprototypes -typemap ../../lib/ExtUtils/typemap -typemap typemap POSIX.xs >xstmp.c && mv xstmp.c POSIX.c gcc -c -DDEBUGGING -Dbool=char -DHAS_BOOL -I/usr/local/include -DSTRUCT_TM_HASZONE -DHINT_SC_EXIST -O2 -DVERSION=\"1.02\" -DXS_VERSION=\"1.02\" -fpic -I../.. POSIX.c gcc: Internal compiler error: program cc1 got fatal signal 7 make[1]: *** [POSIX.o] Error 1 make[1]: Leaving directory `/usr/src/redhat/SOURCES/perl5.005_03/ext/POSIX' make: *** [lib/auto/POSIX/POSIX.so] Error 2 [root@server perl5.005_03]#
To rebuild exactly as we do, try rpm --rebuilddb perl-5.00503-5.src.rpm BTW, cc *is* gcc on Red Hat linux, so specifying CC=gcc will have little effect. The fact that you are getting errors in different places means that you may have a hardware (or BIOS configuration) problem with your memory cache.