[uClibc]Toolchain: powerpc target gives "no such instruction"

Pedro Sanchez psanchez at nortelnetworks.com
Thu Nov 28 18:20:35 UTC 2002


Hello,

I'm trying to cross compile gcc 3.2 for a powerpc target on my host x86
machine. I'm using the latest tar ball from the uclibc CVS repository (I
got it using the CVSWeb interface). I only edited the Makefile to change
the target to "powerpc".

Below you will find what I get when I run make. BTW, I tried the
toolchain for 3.2.1 and got the same results.

When the target is powerpc, shouldn't the makefile get the kernel
patched for ppc? Could this be the reason?

Any tips? Thank you,

-- 
Pedro

...
make -C ldso;
make[3]: Entering directory
`/home/dcnlocal/pedro/uclibc/gcc-3.2/build/uClibc/ldso/ldso'
echo "const char *_dl_progname=\""ld-uClibc.so.0"\";" > ldso.h
echo "#include \"powerpc/elfinterp.c\"" >> ldso.h
gcc "-Wall" -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing  -Os
-fno-builtin -nostdinc  -D_LIBC   -I../../include -I.
-I/usr/lib/gcc-lib/i386-linux/2.95.4/include -DNDEBUG -fPIC -I.
-I./powerpc -I../libdl -c powerpc/resolve.S -o powerpc/resolve.o
/tmp/ccbldrGq.s: Assembler messages:
/tmp/ccbldrGq.s:17: Error: no such instruction: `stwu 1,-64(1)'
/tmp/ccbldrGq.s:18: Error: no such instruction: `stw 0,12(1)'
/tmp/ccbldrGq.s:19: Error: no such instruction: `stw 3,16(1)'
/tmp/ccbldrGq.s:20: Error: no such instruction: `stw 4,20(1)'
/tmp/ccbldrGq.s:22: Error: no such instruction: `mr 3,12'
/tmp/ccbldrGq.s:23: Error: no such instruction: `stw 5,24(1)'
/tmp/ccbldrGq.s:24: Error: no such instruction: `mr 4,11'
/tmp/ccbldrGq.s:25: Error: no such instruction: `stw 6,28(1)'
/tmp/ccbldrGq.s:26: Error: no such instruction: `mflr 0'
/tmp/ccbldrGq.s:28: Error: no such instruction: `stw 7,32(1)'
/tmp/ccbldrGq.s:29: Error: no such instruction: `stw 0,48(1)'
/tmp/ccbldrGq.s:30: Error: no such instruction: `stw 8,36(1)'
/tmp/ccbldrGq.s:31: Error: no such instruction: `mfcr 0'
/tmp/ccbldrGq.s:32: Error: no such instruction: `stw 9,40(1)'
/tmp/ccbldrGq.s:33: Error: no such instruction: `stw 10,44(1)'
/tmp/ccbldrGq.s:34: Error: no such instruction: `stw 0,8(1)'
/tmp/ccbldrGq.s:35: Error: no such instruction: `bl
_dl_linux_resolver at local'
/tmp/ccbldrGq.s:37: Error: no such instruction: `mtctr 3'
/tmp/ccbldrGq.s:39: Error: no such instruction: `lwz 0,48(1)'
/tmp/ccbldrGq.s:40: Error: no such instruction: `lwz 10,44(1)'
/tmp/ccbldrGq.s:41: Error: no such instruction: `lwz 9,40(1)'
/tmp/ccbldrGq.s:42: Error: no such instruction: `mtlr 0'
/tmp/ccbldrGq.s:43: Error: no such instruction: `lwz 8,36(1)'
/tmp/ccbldrGq.s:44: Error: no such instruction: `lwz 0,8(1)'
/tmp/ccbldrGq.s:45: Error: no such instruction: `lwz 7,32(1)'
/tmp/ccbldrGq.s:46: Error: no such instruction: `lwz 6,28(1)'
/tmp/ccbldrGq.s:47: Error: no such instruction: `mtcrf 0xFF,0'
/tmp/ccbldrGq.s:48: Error: no such instruction: `lwz 5,24(1)'
/tmp/ccbldrGq.s:49: Error: no such instruction: `lwz 4,20(1)'
/tmp/ccbldrGq.s:50: Error: no such instruction: `lwz 3,16(1)'
/tmp/ccbldrGq.s:51: Error: no such instruction: `lwz 0,12(1)'
/tmp/ccbldrGq.s:53: Error: no such instruction: `addi 1,1,64'
/tmp/ccbldrGq.s:54: Error: no such instruction: `bctr'
make[3]: *** [powerpc/resolve.o] Error 1
make[3]: Leaving directory
`/home/dcnlocal/pedro/uclibc/gcc-3.2/build/uClibc/ldso/ldso'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/home/dcnlocal/pedro/uclibc/gcc-3.2/build/uClibc/ldso'
make[1]: *** [_dir_ldso] Error 2
make[1]: Leaving directory
`/home/dcnlocal/pedro/uclibc/gcc-3.2/build/uClibc'
make: *** [/home/dcnlocal/pedro/uclibc/gcc-3.2/build/uClibc/lib/libc.a]
Error 2





More information about the uClibc mailing list