LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Embedded & Single-board computer (http://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/)
-   -   error in Toolchain build for ARM (http://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/error-in-toolchain-build-for-arm-918305/)

anuradha jain 12-12-2011 05:30 AM

error in Toolchain build for ARM
 
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

theNbomr 12-13-2011 06:39 PM

I suggest that you heed the advice in the first line of text in the link you referenced: 'don't roll my own toolchains anymore. It's just too much trouble'. He gives a link to one source of toolchains, and I would add to that Crosstool-NG, where they've taken all the fun out it, and crafted a fine tool to create cross toolchains for a substantial matrix of targets and build hosts. There is an active and friendly mailing list to provide assistance, or to accept your input.
--- rod.

cnxsoft 12-14-2011 07:21 AM

theNbomr solutions would probably work just fine.
However I can also see you have a patch for AT91, so I suppose you use Atmel MCU. If that's correct, you could build your toolchain, kernel and rootfs with the instructions given at http://www.at91.com/linux4sam/bin/vi...4SAM/BuildRoot


All times are GMT -5. The time now is 03:52 AM.