LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-15-2011, 11:47 AM   #1
mukund91
LQ Newbie
 
Registered: Jun 2011
Distribution: linux mint 10 julia
Posts: 10

Rep: Reputation: Disabled
Build errors with crosstool


Hello everyone! I'm trying to install "crosstool" from kegel.com in order to create an arm-linux-gcc toolchain for an ARM target. I'm using Slackware 9.0 as I'm using a program(Sim-panalyzer) which seems to install only on such old versions. The installation proceeds fine for about 30 mins until i get an error like

Code:
a - elf/dl-profstub.os
a - elf/dl-libc.os
a - elf/dl-sym.os
a - elf/dl-tsd.os
a - elf/unwind-dw2-fde-glibc.os
a - elf/framestate.os
make[2]: *** [/home/muki/crosstool-0.43/build/arm-unknown-linux-gnu/gcc-4.1.0-glibc-2.3.2/build-glibc/libc_pic.a] Error 137
make[2]: Leaving directory `/home/muki/crosstool-0.43/build/arm-unknown-linux-gnu/gcc-4.1.0-glibc-2.3.2/glibc-2.3.2/elf'
make[1]: *** [elf/subdir_lib] Error 2
make[1]: Leaving directory `/home/muki/crosstool-0.43/build/arm-unknown-linux-gnu/gcc-4.1.0-glibc-2.3.2/glibc-2.3.2'
make: *** [all] Error 2
Has anyone installed crosstool for an ARM target. If so, can you tell me which linux distro you used and also the gcc-glibc combination you opted for in creating the toolchain. I've tried so many combos and referred the build logs available at kegel.com but all have been in vain.

I tried using Ubuntu 9.04 but I wasn't able to install flex,bison etc which are needed for installing crosstool. When I give
sudo apt-get install flex, it says package not found.

I tried Linux Mint and I was able to install flex and bison but after some stage of the crosstool installation I got an error like

"these packages are either missing or too old: as ld"

Any help is greatly appreciated.
 
Old 06-17-2011, 11:02 AM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,397
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
I highly recommend moving on to the successor to crosstool, crosstool-NG. It is a currently and actively supported package, which I have successfully built on a Debian (but not RH, nor Open Suse). I was able to use the compiled toolchain on RH hosts. There is an active mailing list for support.
After working for quite some time with the original croostool package, and later the crosstool-NG package, I have found that the vintage of standard software development tools and other components on the build host is critical. Debian, and presumably Debian-derivatives, seems to provide the most compatible collection of such tools. With the easy use of virtual hosting these days, I have adopted the position that it is easy to create Linux installations which serve single purposes, such as a crosstool-NG build host, and run them as needed. You should expect to spend a bit of time tweaking the configuration to get a successful build that matches the plethora of variations on ARM-based systems. My work with crosstool-NG has been exclusively targeting the ARM processor, specifically the Technologic Systems product line of ARM based single board computers.
--- rod.

Last edited by theNbomr; 06-17-2011 at 11:03 AM.
 
  


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
crosstool-NG build ERROR GeorgeOfTheBush Linux - Newbie 0 01-31-2010 09:35 AM
Crosstool problem krizzz Programming 3 11-14-2008 05:58 PM
ARM crosstool chain thirumalesh Linux - Embedded & Single-board computer 9 06-06-2008 02:07 PM
crosstool usage gobi_dgm Linux - Software 8 09-19-2006 01:02 AM
Build Errors. sethgeekx86 Slackware 3 04-01-2004 07:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:47 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration