Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 73628 - perl-5.8.6-r1 segfault on compile
Summary: perl-5.8.6-r1 segfault on compile
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-07 00:45 UTC by Joakim
Modified: 2006-01-15 16:58 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Preprocessed source (ccfFI9xo.out.tgz,114.89 KB, application/x-gzip-compressed)
2004-12-07 00:47 UTC, Joakim
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joakim 2004-12-07 00:45:07 UTC
when emerging system perl-5.8.6-r1 bail out with the following error (last lines in screen):
If you compile perl5 on a different machine or from a different object
directory, copy the Policy.sh file from this object directory to the
new one before you run Configure -- this will help you with most of
the policy defaults.

`sh  cflags "optimize='-march=k6-3 -O3 -pipe'" miniperlmain.o` -fPIC miniperlmain.c
          CCCMD =  gcc -DPERL_CORE -c -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -march=k6-3 -O3 -pipe  -Wall
`sh  cflags "optimize='-march=k6-3 -O3 -pipe'" perl.o` -fPIC perl.c
          CCCMD =  gcc -DPERL_CORE -c -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -march=k6-3 -O3 -pipe  -Wall
`sh  cflags "optimize='-march=k6-3 -O3 -pipe'" gv.o` -fPIC gv.c
          CCCMD =  gcc -DPERL_CORE -c -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -march=k6-3 -O3 -pipe  -Wall
`sh  cflags "optimize='-march=k6-3 -O3 -pipe'" toke.o` -fPIC toke.c
          CCCMD =  gcc -DPERL_CORE -c -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -march=k6-3 -O3 -pipe  -Wall
toke.c: In function `Perl_yylex':
toke.c:5263: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
Preprocessed source stored into /var/tmp/portage/perl-5.8.6-r1/temp/ccfFI9xo.out file, please attach this to your bugreport.
make: *** [toke.o] Error 1

Reproducible: Always
Steps to Reproduce:
1. #emerge -uDa system
2.
3.

Actual Results:  
compile error segfault

Expected Results:  
successful compile

# emerge info
Portage 2.0.51-r8 (default-linux/x86/2004.2, gcc-3.4.3, glibc-2.3.4.20041102-r0,
2.4.28-gentoo-r1 i586)
=================================================================
System uname: 2.4.28-gentoo-r1 i586 AMD-K6(tm) 3D+ Processor
Gentoo Base System version 1.6.7
Python:             
dev-lang/python-2.1.3-r1,dev-lang/python-2.2.3-r5,dev-lang/python-2.3.4 [2.3.4
(#1, Nov 23 2004, 17:12:29)]
dev-lang/python:     2.1.3-r1, 2.2.3-r5, 2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.3
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.2-r7
virtual/os-headers:  2.4.21, 2.4.22, 2.4.19-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=k6-3 -O3 -pipe"
CHOST="i586-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k6-3 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo
http://gentoo.mirror.icd.hu/ ftp://mir.zyrianes.net/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="aalib apache2 avi berkdb bitmap-fonts crypt encode f77 foomaticdb fortran
gd gdbm geoip ggi gif gpm gtk2 imagemagick imap imlib jpeg libg++ libwww mad
maildir mpeg mysql ncurses nls pam pdflib perl png python quicktime readline
sasl sdl slang spell sqlite ssl tcpd tiff truetype usb vhosts virus-scan wmf x86
xml xml2 zeo zlib"
Comment 1 Joakim 2004-12-07 00:47:46 UTC
Created attachment 45418 [details]
Preprocessed source

the Preprocessed source created by emerge attached. I compacted it with a
tarball
Comment 2 Sascha Wuestemann 2004-12-07 09:28:49 UTC
I have encountered exactly the same error with gcc 3.4.3 and 3.4.3-r1.
Switching back to gcc 3.3.4 solved the problem instantly.

I'd advise you to do the same and report your results.
Comment 3 Joakim 2004-12-07 10:04:07 UTC
Going back to 3.3.4? never, that's not a solution, that's sweaping the dirt under the carpet :-)

Thanks for doing the test though, I think that indicate it's related to 3.4.3 and maybe can help the devs.

I will test on an other, completely new bootstrapped box and see if it gives the same result. I figure it "might" have to do with this a 586 box with a K-6 CPU. I havent had 1 segfault on compile before though, during 2 years and I have compiled a lot!
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2005-09-04 04:12:24 UTC
Mass re-assign.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2005-11-09 09:11:09 UTC
Mass re-assign.
Comment 6 Mark Loeser (RETIRED) gentoo-dev 2006-01-15 16:58:35 UTC
This works for me with the current stable version, 3.4.4.  Please test and let me know.