Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 85975 - crossdev-0.9.5 fails to build powerpc64-linux toolchain on amd64
Summary: crossdev-0.9.5 fails to build powerpc64-linux toolchain on amd64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: ppc64 architecture team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-19 23:17 UTC by Chris Parrott (RETIRED)
Modified: 2005-04-08 17:31 UTC (History)
1 user (show)

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


Attachments
logfile produced by crossdev (cross-powerpc64-unknown-linux-gnu-info.log,3.28 KB, text/plain)
2005-03-19 23:20 UTC, Chris Parrott (RETIRED)
Details
logfile produced by crossdev (cross-powerpc64-unknown-linux-gnu-gcc-stage1.log,368.99 KB, text/plain)
2005-03-19 23:21 UTC, Chris Parrott (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Parrott (RETIRED) gentoo-dev 2005-03-19 23:17:58 UTC
I run crossdev as follows:

crossdev --target powerpc64-unknown-linux-gnu

but it fails on cross-gcc-stage1.

In /etc/make.conf, PORTDIR_OVERLAY is set as follows:

PORTDIR_OVERLAY=/usr/local/portage


Reproducible: Always
Steps to Reproduce:
1. In /etc/make.conf, set PORTDIR_OVERLAY=/usr/local/portage
2. mkdir /usr/local/portage/cross-powerpc64-unknown-linux-gnu
3. cd /usr/local/portage/cross-powerpc64-unknown-linux-gnu
4. ln -s /usr/portage/sys-devel/binutils binutils
5. ln -s /usr/portage/sys-devel/gcc gcc
6. ln -s /usr/portage/sys-kernel/linux-headers linux-headers
7. ln -s /usr/portage/sys-libs/glibc glibc
8. crossdev --target powerpc64-unknown-linux-gnu

Actual Results:  
The following error message occurred:

orange ~ # crossdev --target powerpc64-unknown-linux-gnu
--------------------------------------------------------------------------------
 * Host Portage ARCH:     amd64
 * Target Portage ARCH:   ppc64
 * Target System:         powerpc64-unknown-linux-gnu
 * Stage:                 3 (C/C++ compiler)

 * binutils:              binutils-[latest]
 * gcc:                   gcc-[latest]
 * headers:               linux-headers-[latest]
 * libc:                  glibc-[latest]

 * PORTDIR_OVERLAY:       /usr/local/portage
 * PORT_LOGDIR:           /var/log/portage
 * PKGDIR:                /usr/portage/packages/cross/powerpc64-unknown-linux-gnu
 * PORTAGE_TMPDIR:        /var/tmp/cross/powerpc64-unknown-linux-gnu
  _  -  ?  -  _  -  ?  -  _  -  ?  -  _  -  ?  -  _  -  ?  -  _  -  ?  -  _  -  
 * Emerging cross-binutils ...                                            [ ok ]
 * Emerging cross-gcc-stage1 ...

 * gcc failed :(
 * If you file a bug, please attach the following logfiles:
 * /var/log/portage/cross-powerpc64-unknown-linux-gnu-info.log
 * /var/log/portage/cross-powerpc64-unknown-linux-gnu-gcc-stage1.log
orange ~ # 



emerge --info output:

orange ~ # emerge --info
Portage 2.0.51.19 (default-linux/amd64/2004.3, gcc-3.4.3,
glibc-2.3.4.20050125-r1, 2.6.11-gentoo-r3 x86_64)
=================================================================
System uname: 2.6.11-gentoo-r3 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.6.10
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Feb 17 2005, 08:11:17)]
dev-lang/python:     2.3.5
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r1, 2.15.92.0.2-r6
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.6.8.1-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-march=athlon64 -O3 -pipe -ffast-math -funit-at-a-time -ftracer
-fpeel-loops -funswitch-loops -fomit-frame-pointer -mfpmath=sse"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon64 -O3 -pipe -ffast-math -funit-at-a-time -ftracer
-fpeel-loops -funswitch-loops -fomit-frame-pointer -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox"
GENTOO_MIRRORS="http://mirrors.usu.edu/mirrors/gentoo http://gentoo.osuosl.org
http://www.ibiblio.org/pub/Linux/distributions/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="amd64 X aalib acpi alsa arts berkdb bitmap-fonts bonobo cdr crypt cups curl
directfb esd fam flac font-server fortran gdbm gif gnome gphoto2 gpm gstreamer
gtk gtkhtml guile imagemagick imlib ipv6 java jp2 jpeg kde ldap libwww lzw
lzw-tiff mad motif mozilla mp3 mysql ncurses nls oggvorbis opengl oss pam perl
png postgres python qt readline scanner sdl slang speex sqlite ssl tcltk tcpd
tetex tiff truetype truetype-fonts type1-fonts usb userlocales xml xml2 xmms xpm
xrandr xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS



I will attach the logfiles produced by crossdev shortly.
Comment 1 Chris Parrott (RETIRED) gentoo-dev 2005-03-19 23:20:38 UTC
Created attachment 53914 [details]
logfile produced by crossdev
Comment 2 Chris Parrott (RETIRED) gentoo-dev 2005-03-19 23:21:27 UTC
Created attachment 53915 [details]
logfile produced by crossdev
Comment 3 SpanKY gentoo-dev 2005-03-20 11:40:00 UTC
ppc64's toolchain is broken atm (gcc-3.4.3) for cross-compiling ... the fix didnt look easy so i didnt bother hacking on it

maybe someone on the ppc64 team will care to research it
Comment 4 SpanKY gentoo-dev 2005-04-07 22:44:26 UTC
seems the latest 3_4_branch has been fixed to work (gcc-3.4-20050401) ...
Comment 5 SpanKY gentoo-dev 2005-04-08 17:31:18 UTC
ok, Khem Raj came up with a much simpler fix on the crossgcc list based upon the hunks i had for ppc64 already:
http://sources.redhat.com/ml/crossgcc/2005-04/msg00097.html

this is now in portage and it fixed things for me:
root@vapier 0 gentoo # powerpc64-unknown-linux-gnu-gcc --version
powerpc64-unknown-linux-gnu-gcc (GCC) 3.4.3-20050110 (Gentoo Linux 3.4.3.20050110-r2, ssp-3.4.3.20050110-0, pie-8.7.7)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.