Hi,

I am trying to build linux using LFS version 6.1.
I get the below mentioned error at the tool chain creation stage
(binutils). Can someone provide me with pointers as to why it is
occuring and how to correct this.
Mine is a ubuntu (breezy - 5.10) system. The below error has been
posted in a couple of forums by others but the ones where there are
responses are in languages other than english which I do not
understand.

-----------------------------------------------------------------------------------------------------------------

ls-2.15.94.0.2.2/binutils -I../bfd
-I../../binutils-2.15.94.0.2.2/binutils/../bfd
-I../../binutils-2.15.94.0.2.2/binutils/../include
-I../../binutils-2.15.94.0.2.2/binutils/../intl -I../intl
-DLOCALEDIR="\"/tools/share/locale\""
-Dbin_dummy_emulation=bin_vanilla_emulation  -D_LARGEFILE64_SOURCE -W
-Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2  -c
../../binutils-2.15.94.0.2.2/binutils/emul_vanilla.c
/bin/sh ./libtool --mode=link gcc -W -Wall -Wstrict-prototypes
-Wmissing-prototypes -g -O2   -o ar arparse.o arlex.o ar.o
not-ranlib.o arsup.o rename.o binemul.o emul_vanilla.o bucomm.o
version.o filemode.o ../bfd/libbfd.la ../libiberty/libiberty.a   -ldl
gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -o ar
arparse.o arlex.o ar.o not-ranlib.o arsup.o rename.o binemul.o
emul_vanilla.o bucomm.o version.o filemode.o  ../bfd/.libs/libbfd.a
../libiberty/libiberty.a -ldl
arlex.o: In function `main':
/media/hda7/LFS/sources/binutils-build/binutils/arlex.c:1: multiple
definition of `main'
arparse.o:/media/hda7/LFS/sources/binutils-build/binutils/arparse.c:1:
first defined here
ar.o: In function `main':
../../binutils-2.15.94.0.2.2/binutils/ar.c:342: multiple definition of `main'
arparse.o:/media/hda7/LFS/sources/binutils-build/binutils/arparse.c:1:
first defined here
/usr/bin/ld: Warning: size of symbol `main' changed from 16 in
arparse.o to 3791 in ar.o
bucomm.o: In function `make_tempname':
../../binutils-2.15.94.0.2.2/binutils/bucomm.c:425: warning: the use
of `mktemp' is dangerous, better use `mkstemp'
ar.o: In function `mri_emul':
ar.c:(.text+0x23): undefined reference to `yyparse'
collect2: ld returned 1 exit status
make[3]: *** [ar] Error 1
make[3]: Leaving directory `/media/hda7/LFS/sources/binutils-build/binutils'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/media/hda7/LFS/sources/binutils-build/binutils'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/media/hda7/LFS/sources/binutils-build/binutils'
make: *** [all-binutils] Error 2
-----------------------------------------------------------------------------------------------------------

thanks and regards
Shiv
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to