Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 37222 - crossdev.sh --arch=ppc failed at compilation of gcc-bootstrap. Possibly because kernel-2.6
Summary: crossdev.sh --arch=ppc failed at compilation of gcc-bootstrap. Possibly becau...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-04 12:48 UTC by Eddy Mulyono
Modified: 2004-01-04 15:46 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 Eddy Mulyono 2004-01-04 12:48:32 UTC
I started to get curious because `crossdev.sh -p --arch=ppc` gave me an old linux-headers:

        sys-kernel/linux-headers-2.4.19-r1
        sys-devel/binutils-2.14.90.0.6-r6
        sys-devel/gcc-3.2.3-r3
        sys-libs/glibc-2.3.2-r3

whereas I have a 2.6 kernel installed.

root@shadowfax root # uname -a
Linux shadowfax 2.6.0-gentoo-r1 #1 Thu Jan 1 23:27:20 PST 2004 i686 AMD Athlon(tm) XP 1800+ AuthenticAMD GNU/Linux

The building fails at gcc-bootstrap:
/var/tmp/portage/crossdevbuild/gcc-3.2.3/buildboothere-ppc/gcc/xgcc -B/var/tmp/portage/crossdevbuild/gcc-3.2.3/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 -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/config -I../../gcc/../include -fexceptions -c ../../gcc/unwind-dw2-fde-glibc.c -o libgcc/./unwind-dw2-fde-glibc.o
In file included from ../../gcc/unwind-dw2.c:26:
../../gcc/unwind-pe.h: In function `size_of_encoded_value':
../../gcc/unwind-pe.h:76: warning: implicit declaration of function `abort'
../../gcc/unwind-dw2.c: In function `extract_cie_info':
../../gcc/unwind-dw2.c:226: warning: implicit declaration of function `strlen'
In file included from ../../gcc/unwind-dw2-fde-glibc.c:47:
../../gcc/unwind-pe.h: In function `size_of_encoded_value':
../../gcc/unwind-pe.h:76: warning: implicit declaration of function `abort'
../../gcc/unwind-dw2.c: In function `uw_frame_state_for':
../../gcc/unwind-dw2.c:902: warning: implicit declaration of function `memset'
../../gcc/unwind-dw2.c:913: warning: assignment from incompatible pointer type
../../gcc/unwind-dw2.c:913: structure has no member named `regs'
../../gcc/unwind-dw2.c:913: structure has no member named `regs'
../../gcc/unwind-dw2.c:913: structure has no member named `regs'
../../gcc/unwind-dw2.c:913: structure has no member named `regs'
../../gcc/unwind-dw2.c:913: structure has no member named `regs'
../../gcc/unwind-dw2.c:913: structure has no member named `regs'
../../gcc/unwind-dw2.c: In function `uw_install_context_1':
../../gcc/unwind-dw2.c:1323: warning: implicit declaration of function `memcpy'
In file included from ../../gcc/unwind-dw2-fde-glibc.c:298:
../../gcc/unwind-dw2-fde.c: In function `get_cie_encoding':
../../gcc/unwind-dw2-fde.c:271: warning: implicit declaration of function `strlen'
make[2]: *** [libgcc/./unwind-dw2.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/crossdevbuild/gcc-3.2.3/buildboothere-ppc/gcc'
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory `/var/tmp/portage/crossdevbuild/gcc-3.2.3/buildboothere-ppc/gcc'
make: *** [all-gcc] Error 2
 
 * gcc-bootstrap failed to compile!

I can give you my /var/cache/edb/world upon your request, but here are the ones that I think are important (CMIIW):
gentoo-dev-sources-2.6.0-r1
gcc-3.2.3-r3
glibc-2.3.2-r3
binutils-2.14.90.0.0.6-r6
linux-headers-2.4.19-r1 (installed by crossdev)
crossdev-0.3
automake-1.7.5-r2

Tell me if you need anything else.

Regards,

-Eddy

Reproducible: Always
Steps to Reproduce:
1. crossdev.sh --arch=ppc
2.
3.

Actual Results:  
* gcc-bootstrap failed to compile!

Expected Results:  
Give me a set of cross-compiler that I can use to compile mac binaries for a
Wallstreet PPC from this Athlon-XP x86 box.

Gentoo Base System version 1.4.3.10
Portage 2.0.49-r20 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.6.0-gentoo-r1)
=================================================================
System uname: 2.6.0-gentoo-r1 i686 AMD Athlon(tm) XP 1800+
distcc 2.11.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
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="/home/eddy/lab/portage"
SYNC="rsync://localhost/gentoo-portage"
USE="3dnow X aalib acpi alsa apache2 avi berkdb bidi bonobo cdr cjk crypt cups
dga directfb dvd emacs encode esd faad fbcon foomaticdb gdbm gif gnome gpm
gstreamer gtk gtk2 guile imagemagick imlib java joystick jpeg ldap leim libg++
libwww mad mikmod mmx motif mozilla moznoirc mozsvg mpeg ncurses nls offensive
oggvorbis opengl oss pam pda pdflib perl png python quicktime readline samba
scanner sdl slang spell sse ssl tcpd tiff truetype usb v4l x86 xml2 xmms xv zlib"
Comment 1 Eddy Mulyono 2004-01-04 13:44:43 UTC
Second attempt went smooth till GLibCCore (and still going). Maybe this is just one of those weird Portage days...

I'll keep you informed.

-Eddy
(still confused: why 2.4 headers if I have 2.6?)
Comment 2 Eddy Mulyono 2004-01-04 15:46:20 UTC
it works.
my bad.
sorry for wasting your time.

:*(