LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-21-2006, 12:53 AM   #1
gobi_dgm
Member
 
Registered: Feb 2005
Location: Bangalore
Distribution: FC3
Posts: 137

Rep: Reputation: 15
error in binutils make


Hi,
While installing binutils-2.17, im stuck with some weird error.

I configured binutils as

./configure --prefix=/opt/x86_64-unknown-linux-gnu-gcc --target=x86_64-unknown-linux-gnu --with-sysroot=/opt/x86_64-unknown-linux-gnu-root

and i did

make all

which results in error shown below...

make[3]: Leaving directory `/home/gobi/build/binutils-build/bfd/po'
make[3]: Entering directory `/home/gobi/build/binutils-build/bfd'
/bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I/home/gobi//tarballs/binutils-2.17/bfd -I. -I. -I/home/gobi//tarballs/binutils-2.17/bfd -I/home/gobi//tarballs/binutils-2.17/bfd/../include -I/home/gobi//tarballs/binutils-2.17/bfd/../intl -I../intl -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -Dinhibit-libc -c -o archive.lo /home/gobi//tarballs/binutils-2.17/bfd/archive.c
gcc -DHAVE_CONFIG_H -I. -I/home/gobi//tarballs/binutils-2.17/bfd -I. -I. -I/home/gobi//tarballs/binutils-2.17/bfd -I/home/gobi//tarballs/binutils-2.17/bfd/../include -I/home/gobi//tarballs/binutils-2.17/bfd/../intl -I../intl -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -Dinhibit-libc -c /home/gobi//tarballs/binutils-2.17/bfd/archive.c
<command line>:1:8: error: missing whitespace after the macro name
make[3]: *** [archive.lo] Error 1
make[3]: Leaving directory `/home/gobi/build/binutils-build/bfd'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/home/gobi/build/binutils-build/bfd'
make[1]: *** [install-bfd] Error 2
make[1]: Leaving directory `/home/gobi/build/binutils-build'
make: *** [install] Error 2
+ exit 1

This is the main error i got..
<command line>:1:8: error: missing whitespace after the macro name

Someone pl help me to overcome this?
 
Old 09-21-2006, 03:43 AM   #2
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
You're building from source? Why not install from a binary package using your package manager? Are you doing LFS or something? What distro are you using?
 
Old 09-21-2006, 03:49 AM   #3
gobi_dgm
Member
 
Registered: Feb 2005
Location: Bangalore
Distribution: FC3
Posts: 137

Original Poster
Rep: Reputation: 15
Hi matthew,
Thanks for your reply. The problem solved.
Before invoking this configure i just did " unset CFLAGS " and everything went perfect.
Though i couldn understand the problem, im atleast happy with the proceedings.

Thanks
Gk
 
Old 09-21-2006, 03:55 AM   #4
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
But why not install from a binary package? You don't have to compile everything from source code you know. Unless you have some specific reason to build everything, it's usually much more convenient to install from binary packages.

What is your distro? You're using FC3 (according to your profile)? It has binary packages for these sorts of tools. Building your own compiler toolchain is something most people really don't want to be doing... It's up to you, but you'd save a lot of time and potential problems by just installing Fedora's pre-built packages.
 
Old 09-21-2006, 09:58 AM   #5
gobi_dgm
Member
 
Registered: Feb 2005
Location: Bangalore
Distribution: FC3
Posts: 137

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by matthewg42
But why not install from a binary package? You don't have to compile everything from source code you know. Unless you have some specific reason to build everything, it's usually much more convenient to install from binary packages.

What is your distro? You're using FC3 (according to your profile)? It has binary packages for these sorts of tools. Building your own compiler toolchain is something most people really don't want to be doing... It's up to you, but you'd save a lot of time and potential problems by just installing Fedora's pre-built packages.
Yes. I agree with your points. Im trying to build gcc cross compiler for x86_64 which requires building these requirements one by one. Since im very new to this cross compilers, i must rely on net to guide me. I just followed what is given there. Im trying build cross compiler for last few days and finally i succeed with prolonged tries. I will be very grateful if you can give me straight steps to build cross compiler with needed options.
 
  


Reply



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
binutils make install error priya001 Linux From Scratch 3 05-29-2006 09:41 AM
binutils make check error suzuki_babu Linux - Software 0 05-02-2006 01:47 AM
make error with binutils gravesb Linux From Scratch 2 10-15-2005 02:48 PM
binutils-2.16.90.0.1 make error on Slackware 10.0 CPUFreak91 Linux - Software 2 09-08-2005 08:57 AM
make: *** [configure-libiberty] Error 1 in 5.4. Binutils-2.15.91.0.2 - Pass 1 Flash_G Linux From Scratch 3 06-30-2005 08:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:11 PM.

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