Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 342125 - dev-java/libreadline-java-0.8.0-r3 doesnt respect CC (and fails to build cross+distcc)
Summary: dev-java/libreadline-java-0.8.0-r3 doesnt respect CC (and fails to build cros...
Status: RESOLVED DUPLICATE of bug 296741
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-22 06:50 UTC by Barvinok
Modified: 2011-02-25 09:09 UTC (History)
1 user (show)

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


Attachments
libreadline-java0.8.0-r3.patch (libreadline-java0.8.0-r3.patch,629 bytes, patch)
2011-02-25 05:49 UTC, Dylan Smith
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Barvinok 2010-10-22 06:50:15 UTC
The box in concern is x86 and I also use dedicated amd64 box with distccd, crossdev and i686 toolchain emerged. Everything else builds and works well, EXCEPT dev-java/libreadline-java whose ebuild for some obscure reason calls just "gcc", which apparently causes remote distccd to call its native x86-64 gcc instead of i686, which then results in the following:

gcc -I /opt/sun-jdk-1.6.0.22/include -I /opt/sun-jdk-1.6.0.22/include/linux  -fPIC -DPOSIX -DJavaReadline \
                                           -c org_gnu_readline_Readline.c
gcc -shared -Wl,-O1 -Wl,--as-needed org_gnu_readline_Readline.o  -lreadline -lncurses -lhistory -o ../../libJavaReadline.so
/usr/lib/gcc/i686-pc-linux-gnu/4.4.3/../../../../i686-pc-linux-gnu/bin/ld: i386:x86-64 architecture of input file `org_gnu_readline_Readline.o' is incompatible with i386 output
/usr/lib/gcc/i686-pc-linux-gnu/4.4.3/../../../../i686-pc-linux-gnu/bin/ld: final link failed: Invalid operation

Here comes emerge --info:
====
Portage 2.1.8.3 (default/linux/x86/10.0, gcc-4.4.3, glibc-2.11.2-r0, 2.6.34-gentoo-r6 i686)
=================================================================
System uname: Linux-2.6.34-gentoo-r6-i686-Celeron_-Coppermine-with-gentoo-1.12.13
Timestamp of tree: Wed, 20 Oct 2010 19:00:20 +0000
distcc 3.1 i686-pc-linux-gnu [enabled]
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/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.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.3-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=pentium3 -O2 -pipe -mmmx -msse -fomit-frame-pointer -funroll-loops -findirect-inlining -ftree-switch-conversion"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=pentium3 -O2 -pipe -mmmx -msse -fomit-frame-pointer -funroll-loops -findirect-inlining -ftree-switch-conversion"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distcc distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
FFLAGS="-march=pentium3 -O2 -pipe -mmmx -msse -fomit-frame-pointer -funroll-loops -findirect-inlining -ftree-switch-conversion"
GENTOO_MIRRORS="http://gentoo.kiev.ua/ftp/ http://gentoo.iteam.net.ua/ http://gentoo.telcom.net.ua/"
LANG="uk_UA.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="uk"
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.gentoo.org/gentoo-portage"
USE="X aac acpi alsa artworkextra asf bash-completion berkdb branding bzip2 cairo cdr cgi community consolekit cracklib crypt curl custom-cflags custom-optimization dbus device-mapper dga dhcp djvu dnsdb dri dvd dvdr edit epoll exif extras fam fastcgi fdftk ffmpeg fftw flac force-cgi-redirect gd gdu gnome gnutls gpm gs gstreamer gtk hal hash hunspell iconv icu java jbig jpeg jpeg2k lame libnotify mmx mp3 mp4 mpeg mudflap multiuser mysql ncurses network nls nonfsv4 nptl ogg opengl optimization pam pcre png policykit python readline rle sdl session slang sound speex spl sqlite sse ssl strong-optimization subversion svg symlink syslog theora threads threadsafe tiff tools truetype unicode urandom utils vhosts vorbis webdav-neon wma wmf x264 x86 xattr xml xorg xpdf-headers xulrunner xvid youtube zlib" 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 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 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="uk" PHP_TARGETS="php-5.2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="r128" 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_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
====
Comment 1 Michael Weber (RETIRED) gentoo-dev 2010-10-26 16:11:41 UTC
just add toolchain-funcs and tc-getCC / tc-export CC
Comment 2 Dylan Smith 2011-02-25 05:49:52 UTC
Created attachment 263747 [details, diff]
libreadline-java0.8.0-r3.patch

Makefile patch to use proper gcc, should work for both portage-multilib and distcc.
Comment 3 Serkan Kaba (RETIRED) gentoo-dev 2011-02-25 09:09:20 UTC

*** This bug has been marked as a duplicate of bug 296741 ***