Compilation errors

Goh Lu Feng elfgoh at yahoo.com
Sat Feb 4 21:09:09 PST 2006


• The version of the book being used is 6.1.1

• The host distribution and version being used to
create LFS is Ubuntu 5.10

• The package or section the problem was encountered
in is Binutils-2.15.94.0.2.2

• The exact error message or symptom being received is
shown below. Apologies if I included excessive lines.

• Note whether you have deviated from the book at all:

I created my partition using Gparted using ext3
filesystem. mount point for lfs directory is
/home/goh/Desktop/lfs instead of of /mnt/lfs.

make[1]: Entering directory
`/home/goh/Desktop/lfs/sources/binutils-build/binutils'
make  all-recursive
make[2]: Entering directory
`/home/goh/Desktop/lfs/sources/binutils-build/binutils'
Making all in doc
make[3]: Entering directory
`/home/goh/Desktop/lfs/sources/binutils-build/binutils/doc'
if test -f cxxfilt.man; then \
  man=cxxfilt.man; \
else \
 
man=../../../binutils-2.15.94.0.2.2/binutils/doc/cxxfilt.man;
\
fi; \
sed -e 's/@PROGRAM@/c++filt/' \
    -e 's/cxxfilt/c++filt/' < $man \
        > c++filt.1
make[3]: Leaving directory
`/home/goh/Desktop/lfs/sources/binutils-build/binutils/doc'
Making all in po
make[3]: Entering directory
`/home/goh/Desktop/lfs/sources/binutils-build/binutils/po'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory
`/home/goh/Desktop/lfs/sources/binutils-build/binutils/po'
make[3]: Entering directory
`/home/goh/Desktop/lfs/sources/binutils-build/binutils'
/bin/sh ./libtool --mode=link gcc -W -Wall
-Wstrict-prototypes -Wmissing-prototypes -g -O2   -o
size  size.o bucomm.o version.o filemode.o
../bfd/libbfd.la ../libiberty/libiberty.a  -ldl
mkdir .libs
gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes
-g -O2 -o size size.o bucomm.o version.o filemode.o 
../bfd/.libs/libbfd.a ../libiberty/libiberty.a -ldl
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'
/bin/sh ./libtool --mode=link gcc -W -Wall
-Wstrict-prototypes -Wmissing-prototypes -g -O2   -o
objdump  objdump.o budemang.o prdbg.o rddbg.o debug.o
stabs.o ieee.o rdcoff.o bucomm.o version.o filemode.o
../opcodes/libopcodes.la ../bfd/libbfd.la
../libiberty/libiberty.a  -ldl
gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes
-g -O2 -o objdump objdump.o budemang.o prdbg.o rddbg.o
debug.o stabs.o ieee.o rdcoff.o bucomm.o version.o
filemode.o  ../opcodes/.libs/libopcodes.a
../bfd/.libs/libbfd.a ../libiberty/libiberty.a -ldl
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'
/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':
/home/goh/Desktop/lfs/sources/binutils-build/binutils/arlex.c:1:
multiple definition of
`main'arparse.o:/home/goh/Desktop/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:/home/goh/Desktop/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
`/home/goh/Desktop/lfs/sources/binutils-build/binutils'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/home/goh/Desktop/lfs/sources/binutils-build/binutils'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory
`/home/goh/Desktop/lfs/sources/binutils-build/binutils'
make: *** [all-binutils] Error 2
lfs at gohfamily:/home/goh/Desktop/lfs/sources/binutils-build$



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the lfs-support mailing list