Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 302107 - media-libs/gegl-0.1.0-r1 fails with USE="doc" when using nvidia-drivers
Summary: media-libs/gegl-0.1.0-r1 fails with USE="doc" when using nvidia-drivers
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Doug Goldstein (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-24 22:07 UTC by georgi
Modified: 2015-01-10 15:50 UTC (History)
9 users (show)

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


Attachments
Patch to preload nvidia's libGL.so (gegl-0.1.2-nvidia-preload.patch,2.66 KB, patch)
2010-02-21 09:16 UTC, Peter Levine
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description georgi 2010-01-24 22:07:41 UTC
gegl-0.1.0-r1 fails if the doc USE flag is enabled. There is no clear error message, so I am pasting the end of the build output. Let me know if you need the complete build log:

Making all in docs
make[2]: Entering directory `/var/tmp/portage/media-libs/gegl-0.1.0-r1/work/gegl-0.1.0/docs'
Making all in gallery
make[3]: Entering directory `/var/tmp/portage/media-libs/gegl-0.1.0-r1/work/gegl-0.1.0/docs/gallery'
Making all in data
make[4]: Entering directory `/var/tmp/portage/media-libs/gegl-0.1.0-r1/work/gegl-0.1.0/docs/gallery/data'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/var/tmp/portage/media-libs/gegl-0.1.0-r1/work/gegl-0.1.0/docs/gallery/data'
make[4]: Entering directory `/var/tmp/portage/media-libs/gegl-0.1.0-r1/work/gegl-0.1.0/docs/gallery'
--[Updating sample compositions]--
./clones.xml
make[5]: *** [clones.png] Error 255
./OpenRaster-00.xml
make[5]: *** [OpenRaster-00.png] Error 255
./OpenRaster-01.xml
make[5]: *** [OpenRaster-01.png] Error 255
./OpenRaster-04.xml
make[5]: *** [OpenRaster-04.png] Error 255
make[4]: *** [images.stamp] Error 2
make[4]: Leaving directory `/var/tmp/portage/media-libs/gegl-0.1.0-r1/work/gegl-0.1.0/docs/gallery'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/media-libs/gegl-0.1.0-r1/work/gegl-0.1.0/docs/gallery'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/media-libs/gegl-0.1.0-r1/work/gegl-0.1.0/docs'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-libs/gegl-0.1.0-r1/work/gegl-0.1.0'
make: *** [all] Error 2
 * ERROR: media-libs/gegl-0.1.0-r1 failed:
 *   emake failed
 *
 * Call stack:
 *     ebuild.sh, line   54:  Called src_compile
 *   environment, line 2844:  Called _eapi2_src_compile
 *     ebuild.sh, line  646:  Called die
 * The specific snippet of code:
 *              emake || die "emake failed"
 *
 * If you need support, post the output of 'emerge --info =media-libs/gegl-0.1.0-r1',
 * the complete build log and the output of 'emerge -pqv =media-libs/gegl-0.1.0-r1'.
 * The complete build log is located at '/var/tmp/portage/media-libs/gegl-0.1.0-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-libs/gegl-0.1.0-r1/temp/environment'.
 * S: '/var/tmp/portage/media-libs/gegl-0.1.0-r1/work/gegl-0.1.0'

emerge --info:

Portage 2.1.7.16 (default/linux/amd64/10.0, gcc-4.4.2, glibc-2.11-r1, 2.6.32-gentoo-r2 x86_64)
=================================================================                             
System uname: Linux-2.6.32-gentoo-r2-x86_64-Intel-R-_Core-TM-2_CPU_6700_@_2.66GHz-with-gentoo-2.0.1
Timestamp of tree: Sun, 24 Jan 2010 13:30:01 +0000                                                 
app-shells/bash:     4.0_p37                                                                       
dev-java/java-config: 2.1.10                                                                       
dev-lang/python:     2.6.4, 3.1.1-r1                                                               
dev-util/cmake:      2.8.0                                                                         
sys-apps/baselayout: 2.0.1                                                                         
sys-apps/openrc:     0.6.0-r1                                                                      
sys-apps/sandbox:    2.2                                                                           
sys-devel/autoconf:  2.13, 2.65                                                                    
sys-devel/automake:  1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1                                            
sys-devel/binutils:  2.20                                                                          
sys-devel/gcc-config: 1.4.1                                                                        
sys-devel/libtool:   2.2.6b                                                                        
virtual/os-headers:  2.6.30-r1                                                                     
ACCEPT_KEYWORDS="amd64 ~amd64"                                                                     
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 sun-bcla-java-vm skype-eula"                                 
CBUILD="x86_64-pc-linux-gnu"                                                                       
CFLAGS="-march=core2 -O2 -pipe"                                                                    
CHOST="x86_64-pc-linux-gnu"                                                                        
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"                         
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"                                                                      
CXXFLAGS="-march=core2 -O2 -pipe"                                                                                       
DISTDIR="/tmp"                                                                                                          
EMERGE_DEFAULT_OPTS="--nospinner --with-bdeps y --alphabetical"                                                         
FEATURES="assume-digests distlocks fixpackages news protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox"                                                                                           
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"                   
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en"
MAKEOPTS="-j2"
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/layman/oss-overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac accessibility acpi adns akonadi alisp alsa amd64 amr amrnb amrwb archive assistant asyncns audiofile bash-completion bios bluetooth boost branding bugzilla bzip2 cairo calendar captury cdda cdinstall cdio cgraph chm cli consolekit context cracklib crypt css curl cxx cyrillic dbus dhcp dirac djbfft djvu doc dri dts dvd dvdr dvdread dvipdfm dynamic eap-tls ebook embedded emovix encode exif extra extrafilters extras faac faad fam fame fbcondecor ffmpeg fftw firefox fits flac fluidsynth fontconfig fontforge fpx fts3 games gcrypt gd gdbm gif git glib glitz gnuplot gnutls gpg graphics graphviz gs gtk hal hdri hpn htmlhandbook humanities hyperestraier ical iconv icu id3tag idea idn imagemagick inotify ipv6 ithreads jadetex java java6 javascript jbig jce jingle joystick jpeg jpeg2k jsapi kde kig-scripting kipi konqueror kpathsea ktts ladspa lame latex latex3 lcms libass libedit libffi libgcrypt libnotify libssh2 libtiger libwww lm_sensors lzo mad matroska mbrola mem-scramble mercurial mjpeg mmap mmx mmxext mng mod modplug modules mp3 mp4 mpeg mtp mudflap multilib musepack music mysql ncurses network network-cron nls nptl nptlonly nsplugin nuv odbc offensive ogg omega openal openexr opengl openmp optimized-qmake oscar oss oss4 pam pango paste64 pcre pdf pg-intdatetime phonon pic plasma plotutils png policykit portaudio postgres ppds pppd pstricks pth publishers pulseaudio python python3 qemu qt3support qt4 qtscript quicktime rdesktop readline redland reflection rle rss rtsp ruby sasl schroedinger science sdl sdl-image semantic-desktop session slang smp sndfile sound soundtouch speex spell spl sql sqlite sqlite3 sse sse2 ssl ssse3 startup-notification stream subversion svg symlink sysfs theora threads tidy tiff toolbar truetype udev unicode usb utempter vamp vcd vde vdpau vlc vlm vnc vorbis vorbis-psy wavpack webkit wideband wifi wmf x264 xcb xcomposite xetex xforms xml xmlpatterns xmp xorg xscreensaver xulrunner xv xvid xvmc zip zlib zrtp" ALSA_CARDS="virtuoso" 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 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="none" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" RUBY_TARGETS="ruby18" SANE_BACKENDS="none" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Andrew Savchenko gentoo-dev 2010-01-25 09:12:20 UTC
Same here:

$ emerge --info
Portage 2.2_rc61 (default/linux/x86/10.0, gcc-4.4.2, glibc-2.11-r1, 2.6.31.5-yoruichi i686)
=================================================================
System uname: Linux-2.6.31.5-yoruichi-i686-AMD_Athlon-tm-_XP_3200+-with-gentoo-2.0.1
Timestamp of tree: Sat, 23 Jan 2010 22:15:01 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4, 3.1.1-r1
dev-python/pycrypto: 2.1.0
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.0
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.4_p6-r1, 1.6.3-r1, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -m32 --param l1-cache-line-size=64 --param l1-cache-size=64 --param l2-cache-size=512 -O2 -funswitch-loops -fpredictive-commoning -fgcse-after-reload -fomit-frame-pointer -ftree-loop-linear -floop-interchange -floop-strip-mine -mfpmath=sse -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/bind /var/lib/hsqldb"
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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=athlon-xp -m32 --param l1-cache-line-size=64 --param l1-cache-size=64 --param l2-cache-size=512 -O2 -funswitch-loops -fpredictive-commoning -fgcse-after-reload -fomit-frame-pointer -ftree-loop-linear -floop-interchange -floop-strip-mine -mfpmath=sse -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --with-bdeps y"
FEATURES="assume-digests ccache collision-protect distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
FFLAGS="-march=athlon-xp -m32 --param l1-cache-line-size=64 --param l1-cache-size=64 --param l2-cache-size=512 -O2 -funswitch-loops -fpredictive-commoning -fgcse-after-reload -fomit-frame-pointer -ftree-loop-linear -floop-interchange -floop-strip-mine -mfpmath=sse -pipe"
GENTOO_MIRRORS=" ftp://orionis/distributions/1Linux/gentoo/portage ftp://ftp.chg.ru/pub/Linux/gentoo http://mirror.yandex.ru/gentoo-distfiles  ftp://ftp.corbina.net/pub/Linux/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo http://mirror.netcologne.de/gentoo"
LANG="en_US.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="ru en ja"
MAKEOPTS="-j4"
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/layman/science /usr/local/portage/layman/java-overlay /usr/local/portage/layman/sunrise /usr/local/portage/layman/x11 /usr/local/portage/layman/kde-sunset /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac aalib acl acpi adns afs aften aim aio alsa amr amrnb amrwb ao artworkextra audiofile bash-completion bcmath bidi binfilter blas bluetooth branding bzip2 cairo calendar canna caps ccache cddb cdinstall cdparanoia cdr chasen chm cjk cleartype cli clisp colordiff cracklib crypt cscope css ctype cups curl curlwrappers cvs cxx cyrillic dbus device-mapper dga dhcp dia dirac directfb djvu dmx doc dri dts dv dvd dvdr dvdread dvi ebook editor elf encode enscript ermt examples exif expat faac faad fbcon festival ffmpeg fftw firefox flac fontconfig foomaticdb fortran fpx freetds freetype ftp gallium gcj gcrypt gd gdbm geoip ggi gif gimp ginac git glibc-omitfp glitz glut gmp gnuplot gnutls gpgme gphoto2 gpm gps graphite graphviz gs gsl gsm gtk gucharmap h224 h281 h323 hdf5 hdri iconv icq icu id3tag idn imagemagick imap imlib immqt-bc inkjar ipod iproute2 ipv6 jabber jack jadetex java6 javascript jbig jingle jpeg jpeg2k kdehiddenvisibility kerberos keyscrub kpathsea kqemu ladspa lame lapack lash latex lcms libcaca libnotify libsamplerate libwww lm_sensors logrotate lzma lzo mad maildir mailwrapper matroska md5sum mhash mikmod mime mjpeg mmap mmx mng modplug modules mp3 mpeg mplayer msn mudflap musepack musicbrainz mysql mysqli nas ncurses netcdf network network-cron nls nntp nocd nodrm nptlonly nsplugin nuv objc objc++ offensive ogg openal opencore-amr openexr opengl optimized-qmake oscar otr pam pango pcntl pcre pda pdf perl pgf plotutils png pop portaudio posix postproc postscript ppds pppd pronounce pstricks qt3 qt3support qt4 quicktime raw rdesktop readline recode reflection restrict-javascript rle rrdtool samba scanner schroedinger sdl session sharedmem shorten sip sipim slang slp smi smime sms smtp sndfile sockets socks5 soundtouch sox sparse speex spell spl sqlite sqlite3 srtp sse ssl startup-notification strong-optimization subversion supernodal svg svga sysfs syslog szip t1lib taglib tcpd theora tiff timezone timidity tordns truetype twolame type3 unicode usb utempter v4l v4l2 vamp vcd videos vim vim-syntax vnc vorbis wav wavpack wifi win32codecs wireshark wmf x264 x86 xattr xcb xface xft xinerama xorg xosd xpm xprint xrandr xscreensaver xv xvid yahoo yaz ziffy zlib" ALSA_CARDS="intel8x0" 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="authz_host dir mime" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru en ja" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa nouveau"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 georgi 2010-01-25 13:02:59 UTC
Was the bug renamed in error? Removing the "gegl" part will make it harder to find and will probably result in duplicates.
Comment 3 Harald van Dijk (RETIRED) gentoo-dev 2010-01-25 20:56:45 UTC
Right, the package name should stay in the subject.
Comment 4 Gary E. Miller 2010-02-19 23:49:03 UTC
Problem persists in media-libs/gegl-0.1.2
Comment 5 Peter Levine 2010-02-21 09:16:36 UTC
Created attachment 220577 [details, diff]
Patch to preload nvidia's libGL.so

This bug is discussed at :
from http://blog.blubinc.net/2010/01/10/step-by-step-geglbabl-development-environment

It's a problem with nvidia's library dynamically altering references to malloc.

This patch fixes the problem during the build and, though the bug is still there, it hasn't crashed after testing it from the command line.
Comment 6 Howard B. Golden 2010-05-15 22:27:02 UTC
(In reply to comment #5)
> Created an attachment (id=220577) [details]
> Patch to preload nvidia's libGL.so

This patch works for me. Thanks!
Comment 7 georgi 2010-12-07 20:18:09 UTC
I no longer use the "doc" flag. Could someone confirm if this has been fixed or not?
Comment 8 Andrew Savchenko gentoo-dev 2010-12-07 23:30:04 UTC
(In reply to comment #7)
> I no longer use the "doc" flag. Could someone confirm if this has been fixed or
> not?

Yes, it still fails (gegl-0.1.2, nvidia-drivers-256.53). And this is not the only problem caused by nvidia's alternation of system calls: see bug 336837.

It was said that 260.19.26 fixes this problem, but these are beta drivers, they are masked now and I have not tested them yet.
Comment 9 Keith Amidon 2010-12-15 13:36:58 UTC
I can add that this problem is still present with gegl-0.1.2 and nvidia-drivers-260.19.29.  I chose to solve the problem for myself right now with USE=-doc since I don't have a need for the docs right now.  I did not try the patch provided in this bug to see if it resolved my problems but suspect that it would.
Comment 10 Hanno Böck gentoo-dev 2011-02-15 16:04:18 UTC
Definitely a bug in nvidia-drivers and not in gegl
Comment 11 Stephan Friedrichs 2011-02-16 13:25:13 UTC
Bug is still around in gegl-0.1.6
Comment 12 Stephan Friedrichs 2011-02-16 13:57:27 UTC
BTW: A workaround other than disabling the doc useflag is to temporarily disable nvidia as system-wide opengl interface:

eselect opengl set xorg-x11
emerge gegl
eselect opengl set nvidia
Comment 13 Martin von Gagern 2011-04-03 10:25:51 UTC
Did some investigation of this in bug 355731 comment 16 through 20. Thanks to zimous for the cross reference. Good to know it's not just me.

Notice that the issue might affect runtime behaviour as well, so the preload approach is a (partial) workaround but probably no proper fix.

(In reply to comment #5)
> It's a problem with nvidia's library dynamically altering references to malloc.

That sounds as if the driver were deliberately replacing the malloc infrastructure in some way. I'd rather assume the driver is accidentially writing to some memory that actually belongs to libbabl, and incidentially holds their malloc function reference. The assembly code indicates a deliberate write to a single address, not some kind of global memory search and replace. I assume that single address just isn't what it should be, for reasons unknown.
Comment 14 Tomáš Chvátal (RETIRED) gentoo-dev 2011-04-04 19:22:42 UTC
Due to serious issues with the doc useflag it was dropped. If somebody is interested in doc features in gegl they need to open feature request with relyable working approach for them.
Comment 15 Doug Goldstein (RETIRED) gentoo-dev 2012-06-19 04:29:05 UTC
This isn't in the tree anymore so.. closing.