Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 359973 - net-libs/xulrunner-2.0 fails to build on machine with nvidia-drivers
Summary: net-libs/xulrunner-2.0 fails to build on machine with nvidia-drivers
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-22 16:04 UTC by Paolo Pedroni
Modified: 2011-03-23 13:05 UTC (History)
0 users

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


Attachments
net-libs/xulrunner-2.0 build log (xulrunner-2.0:20110322-154127.log.gz,322.45 KB, application/x-gzip)
2011-03-22 16:05 UTC, Paolo Pedroni
Details
net-libs/xulrunner-2.0 environment (environment,233.70 KB, text/plain)
2011-03-22 16:06 UTC, Paolo Pedroni
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paolo Pedroni 2011-03-22 16:04:50 UTC
On a PC of mine with an Nvidia graphic card (and proprietary drivers) xulrunner-2.0 fails emerging with the error below:

x86_64-pc-linux-gnu-g++ -o crashreporter  -fno-rtti -fno-exceptions -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-invalid-offsetof -Wno-variadic-macros -Werror=return-type -march=k8 -pipe -Wno-return-type -w -fno-strict-aliasing -fshort-wchar -pthread -pipe -pthread -DQT_SHARED -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/include/qt4 -I/usr/include/qt4/QtGui -I/usr/include/libdrm -I/usr/include/qt4/QtCore -I/usr/include/gtk-unix-print-2.0   -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include    -DNDEBUG -DTRIMMED -Os -freorder-blocks -fomit-frame-pointer   crashreporter.o crashreporter_gtk_common.o crashreporter_unix_common.o crashreporter_linux.o   -lpthread -Wl,-O1 -Wl,--as-needed  -Wl,-rpath-link,/var/tmp/portage/net-libs/xulrunner-2.0/work/mozilla-2.0/dist/bin -Wl,-rpath-link,/usr/lib  -L../../../dist/bin -L../../../dist/lib ../../../toolkit/crashreporter/google-breakpad/src/common/linux/libbreakpad_linux_common_s.a  -ldl  -pthread -lgtk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lfreetype -lfontconfig -lgdk-x11-2.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lm -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lpng14 -lgthread-2.0 -lrt -lglib-2.0   -pthread -lgthread-2.0 -lrt -lglib-2.0      
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/../../../../x86_64-pc-linux-gnu/bin/ld: warning: libnvidia-tls.so.260.19.36, needed by /usr/lib/libGL.so.1, not found (try using -rpath or -rpath-link)
/usr/lib/libGL.so.1: undefined reference to `_nv007tls'
/usr/lib/libGL.so.1: undefined reference to `_nv008tls'
/usr/lib/libGL.so.1: undefined reference to `_nv014tls'
/usr/lib/libGL.so.1: undefined reference to `_nv010tls'
/usr/lib/libGL.so.1: undefined reference to `_nv009tls'
/usr/lib/libGL.so.1: undefined reference to `_nv006tls'
/usr/lib/libGL.so.1: undefined reference to `_nv011tls'
/usr/lib/libGL.so.1: undefined reference to `_nv012tls'
/usr/lib/libGL.so.1: undefined reference to `_nv013tls'
collect2: ld returned 1 exit status
distcc[5739] ERROR: compile (null) on localhost failed
make[5]: *** [crashreporter] Error 1
make[5]: Leaving directory `/var/tmp/portage/net-libs/xulrunner-2.0/work/mozilla-2.0/toolkit/crashreporter/client'
make[4]: *** [libs] Error 2
make[4]: Leaving directory `/var/tmp/portage/net-libs/xulrunner-2.0/work/mozilla-2.0/toolkit/crashreporter'
make[3]: *** [crashreporter_libs] Error 2
make[3]: Leaving directory `/var/tmp/portage/net-libs/xulrunner-2.0/work/mozilla-2.0/toolkit'
make[2]: *** [libs_tier_platform] Error 2
make[2]: Leaving directory `/var/tmp/portage/net-libs/xulrunner-2.0/work/mozilla-2.0'
make[1]: *** [tier_platform] Error 2
make[1]: Leaving directory `/var/tmp/portage/net-libs/xulrunner-2.0/work/mozilla-2.0'
make: *** [default] Error 2
emake failed


Reproducible: Always

Steps to Reproduce:
1. emerge -1 xulrunner

Actual Results:  
Build failure.

Expected Results:  
Successful build, like on my other two PCs (both with ATI cards, one with free driver, one with proprietary driver)

# emerge --info =net-libs/xulrunner-2.0
Portage 2.1.9.42 (default/linux/amd64/10.0/desktop/kde, gcc-4.4.5, glibc-2.11.3-r0, 2.6.37-gentoo-r3 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-2.6.37-gentoo-r3-x86_64-Dual_Core_AMD_Opteron-tm-_Processor_185-with-gentoo-2.0.2
Timestamp of tree: Tue, 22 Mar 2011 15:00:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [enabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.6.6-r2, 3.1.3-r1
dev-util/ccache:     2.4-r9
dev-util/cmake:      2.8.4
sys-apps/baselayout: 2.0.2
sys-apps/openrc:     0.8.0
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.5
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs ccache compress-build-logs distcc distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms split-elog split-log strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS=""
GENTOO_MIRRORS="http://de-mirror.org/distro/gentoo/ http://gentoo.mneisen.org/ http://gentoo.tiscali.nl/ http://gentoo.mirror.pw.edu.pl/ http://gentoo.supp.name/"
LANG="it_IT.UTF-8"
LC_ALL="it_IT.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="it"
MAKEOPTS="-j8"
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="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac aalib acl acpi alsa amd64 ao audiofile bash-completion bluetooth branding bzip2 cairo caps cdda cddb cdparanoia cdr cli consolekit cracklib crypt css cups curl cxx dbus dga djvu dri dts dvd dvdr emboss encode exif expat fam fbcon ffmpeg fftw firefox flac fontconfig foomaticdb fortran ftp gd gdbm gdu geoip ggi gif gimp gmp gnutls gphoto2 gpm graphviz gstreamer gtk handbook iconv icu idn ieee1394 imagemagick imlib ipv6 java jbig jpeg jpeg2k kde lame lcms libcaca libnotify libsamplerate lm_sensors lua lzma lzo mad mikmod mmap mmx mng modules mp3 mp4 mpeg mplayer mudflap multilib musicbrainz ncurses nls nptl nptlonly nsplugin offensive ogg openal openexr opengl openmp pam pango pch pcre pdf perl png policykit ppds pppd python qt3support qt4 quicktime rdesktop readline recode samba scanner sdl semantic-desktop session smartcard sndfile sockets sox speex spell sqlite sqlite3 sse sse2 ssl startup-notification svg symlink sysfs syslog sysvipc taglib tcpd theora threads tidy tiff truetype udev unicode usb vcd vim-syntax vnc vorbis wmf wxwidgets x264 xattr xcb xcomposite xinerama xml xorg xpm xscreensaver xulrunner xv xvid yahoo zlib" ALSA_CARDS="intel8x0 virmidi" 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" CAMERAS="kodak 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" SANE_BACKENDS="epson epson2" USERLAND="GNU" VIDEO_CARDS="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

# emerge -pqv =net-libs/xulrunner-2.0
[ebuild     U ] net-libs/xulrunner-2.0 [1.9.2.15] USE="alsa crashreporter%* dbus ipc libnotify startup-notification system-sqlite webm%* -custom-optimization -debug -wifi (-gnome%) (-java%*)"
Comment 1 Paolo Pedroni 2011-03-22 16:05:40 UTC
Created attachment 266895 [details]
net-libs/xulrunner-2.0 build log
Comment 2 Paolo Pedroni 2011-03-22 16:06:19 UTC
Created attachment 266897 [details]
net-libs/xulrunner-2.0 environment
Comment 3 Ulenrich 2011-03-23 11:29:11 UTC
Paolo, do you have this file?
libnvidia-tls.so.260.19.36

I have 
/usr/lib64/libnvidia-tls.so.270.30
/usr/lib64/tls/libnvidia-tls.so.270.30
and xulrunner-2.0 compiles like a charm!
Comment 4 Paolo Pedroni 2011-03-23 11:32:58 UTC
Can this be related to bug #359929? My eselect-opengl is broken like it says in that bug and no sync'ing and re-emerging eselect-opengl has been able to fix it.
Comment 5 Ulenrich 2011-03-23 11:42:33 UTC
Sure, workaround:

download nvidia beta 270.30 directly
enter runlevel 3 
purge nvidia, nouveau
install downloaded nvidia-270.30
Comment 6 Paolo Pedroni 2011-03-23 12:54:26 UTC
(In reply to comment #3)
> Paolo, do you have this file?
> libnvidia-tls.so.260.19.36
> 
> I have 
> /usr/lib64/libnvidia-tls.so.270.30
> /usr/lib64/tls/libnvidia-tls.so.270.30
> and xulrunner-2.0 compiles like a charm!

I only have /usr/lib64/libnvidia-tls.so.260.19.36, no /usr/lib64/tls directory at all.
Comment 7 Paolo Pedroni 2011-03-23 13:05:52 UTC
This is strange. I messed around a bit with opengl symlinks, fixing them as they're supposed to be if eselect-opengl worked, modified the LDPATH line /etc/env.d/03opengl file from LDPATH="/usr/lib32/opengl/nvidia/lib" to
LDPATH="/usr/lib32/opengl/nvidia/lib:/usr/lib64/opengl/nvidia/lib" and now both X works and xulrunner-2 compiles.

Closing as invalid...