LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 11-23-2008, 03:24 PM   #1
leedude
Member
 
Registered: Jan 2007
Location: Scotland
Distribution: Fedora, Debian
Posts: 81

Rep: Reputation: 15
error compiling GNU-ARM binutils


hi, i am trying to compile a toolchain for an ARM target(never done this successfully).
i just got an error whilst running "make all install" for binutils:
Code:
cc1: warnings being treated as errors
/home/ray/Desktop/binutils-2.17/binutils/binemul.c:23: warning: useless type name in empty declaration
/home/ray/Desktop/binutils-2.17/binutils/binemul.c: In function ‘ar_emul_usage’:
/home/ray/Desktop/binutils-2.17/binutils/binemul.c:28: error: expected expression before ‘.’ token
/home/ray/Desktop/binutils-2.17/binutils/binemul.c: In function ‘ar_emul_append’:
/home/ray/Desktop/binutils-2.17/binutils/binemul.c:43: error: expected expression before ‘.’ token
/home/ray/Desktop/binutils-2.17/binutils/binemul.c: In function ‘ar_emul_replace’:
/home/ray/Desktop/binutils-2.17/binutils/binemul.c:69: error: expected expression before ‘.’ token
/home/ray/Desktop/binutils-2.17/binutils/binemul.c: In function ‘ar_emul_parse_arg’:
/home/ray/Desktop/binutils-2.17/binutils/binemul.c:95: error: expected expression before ‘.’ token
make[4]: *** [binemul.o] Error 1
make[4]: Leaving directory `/usr/local/arm-elf-tools/gcc-4.1.1/build-binutils/binutils'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/local/arm-elf-tools/gcc-4.1.1/build-binutils/binutils'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/local/arm-elf-tools/gcc-4.1.1/build-binutils/binutils'
make[1]: *** [all-binutils] Error 2
make[1]: Leaving directory `/usr/local/arm-elf-tools/gcc-4.1.1/build-binutils'
make: *** [all] Error 2
what now????

any help would be appreciated.
 
Old 11-23-2008, 04:04 PM   #2
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 49
The first thing to do is look at: /home/ray/Desktop/binutils-2.17/binutils/binemul.c and find out what is ultimately causing those errors.
 
Old 11-24-2008, 04:38 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2010.12, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 9,311

Rep: Reputation: 1353Reputation: 1353Reputation: 1353Reputation: 1353Reputation: 1353Reputation: 1353Reputation: 1353Reputation: 1353Reputation: 1353Reputation: 1353
Binutils should be the easy part, but you will need
a build directory outside binutils-2.17 .

e.g. /home/ray/tmp/binutils-2.17
and /home/ray/tmp/build-binutils

One possible procedure is here
http://www.gnuarm.org/

And thus "configure" could be
cd tmp/build-binutils
sh ../binutils-2.17/configure --target=arm-elf \
--prefix="place-to-install-crosstools" --enable-interwork \
--enable-multilib --with-float=soft

Last edited by knudfl; 11-24-2008 at 04:41 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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error compiling 2.6.26 for ARM zahidul Linux - Kernel 0 11-05-2008 01:44 PM
Linker Error while compiling gspca module for ARM processor. ravi_chobey Linux - Software 0 07-09-2008 08:44 AM
GNU ToolChain for ARM, Linux 2.6.14-2/binutil-2.16/gcc 4.0.2/glibc-2.3.5 kumar_bst Linux - Software 0 01-23-2008 01:44 PM
GNU binutils installation problem oguzhana Linux - Software 4 01-11-2008 03:40 PM
Problem in building the GNU-ARM compiler abhi123 Linux - Kernel 0 09-29-2006 03:09 AM


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

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