hey,
i am new to linux. while building toolchain for ARM, i encountered an error.
i am using :
binutils-2.16.tar.gz
linux-2.6.10.tar.gz
2.6.10-at91.patch.gz
26_at91_serial.c.gz
glibc-2.3.5.tar.gz
ioperm.c.diff (a patch file)
glibc-linuxthreads-2.3.5.tar.gz
gcc-3.4.4.tar.bz2
flow.c.diff (a patch file)
t-linux.diff ( a patch file)
i have done till gcc stage1 build. i am following the steps from here:
http://frank.harvard.edu/~coldwell/toolchain/
To be more precise, while building glibc, that is when i type :
make install_root=${SYSROOT} install
the following error comes.
LANGUAGE=C LC_ALL=C; export LANGUAGE LC_ALL; \
make -r PARALLELMFLAGS="" CVSOPTS="" -C glibc-2.3.5 objdir=`pwd` install
make[1]: Entering directory `/usr/arm/src/glibc-2.3.5'
make -C csu subdir_lib
make[2]: Entering directory `/usr/arm/src/glibc-2.3.5/csu'
make[2]: Leaving directory `/usr/arm/src/glibc-2.3.5/csu'
make[2]: Entering directory `/usr/arm/src/glibc-2.3.5/csu'
gcc ../sysdeps/unix/sysv/linux/arm/sysdep.S -c -I../include -I. -I/usr/arm/src/csu -I.. -I../libio -I/usr/arm/src -I../sysdeps/arm/elf -I../linuxthreads/sysdeps/unix/sysv/linux/arm -I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread -I../sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv -I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/arm -I../sysdeps/unix/sysv/linux/arm -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv -I../sysdeps/unix/arm -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/arm/fpu -I../sysdeps/arm -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -nostdinc -isystem /usr/lib/gcc/i386-redhat-linux/4.1.2/include -isystem /usr/arm/sysroot/usr/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h -DHAVE_INITFINI -DASSEMBLER -I/usr/arm/src/csu/. -g -Wa,--noexecstack -o /usr/arm/src/csu/sysdep.o -MD -MP -MF /usr/arm/src/csu/sysdep.o.dt -MT /usr/arm/src/csu/sysdep.o
../sysdeps/unix/sysv/linux/arm/sysdep.S: Assembler messages:
../sysdeps/unix/sysv/linux/arm/sysdep.S:31: Error: no such instruction: `rsb r0,r0,$0'
../sysdeps/unix/arm/sysdep.S:41: Error: invalid char '[' beginning operand 2 `[sp'
../sysdeps/unix/arm/sysdep.S:42: Error: invalid char '[' beginning operand 2 `[sp'
../sysdeps/unix/arm/sysdep.S:43: Error: no such instruction: `bl __errno_location(PLT)'
../sysdeps/unix/arm/sysdep.S:44: Error: no such instruction: `ldr r1,[sp],'
../sysdeps/unix/arm/sysdep.S:45: Error: invalid char '[' beginning operand 2 `[r0]'
../sysdeps/unix/arm/sysdep.S:46: Error: no such instruction: `mvn r0,$0'
../sysdeps/unix/arm/sysdep.S:47: Error: no such instruction: `ldr pc,[sp],'
make[2]: *** [/usr/arm/src/csu/sysdep.o] Error 1
make[2]: Leaving directory `/usr/arm/src/glibc-2.3.5/csu'
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory `/usr/arm/src/glibc-2.3.5'
make: *** [install] Error 2
please help.
thanks in advance