Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 52273

Summary: a courple of apps won't compile without sandbox
Product: Portage Development Reporter: Lukas Miczka <cpu>
Component: Core - Interface (emerge)Assignee: Portage team <dev-portage>
Status: RESOLVED INVALID    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Lukas Miczka 2004-05-28 09:26:00 UTC
This is example bug wchich I've had http://bugs.gentoo.org/show_bug.cgi?id=52265


I've had problems with mplayer1.0pre-r3 and abiwrod2.0.7 - after I've uncoment FEATURES="sandbox" everything compiled without error

Reproducible: Always
Steps to Reproduce:
1.emerge mplayer or abiword
2.must have portage 2.0.50-r7


Actual Results:  
Adding FEATURES="sandbox" resolves problems


Portage 2.0.50-r7 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3_pre20040420-r0,
2.6.6-love1)
=================================================================
System uname: 2.6.6-love1 i686 AMD Athlon(tm)
Gentoo Base System version 1.4.15
distcc 2.14 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -pipe -ftracer -fomit-frame-pointer
-momit-leaf-frame-pointer -fprefetch-loop-arrays -fforce-addr -freduce-all-givs
-mfpmath=387 -maccumulate-outgoing-args"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe -ftracer -fomit-frame-pointer
-momit-leaf-frame-pointer -fprefetch-loop-arrays -fforce-addr -freduce-all-givs
-mfpmath=387 -maccumulate-outoging-args"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/
ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.easynet.nl/mirror/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.pl/gentoo-portage"
USE="3dnow X aalib alsa apm avi berkdb cdr crypt cups dvd encode esd flac
foomaticdb gdbm gif gnome gpm gtk gtk2 imlib java jpeg lame libg++ libwww mad
matroska mikmod mitshm mmx motif mozilla mpeg ncurses net nls oggvorbis opengl
oss pam pdflib perl png python quicktime readline sdl slang spell sse ssl svga
tcpd tiff truetype x86 xml xml2 xmms xv zlib"
Comment 1 SpanKY gentoo-dev 2004-05-28 13:44:55 UTC
considering sandbox is in the default FEATURES i doubt that's the problem

what is the output of `emerge info` if you dont add that line to make.conf ?
why dont you try with less suicidal CFLAGS ?
Comment 2 Lukas Miczka 2004-05-28 14:15:38 UTC
Of course I've tried - with:
1. -march=athlon-xp -O3 -fomit-frame-pointer -pipe
2. -march=athlon-xp -O2 -pipe

And my current make.conf
#FEATURES="sandbox buildpkg ccache distcc userpriv usersandbox notitles noclean noauto cvs keeptemp keepwork autoaddcvs"
#FEATURES="sandbox ccache distcc autoaddcvs"
#FEATURES="distcc"
#FEATURES="sandbox"

I said when I uncomment sandbox I have no problems if not - cannot emerge abiword and mplayer at this moment
Comment 3 SpanKY gentoo-dev 2004-05-28 14:18:09 UTC
what about simply
CFLAGS="-pipe" ?
also, you didnt answer my other question about `emerge info`
Comment 4 Lukas Miczka 2004-05-28 14:52:37 UTC
So you think that it's something wrong with make.global...? And till this update evertyhing worked fine.
I'll chceck this tommorow on diffrent computer and report what I've experienced also try pure -O2 march=athlon-xp
Comment 5 Nicholas Jones (RETIRED) gentoo-dev 2004-05-28 16:16:49 UTC
I'd venture: tempermental hardware induced by optimizations.

"Adding" sandbox will not fix a problem. It's enabled by default on
x86 unless you explicitly disable it. You're seeing a phantom bug.

You can't simply test building something by changing your cflags.
You have to rebuild the entire system with something more sane first,
then you can try it.