OSDev.org

The Place to Start for Operating System Developers
It is currently Tue Jul 23, 2019 4:10 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: binutils not installing on OS X?
PostPosted: Sat Dec 24, 2011 7:13 pm 
Offline

Joined: Wed Dec 21, 2011 10:23 am
Posts: 4
Currently, I am installing binutils. When I typed
Code:
make all
it compiles normally until the end, where it says this:
Code:
make[4]: Nothing to be done for `all'.
gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.22/ld  -I. -I../../binutils-2.22/ld -I../bfd -I../../binutils-2.22/ld/../bfd -I../../binutils-2.22/ld/../include  -g -O2 -DENABLE_PLUGINS -DLOCALEDIR="\"/usr/local/cross/share/locale\""  -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -g -O2 -MT ldlang.o -MD -MP -MF .deps/ldlang.Tpo -c -o ldlang.o ../../binutils-2.22/ld/ldlang.c
cc1: warnings being treated as errors
In file included from ../../binutils-2.22/ld/ldlang.c:44:
../../binutils-2.22/ld/../bfd/libbfd.h:2503: warning: declaration of ‘link_info’ shadows a global declaration
../../binutils-2.22/ld/ldmain.h:42: warning: shadowed declaration is here
make[4]: *** [ldlang.o] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-ld] Error 2
make: *** [all] Error 2

Here is a complete log(from the configure command to the end of my shell): http://pastebin.com/HzWcd28Z

What am I doing wrong/why is it doing this?


Top
 Profile  
 
 Post subject: Re: binutils not installing on OS X?
PostPosted: Sat Dec 24, 2011 9:16 pm 
Offline
Member
Member
User avatar

Joined: Fri Mar 07, 2008 5:36 pm
Posts: 2097
Location: Bucharest, Romania
This is an OS development forum, not the Binutils mailing list; we talk about operating systems, not installing utilities. Asking this here is like asking your car manufacturer about driving legislation just because you use their car to drive. You could have at least posted in the Everything Else category.

_________________
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]


Top
 Profile  
 
 Post subject: Re: binutils not installing on OS X?
PostPosted: Sun Dec 25, 2011 4:45 am 
Offline
Member
Member
User avatar

Joined: Wed Oct 18, 2006 3:45 am
Posts: 9284
Location: On the balcony, watching the Swedish Chef
He is making a crosscompiler...

_________________
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]


Top
 Profile  
 
 Post subject: Re: binutils not installing on OS X?
PostPosted: Sun Dec 25, 2011 10:30 am 
Offline
Member
Member
User avatar

Joined: Wed Dec 01, 2010 3:41 am
Posts: 1761
Location: Hong Kong
Here is my configure commands:

Code:
GDB

./configure \
--prefix=/opt/local \
--program-prefix=i586-elf- \
--target=i586-elf \
--with-gmp=/opt/local \
--with-libelf=/opt/local \
--with-build-libsubdir=/opt/local \
CFLAGS="-I/opt/local/include"


BINUTILS
mkdir build-binutils
cd build-binutils
../binutils-2.21/configure --target=i586-elf --prefix=/opt/local/cross --disable-nls --disable-werror


GCC
export PATH=/opt/local/cross/bin:$PATH
mkdir build-gcc
cd build-gcc
../gcc-4.5.1/configure --target=i586-elf --prefix=/opt/local/cross --disable-nls \
--enable-language=c,c++ --without-headers \
--with-gmp=/opt/local --with-libiconv-prefix=/opt/local
make all-gcc
make install-gcc


Hope this help.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot], MichaelPetch and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group