Crossdev 0.9-r3 fails while running the configure script for glibc. Reproducible: Always Steps to Reproduce: 1. crossdev --target sparc 2. 3. Actual Results: checking for a BSD-compatible install... /bin/install -c checking whether ln -s works... yes checking for sparc-pc-linux-gnu-gcc... sparc-pc-linux-gnu-gcc checking for suffix of object files... configure: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. Expected Results: A working toolchain. Portage 2.0.51.19 (default-linux/x86/2004.2, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r6 i686) ================================================================= System uname: 2.6.10-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 7 2005, 18:34:49) ] distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] dev-lang/python: 2.3.4-r1 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.4_p6, 1.5, 1.6.3, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r1, 2.15.92.0.2-r4 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer -mfpmath=sse -msse2 -mmmx " CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/ 3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/t exmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/pla tex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="ftp://trumpetti.atm.tut.fi/gentoo/ http://ftp.rhnet.is/pub/gento o/" LANG="en_US" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X Xaw3d aac acpi acpi4linux alsa apache1 apache2 avi berkdb bitmap-font s bluetooth bzip2 ccache cddb cdparanoia cdr chroot codecs cups curl divx4linux djbfft dvb dvd dvdr dvdread emacs encode evo fbcon freetype gmail gnome gtk gtk2 hbci i8x0 icq ieee1394 imagemagick imap imlib2 irda java javascript jikes jpeg jpeg2k live mad maildir matroska mmx mmx2 monkey moznocompose moznoirc moznomail mp3 mpeg mpeg2 mpeg4 mplayer multislot multitarget mysql ncurses net network no drm offensive ogg oggvorbis opengl oscar pam pda php png ppds pthreads python qu icktime real sasl sdl sse sse2 ssl tcltk tetex tga theora tiff truetype truetype -fonts type1 type1-fonts usb v4l v4l2 xml xml2 xmms xosd xv xvid zlib" Unset: ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS
Created attachment 52853 [details] glibc log from crossdev script
Created attachment 52854 [details] info log from crossdev script
Please provide the config.log. Also, pleasse try glibc-2.3.4.20050125-r1 I don't use crossdev... I just do it manually using cross-* categories, and I've got a sparc cross toolchain.
Created attachment 52902 [details] the config.log for glibc
I get the same error using the glibc version you asked me to try.
you need to have ~x86 on your host system's toolchain
Updated my host-system toolchain to ~x86, but I still get the same error.
hmm... well this looks crossdev related... my advice, just don't use crossdev... follow Spanky's guide here: http://dev.gentoo.org/~vapier/CROSS-COMPILE-HOWTO I will be updating that guide with specific notes for multilib targets (and sparc is a bit tricky)... also, some of the weird hacks there (USE=arch, etc) aren't needed any more with more recent versions...
I followed the howto at http://dev.gentoo.org/~vapier/CROSS-COMPILE-HOWTO and got the same error while emerging glibc which means that this is not a crossdev-related bug at all, and that something else is wrong with my system.
please `rm -r /home/crossdev` and try again
The configure line is highly suspicious to me: ../configure --prefix=/home/crossdev/sparc --host=sparcv9-unknown-linux-gnu --build=i686-pc-linux-gnu --without-tls --without-__thread --enable-add-ons=linuxthreads --enable-clocale=gnu --enable-kernel=2.4.16 --without-gd --without-cvs --disable-profile --disable-debug --with-headers=/home/crossdev/sparc/include CC=sparc-unknown-linux-gnu-gcc -O2 -nostdlib -nostartfiles -mcpu=v9 -mtune=v9 -O2 -pipe build_alias=i686-pc-linux-gnu host_alias=sparcv9-unknown-linux-gnu --no-create --no-recursion What version of glibc are youu trying to build for the sparc target. I've only verified that 2.3.4.20050125-r1 works for the sparc target. Older versions won't work right because of CHOST mangling.
SpanKY: deleted /home/crossdev and tried again... still no go. Jeremy:The glibc version I'm trying to build is indeed 2.3.4.20050125-r1 I have no idea what to look for next since I virtually don't know anything about this cross toolchain sortathing.
ok, executing the following should give you a working crosscompiler. If not, pleasse check gcc-config and binutils-config. If that doesn't correct it, please Attatch the config.log for the failed emerge. emerge -v \=cross-sparc-unknown-linux-gnu/binutils-2.15.92.0.2-r2 USE=build emerge -v \=cross-sparc-unknown-linux-gnu/gcc-3.4.3.20050110 emerge -v \=cross-sparc-unknown-linux-gnu/linux-headers-2.6.10 emerge -v \=cross-sparc-unknown-linux-gnu/glibc-2.3.4.20050125-r1 emerge -v \=cross-sparc-unknown-linux-gnu/glibc-2.3.4.20050125-r1 emerge -v \=cross-sparc-unknown-linux-gnu/gcc-3.4.3.20050110
Created attachment 53058 [details] config log for glibc emerge -v \=cross-sparc-unknown-linux-gnu/glibc-2.3.4.20050125-r1 fails with the same error message as before.
Yep. It's from $(tc-arch) returning sparc for both sparc64 and sparc. This should now be fixed in cvs.