powerman has asked for the wisdom of the Perl Monks concerning the following question:

I can't compile 5.8.1!

I don't found anything about this issue using Google, and I don't sure there I should post it - in perlbug or in gccbug.

Maybe you help me found some workaround or so...

My system is:
LINUX: 2.4.20
GCC: 3.0
GLIBC: 2.2.5

root:perl-5.8.1# sh Configure -de ...cut... Updating makefile... make[1]: Leaving directory `/usr/src/PoWeR/BUILD/perl-5.8.1/x2p' Now you must run 'make'. root:perl-5.8.1# make `sh cflags "optimize='-O3'" miniperlmain.o` miniperlmain.c CCCMD = cc -DPERL_CORE -c -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O3 -Wall `sh cflags "optimize='-O3'" perl.o` perl.c CCCMD = cc -DPERL_CORE -c -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O3 -Wall perl.c: In function `perl_construct': perl.c:257: Internal error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions. make: *** [perl.o] Error 1

Replies are listed 'Best First'.
Re: 5.8.1 don't compile
by Abigail-II (Bishop) on Oct 06, 2003 at 09:38 UTC
    Considering the error message, and the fact it happens during compilation, I highly suspect this is a gcc bug. I would first try to upgrade gcc, and if that doesn't work, to downgrade gcc. If you still get a segmentation fault with the newest versions of gcc, submit a bugreport to the gcc team (as instructed in the message you quote), and a FYI report to p5p. (It's good that p5p knows about this issue. Perl contains a lot of code that works around bugs in compilers and libraries. That doesn't mean Perl will be patched to avoid a segfault in a specific version of gcc though, but the issue might get mentioned in a README file. (Too bad you discover this after 5.8.1 was released, not before)).

    Abigail

Re: 5.8.1 don't compile
by calin (Deacon) on Oct 06, 2003 at 15:18 UTC
    Try to make again. Check if the CPU and PSU fans are spinning. Check your memory with Memtest86. Read the SIG11 FAQ. Use a stable compiler.

    If hardware looks OK, and make still fails repeatedly, consider sending a GCC bug report.

      I've done all hardware tests : lm-sensors, hddtemp, memtest86, cpuburn and kernel/glibc/gcc compilation (anybody know more test? :)).

      Problem was solved by using last Gcc-3.3.1 and Glibc-2.3.2 ( but upgrading gcc/glibc in step force me to recompile ALL system, and this is what I'm doing now instead of programming in perl :( ).

      Thanks for your replies.

      P.S. I will report perlbug as soon as I finish with overall system recompilation.