Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Marcus
Posts: 4 Joined: Wed Dec 21, 2011 10:23 am
Post
by Marcus » Sat Dec 24, 2011 7:13 pm
Currently, I am installing binutils. When I typed
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?
Love4Boobies
Member
Posts: 2111 Joined: Fri Mar 07, 2008 5:36 pm
Location: Bucharest, Romania
Post
by Love4Boobies » Sat Dec 24, 2011 9:16 pm
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 ]
Combuster
Member
Posts: 9301 Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:
Post
by Combuster » Sun Dec 25, 2011 4:45 am
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 ]
bluemoon
Member
Posts: 1761 Joined: Wed Dec 01, 2010 3:41 am
Location: Hong Kong
Post
by bluemoon » Sun Dec 25, 2011 10:30 am
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.