Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 44884 - sys-devel/crossdev fails to build any ppc arch toolchains.
Summary: sys-devel/crossdev fails to build any ppc arch toolchains.
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: High minor (vote)
Assignee: Joshua Kinard
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-16 12:31 UTC by postmodern
Modified: 2005-03-03 17:36 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description postmodern 2004-03-16 12:31:25 UTC
crossdev fails to compile ppc, ppc64 and ppc-eabi tool chains.

The following is received when compiling the ppc toolchain.

 * Copying /var/tmp/portage/gcc-3.3.3_pre20040215/work/gcc-3.3.3_pre20040215 -> /var/tmp/portage/crossdevbuild...
cp: cannot stat `/var/tmp/portage/gcc-3.3.3_pre20040215/work/gcc-3.3.3_pre20040215': No such file or directory

 * UnpackSource(): Failed to copy /var/tmp/portage/gcc-3.3.3_pre20040215/work/gcc-3.3.3_pre20040215 to /var/tmp/portage/crossdevbuild!

The following is received when compiling the ppc64 toolchain.

make[2]: Entering directory `/var/tmp/portage/crossdevbuild/gcc-3.3.3/buildboothere-ppc64/libiberty/testsuite'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/var/tmp/portage/crossdevbuild/gcc-3.3.3/buildboothere-ppc64/libiberty/testsuite'
make[1]: Leaving directory `/var/tmp/portage/crossdevbuild/gcc-3.3.3/buildboothere-ppc64/libiberty'
make[1]: Entering directory `/var/tmp/portage/crossdevbuild/gcc-3.3.3/buildboothere-ppc64/fastjar'
make[1]: *** No rule to make target `../gcc/doc/include/gcc-common.texi', needed by `fastjar.info'.  Stop.
make[1]: Leaving directory `/var/tmp/portage/crossdevbuild/gcc-3.3.3/buildboothere-ppc64/fastjar'
make: *** [all-fastjar] Error 2

 * InstallGccBootstrap(): Failed to compile!

The following is received when compiling the ppc-eabi toolchain.

 * Copying /var/tmp/portage/gcc-3.3.3_pre20040215/work/gcc-3.3.3_pre20040215 -> /var/tmp/portage/crossdevbuild...
cp: cannot stat `/var/tmp/portage/gcc-3.3.3_pre20040215/work/gcc-3.3.3_pre20040215': No such file or directory

 * UnpackSource(): Failed to copy /var/tmp/portage/gcc-3.3.3_pre20040215/work/gcc-3.3.3_pre20040215 to /var/tmp/portage/crossdevbuild!

Reproducible: Always
Steps to Reproduce:
1. crossdev --arch=ppc -u
2. crossdev --arch=ppc64 -u
3. crossdev --arch=ppc-eabi -u

Actual Results:  
errors.

Expected Results:  
successes.

emerge info
Portage 2.0.50-r1 (default-amd64-2004.0, gcc-3.3.3, glibc-2.3.2-r9, 2.6.3-gentoo-r2)
=================================================================
System uname: 2.6.3-gentoo-r2 x86_64 4
Gentoo Base System version 1.4.3.13
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.7.8
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-pipe -fomit-frame-pointer -O3"
CHOST="x86_64-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-pipe -fomit-frame-pointer -O3"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa amd64 apm arts avi berkdb cdr crypt encode esd foomaticdb gdbm gif
gnome gpm gtk gtk2 imlib jpeg libg++ libwww mikmod motif mozilla mpeg multilib
ncurses nls oggvorbis opengl oss pam pdflib perl png python quicktime readline
sdl slang spell ssl tcpd truetype xml2 xmms xv zlib"
Comment 1 Pieter Van den Abeele (RETIRED) gentoo-dev 2004-03-26 07:23:24 UTC
The gcc compiler shapshot you're using is definitely at fault (basic I/0 issues). I'd recommend using gcc-3.3.3.ebuild. But take into account it builds altivec code incorrectly. The latest snapshot gcc_pre (hammer branch) snapshot, does no longer have I/O issues and builds altivec correctly if you use -fno-strict-aliasing in your cflags. Please also note that on my machine at least the latest gcc_pre snapshot fails to compile when USE="java". gcc-3.3.3 has not got this "feature". 

Sorry to let you wait for a definite answer. It took a while debugging the problem (involved building and testing a large number of GRP sets)
Comment 2 Sumit Khanna 2004-09-10 20:48:07 UTC
I'm having the same problem building a regular ppc cross-compiler on my intel machiene to use on my old mac. 

#crossdev --arch=ppc -u
.
.
.
/var/tmp/portage/crossdevbuild/gcc-3.3.4/buildboothere-ppc/gcc/xgcc -B/var/tmp/portage/crossdevbuild/gcc-3.3.4/buildboothere-ppc/gcc/ -B/home/crossdev/ppc/powerpc-unknown-linux-gnu/bin/ -B/home/crossdev/ppc/powerpc-unknown-linux-gnu/lib/ -isystem /home/crossdev/ppc/powerpc-unknown-linux-gnu/include -O2  -DIN_GCC -DCROSS_COMPILE   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include  -fPIC -DHAVE_SYSLOG -g  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -D_LIBC_PROVIDES_SSP_ -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/config -I../../gcc/../include -fexceptions -c ../../gcc/unwind-c.c -o libgcc/./unwind-c.o
../../gcc/unwind-dw2.c: In function `uw_frame_state_for':
../../gcc/unwind-dw2.c:936: warning: implicit declaration of function `memset'
../../gcc/unwind-dw2.c:950: error: structure has no member named `regs'
../../gcc/unwind-dw2.c:950: error: structure has no member named `regs'
../../gcc/unwind-dw2.c:950: error: structure has no member named `regs'
../../gcc/unwind-dw2.c:950: error: structure has no member named `regs'
../../gcc/unwind-dw2.c: In function `uw_install_context_1':
../../gcc/unwind-dw2.c:1386: warning: implicit declaration of function `memcpy'
In file included from ../../gcc/unwind-c.c:27:
../../gcc/unwind-pe.h: In function `base_of_encoded_value':
../../gcc/unwind-pe.h:110: warning: implicit declaration of function `abort'
make[2]: *** [libgcc/./unwind-dw2.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/crossdevbuild/gcc-3.3.4/buildboothere-ppc/gcc'
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory `/var/tmp/portage/crossdevbuild/gcc-3.3.4/buildboothere-ppc/gcc'
make: *** [all-gcc] Error 2

 * InstallGccBootstrap(): Failed to compile!

Portage 2.0.50-r11 (default-x86-2004.2, gcc-3.3.4, glibc-2.3.3.20040420-r1, 2.6.8.1)
=================================================================
System uname: 2.6.8.1 i686 AMD Athlon(tm) MP 1900+
Gentoo Base System version 1.5.3
distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=athlon-mp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon-mp -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distcc sandbox"
GENTOO_MIRRORS="ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://gentoo.binarycompass.org http://mirror.datapipe.net/gentoo http://www.gigaload.org/gentoo.org/"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://bacchus.olympus/gentoo-portage"
USE="3dnow 3dnowex X aalib acpi aim alsa apm audiofile avi berkdb bitmap-fonts crypt cups divx4linux dvd encode esd fam flash foomaticdb ftp gdbm gif gnome gpm gstreamer gtk gtk2 gtkhtml imap imlib java jpeg kde libg++ libwww mad mikmod mmx motif mozilla mpeg msn ncurses nls oggvorbis opengl pam pda pdflib perl png python qt quicktime readline samba sdl slang spell sse ssl svg svga tcltk tcpd truetype x86 xml2 xmms xpm xprint xv xvid yahoo zlib"

Comment 3 Pieter Van den Abeele (RETIRED) gentoo-dev 2004-10-20 08:00:20 UTC
I'm having a hexa-xeon installed next sunday. Will have a look at this bug then.
Comment 4 SpanKY gentoo-dev 2005-03-03 17:36:43 UTC
<=crossdev-0.4 is no longer supported ... please upgrade to crossdev-0.9 and if
you're still having problems, re-open the bug and re-assign to toolchain@gentoo.org