Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 126097 - crossdev-0.9.12 fails to cross-compile glibc-2.3.6-r3 for target ppc on host x86
Summary: crossdev-0.9.12 fails to cross-compile glibc-2.3.6-r3 for target ppc on host x86
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: 2006-03-13 17:01 UTC by Brian Tarricone
Modified: 2006-04-10 05:48 UTC (History)
0 users

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


Attachments
cross-powerpc-unknown-linux-gnu-glibc.log (cross-powerpc-unknown-linux-gnu-glibc.log,24.08 KB, text/plain)
2006-03-13 17:02 UTC, Brian Tarricone
Details
cross-powerpc-unknown-linux-gnu-info.log (cross-powerpc-unknown-linux-gnu-info.log,3.65 KB, text/plain)
2006-03-13 17:03 UTC, Brian Tarricone
Details
cross-powerpc-unknown-linux-gnu-glibc.log (cross-powerpc-unknown-linux-gnu-glibc.log,39.81 KB, text/plain)
2006-04-09 23:44 UTC, Brian Tarricone
Details
cross-powerpc-unknown-linux-gnu-linux-headers.log (cross-powerpc-unknown-linux-gnu-linux-headers.log,190.23 KB, text/plain)
2006-04-09 23:45 UTC, Brian Tarricone
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Brian Tarricone 2006-03-13 17:01:03 UTC
So I have an x86 box, and I wanted to build a cross-compiler for powerpc-unknown-linux-gnu so I could use distcc from my PowerBook, also running Gentoo.

I ran:

crossdev --g 3.4.5 -s4 --target powerpc-unknown-linux-gnu

binutils, gcc-stage1, and linux-headers compile and install cleanly.  glibc fails during configure with:

checking for .machine support... no
configure: error:
*** A binutils version which can handle
***    .machine "altivec"
*** is needed.

!!! ERROR: cross-powerpc-unknown-linux-gnu/glibc-2.3.6-r3 failed.
Call stack:
  ebuild.sh, line 1894:   Called dyn_compile
  ebuild.sh, line 941:   Called src_compile
  glibc-2.3.6-r3.ebuild, line 1240:   Called src_compile
  glibc-2.3.6-r3.ebuild, line 1251:   Called toolchain-glibc_src_compile
  glibc-2.3.6-r3.ebuild, line 257:   Called glibc_do_configure 'compile'

!!! failed to configure glibc
!!! If you need support, post the topmost build error, and the call stack if relevant.


I'll attach the log file after posting.

emerge --info:

Portage 2.1_pre4-r1 (default-linux/x86/2005.0, gcc-3.4.5, glibc-2.3.6-r3, 2.6.14-gentoo-r5 i686)
=================================================================
System uname: 2.6.14-gentoo-r5 i686 AMD Athlon(tm) processor
Gentoo Base System version 1.12.0_pre15
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.2 [disabled]
dev-lang/python:     2.2.3-r6, 2.3.5, 2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-tbird -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=athlon-tbird -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distcc distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.mirrors.easynews.com/linux/gentoo/ rsync://gentoo.mirrors.easynews.com/gentoo/"
LINGUAS="en"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowex 3dnowext X a52 aac acpi4linux alsa apache2 apm asf audiofile avi berkdb bitmap-fonts browserplugin bzip2 cdda cddb cdparanoia cpudetection crypt cups dbus dga dmx dri dts dv dvb dvd dvdr dvdread eds emboss encode fame fbcon ffmpeg flac flash foomaticdb fortran freetype gdbm geoip gif glibc-compat20 glitz gnome gnutls gpm gstreamer gtk gtk2 hal imlib inherit-graph innodb ipv6 javascript joystick jpeg kerberos krb4 libcaca libg++ libwww lzo mad matroska mbox mikmod mjpeg mmx mmxext mp3 mpeg musepack music ncurses network nls nptl nptlonly nsplugin nvidia ogg oggvorbis opengl oss pam pam_console pdflib perl pic png python qt quicktime readline real remix rtc sasl sdl session speex spell ssl startup-notification stencil-buffer subversion svg tcpd theora tiff truetype truetype-fonts type1-fonts ungif usb v4l2 vcd vhosts voice vorbis win32codecs wmf x264 xchattext xfs xml2 xosd xscreensaver xv xvid xvmc zlib elibc_glibc input_devices_evdev input_devices_keyboard input_devices_mouse kernel_linux linguas_en userland_GNU video_cards_nv video_cards_nvidia video_cards_vesa video_cards_vga"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS
Comment 1 Brian Tarricone 2006-03-13 17:02:23 UTC
Created attachment 82063 [details]
cross-powerpc-unknown-linux-gnu-glibc.log

crossdev glibc compile log.
Comment 2 Brian Tarricone 2006-03-13 17:03:53 UTC
Created attachment 82064 [details]
cross-powerpc-unknown-linux-gnu-info.log

Not sure if this is useful, but here's the crossdev info log as well.
Comment 3 SpanKY gentoo-dev 2006-03-14 06:10:26 UTC
what version of gcc-config do you have ?  do you have eselect-compiler installed ?
Comment 4 Brian Tarricone 2006-03-14 09:59:08 UTC
gcc-config is 1.3.13-r1.  Not using eselect-compiler.

On a side note, I have two other boxes, a laptop and an HTPC/PVR, both running Gentoo, reasonably up-to-date, both x86.  Last night I tried the same crossdev command on both boxes.  On the laptop, everything succeeded, and on the HTPC, it failed, but with a different error (the HTPC tried to compile glibc 2.4 instead for some reason).  I'll try and dig into the differences later.  For now, emerge --info on my laptop (the box that worked) is below.  Maybe you can identify something different that rings a bell.

Portage 2.1_pre4-r1 (default-linux/x86/2005.1, gcc-3.4.5, glibc-2.3.6-r2, 2.6.15-gentoo-r3 i686)
=================================================================
System uname: 2.6.15-gentoo-r3 i686 Intel(R) Pentium(R) 4 Mobile CPU 1.70GHz
Gentoo Base System version 1.12.0_pre15
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.4, 2.4.2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.espri.arizona.edu/gentoo/ http://gentoo.binarycompass.org http://gentoo.mirrors.easynews.com/linux/gentoo/"
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 a52 aac aalib acpi4linux alsa apm asf audiofile avi berkdb bindist bitmap-fonts browserplugin bzip2 cairo cddb cdparanoia cdr crypt cups curl dbus diretfb dmx dri dts dvd dvdread emboss encode exif fam fbcon ffmpeg flac flash foomaticdb fortran gd gdbm gif glibc-compat20 gnutls gpm gstreamer gtk gtk2 gtkhtml i8x0 imagemagick imlib ipv6 javascript jpeg libcaca libg++ libwww mad madwifi matroska mikmod mmap mmx mmxext mp3 mpeg music ncurses nls nptl nptlonly nsplugin ogg oggvorbis opengl oss pam pam_console pdflib perl pic png python quicktime readline real remix rtc samba sdl session sse sse2 ssl stencil-buffer subversion svg sysfs tcpd theora tiff truetype truetype-fonts type1-fonts ungif usb vcd voice vorbis win32codecs wmf wmfndmx xchattext xfs xml xml2 xscreensaver xv xvid xvmc zlib elibc_glibc kernel_linux userland_GNU video_cards_ati"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 5 Brian Tarricone 2006-03-14 11:15:53 UTC
Some more info.  On my laptop (crossdev successful), I have these versions:

[ebuild   R   ] cross-powerpc-unknown-linux-gnu/binutils-2.16.1-r1
[ebuild   R   ] cross-powerpc-unknown-linux-gnu/gcc-3.4.5
[ebuild   R   ] cross-powerpc-unknown-linux-gnu/linux-headers-2.6.11-r4
[ebuild   R   ] cross-powerpc-unknown-linux-gnu/glibc-2.3.6-r2

On my desktop (crossdev failed), I have these:

[ebuild   R   ] cross-powerpc-unknown-linux-gnu/binutils-2.16.1-r2
[ebuild   R   ] cross-powerpc-unknown-linux-gnu/gcc-3.4.5
[ebuild   R   ] cross-powerpc-unknown-linux-gnu/linux-headers-2.6.11-r4

On the desktop, it tries to install glibc-2.3.6-r3.  If I try to force 2.3.6-r2, I get the same error.

Next let's try downgrading binutils to 2.16.1-r1.  Nope, no good.
Comment 6 SpanKY gentoo-dev 2006-04-09 21:25:06 UTC
please sync up and make sure you have the latest gcc-config/binutils-config scripts

then run:
crossdev -C powerpc
crossdev --g 3.4.5 -s4 --target powerpc

ive fixed some bugs related to automatically running of gcc-config/binutils-config that could have caused this
Comment 7 Brian Tarricone 2006-04-09 23:44:10 UTC
Created attachment 84348 [details]
cross-powerpc-unknown-linux-gnu-glibc.log

Fails with a new error now. linux-headers for ppc are indeed installed.
Comment 8 Brian Tarricone 2006-04-09 23:45:48 UTC
Created attachment 84349 [details]
cross-powerpc-unknown-linux-gnu-linux-headers.log

Here's the log from the linux-headers crossdev install.  Seems like the headers are being installed to /usr/powerpc-unknown-linux-gnu/usr/include, which looks a little odd to me (maybe not).
Comment 9 Brian Tarricone 2006-04-09 23:46:08 UTC
reopening...
Comment 10 SpanKY gentoo-dev 2006-04-10 05:48:15 UTC
unrelated issue to the one originally posted here

see Bug 126166 about your new problems