Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 444350 - sys-devel/gcc[gcj,gtk]: build fails on multilib systems lacking gtk pkgs
Summary: sys-devel/gcc[gcj,gtk]: build fails on multilib systems lacking gtk pkgs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 444356 444400 444648 445038 (view as bug list)
Depends on: 238297
Blocks:
  Show dependency tree
 
Reported: 2012-11-22 19:09 UTC by David Kredba
Modified: 2012-12-02 06:16 UTC (History)
9 users (show)

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


Attachments
build.log.gz (build.log.gz,603.17 KB, application/x-gzip)
2012-11-22 19:10 UTC, David Kredba
Details
config.log (config.log,38.73 KB, text/plain)
2012-11-22 19:13 UTC, David Kredba
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Kredba 2012-11-22 19:09:15 UTC
The specific snippet of code:
 *       emake LDFLAGS="${LDFLAGS}" STAGE1_CFLAGS="${STAGE1_CFLAGS}" LIBPATH="${LIBPATH}" BOOT_CFLAGS="${BOOT_CFLAGS}" ${GCC_MAKE_TARGET} || die "emake failed with ${GCC_MAKE_TARGET}";

Reproducible: Always




emerge --info
Portage 2.2.0_alpha142 (default/linux/amd64/10.0/desktop, gcc-4.7.2, glibc-2.16.0, 3.6.6-gentoo-5d x86_64)
=================================================================
System uname: Linux-3.6.6-gentoo-5d-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9550_@_2.83GHz-with-gentoo-2.2
Timestamp of tree: Thu, 22 Nov 2012 16:30:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p39
dev-java/java-config:     2.1.12
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/cmake:           2.8.10.1
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.5
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.6, 1.12.5
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.7.2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -ggdb -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/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="-O2 -pipe -ggdb -march=native"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr"
FFLAGS="-O2 -pipe -ggdb -march=native"
GENTOO_MIRRORS="ftp://gentoo.mirror.web4u.cz/"
LANG="cs_CZ.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="cs en"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="echo"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="R X a52 aac acl acpi aften akonadi alsa amd64 amr aspell atlas attica berkdb blas bluetooth bluray boost branding bs2b bzip2 c++0x cairo caps cdda cddb cdio cdparanoia cdr cleartype cli consolekit cracklib crypt cups cvs cxx dbus djvu dot dri dts dv dvb dvd dvdr dvi egl emboss emf emovix encode exif faac fam ffmpeg fftw firefox fits flac fltk fluidsynth fontconfig fortran fpx freetds frei0r ftp gcj gd gdbm geoip ggi gif glut gmp gnuplot gnutls gpac gpm gps graphviz gsl gsm gstreamer gtk guile h323 handbook hdf hdf5 iconv icu id3tag idn ieee1394 imagemagick imlib indi ipv6 ithreads jadetex java javascript jbig jpeg jpeg2k kate kde kipi ladspa lame lapack latex lcms ldap libass libnotify libsamplerate lirc live lua lzma lzo mad matroska md5sum midi mjpeg mms mmx mmxext mng modplug modules motif mp3 mp4 mpeg mplayer msn mtp mudflap multilib multimedia musepack musicbrainz mysql nautilus ncurses netcdf netpbm nls nptl numpy nut objc objc++ objc-gc ocaml octave odbc ofa ogg ogm okular openal opencl openexr opengl openmp openssl optimized-qmake pam pango pch pcre pdf perl pgplot phonon plotutils plplot png pnm policykit postgres postproc postscript ppds pppd projectm pulseaudio pvr python qalculate qscintilla qt3support qt4 qthelp quad quicktime qwt radio rdesktop readline rle rss rtmp ruby samba sasl scanner scrobbler sdl semantic-desktop session slang smp sndfile sox speex spell sqlite srt sse sse2 sse4_1 ssl ssse3 startup-notification subversion svg swig szip t1lib taglib tcl tcpd telepathy teletext theora threads tidy tiff tk tools truetype twolame udev udisks unicode upower usb utils v4l vaapi vcd vdpau video vnc vorbis vpx wav wavpack wmf wxwidgets x264 xanim xattr xcb xft xine xinerama xml xosd xpm xps xscreensaver xv xvid xvmc 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="authn_core authz_core socache_shmcb unixd 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" APACHE2_MPMS="worker" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2 canon hp215 sony_dscf1 sony_dscf55" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" FFTOOLS="aviocat cws2fws ffeval graph2dot ismindex pktdumper qt-faststart trasher" 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" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer scripting-beanshell scripting-javascript nlpsolver #pdfimport" LINGUAS="cs en" LIRC_DEVICES="inputlirc pctv hauppauge hauppauge_dvb devinput" PHP_TARGETS="php5-4" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="nouveau 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 David Kredba 2012-11-22 19:10:59 UTC
Created attachment 330258 [details]
build.log.gz
Comment 2 David Kredba 2012-11-22 19:13:09 UTC
Created attachment 330260 [details]
config.log
Comment 3 David Kredba 2012-11-22 19:20:34 UTC
emerge -pqv =sys-devel/gcc-4.7.2
[ebuild   R   ] sys-devel/gcc-4.7.2  USE="cxx fortran gcj go graphite gtk mudflap (multilib) nls nptl objc objc++ objc-gc openmp (-altivec) -bootstrap -build -doc (-fixed-point) (-hardened) (-libssp) -multislot -nopie -nossp {-test} -vanilla (-nocxx%)"

Aha, I need revdep-rebuild I think:

/usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libgtk-x11-2.0.so when searching for -lgtk-x11-2.0
/usr/x86_64-pc-linux-gnu/bin/ld: cannot find -lgtk-x11-2.0
/usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libgdk-x11-2.0.so when searching for -lgdk-x11-2.0
/usr/x86_64-pc-linux-gnu/bin/ld: cannot find -lgdk-x11-2.0
/usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libatk-1.0.so when searching for -latk-1.0
/usr/x86_64-pc-linux-gnu/bin/ld: cannot find -latk-1.0
/usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libpangocairo-1.0.so when searching for -lpangocairo-1.0
/usr/x86_64-pc-linux-gnu/bin/ld: cannot find -lpangocairo-1.0
/usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libcairo.so when searching for -lcairo
/usr/x86_64-pc-linux-gnu/bin/ld: cannot find -lcairo
/usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libgdk_pixbuf-2.0.so when searching for -lgdk_pixbuf-2.0
/usr/x86_64-pc-linux-gnu/bin/ld: cannot find -lgdk_pixbuf-2.0
/usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libpangoft2-1.0.so when searching for -lpangoft2-1.0
/usr/x86_64-pc-linux-gnu/bin/ld: cannot find -lpangoft2-1.0
/usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libpango-1.0.so when searching for -lpango-1.0
/usr/x86_64-pc-linux-gnu/bin/ld: cannot find -lpango-1.0
collect2: error: ld returned 1 exit status
make[8]: *** [libgtkpeer.la] Error 1
make[8]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.7.2/work/build/x86_64-pc-linux-gnu/32/libjava/classpath/native/jni/gtk-peer'
Comment 4 David Kredba 2012-11-22 19:22:24 UTC
Aha, no, this will not help, because it fails in 32 bit subdir :-(.
Am I wrong?

Thank you in advance.
Comment 5 Torsten Kaiser 2012-11-22 20:34:46 UTC
After the removal of the nocxx-useflag ( http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/eclass/toolchain.eclass?r1=1.555&r2=1.556 ) emerge wanted to rebuild both gcc-4.6.3 on my unstable ~amd64 and gcc-4.5.4 on my stable amd64 system.
Both times it failed with the same message as comment #3

Searching for libgtk-x11-2.0.so on both systems only turned up the 64bit versions from x11-libs/gtk+, but no 32bit version.

It seems that after enabling 32bit libjava in http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/eclass/toolchain.eclass?r1=1.554&r2=1.555 all versions of sys-devel/gcc with useflag gcj enabled do not only need to depend on app-emulation/emul-linux-x86-xlibs, but also on app-emulation/emul-linux-x86-gtklibs.

After adding this packaged the ~amd64 system successfully rebuild gcc-4.6.3, the other system is still building, but it is already beyond the point it previously failed.

Just manually emerging app-emulation/emul-linux-x86-gtklibs should help you get gcc building again until someone can add this dependency.

HTH, Torsten
Comment 6 David Kredba 2012-11-23 05:32:54 UTC
Thank you.
Comment 8 SpanKY gentoo-dev 2012-11-25 03:43:39 UTC
*** Bug 444400 has been marked as a duplicate of this bug. ***
Comment 9 SpanKY gentoo-dev 2012-11-25 03:51:17 UTC
*** Bug 444356 has been marked as a duplicate of this bug. ***
Comment 10 Jeroen Roovers (RETIRED) gentoo-dev 2012-11-26 13:48:29 UTC
*** Bug 444648 has been marked as a duplicate of this bug. ***
Comment 11 Rafał Mużyło 2012-11-28 06:26:40 UTC
*** Bug 445038 has been marked as a duplicate of this bug. ***
Comment 12 Jeroen Roovers (RETIRED) gentoo-dev 2012-11-29 03:27:28 UTC
*** Bug 445112 has been marked as a duplicate of this bug. ***