Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 372815 - www-client/firefox-5.0 fails to emerge with USE=pgo
Summary: www-client/firefox-5.0 fails to emerge with USE=pgo
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-24 12:36 UTC by Sergey Ilinykh
Modified: 2011-06-25 14:24 UTC (History)
3 users (show)

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


Attachments
build.log (build.log.lzma,214.97 KB, application/x-lzma)
2011-06-24 13:43 UTC, Sergey Ilinykh
Details
Sandbox log from ~amd64, gcc-4.6.0. (sandbox-10628.log.gz,1.11 KB, application/octet-stream)
2011-06-24 17:17 UTC, David Kredba
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Ilinykh 2011-06-24 12:36:39 UTC
Looks like when it tries to execute pgo tests something goes wrong, probably because the compilation runs under different user.



Reproducible: Always

Steps to Reproduce:
USE=pgo emerge firefox
Actual Results:  
OBJDIR=obj-x86_64-unknown-linux-gnu python
obj-x86_64-unknown-linux-gnu/_profile/pgo/profileserver.py
args:
['/var/tmp/portage/www-client/firefox-5.0/work/mozilla-release/obj-x86_64-unknown-linux-gnu/dist/firefox/firefox-bin',
'-no-remote', '-profile',
'/var/tmp/portage/www-client/firefox-5.0/work/mozilla-release/obj-x86_64-unknown-linux-gnu/_profile/pgo/pgoprofile/',
'http://localhost:8888/index.html']
INFO | automation.py | Application pid: 17491
Xlib:  extension "RANDR" missing on display ":1".

** (firefox-bin:17491): WARNING **: Owner of /tmp/orbit-rion is not the current
user


(firefox-bin:17491): GnomeUI-WARNING **: While connecting to session manager:
None of the authentication protocols specified are supported.
g_dbus_connection_real_closed: Remote peer vanished with error: Underlying
GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.
TEST-UNEXPECTED-FAIL | automation.py | Exited with code -15 during test run
INFO | automation.py | Application ran for: 0:00:01.841796
INFO | automation.py | Reading PID log:
/var/tmp/portage/www-client/firefox-5.0/temp/tmpjSVj0Rpidlog
make: *** [profiledbuild] Error 241
emake failed


Portage 2.2.0_alpha41 (default/linux/amd64/10.0/developer, gcc-4.5.2, glibc-2.13-r2, 2.6.39.1-zen+ x86_64)
=================================================================
System uname: Linux-2.6.39.1-zen+-x86_64-Intel-R-_Core-TM-_i5_CPU_M_560_@_2.67GHz-with-gentoo-2.0.3
Timestamp of tree: Fri, 24 Jun 2011 11:00:01 +0000
ccache version 3.1.5 [enabled]
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.1-r1, 3.1.3-r1, 3.2
dev-util/ccache:          3.1.5
dev-util/cmake:           2.8.4-r1
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21
sys-devel/gcc:            4.5.2
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.38 (virtual/os-headers)
sys-libs/glibc:           2.13-r2
Repositories: gentoo rion desktop-effects
Installed sets: 
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/distfiles"
FEATURES="assume-digests binpkg-logs ccache digest distlocks ebuild-locks fixlafiles fixpackages multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms sign splitdebug strict test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="ru_RU.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,--hash-style=gnu -Wl,-O1 -Wl,--as-needed"
LINGUAS="ru en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/rion /var/lib/layman/desktop-effects"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 avahi bash-completion berkdb bluetooth bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fuse gdbm gdu gif gnome gpm gstreamer gtk iconv idn ipv6 jpeg lcms libnotify mad mmap mmx mng modules mp3 mp4 mpeg mudflap multilib nautilus ncurses nls nptl nptlonly ogg opengl openmp pam pango pch pcre pdf png policykit ppds pppd pulseaudio qt3support readline samba sdl session smp snmp spell sse sse2 sse3 sse4 ssl ssse3 startup-notification svg sysfs tcpd threads tiff truetype udev unicode usb v4l2 vdpau vorbis x264 xcb xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel i965 nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Agostino Sarubbo gentoo-dev 2011-06-24 12:52:39 UTC
please add complete build log as attachment ;)
Comment 2 Sergey Ilinykh 2011-06-24 13:43:19 UTC
Created attachment 278007 [details]
build.log
Comment 3 Nikos Chantziaras 2011-06-24 16:25:26 UTC
I just sat though the whole build process. Only at the end did portage tell me that the emerge failed and listed the access violations :-/  It could have aborted right there when they happened, half an hour earlier, saving the user a lot of unneeded compilation time.
Comment 4 David Kredba 2011-06-24 17:17:12 UTC
Created attachment 278027 [details]
Sandbox log from ~amd64, gcc-4.6.0.
Comment 5 Cyprien Nicolas (fulax) 2011-06-24 17:37:54 UTC
(In reply to comment #3)
> I just sat though the whole build process. Only at the end did portage tell me
> that the emerge failed and listed the access violations :-/  It could have
> aborted right there when they happened, half an hour earlier, saving the user a
> lot of unneeded compilation time.

(In reply to comment #4)
> Created attachment 278027 [details]
> Sandbox log from ~amd64, gcc-4.6.0.

Both of you have a different issue, you may want to follow bug 372817 instead on this one.
Comment 6 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2011-06-25 07:10:15 UTC
I encountered an incredibly similar issue to this, the error message only being slightly different, but it fails in the same location, so my solution may be of help. 

OBJDIR=obj-x86_64-unknown-linux-gnu python obj-x86_64-unknown-linux-gnu/_profile/pgo/profileserver.py
args: ['/tmp/portage/www-client-firefox-5.0/work/mozilla-release/obj-x86_64-unknown-linux-gnu/dist/firefox/firefox-bin', '-no-remote', '-profile', '/tmp/portage/www-client-firefox-5.0/work/mozilla-release/obj-x86_64-unknown-linux-gnu/_profile/pgo/pgoprofile/', 'http://localhost:8888/index.html']
INFO | automation.py | Application pid: 299064
Xlib:  extension "RANDR" missing on display ":1".
GConf Error: Failed to contact configuration server; the most common cause is a missing or misconfigured D-Bus session bus daemon. See http://projects.gnome.org/gconf/ for information. (Details -  1: Failed to get connection to session: The connection is closed)
g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.
TEST-UNEXPECTED-FAIL | automation.py | Exited with code -15 during test run
INFO | automation.py | Application ran for: 0:00:01.751994
INFO | automation.py | Reading PID log: /tmp/portage/www-client-firefox-5.0/temp/tmp2TqBz1pidlog


That error occurred despite USE="-gconf", so my intrigue was piqued' . 

So I hijacked my bashrc ( nb: I'm a paludis user so the fix may not be the same for you ) 

and inserted

case "${PN}" in
    "firefox")
       eval $( dbus-launch --sh-syntax )
    ;;
esac

which then let me get past this part and on to the "SANDBOX VIOLATION" bug also linked on this bug ( bug #372817 )
Comment 7 Nirbheek Chauhan (RETIRED) gentoo-dev 2011-06-25 12:53:30 UTC
Please try:

unset DBUS_SESSION_BUS_ADDRESS XDG_SESSION_COOKIE ORBIT_SOCKETDIR SESSION_MANAGER
USE=pgo emerge -av firefox

And report the results, thanks.

Alternatively, try using `su -` if you use su and `sudo -i` if you use sudo.
Comment 8 Nirbheek Chauhan (RETIRED) gentoo-dev 2011-06-25 14:24:09 UTC
I've added those options to the ebuild, if the problem persists, please reopen this bug, thanks for reporting!