Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 343283 - app-office/krita-2.2.2: fails with forced --as-needed
Summary: app-office/krita-2.2.2: fails with forced --as-needed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High QA (vote)
Assignee: Andreas K. Hüttel
URL: http://www.gentoo.org/proj/en/qa/asne...
Whiteboard:
Keywords:
Depends on:
Blocks: as-needed 340070
  Show dependency tree
 
Reported: 2010-10-29 19:09 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2010-11-04 10:20 UTC (History)
3 users (show)

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


Attachments
Build log (compressed) (krita-2.2.2:20101028-195849.log.gz,61.91 KB, application/gzip)
2010-10-29 19:11 UTC, Diego Elio Pettenò (RETIRED)
Details
Patch to link to x11 explicitly (krita-2.2.2-xlibs.patch,595 bytes, patch)
2010-11-03 22:47 UTC, Andreas K. Hüttel
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2010-10-29 19:09:52 UTC
I'm reporting this bug because the package in summary fails to build when forcing --as-needed on through spec files (check out http://blog.flameeyes.eu/2008/11/14/problems-and-mitigation-strategies-for-as-needed for details).

Please note that this bug _might_ apply to -Wl,--as-needed in LDFLAGS as well; in both cases it should be fixed. Also, if this is due to the package in question not respecting user-defined LDFLAGS, you should get to fix that too.

Check the attached build log.

Thanks,
Diego
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2010-10-29 19:11:33 UTC
Created attachment 252509 [details]
Build log (compressed)
Comment 2 Andreas K. Hüttel archtester gentoo-dev 2010-10-31 20:21:29 UTC
Hmm, strange. Cant reproduce here (x86_64-pc-linux-gnu-4.4.4-asneeded). Will start rebuilding the dependencies with forced asneeded...
Comment 3 Andreas K. Hüttel archtester gentoo-dev 2010-11-01 12:42:54 UTC
I'm sorry but I cannot reproduce this at all, even after "emerge -ea1 krita" with forced-as-needed gcc-4.4.4. (482 packages reemerged.)

Let's keep this bug open for a while as reminder, but I'll file the stable request for koffice anyway.

Here's my emerge --info for comparison:

huettel@pinacolada ~/Gentoo/gentoo-x86/app-office/krita $ emerge --info
Portage 2.1.9.23 (default/linux/amd64/10.0/desktop/kde, gcc-4.4.4-asneeded, glibc-2.11.2-r2, 2.6.34-gentoo-r12 x86_64)
=================================================================
System uname: Linux-2.6.34-gentoo-r12-x86_64-Intel-R-_Core-TM-_i7_CPU_920_@_2.67GHz-with-gentoo-1.12.13
Timestamp of tree: Sun, 31 Oct 2010 14:30:20 +0000
ccache version 2.4 [disabled]
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -ggdb"
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/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /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=native -O2 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs compress-build-logs distlocks fixlafiles fixpackages metadata-transfer news parallel-fetch protect-owned sandbox sfperms sign split-log splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.utf8@euro"
LDFLAGS="-Wl,--as-needed -Wl,-O1 -Wl,--hash-style=gnu"
LINGUAS="de en"
MAKEOPTS="-j9"                                                                                                                                                                                                           
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/kde /usr/local/portage/dilfridge-private /usr/local/portage/dilfridge /usr/local/portage/sci /usr/local/portage/vmware /usr/local/portage/lab-visa"                                  
SYNC="rsync://rsync.gentoo.org/gentoo-portage"                                                                                                                                                                           
USE="X a52 aac accessibility acpi akonadi alsa amd64 analogtv animgif archive arts audiofile bash-completion berkdb binfilter bittorrent bluetooth branding bzip2 cairo cdaudio cdda cddax cddb cdparanoia cdr chm cisco cli clucene cmake consolekit context corefonts cracklib crypt css cups cupsddk curl cvs cxx dbus divx djvu dri dts dv dvd dvdr dvipdfm ebook emboss encode enscript exif expat extra extras fam ffmpeg firefox flac fortran fping ftp gcj gd gdbm geolocation gif gimp git glitz gmp gnuplot gpg gpm gps graphics graphviz groupwise gs gtk hal handbook hbci hddtemp hybrid-auth iconv id3 id3tag idea imagemagick imap inotify jadetex java java6 jpeg jpeg2k kde kipi konqueror kontact kpathsea lame laptop lasi latex lcms ldap libnotify lirc lm_sensors luatex lzma mad math mbox mikmod mime mjpeg mmx mng modules mp3 mp4 mp4live mpeg mplayer mudflap multilib mysql ncurses nls notify nptl nptlonly nsplugin ogg opengl openmp pam pango pcre pdf perl phonon php plasma player plotutils png policykit ppds pppd publishers python qt3support qt4 quicktime qwt raptor rdesktop readline redland reports samba sasl science sdl semantic-desktop session sftp slp smp sndfile sql sqlite sse sse2 ssl ssse3 startup-notification subtitles subversion svg sysfs syslog tcpd theora tiff tordns truetype unicode usb v4l v4l2 vcd vdpau virtuoso vnc vorbis wav weather webdav webdav-neon webkit wmf wpd wv2 x264 xcb xcomposite xine xinerama xls xml xmp xorg xpm xscreensaver xulrunner xv xvid zip 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" COLLECTD_PLUGINS="df interface iptables irq load memory rrdtool swap syslog ipmi netlink" 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="de en" LIRC_DEVICES="devinput hauppauge hauppauge_dvb" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa" 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, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

huettel@pinacolada ~/Gentoo/gentoo-x86/app-office/krita $ 
Comment 4 Thomas Kahle (RETIRED) gentoo-dev 2010-11-03 15:35:24 UTC
I can't gunzip Diego's build log. It seems to be broken. 

I see linking failures here on x86 too with just the default LDFLAGS (including --as-needed) that any stable user has.  

This problem seems to be USE-conditional, I reproduced it with 

USE='-aqua -gmm -kdcraw openexr -opengl -pdf tiff' emerge -1v krita

The last bit of my log is 

[ 34%] Building CXX object krita/ui/CMakeFiles/kritaui.dir/widgets/kis_scratch_pad.o                                               
[ 34%] Building CXX object krita/ui/CMakeFiles/kritaui.dir/widgets/kis_tree_view_popup.o                                           
[ 34%] Building CXX object krita/ui/CMakeFiles/kritaui.dir/widgets/kis_slider_spin_box.o                                           
[ 34%] Building CXX object krita/ui/CMakeFiles/kritaui.dir/widgets/kis_wdg_generator.o                                             
[ 35%] Building CXX object krita/ui/CMakeFiles/kritaui.dir/widgets/squeezedcombobox.o                                              
Linking CXX shared library ../../lib/libkritaui.so                                                                                 
CMakeFiles/kritaui.dir/kis_canvas_resource_provider.o: In function `KisCanvasResourceProvider::getScreenProfile(int)':             
kis_canvas_resource_provider.cpp:(.text+0x167b): undefined reference to `XGetWindowProperty'
kis_canvas_resource_provider.cpp:(.text+0x178b): undefined reference to `XInternAtom'
collect2: ld returned 1 exit status
make[2]: *** [lib/libkritaui.so.7.0.0] Error 1
make[1]: *** [krita/ui/CMakeFiles/kritaui.dir/all] Error 2
make: *** [all] Error 2
 * ERROR: app-office/krita-2.2.2 failed:
 *   Make failed!

# emerge --info
Portage 2.1.8.3 (default/linux/x86/10.0/desktop, gcc-4.4.4, glibc-2.11.2-r3, 2.6.34-gentoo-r12 i686)
=================================================================
System uname: Linux-2.6.34-gentoo-r12-i686-Intel-R-_Core-TM-2_Duo_CPU_L7500_@_1.60GHz-with-gentoo-2.0.1
Timestamp of tree: Wed, 03 Nov 2010 07:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r103, 3.1.2-r4
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.3
sys-apps/sandbox:    2.3-r1
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.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="i686-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/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /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="/usr/portage/distfiles"
FEATURES="assume-digests ccache collision-protect distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms sign splitdebug strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.ds.karen.hj.se/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
LINGUAS="en en_US de ja es fr it"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=300"
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/sunrise /var/lib/layman/java-overlay /var/lib/layman/lisp /var/lib/layman/x11 /home/tom/tom-overlay /home/tom/gentoo/sci /home/tom/gentoo/sage-on-gentoo"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa anthy apache2 avahi bash-completion berkdb bluetooth branding bzip2 cairo cddb cdparanoia cdr cjk cli consolekit cracklib crypt ctype cups curl cxx daap dbus djvu dri dts dvd dvdr emacs encode exif expat fam fbcon ffmpeg firefox flac fortran ftp gd gdbm gif gimp glut gmp gnome gnome-keyring gnutls gpm graphviz gstreamer gtk guile hal hdaps iconv ieee1394 imagemagick imap imlib ipod ipv6 java javascript jpeg kde latex lcms ldap leim libnotify lm_sensors lzma m17n-lib mad migemo mikmod mime mmx mng modules mp3 mp4 mpeg mplayer mudflap mule musicbrainz mysql mysqli ncurses nls nptl nptlonly nsplugin obex ocaml ogg oggvorbis openal opengl openmp pam pango pcmcia pcre pdf perl php plasma plotutils png policykit ppds pppd python qt3support qt4 readline samba sasl sdl semantic-desktop session slang smartcard spell sqlite sqlite3 sse ssl startup-notification svg sysfs tcpd texlive theora threads tiff tk truetype uim unicode usb v4l v4l2 visualization vorbis wicd wifi win32codecs wxwindows x264 x86 xcb xcomposite xft xine xinerama xml xorg xulrunner xv xvid zeroconf zlib zsh-completion" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DVB_CARDS="usb-dib0700" 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="en en_US de ja es fr it" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" 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, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS



Comment 5 Andreas K. Hüttel archtester gentoo-dev 2010-11-03 15:43:14 UTC
(In reply to comment #4)
> I can't gunzip Diego's build log. It seems to be broken. 

It's just double-gzipped by error...

> 
> I see linking failures here on x86 too with just the default LDFLAGS (including
> --as-needed) that any stable user has.  
> 
> This problem seems to be USE-conditional, I reproduced it with 
> 
> USE='-aqua -gmm -kdcraw openexr -opengl -pdf tiff' emerge -1v krita
> 
> The last bit of my log is 
> 
> [ 34%] Building CXX object
> krita/ui/CMakeFiles/kritaui.dir/widgets/kis_scratch_pad.o                       
> [ 34%] Building CXX object
> krita/ui/CMakeFiles/kritaui.dir/widgets/kis_tree_view_popup.o                   
> [ 34%] Building CXX object
> krita/ui/CMakeFiles/kritaui.dir/widgets/kis_slider_spin_box.o                   
> [ 34%] Building CXX object
> krita/ui/CMakeFiles/kritaui.dir/widgets/kis_wdg_generator.o                     
> [ 35%] Building CXX object
> krita/ui/CMakeFiles/kritaui.dir/widgets/squeezedcombobox.o                      
> Linking CXX shared library ../../lib/libkritaui.so                              
> CMakeFiles/kritaui.dir/kis_canvas_resource_provider.o: In function
> `KisCanvasResourceProvider::getScreenProfile(int)':             
> kis_canvas_resource_provider.cpp:(.text+0x167b): undefined reference to
> `XGetWindowProperty'
> kis_canvas_resource_provider.cpp:(.text+0x178b): undefined reference to
> `XInternAtom'
> collect2: ld returned 1 exit status
> make[2]: *** [lib/libkritaui.so.7.0.0] Error 1
> make[1]: *** [krita/ui/CMakeFiles/kritaui.dir/all] Error 2
> make: *** [all] Error 2
>  * ERROR: app-office/krita-2.2.2 failed:
>  *   Make failed!
> 

OK, good (in a way), that looks the same as in Diego's case. I'll try again, give me a bit of time...
Comment 6 Andreas K. Hüttel archtester gentoo-dev 2010-11-03 22:47:55 UTC
Created attachment 253105 [details, diff]
Patch to link to x11 explicitly 

I still can't reproduce the problem(?!), but looking at the source I think I found what you are hitting.

Could you please try if adding the attached patch makes everything link as it should?
Comment 7 Thomas Kahle (RETIRED) gentoo-dev 2010-11-04 09:54:00 UTC
(In reply to comment #6)
> Created an attachment (id=253105) [details]
> Patch to link to x11 explicitly 
> 
> I still can't reproduce the problem(?!), but looking at the source I think I
> found what you are hitting.

Weird.  Did you try the exact same useflags? 
Anyhow, the patch fixes it, please add it and we can aim for x86 stable today :)

Comment 8 Andreas K. Hüttel archtester gentoo-dev 2010-11-04 10:20:22 UTC
Thanks a lot! Fixed!