Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 50542 - dev-lang/perl-5.8.4 fails to compile
Summary: dev-lang/perl-5.8.4 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
: 50783 51914 52708 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-05-09 07:31 UTC by David Baehrens
Modified: 2004-06-07 09:50 UTC (History)
9 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Baehrens 2004-05-09 07:31:06 UTC
Trying to merge dev-lang/perl-5.8.4 fails with the following error:

[...]
gcc -L/usr/local/lib -o miniperl \
    miniperlmain.o opmini.o libperl.a -lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
./miniperl -w -Ilib -MExporter -e '<?>' || make minitest
Attempt to free unreferenced scalar: SV 0x1011440c.
make: [extra.pods] Error 1 (ignored)
./miniperl -Ilib configpm configpm.tmp
sh mv-if-diff configpm.tmp lib/Config.pm
./miniperl -Ilib lib/lib_pm.PL
Attempt to free unreferenced scalar: SV 0x10113e68 at lib/lib_pm.PL line 1.
Attempt to free unreferenced scalar: SV 0x1011be94 at lib/File/Basename.pm line 135.
Attempt to free unreferenced scalar: SV 0x1011be94 at lib/File/Basename.pm line 139.
Attempt to free unreferenced scalar: SV 0x1012ecac at lib/warnings.pm line 134.
Attempt to free unreferenced scalar: SV 0x1011beb8 at lib/File/Basename.pm line 140.
Attempt to free unreferenced scalar: SV 0x10140214 at lib/Exporter/Heavy.pm line 3.
make: *** [lib/lib.pm] Segmentation fault

!!! ERROR: dev-lang/perl-5.8.4 failed.
!!! Function src_compile, Line 188, Exitcode 2
!!! Unable to make


Reproducible: Always
Steps to Reproduce:
1. emerge -u perl

Actual Results:  
Compilation aborts with given error message.

Expected Results:  
Successful compilation.

Gentoo Base System version 1.4.11
Portage 2.0.50-r6 (default-ppc-2004.1, gcc-3.2.3, glibc-2.3.2-r9, 2.4.24-ppc-r2)
=================================================================
System uname: 2.4.24-ppc-r2 ppc 740/750
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="ppc ~ppc"
AUTOCLEAN="yes"
CFLAGS="-O3 -pipe -mcpu=750"
CHOST="powerpc-unknown-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config 
/usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ 
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ 
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/lib/pbbuttons 
/var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d /etc/env.d"
CXXFLAGS="-O3 -pipe -mcpu=750"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache"
GENTOO_MIRRORS="ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo http://linux.rz.
ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.snt.utwente.
nl/pub/os/linux/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="X Xaw3d aalib acl alsa bidi cdr crypt cscope cups directfb dvd emacs encode 
fbcon flac foomaticdb gdbm ggi gif gnome-libs gpm gtk gtk2 guile imap imlib java 
javascript jikes jpeg libwww mad maildir mikmod mitshm motif mozilla mule 
ncurses nls oggvorbis opengl operanom2 oss pam perl png ppc python qt readline 
sdl slang spell ssl tcltk tcpd tetex theora tiff truetype unicode usb 
video_cards_mach64 vim-with-x xface xgetdefault xinerama xml xml2 xmms xv zlib"
Comment 1 Imad R. Faiad 2004-05-09 07:46:07 UTC
lower your CFLAGS change "-O3" to "-O2" and try again
hth
PS "-O3" should not be used systemwide, i can break it.
Comment 2 David Baehrens 2004-05-09 08:17:54 UTC
Same error with CFLAGS="-O2 -pipe -mcpu=750".
Comment 3 Michael Kiermaier 2004-05-10 14:13:48 UTC
I am on an iBook 2.2 800MHz here.

dev-lang/perl-5.8.2-r1 compiled fine with CFLAGS="-O2 -pipe -mcpu=750 -fsigned-char -mpowerpc-gfxopt", but perl-5.8.4 terminates with exactly the same error message.

removing -O2 from CFLAGS fixes the problem.

Now the question is: Which one of the single optimizations within -O2 breaks the compilation?
I don't want to compile perl without any optimizations.


# emerge info
Portage 2.0.50-r6 (default-ppc-2004.1, gcc-3.2.3, glibc-2.3.2-r3, 2.6.2_rc1-benh1)
=================================================================
System uname: 2.6.2_rc1-benh1 ppc 750FX
Gentoo Base System version 1.4.11
distcc 2.11.2 powerpc-unknown-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
Autoconf: sys-devel/autoconf-2.58
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="ppc ~ppc"
AUTOCLEAN="yes"
CFLAGS="-pipe -mcpu=750 -fsigned-char -mpowerpc-gfxopt"
CHOST="powerpc-unknown-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /var/lib/pbbuttons /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-pipe -mcpu=750 -fsigned-char -mpowerpc-gfxopt"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache"
GENTOO_MIRRORS="ftp://gentoo.inode.at/source/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://gd.tuwien.ac.at/opsys/linux/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="X aalib apache2 apm arts audiofile berkdb caps crypt cups doc dvd encode flac foomaticdb gdbm gif gphoto2 gpm gtk2 guile icq imlib innodb jack jack-tmpfs java jpeg kde ladcca lcms libwww mad maildir mitshm motif mozilla mpeg mysql ncurses nls offensive oggvorbis opengl pam pdflib perl png ppc python qt radeon readline samba sdl slang speex spell ssl tcltk tcpd tetex tiff truetype usb video_cards_radeon wmf xml xml2 xmms xv zlib"
Comment 4 David Baehrens 2004-05-11 04:15:15 UTC
After setting CFLAGS="-O1 -pipe -mcpu=750" dev-lang/perl-5.8.4 compiled and merged successfully. My machine is an Apple PowerBook G3 333Mhz (Lombard).
Comment 5 Will McQueen 2004-05-15 16:13:21 UTC
You may also want to try setting USE="-threads"
Comment 6 Joe Jezak (RETIRED) gentoo-dev 2004-06-04 23:15:00 UTC
After installing gcc 3.3.3, the problems with perl 5.8.4 went away.

Solution: Install gcc-3.3.3-pre20040408-r1
Comment 7 SpanKY gentoo-dev 2004-06-07 05:45:21 UTC
*** Bug 50783 has been marked as a duplicate of this bug. ***
Comment 8 SpanKY gentoo-dev 2004-06-07 05:46:12 UTC
*** Bug 51914 has been marked as a duplicate of this bug. ***
Comment 9 SpanKY gentoo-dev 2004-06-07 05:46:31 UTC
*** Bug 52708 has been marked as a duplicate of this bug. ***
Comment 10 SpanKY gentoo-dev 2004-06-07 05:48:05 UTC
i hit the same bug on arm ... solution was to simply add
use arm && replace-flags -O? -O1

in this case we can do the same
Comment 11 SpanKY gentoo-dev 2004-06-07 09:50:54 UTC
added the same fix to 5.8.4 for ppc that i did with arm