LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   error in binutils make (https://www.linuxquestions.org/questions/linux-software-2/error-in-binutils-make-485536/)

gobi_dgm 09-21-2006 12:53 AM

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?

matthewg42 09-21-2006 03:43 AM

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?

gobi_dgm 09-21-2006 03:49 AM

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

matthewg42 09-21-2006 03:55 AM

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.

gobi_dgm 09-21-2006 09:58 AM

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.


All times are GMT -5. The time now is 12:20 AM.