LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded
User Name
Password
Linux - Embedded This forum is for the discussion of Linux and embedded devices.

Notices

Reply
 
LinkBack Search this Thread
Old 12-12-2011, 05: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 05:37 AM.
 
Old 12-13-2011, 06:39 PM   #2
theNbomr
Senior Member
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 4,504

Rep: Reputation: 602Reputation: 602Reputation: 602Reputation: 602Reputation: 602Reputation: 602
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, 07:21 AM   #3
cnxsoft
Member
 
Registered: Nov 2010
Location: Thailand
Distribution: Fedora 12, Ubuntu 10.10
Posts: 160

Rep: Reputation: 21
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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Final Phase GCC build fails for ARM cross compiler toolchain bencpeters Linux - Embedded 1 11-13-2011 05:23 PM
Where can I download arm-linux-* toolchain ? unimous Linux - Embedded 6 04-05-2011 05:45 PM
[SOLVED] arm kit + jtag + toolchain PoleStar Linux - Embedded 6 03-04-2011 10:59 AM
Trouble with build and install GCC-toolchain for ARM _oligarch Programming 2 04-26-2009 11:03 PM
ARM Toolchain Problem richardji Linux - General 2 08-08-2005 10:24 PM


All times are GMT -5. The time now is 12:53 PM.

Main Menu
 
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
Open Source Consulting | Domain Registration