Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 84405 - crosscompilation sparc toolchain won't emerge
Summary: crosscompilation sparc toolchain won't emerge
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-07 08:22 UTC by Martin Schönn
Modified: 2005-03-10 16:07 UTC (History)
2 users (show)

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


Attachments
glibc log from crossdev script (cross-sparc-pc-linux-gnu-glibc.log,4.68 KB, text/plain)
2005-03-07 08:24 UTC, Martin Schönn
Details
info log from crossdev script (cross-sparc-pc-linux-gnu-info.log,737 bytes, text/plain)
2005-03-07 08:24 UTC, Martin Schönn
Details
the config.log for glibc (config.log,72.32 KB, text/plain)
2005-03-08 00:57 UTC, Martin Schönn
Details
config log for glibc (config.log,10.01 KB, text/plain)
2005-03-10 01:07 UTC, Martin Schönn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Schönn 2005-03-07 08:22:04 UTC
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
Comment 1 Martin Schönn 2005-03-07 08:24:12 UTC
Created attachment 52853 [details]
glibc log from crossdev script
Comment 2 Martin Schönn 2005-03-07 08:24:42 UTC
Created attachment 52854 [details]
info log from crossdev script
Comment 3 Jeremy Huddleston (RETIRED) gentoo-dev 2005-03-07 17:01:07 UTC
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.
Comment 4 Martin Schönn 2005-03-08 00:57:16 UTC
Created attachment 52902 [details]
the config.log for glibc
Comment 5 Martin Schönn 2005-03-08 00:58:45 UTC
I get the same error using the glibc version you asked me to try.
Comment 6 SpanKY gentoo-dev 2005-03-08 15:50:35 UTC
you need to have ~x86 on your host system's toolchain
Comment 7 Martin Schönn 2005-03-09 01:44:15 UTC
Updated my host-system toolchain to ~x86, but I still get the same error.
Comment 8 Jeremy Huddleston (RETIRED) gentoo-dev 2005-03-09 03:54:07 UTC
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...
Comment 9 Martin Schönn 2005-03-09 07:59:36 UTC
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.
Comment 10 SpanKY gentoo-dev 2005-03-09 18:06:57 UTC
please `rm -r /home/crossdev` and try again
Comment 11 Jeremy Huddleston (RETIRED) gentoo-dev 2005-03-09 19:45:10 UTC
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.
Comment 12 Martin Schönn 2005-03-09 23:47:02 UTC
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.
Comment 13 Jeremy Huddleston (RETIRED) gentoo-dev 2005-03-10 00:05:54 UTC
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
Comment 14 Martin Schönn 2005-03-10 01:07:19 UTC
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.
Comment 15 Jeremy Huddleston (RETIRED) gentoo-dev 2005-03-10 16:07:33 UTC
Yep.  It's from $(tc-arch) returning sparc for both sparc64 and sparc.  This should now be fixed in cvs.