When using crossdev-0.9.6 when trying to compile a sh4 cross compiler using crossdev -v -b --stage3 --libc 0.9.8 --target sh4-gentoo-linux-uclibc (C++ does not work, which is another problem), after fixing the linux header compilation (that's a bug I filed yesterday), the resulting startup files for C programs like crt1.o are in a place which is not searched for by gcc: harald@play1$ sh4-gentoo-linux-uclibc-gcc -print-search-dirs install: /usr/lib/gcc/sh4-gentoo-linux-uclibc/4.1.1/ programs: =/usr/libexec/gcc/sh4-gentoo-linux-uclibc/4.1.1/:/usr/libexec/gcc/sh4-gentoo-linux-uclibc/4.1.1/:/usr/libexec/gcc/sh4-gentoo-linux-uclibc/:/usr/lib/gcc/sh4-gentoo-linux-uclibc/4.1.1/:/usr/lib/gcc/sh4-gentoo-linux-uclibc/:/usr/libexec/gcc/sh4-gentoo-linux-uclibc/4.1.1/:/usr/libexec/gcc/sh4-gentoo-linux-uclibc/:/usr/lib/gcc/sh4-gentoo-linux-uclibc/4.1.1/:/usr/lib/gcc/sh4-gentoo-linux-uclibc/:/usr/lib/gcc/sh4-gentoo-linux-uclibc/4.1.1/../../../../sh4-gentoo-linux-uclibc/bin/sh4-gentoo-linux-uclibc/4.1.1/:/usr/lib/gcc/sh4-gentoo-linux-uclibc/4.1.1/../../../../sh4-gentoo-linux-uclibc/bin/ libraries: =/usr/lib/gcc/sh4-gentoo-linux-uclibc/4.1.1/:/usr/lib/gcc/sh4-gentoo-linux-uclibc/4.1.1/:/usr/lib/gcc/sh4-gentoo-linux-uclibc/4.1.1/../../../../sh4-gentoo-linux-uclibc/lib/sh4-gentoo-linux-uclibc/4.1.1/:/usr/lib/gcc/sh4-gentoo-linux-uclibc/4.1.1/../../../../sh4-gentoo-linux-uclibc/lib/ When trying to compile something, the linker complains about crt1.o not being found. Because it's somewhere else: harald@play1$ locate crt1.o /usr/lib/Mcrt1.o /usr/lib/gcrt1.o /usr/lib/crt1.o /usr/lib/Scrt1.o /usr/sh4-gentoo-linux-uclibc/usr/lib/Scrt1.o /usr/sh4-gentoo-linux-uclibc/usr/lib/crt1.o Workaround: When moving (or symbolic linking) the object code files from /usr/sh4-gentoo-linux-uclibc/usr/lib/ to /usr/libexec/gcc/sh4-gentoo-linux-uclibc/4.1.1/ then all is well. emerge --info says: play1 ~ # emerge --info Portage 2.1.1_rc1-r2 (default-linux/x86/2006.0, gcc-3.4.6/vanilla, glibc-2.4-r3, 2.6.16.26-xen i686) ================================================================= System uname: 2.6.16.26-xen i686 VIA Nehemiah Gentoo Base System version 1.12.1 Last Sync: Thu, 31 Aug 2006 14:30:01 +0000 app-admin/eselect-compiler: 2.0.0_rc2-r1 dev-lang/python: 2.4.3-r1 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 sys-devel/gcc-config: 1.3.13-r3 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r5 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=i686 -mtune=pentium2 -mno-tls-direct-seg-refs -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -march=i686 -mtune=pentium2 -mno-tls-direct-seg-refs -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig buildpkg distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://mirror.gentoo.gr.jp ftp://ftp.ecc.u-tokyo.ac.jp/GENTOO ftp://gg3.net/pub/linux/gentoo/ http://ftp.gentoo.or.kr/" LINGUAS="en" 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="x86 X acl acpi alsa apache2 apm avi berkdb bitmap-fonts canna cjk cli crypt cups dlloader dri dvdr eds elibc_glibc emboss encode esd foomaticdb gdbm gif gpm gstreamer gtk gtk2 imlib input_devices_evdev input_devices_joystick input_devices_keyboard input_devices_mouse input_devices_vmmouse ipv6 isdnlog java jpeg kde kernel_linux libg++ libwww linguas_en mad mikmod mmx motif mp3 mpeg ncurses nls nptl ogg opengl oss pam pcre pdflib perl png postgres ppds pppd python qt3 qt4 quicktime readline reflection samba sdl session spell spl sse ssl sysfs truetype truetype-fonts type1-fonts udev unicode userland_GNU video_cards_apm video_cards_ati video_cards_dummy video_cards_fbdev video_cards_i810 video_cards_neomagic video_cards_nv video_cards_nvidia video_cards_savage video_cards_sisusb video_cards_vesa video_cards_vga video_cards_via video_cards_vmware vorbis xml xmms xorg xv zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
no, they are right where they are supposed to be