It happens on AMD64. i686 toolchain is emerged by "crossdev -v -t i686-pc-linux-gnu" command (glibc 2.4, gcc 4.1.1, binutils 2.17 etc). After that, i686 gcc is in wrong directory: gateway ~ # ls -la /usr/i686-pc-linux-gnu/ razem 5 drwxr-xr-x 4 root root 5 wrz 2 17:02 . drwxr-xr-x 15 root root 17 wrz 2 16:18 .. drwxr-xr-x 2 root root 45 wrz 2 17:02 lib lrwxrwxrwx 1 root root 11 wrz 2 17:02 sys-include -> usr/include drwxr-xr-x 4 root root 4 wrz 2 17:02 usr gateway ~ # ls -la /usr/x86_64-pc-linux-gnu/ razem 5 drwxr-xr-x 7 root root 7 wrz 2 16:06 . drwxr-xr-x 15 root root 17 wrz 2 16:18 .. drwxr-xr-x 2 root root 16 sie 19 16:31 bin drwxr-xr-x 3 root root 3 sie 18 22:43 binutils-bin drwxr-xr-x 3 root root 3 sie 19 10:00 gcc-bin drwxr-xr-x 5 root root 5 wrz 2 16:16 i686-pc-linux-gnu drwxr-xr-x 2 root root 14 sie 19 16:31 lib gateway ~ # ls -la /usr/x86_64-pc-linux-gnu/i686-pc-linux-gnu/ razem 3 drwxr-xr-x 5 root root 5 wrz 2 16:16 . drwxr-xr-x 7 root root 7 wrz 2 16:06 .. drwxr-xr-x 3 root root 3 wrz 2 16:06 binutils-bin drwxr-xr-x 3 root root 3 wrz 2 16:16 gcc-bin drwxr-xr-x 2 root root 12 wrz 2 16:06 lib Contents of /usr/x86_64-pc-linux-gnu/i686-pc-linux-gnu should be in /usr/i686-pc-linux-gnu emerge --info: Portage 2.1.1_rc1-r2 (default-linux/amd64/2006.1/server, gcc-4.1.1, glibc-2.4-r4, 2.6.17-emission7 x86_64) ================================================================= System uname: 2.6.17-emission7 x86_64 AMD Sempron(tm) Processor 3100+ Gentoo Base System version 1.12.4 Last Sync: Sat, 02 Sep 2006 10:59:01 +0000 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] app-admin/eselect-compiler: [Not Present] dev-lang/python: 2.4.3-r3 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.60 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.17.50.0.3 sys-devel/gcc-config: 1.3.13-r3 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.16 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=athlon64 -pipe -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -march=athlon64 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.prz.rzeszow.pl http://gentoo.zie.pg.gda.pl" LANG="pl_PL" LC_ALL="pl_PL" LDFLAGS="-Wl,-O1 -Wl,-s -Wl,--hash-style=both" LINGUAS="pl" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --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="amd64 acpi async atm bitmap-fonts bzip2 cli crosscompile crypt cups dhcp dlloader dri elibc_glibc fbcon foomaticdb ftp gd geoip glibc-omitfp gpm hashstyle input_devices_evdev input_devices_keyboard input_devices_mouse isdnlog ithreads jpeg kernel_linux libg++ linguas_pl lm_sensors madwifi mailwrapper mysql ncurses nls nptl nptlonly pam pcre perl pic png ppds pppd pppoa python readline reflection samba session snmp sockets spell spl ssl symlink tcpd threads tiff truetype truetype-fonts type1-fonts udev unicode usb userland_GNU userlocales video_cards_apm video_cards_ark video_cards_ati video_cards_chips video_cards_cirrus video_cards_cyrix video_cards_dummy video_cards_fbdev video_cards_glint video_cards_i128 video_cards_i810 video_cards_mga video_cards_neomagic video_cards_nv video_cards_rendition video_cards_s3 video_cards_s3virge video_cards_savage video_cards_siliconmotion video_cards_sis video_cards_sisusb video_cards_tdfx video_cards_tga video_cards_trident video_cards_tseng video_cards_v4l video_cards_vesa video_cards_vga video_cards_via video_cards_vmware video_cards_voodoo wifi xml xml2 xorg zip zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_RSYNC_EXTRA_OPTS
everything looks correct to me
Looks, but it isn't. This prevents distcc from working correctly. Earlier versions of crossdev installed whole i686 toolchain in /usr/i686-pc-linux-gnu, there were lib, usr, sys-include, binutils-bin and gcc-bin directories. Why the change? Why use two separate directories for i686 toolchain?
funny, i thought the Gentoo devs who wrote the cross-compiling code were the ones who decided the correct location go read Bug 144700
OK, that clarifies some things, but why /usr/CTARGET/lib /usr/CTARGET/usr haven't been moved to /usr/CHOST/CTARGET?