| View previous topic :: View next topic |
| Author |
Message |
gcasillo l33t


Joined: 23 Sep 2003 Posts: 739 Location: Cincinnati, Ohio, USA
|
Posted: Fri Feb 20, 2009 5:15 pm Post subject: distcc problem: "... is incompatible with i386 output&q |
|
|
I have had an issue for a while now where I will update everything with an "emerge world," and some ebuilds fail to compile with an error like this one from sandbox-1.3.8:
| Code: | /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../../../../x86_64-pc-linux-gnu/bin/ld: i386:x86-64 architecture of input file `../libsbutil/.libs/libsbutil.a(debug.o)' is incompatible with i386 output
distcc[16052] ERROR: compile (null) on localhost failed |
Noting that its a distcc issue, if I retry the update after turning off distcc (FEATURES="-distcc"), the compile works and the emerge is carried out successfully.
I have two computers that contribute to each other with distcc when compiling things. One is a Core 2 Duo E6300, and the other is a Core 2 Quad Q6600. Here are their emerge --info, repsectively:
| Code: | Portage 2.1.6.7 (default/linux/amd64/2008.0, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.27-gentoo-r7 x86_64)
=================================================================
System uname: Linux-2.6.27-gentoo-r7-x86_64-Intel-R-_Core-TM-2_CPU_6300_@_1.86GHz-with-glibc2.2.5
Timestamp of tree: Fri, 20 Feb 2009 16:45:02 +0000
distcc 3.1 x86_64-pc-linux-gnu [enabled]
ccache version 2.4 [enabled]
app-shells/bash: 3.2_p48-r1
dev-lang/python: 2.5.4-r2
dev-util/ccache: 2.4-r8
dev-util/cmake: 2.6.2
sys-apps/baselayout: 2.0.0
sys-apps/openrc: 0.4.3-r1
sys-apps/sandbox: 1.3.7
sys-devel/autoconf: 2.13, 2.63
sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils: 2.19.1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool: 2.2.6a
virtual/os-headers: 2.6.28-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /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/udev/rules.d"
CXXFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distcc distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.mcs.anl.gov/pub/gentoo/ http://files.gentoo.org http://gentoo.osuosl.org/ http://gentoo.mirrors.tds.net/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j12"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="gzip"
PORTAGE_COMPRESS_FLAGS="-9"
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"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 apache2 audiofile bash-completion berkdb bzip2 cddb cdparanoia cdr clamav cli cracklib crypt ctype dri dvd dvdread encode ffmpeg filter flac gdbm gif iconv imagemagick imap imlib innodb ivtv joystick jpeg kde kdeenablefinal kdehiddenvisibility kdexdeltas libwww lirc lm_sensors logrotate mad maildir matroska midi mime mjpeg mmx mmxext mng modperl mp3 mpeg mudflap multilib mysql mysqli na_dd na_icons ncurses nfs nls nptl nptlonly nvidia ogg openal opengl openmp pcre perl php png python qt quicktime readline samba sdl spamassassin speex spl sse sse2 ssl ssse3 subversion svg sysfs tcpd theora tiff transcode truetype unicode unzip usb v4l v4l2 vhosts vim-syntax vorbis x264 xine xml xorg xpm 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="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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIRC_DEVICES="mceusb2" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY |
| Code: | Portage 2.1.6.7 (default/linux/amd64/2008.0, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.27-gentoo-r7 x86_64)
=================================================================
System uname: Linux-2.6.27-gentoo-r7-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-glibc2.2.5
Timestamp of tree: Fri, 20 Feb 2009 16:45:02 +0000
distcc 3.1 x86_64-pc-linux-gnu [enabled]
ccache version 2.4 [enabled]
app-shells/bash: 3.2_p48-r1
dev-lang/python: 2.5.4-r2
dev-util/ccache: 2.4-r8
dev-util/cmake: 2.6.2
sys-apps/baselayout: 2.0.0
sys-apps/openrc: 0.4.3-r1
sys-apps/sandbox: 1.3.7
sys-devel/autoconf: 2.13, 2.63
sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils: 2.19.1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool: 2.2.6a
virtual/os-headers: 2.6.28-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/mnt/nfs_portage/distfiles"
FEATURES="ccache distcc distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.mirrors.tds.net/gentoo ftp://gentoo.mirrors.tds.net/gentoo http://ftp.twaren.net/Linux/Gentoo/"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j12"
PKGDIR="/mnt/nfs_portage/packages"
PORTAGE_COMPRESS="gzip"
PORTAGE_COMPRESS_FLAGS="-9"
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="/mnt/nfs_portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amarok amd64 amd64codecs asf audiofile avi bash-completion berkdb bzip2 cdr cli cracklib crypt ctype cups dirac dlloader dri dts dv dvd dvdr dvdread encode ffmpeg flac foomaticdb fortran frontendonly ftp g77 gdbm gif iconv imap imlib innodb ip4100 joystick jpeg kde kdeenablefinal kdexdeltas lcms libg++ libwww live lm_sensors logrotate mad maildir matroska midi mime mmx mmxext mng mp3 mpeg mudflap multilib mysql ncurses nls nptl nptlonly nsplugin nvidia ogg oggvorbis openal opengl openmp pcre pdf perl png python qt qt3 quicktime readline samba sasl sdl session smp speex spl sse sse2 ssl ssse3 subversion svg sysfs syslog taglib tcpd theora tiff transcode truetype unicode usb v4l vhosts vorbis x264 xine xinerama xml xml2 xorg xv xvid xvmc zlib" ALSA_CARDS="emu10k1" 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="ptp2" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS |
What can I do to fix this "is compatible with i386 output" problem so I can use distcc? |
|
| Back to top |
|
 |
Malvineous Apprentice


Joined: 20 Oct 2006 Posts: 281 Location: Brisbane, Australia
|
Posted: Sat Feb 21, 2009 12:46 pm Post subject: |
|
|
Well I can't explain why, but it looks like you've got 32-bit and 64-bit libraries mixed up, and when you use distcc it's trying to compile a 32-bit program with 64-bit libraries.
I'm not sure what would cause this, but it might shed some light on it if you can find out how to log the commands that distcc is running on the remote PC. Then you should be able to run the problematic command by hand to reproduce the error, and that would almost certainly indicate what the issue is. |
|
| Back to top |
|
 |
Junkyboy n00b

Joined: 06 Jul 2002 Posts: 33
|
Posted: Sat Feb 21, 2009 5:41 pm Post subject: |
|
|
My guess is multilib. It will make your system build 32bit and 64bit libs. Back before I upgraded to distcc 3.x I used the wrapper work around so that x86 and x86_64 (and ppc for that matter) would cooperate nicely as documented here http://www.gentoo.org/doc/en/cross-compiling-distcc.xml. After the upgrade (which removed the wrapper) I was lazy and left it off. Shortly after I was getting the error you described. Again, being lazy, I just disabled distcc and it was fine..maybe I'll put the wrapper back.
Lazily yours,
Junkyboy |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|