Page 1 of 1

binutils not installing on OS X?

Posted: Sat Dec 24, 2011 7:13 pm
by Marcus
Currently, I am installing binutils. When I typed

Code: Select all

make all
it compiles normally until the end, where it says this:

Code: Select all

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?

Re: binutils not installing on OS X?

Posted: Sat Dec 24, 2011 9:16 pm
by Love4Boobies
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.

Re: binutils not installing on OS X?

Posted: Sun Dec 25, 2011 4:45 am
by Combuster
He is making a crosscompiler...

Re: binutils not installing on OS X?

Posted: Sun Dec 25, 2011 10:30 am
by bluemoon
Here is my configure commands:

Code: Select all

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.