Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 26814 - make x86-gcc a cross compiler fails
Summary: make x86-gcc a cross compiler fails
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-17 10:53 UTC by Peter Bossy
Modified: 2003-08-19 09:18 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 Peter Bossy 2003-08-17 10:53:54 UTC
I want to use distcc for my Macs and my x86. So I need gcc as a cross compiler 
I set in  /etc/make.conf: 
CHOST="i686-pc-linux-gnu" 
CCHOST="powerpc-unknown-linux-gnu" 
 
 
./xgcc -B./ -B/usr/powerpc-unknown-linux-gnu/bin/ -isystem 
/usr/powerpc-unknown-linux-gnu/include -isystem /usr/powerpc-unknown-linux-gnu/sys-include 
-O2  -DIN_GCC -DCROSS_COMPILE   -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -isystem ./include  -fPIC -DHAVE_SYSLOG -g -DHAVE_GTHR_DEFAULT 
-DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. 
-I/res1/portage/gcc-3.2.3-r1/work/gcc-3.2.3/gcc 
-I/res1/portage/gcc-3.2.3-r1/work/gcc-3.2.3/gcc/. 
-I/res1/portage/gcc-3.2.3-r1/work/gcc-3.2.3/gcc/config 
-I/res1/portage/gcc-3.2.3-r1/work/gcc-3.2.3/gcc/../include  -fPIC -mstrict-align -DL_muldi3 -c 
/res1/portage/gcc-3.2.3-r1/work/gcc-3.2.3/gcc/libgcc2.c -o libgcc/./_muldi3.o 
In file included from tconfig.h:21, 
                 from /res1/portage/gcc-3.2.3-r1/work/gcc-3.2.3/gcc/libgcc2.c:36: 
/res1/portage/gcc-3.2.3-r1/work/gcc-3.2.3/gcc/config/rs6000/linux.h:88:20: signal.h: Datei 
oder Verzeichnis nicht gefunden 
/res1/portage/gcc-3.2.3-r1/work/gcc-3.2.3/gcc/config/rs6000/linux.h:89:26: sys/ucontext.h: 
Datei oder Verzeichnis nicht gefunden 
make[3]: *** [libgcc/./_muldi3.o] Fehler 1 
make[3]: Leaving directory `/res1/portage/gcc-3.2.3-r1/work/build/gcc' 
make[2]: *** [stmp-multilib] Fehler 2 
make[2]: Leaving directory `/res1/portage/gcc-3.2.3-r1/work/build/gcc' 
make[1]: *** [stage1_build] Fehler 2 
make[1]: Leaving directory `/res1/portage/gcc-3.2.3-r1/work/build/gcc' 
make: *** [bootstrap-lean] Fehler 2 
 
!!! ERROR: sys-devel/gcc-3.2.3-r1 failed. 
!!! Function src_compile, Line 361, Exitcode 2 
!!! (no error message) 
 
"Fehler" means Error 
"Datei oder Verzeichnis nicht gefunden" means File or Directory not found 
 
 
Or do I  misunderstand CCHOST?
Comment 1 Zhen Lin 2003-08-17 18:59:00 UTC
You also need the kernel headers from powerpc-linux in the right place...

The kernel headers for powerpc-linux can be found in /usr/src/linux/include/arch/ppc
Comment 2 Peter Bossy 2003-08-18 11:55:08 UTC
Thanks for the hint. But could you please give me a little bit more precise hint? 
What do I have to copy from where to /usr/src/linux/include/arch/ppc 
Are you shure /usr/src/linux/include/arch/ppc ? 
 
$ ll /usr/src/linux/include/ 
insgesamt 89K 
lrwxrwxrwx    1 root     root            8 2003-08-02 10:32 asm -> asm-i386 
drwxr-xr-x    2 root     root         2.8K 2003-05-13 00:04 asm-alpha 
drwxr-xr-x   21 root     root         3.1K 2003-05-13 00:04 asm-arm 
drwxr-xr-x    2 root     root         2.3K 2003-05-13 00:04 asm-cris 
drwxr-xr-x    2 root     root          240 2003-05-13 00:04 asm-generic 
drwxr-xr-x    2 root     root         3.0K 2003-05-13 00:04 asm-i386 
drwxr-xr-x    3 root     root         2.7K 2003-05-13 00:04 asm-ia64 
drwxr-xr-x    2 root     root         4.4K 2003-05-13 00:04 asm-m68k 
drwxr-xr-x   18 root     root         4.5K 2003-05-13 00:04 asm-mips 
drwxr-xr-x   11 root     root         3.7K 2003-05-13 00:04 asm-mips64 
drwxr-xr-x    2 root     root         2.7K 2003-05-13 00:04 asm-parisc 
drwxr-xr-x    2 root     root         3.7K 2003-05-13 00:04 asm-ppc 
drwxr-xr-x    3 root     root         3.0K 2003-05-13 00:04 asm-ppc64 
drwxr-xr-x    2 root     root         2.5K 2003-05-13 00:04 asm-s390 
drwxr-xr-x    2 root     root         2.4K 2003-05-13 00:04 asm-s390x 
drwxr-xr-x    2 root     root         3.0K 2003-05-13 00:04 asm-sh 
drwxr-xr-x    2 root     root         3.8K 2003-05-13 00:04 asm-sparc 
drwxr-xr-x    2 root     root         3.5K 2003-05-13 00:04 asm-sparc64 
drwxr-xr-x    2 root     root         3.1K 2003-05-13 00:04 asm-x86_64 
drwxr-xr-x  164 root     root         9.1K 2003-08-02 03:43 config 
drwxr-xr-x   14 root     root          16K 2003-08-02 10:33 linux 
drwxr-xr-x    2 root     root          312 2003-05-13 00:04 math-emu 
drwxr-xr-x    4 root     root         1.8K 2003-05-13 00:04 net 
drwxr-xr-x    2 root     root          160 2003-05-13 00:04 openssl 
drwxr-xr-x    2 root     root          432 2003-05-13 00:04 pcmcia 
drwxr-xr-x    2 root     root          160 2003-05-13 00:04 scsi 
drwxr-xr-x    2 root     root          728 2003-05-13 00:04 video 
 
Thanks. 
 
Peter 
 
 
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2003-08-19 09:18:33 UTC
Please check earlier bugs for cross compiler efforts.