Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 151221 - Request filter of -O2 for libtorrent/rtorrent 0.10.3 / 0.6.3
Summary: Request filter of -O2 for libtorrent/rtorrent 0.10.3 / 0.6.3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Diego Elio Pettenò (RETIRED)
URL: http://libtorrent.rakshasa.no/ticket/495
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-13 13:17 UTC by Paul
Modified: 2006-10-18 18:25 UTC (History)
0 users

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 Paul 2006-10-13 13:17:43 UTC
According to rakshasa and many others, rtorrent 0.6.3 crashes with [File chunk read error: Cannot allocate memory] when compiled with gcc 4.1.x.
Since this is default compiler for many of us, rtorrent ebuilds should filter -O2. Any other -Ox will work fine.
Details are here: http://libtorrent.rakshasa.no/ticket/495

----------------------------------------------------------
Portage 2.1.1 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r7 i686)
=================================================================
System uname: 2.6.17-gentoo-r7 i686 Intel(R) Pentium(R) 4 CPU 1300MHz
Gentoo Base System version 1.12.5
Last Sync: Fri, 13 Oct 2006 14:20:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.2.11-r1
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=pentium4 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS=""
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.ca.gentoo.org/gentoo-portage"
USE="x86 X aac acpi alsa bash-completion bitmap-fonts bonobo browserplugin bzip2 cairo ccachei cdda cddb cdinstall cdparanoia cdr cli corba crypt dbus dhcp dlloader dri dvd dvdr elibc_glibc encode exif extensions fam ffmpeg firefox flac font-server fortran freetype ftp gif glitz gnome gphoto2 gpm gstreamer gtk hal howl imap input_devices_keyboard input_devices_mouse ipod ipv6 isdnlog javascript jce jpeg kerberos kernel_linux krb4 ldap mad mime mmx mmxext mp3 mpeg mppe-mppc msni ncurses nls noreiserfs nptl nptlonly nsplugin nvidia offensive ogg opengl oscar pam pcre perl plotutils pmu png ppds pppd python quicktime readline real reflection sblive screen sdl session sftplogging silverxp spell spl sse sse2 ssl stream svg tcpd theora truetype truetype-fonts type1-fonts udev unicode usb userland_GNU vcd video_cards_fbdev video_cards_nv video_cards_nvidia video_cards_vesa vorbis win32codecs wxwindows xml xorg xscreensaver xv zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-10-13 13:30:38 UTC
I haven't applied this yet because there's something I cannot really grasp on this issue. -Os is currently replaced by -O2, and here it works. It *might* be an x86 specific issue, but I'm unable to find enough data about this :/

Comment 2 Paul 2006-10-13 14:20:07 UTC
(In reply to comment #1)
> I haven't applied this yet because there's something I cannot really grasp on
> this issue. -Os is currently replaced by -O2, and here it works. It *might* be
> an x86 specific issue, but I'm unable to find enough data about this :/
> 
Then I guess we're stuck. I'm afraid I can't offer any more insight. I'm on x86 myself.
But could you not replace -O2, for -O<something else> just on x86?

Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-10-13 14:26:48 UTC
Yes, if it actually is only for x86 :/
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-10-18 18:25:06 UTC
Okay, now replacing -O2 with -O3 for x86 + GCC 4.1 systems for safety. Bumped to *.3-r1.