Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.


  Search this Thread
Old 12-12-2011, 06:30 AM   #1
anuradha jain
LQ Newbie
Registered: Nov 2011
Location: Bangalore
Posts: 3

Rep: Reputation: Disabled
error in Toolchain build for ARM


i am new to linux. while building toolchain for ARM, i encountered an error.

i am using :
ioperm.c.diff (a patch file)
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:

To be more precise, while building glibc, that is when i type :

make install_root=${SYSROOT} install

the following error comes.

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

Last edited by anuradha jain; 12-12-2011 at 06:37 AM.
Old 12-13-2011, 07:39 PM   #2
LQ 5k Club
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,398
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
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.
1 members found this post helpful.
Old 12-14-2011, 08:21 AM   #3
Registered: Nov 2010
Location: Thailand
Distribution: Fedora 12, Ubuntu 10.10
Posts: 166

Rep: Reputation: 29
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Where can I download arm-linux-* toolchain ? unimous Linux - Embedded & Single-board computer 20 04-12-2013 08:43 AM
Final Phase GCC build fails for ARM cross compiler toolchain bencpeters Linux - Embedded & Single-board computer 1 11-13-2011 06:23 PM
[SOLVED] arm kit + jtag + toolchain PoleStar Linux - Embedded & Single-board computer 6 03-04-2011 11:59 AM
Trouble with build and install GCC-toolchain for ARM _oligarch Programming 2 04-27-2009 12:03 AM
ARM Toolchain Problem richardji Linux - General 2 08-08-2005 11:24 PM > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration