LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
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.

Notices



Reply
 
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


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

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

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
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
cnxsoft
Member
 
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 http://www.at91.com/linux4sam/bin/vi...4SAM/BuildRoot
 
  


Reply


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


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

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