LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 07-10-2005, 08:00 PM   #1
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Blog Entries: 9

Rep: Reputation: 48
HELP!!! Binutils won't compile correctly


ok, here's the problem. I downloaded the lfs-packages-6.0.tar file, and unpacked it in /mnt/lfs/tools. Then I unpacked binutils-2<etc.>, made the binutils-build directory. Changed to binutils-build, and confgured binutils according to the book. after running 'make install' as lfs(the user) I got the output
Quote:
/bin/sh ../binutils-2.15.91.0.2/mkinstalldirs /tools /tools
make[1]: Entering directory `/mnt/lfs/sources/binutils-build/bfd'
Making install in doc
make[2]: Entering directory `/mnt/lfs/sources/binutils-build/bfd/doc'
make[3]: Entering directory `/mnt/lfs/sources/binutils-build/bfd/doc'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/mnt/lfs/sources/binutils-build/bfd/doc'
/bin/sh ../../../binutils-2.15.91.0.2/bfd/../mkinstalldirs /tools/info
/usr/bin/install -c -m 644 ./bfd.info /tools/info/bfd.info
make[2]: Leaving directory `/mnt/lfs/sources/binutils-build/bfd/doc'
Making install in po
make[2]: Entering directory `/mnt/lfs/sources/binutils-build/bfd/po'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory `/mnt/lfs/sources/binutils-build/bfd/po'
make[2]: Entering directory `/mnt/lfs/sources/binutils-build/bfd'
make[3]: Entering directory `/mnt/lfs/sources/binutils-build/bfd'
make[3]: Nothing to be done for `install-exec-am'.
/bin/sh ../../binutils-2.15.91.0.2/bfd/../mkinstalldirs /tools/lib
/bin/sh ../../binutils-2.15.91.0.2/bfd/../mkinstalldirs /tools/include
/bin/sh ./libtool --mode=install /usr/bin/install -c libbfd.la /tools/lib/libbfd.la
/usr/bin/install -c .libs/libbfd.lai /tools/lib/libbfd.la
make[3]: Leaving directory `/mnt/lfs/sources/binutils-build/bfd'
make[2]: Leaving directory `/mnt/lfs/sources/binutils-build/bfd'
make[1]: Leaving directory `/mnt/lfs/sources/binutils-build/bfd'
I then tried the same command('make install') as root, and got the following output
Quote:
/bin/sh ../binutils-2.15.91.0.2/mkinstalldirs /tools /tools
make[1]: Entering directory `/mnt/lfs/sources/binutils-build/bfd'
Making install in doc
make[2]: Entering directory `/mnt/lfs/sources/binutils-build/bfd/doc'
make[3]: Entering directory `/mnt/lfs/sources/binutils-build/bfd/doc'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/mnt/lfs/sources/binutils-build/bfd/doc'
/bin/sh ../../../binutils-2.15.91.0.2/bfd/../mkinstalldirs /tools/info
/usr/bin/install -c -m 644 ./bfd.info /tools/info/bfd.info
make[2]: Leaving directory `/mnt/lfs/sources/binutils-build/bfd/doc'
Making install in po
make[2]: Entering directory `/mnt/lfs/sources/binutils-build/bfd/po'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory `/mnt/lfs/sources/binutils-build/bfd/po'
make[2]: Entering directory `/mnt/lfs/sources/binutils-build/bfd'
make[3]: Entering directory `/mnt/lfs/sources/binutils-build/bfd'
make[3]: Nothing to be done for `install-exec-am'.
/bin/sh ../../binutils-2.15.91.0.2/bfd/../mkinstalldirs /tools/lib
/bin/sh ../../binutils-2.15.91.0.2/bfd/../mkinstalldirs /tools/include
/bin/sh ./libtool --mode=install /usr/bin/install -c libbfd.la /tools/lib/libbfd.la
/usr/bin/install -c .libs/libbfd.lai /tools/lib/libbfd.la
/usr/bin/install -c .libs/libbfd.a /tools/lib/libbfd.a
ranlib /tools/lib/libbfd.a
chmod 644 /tools/lib/libbfd.a
PATH="$PATH:/sbin" ldconfig -n /tools/lib
----------------------------------------------------------------------
Libraries have been installed in:
/tools/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
/usr/bin/install -c -m 644 bfd.h /tools/include/bfd.h
/usr/bin/install -c -m 644 ../../binutils-2.15.91.0.2/bfd/../include/ansidecl.h /tools/include/ansidecl.h
/usr/bin/install -c -m 644 ../../binutils-2.15.91.0.2/bfd/../include/symcat.h /tools/include/symcat.h
/usr/bin/install -c -m 644 ../../binutils-2.15.91.0.2/bfd/../include/bfdlink.h /tools/include/bfdlink.h
make[3]: Leaving directory `/mnt/lfs/sources/binutils-build/bfd'
make[2]: Leaving directory `/mnt/lfs/sources/binutils-build/bfd'
make[1]: Leaving directory `/mnt/lfs/sources/binutils-build/bfd'
make[1]: Entering directory `/mnt/lfs/sources/binutils-build/opcodes'
Making install in po
make[2]: Entering directory `/mnt/lfs/sources/binutils-build/opcodes/po'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory `/mnt/lfs/sources/binutils-build/opcodes/po'
make[2]: Entering directory `/mnt/lfs/sources/binutils-build/opcodes'
make[3]: Entering directory `/mnt/lfs/sources/binutils-build/opcodes'
make[3]: Nothing to be done for `install-exec-am'.
/bin/sh ../../binutils-2.15.91.0.2/opcodes/../mkinstalldirs /tools/lib
/bin/sh ../../binutils-2.15.91.0.2/opcodes/../mkinstalldirs /tools/include
/bin/sh ./libtool --mode=install /usr/bin/install -c libopcodes.la /tools/lib/libopcodes.la
/usr/bin/install -c .libs/libopcodes.lai /tools/lib/libopcodes.la
/usr/bin/install -c .libs/libopcodes.a /tools/lib/libopcodes.a
ranlib /tools/lib/libopcodes.a
chmod 644 /tools/lib/libopcodes.a
PATH="$PATH:/sbin" ldconfig -n /tools/lib
----------------------------------------------------------------------
Libraries have been installed in:
/tools/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
/usr/bin/install -c -m 644 ../../binutils-2.15.91.0.2/opcodes/../include/dis-asm.h /tools/include/dis-asm.h
make[3]: Leaving directory `/mnt/lfs/sources/binutils-build/opcodes'
make[2]: Leaving directory `/mnt/lfs/sources/binutils-build/opcodes'
make[1]: Leaving directory `/mnt/lfs/sources/binutils-build/opcodes'
make[1]: Entering directory `/mnt/lfs/sources/binutils-build/binutils'
Making install in doc
make[2]: Entering directory `/mnt/lfs/sources/binutils-build/binutils/doc'
make[3]: Entering directory `/mnt/lfs/sources/binutils-build/binutils/doc'
make[3]: Nothing to be done for `install-exec-am'.
make install-man1
make[4]: Entering directory `/mnt/lfs/sources/binutils-build/binutils/doc'
/bin/sh ../../../binutils-2.15.91.0.2/binutils/../mkinstalldirs /tools/man/man1
/usr/bin/install -c -m 644 addr2line.1 /tools/man/man1/addr2line.1
/usr/bin/install -c -m 644 ar.1 /tools/man/man1/ar.1
/usr/bin/install -c -m 644 dlltool.1 /tools/man/man1/dlltool.1
/usr/bin/install -c -m 644 nlmconv.1 /tools/man/man1/nlmconv.1
/usr/bin/install -c -m 644 nm.1 /tools/man/man1/nm.1
/usr/bin/install -c -m 644 objcopy.1 /tools/man/man1/objcopy.1
/usr/bin/install -c -m 644 objdump.1 /tools/man/man1/objdump.1
/usr/bin/install -c -m 644 ranlib.1 /tools/man/man1/ranlib.1
/usr/bin/install -c -m 644 readelf.1 /tools/man/man1/readelf.1
/usr/bin/install -c -m 644 size.1 /tools/man/man1/size.1
/usr/bin/install -c -m 644 strings.1 /tools/man/man1/strings.1
/usr/bin/install -c -m 644 strip.1 /tools/man/man1/strip.1
/usr/bin/install -c -m 644 windres.1 /tools/man/man1/windres.1
/usr/bin/install -c -m 644 c++filt.1 /tools/man/man1/c++filt.1
make[4]: Leaving directory `/mnt/lfs/sources/binutils-build/binutils/doc'
make[3]: Leaving directory `/mnt/lfs/sources/binutils-build/binutils/doc'
/bin/sh ../../../binutils-2.15.91.0.2/binutils/../mkinstalldirs /tools/info
/usr/bin/install -c -m 644 ./binutils.info /tools/info/binutils.info
make[2]: Leaving directory `/mnt/lfs/sources/binutils-build/binutils/doc'
Making install in po
make[2]: Entering directory `/mnt/lfs/sources/binutils-build/binutils/po'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory `/mnt/lfs/sources/binutils-build/binutils/po'
make[2]: Entering directory `/mnt/lfs/sources/binutils-build/binutils'
make[3]: Entering directory `/mnt/lfs/sources/binutils-build/binutils'
/bin/sh ../../binutils-2.15.91.0.2/binutils/../mkinstalldirs /tools/bin
/bin/sh ./libtool --mode=install /usr/bin/install -c size /tools/bin/size
/usr/bin/install -c size /tools/bin/size
/bin/sh ./libtool --mode=install /usr/bin/install -c objdump /tools/bin/objdump
/usr/bin/install -c objdump /tools/bin/objdump
/bin/sh ./libtool --mode=install /usr/bin/install -c ar /tools/bin/ar
/usr/bin/install -c ar /tools/bin/ar
/bin/sh ./libtool --mode=install /usr/bin/install -c strings /tools/bin/strings
/usr/bin/install -c strings /tools/bin/strings
/bin/sh ./libtool --mode=install /usr/bin/install -c ranlib /tools/bin/ranlib
/usr/bin/install -c ranlib /tools/bin/ranlib
/bin/sh ./libtool --mode=install /usr/bin/install -c objcopy /tools/bin/objcopy
/usr/bin/install -c objcopy /tools/bin/objcopy
/bin/sh ./libtool --mode=install /usr/bin/install -c addr2line /tools/bin/addr2line
/usr/bin/install -c addr2line /tools/bin/addr2line
/bin/sh ./libtool --mode=install /usr/bin/install -c readelf /tools/bin/readelf
/usr/bin/install -c readelf /tools/bin/readelf
/bin/sh ./libtool --mode=install /usr/bin/install -c nm-new /tools/bin/nm
/usr/bin/install -c nm-new /tools/bin/nm
/bin/sh ./libtool --mode=install /usr/bin/install -c strip-new /tools/bin/strip
/usr/bin/install -c strip-new /tools/bin/strip
/bin/sh ./libtool --mode=install /usr/bin/install -c cxxfilt /tools/bin/c++filt
/usr/bin/install -c cxxfilt /tools/bin/c++filt
/bin/sh ../../binutils-2.15.91.0.2/binutils/../mkinstalldirs /tools/i686-pc-linux-gnu/bin
for i in nm-new strip-new ar ranlib dlltool; do \
if [ -f $i ]; then \
j=`echo $i | sed -e 's/-new//'`; \
k=`echo $j | sed 's,y,y,'`; \
if [ "/tools/bin/$k" != "/tools/i686-pc-linux-gnu/bin/$j" ]; then \
rm -f /tools/i686-pc-linux-gnu/bin/$j; \
ln /tools/bin/$k /tools/i686-pc-linux-gnu/bin/$j >/dev/null 2>/dev/null \
|| /bin/sh ./libtool --mode=install /usr/bin/install -c $i /tools/i686-pc-linux-gnu/bin/$j; \
fi; \
else true; \
fi; \
done
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/mnt/lfs/sources/binutils-build/binutils'
make[2]: Leaving directory `/mnt/lfs/sources/binutils-build/binutils'
make[1]: Leaving directory `/mnt/lfs/sources/binutils-build/binutils'
make[1]: Entering directory `/mnt/lfs/sources/binutils-build/etc'
for f in standards.info configure.info; do \
if test -f ../../binutils-2.15.91.0.2/etc/`echo $f | sed -e 's/.info$/.texi/'`; then \
if make "MAKEINFO=/mnt/lfs/sources/binutils-2.15.91.0.2/missing makeinfo --split-size=5000000" $f; then \
true; \
else \
exit 1; \
fi; \
fi; \
done
make[2]: Entering directory `/mnt/lfs/sources/binutils-build/etc'
make[2]: `standards.info' is up to date.
make[2]: Leaving directory `/mnt/lfs/sources/binutils-build/etc'
make[2]: Entering directory `/mnt/lfs/sources/binutils-build/etc'
make[2]: `configure.info' is up to date.
make[2]: Leaving directory `/mnt/lfs/sources/binutils-build/etc'
/bin/sh ../../binutils-2.15.91.0.2/etc/../mkinstalldirs /tools/info
if test ! -f standards.info; then cd ../../binutils-2.15.91.0.2/etc; fi; \
if test -f standards.info; then \
for i in standards.info*; do \
/usr/bin/install -c -m 644 $i /tools/info/$i; \
done; \
fi
if test ! -f configure.info; then cd ../../binutils-2.15.91.0.2/etc; fi; \
if test -f configure.info; then \
for i in configure.info*; do \
/usr/bin/install -c -m 644 $i /tools/info/$i; \
done; \
fi
make[1]: Leaving directory `/mnt/lfs/sources/binutils-build/etc'
make[1]: Entering directory `/mnt/lfs/sources/binutils-build/gas'
Making install in doc
make[2]: Entering directory `/mnt/lfs/sources/binutils-build/gas/doc'
make[3]: Entering directory `/mnt/lfs/sources/binutils-build/gas/doc'
make[3]: Nothing to be done for `install-exec-am'.
test -z "/tools/info" || mkdir -p -- . "/tools/info"
/usr/bin/install -c -m 644 '../../../binutils-2.15.91.0.2/gas/doc/as.info' '/tools/info/as.info'
test -z "/tools/man/man1" || mkdir -p -- . "/tools/man/man1"
/usr/bin/install -c -m 644 'as.1' '/tools/man/man1/as.1'
make[3]: Leaving directory `/mnt/lfs/sources/binutils-build/gas/doc'
make[2]: Leaving directory `/mnt/lfs/sources/binutils-build/gas/doc'
Making install in po
make[2]: Entering directory `/mnt/lfs/sources/binutils-build/gas/po'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory `/mnt/lfs/sources/binutils-build/gas/po'
make[2]: Entering directory `/mnt/lfs/sources/binutils-build/gas'
make[3]: Entering directory `/mnt/lfs/sources/binutils-build/gas'
/bin/sh ../../binutils-2.15.91.0.2/gas/../mkinstalldirs /tools/bin
/bin/sh ./libtool --mode=install /usr/bin/install -c as-new /tools/bin/as
/usr/bin/install -c as-new /tools/bin/as
/bin/sh ../../binutils-2.15.91.0.2/gas/../mkinstalldirs /tools/i686-pc-linux-gnu/bin
n=`echo as | sed 's,y,y,'`; \
if [ "/tools/bin/$n" != "/tools/i686-pc-linux-gnu/bin/as" ]; then \
rm -f /tools/i686-pc-linux-gnu/bin/as; \
ln /tools/bin/$n /tools/i686-pc-linux-gnu/bin/as >/dev/null 2>/dev/null \
|| /bin/sh ./libtool --mode=install /usr/bin/install -c as-new /tools/i686-pc-linux-gnu/bin/as; \
else \
true ; \
fi
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/mnt/lfs/sources/binutils-build/gas'
make[2]: Leaving directory `/mnt/lfs/sources/binutils-build/gas'
make[1]: Leaving directory `/mnt/lfs/sources/binutils-build/gas'
make[1]: Entering directory `/mnt/lfs/sources/binutils-build/gprof'
make install-recursive
make[2]: Entering directory `/mnt/lfs/sources/binutils-build/gprof'
Making install in po
make[3]: Entering directory `/mnt/lfs/sources/binutils-build/gprof/po'
make[3]: Nothing to be done for `install'.
make[3]: Leaving directory `/mnt/lfs/sources/binutils-build/gprof/po'
make[3]: Entering directory `/mnt/lfs/sources/binutils-build/gprof'
make[4]: Entering directory `/mnt/lfs/sources/binutils-build/gprof'
test -z "/tools/bin" || mkdir -p -- . "/tools/bin"
/bin/sh ./libtool --mode=install /usr/bin/install -c 'gprof' '/tools/bin/gprof'
/usr/bin/install -c gprof /tools/bin/gprof
Making install-info in po
make[5]: Entering directory `/mnt/lfs/sources/binutils-build/gprof/po'
make[5]: Nothing to be done for `install-info'.
make[5]: Leaving directory `/mnt/lfs/sources/binutils-build/gprof/po'
make[5]: Entering directory `/mnt/lfs/sources/binutils-build/gprof'
test -z "/tools/info" || mkdir -p -- . "/tools/info"
/usr/bin/install -c -m 644 '../../binutils-2.15.91.0.2/gprof/gprof.info' '/tools/info/gprof.info'
make[5]: Leaving directory `/mnt/lfs/sources/binutils-build/gprof'
test -z "/tools/man/man1" || mkdir -p -- . "/tools/man/man1"
/usr/bin/install -c -m 644 'gprof.1' '/tools/man/man1/gprof.1'
make[4]: Leaving directory `/mnt/lfs/sources/binutils-build/gprof'
make[3]: Leaving directory `/mnt/lfs/sources/binutils-build/gprof'
make[2]: Leaving directory `/mnt/lfs/sources/binutils-build/gprof'
make[1]: Leaving directory `/mnt/lfs/sources/binutils-build/gprof'
make[1]: Entering directory `/mnt/lfs/sources/binutils-build/intl'
if test "@PACKAGE@" = "gettext" \
&& test '' = 'intl-compat.o'; then \
if test -r ../../binutils-2.15.91.0.2/intl/../../mkinstalldirs; then \
../../binutils-2.15.91.0.2/intl/../../mkinstalldirs /tools/lib /tools/include; \
else \
../../binutils-2.15.91.0.2/intl/mkinstalldirs /tools/lib /tools/include; \
fi; \
/usr/bin/install -c -m 644 intlh.inst /tools/include/libintl.h; \
/usr/bin/install -c -m 644 libintl.a /tools/lib/libintl.a; \
else \
: ; \
fi
if test "@PACKAGE@" = "gettext"; then \
if test -r ../../binutils-2.15.91.0.2/intl/../../mkinstalldirs; then \
../../binutils-2.15.91.0.2/intl/../../mkinstalldirs /tools/share/gettext/intl; \
else \
../../binutils-2.15.91.0.2/intl/mkinstalldirs /tools/share/gettext/intl; \
fi; \
/usr/bin/install -c -m 644 VERSION /tools/share/gettext/intl/VERSION; \
dists="ChangeLog Makefile.in linux-msg.sed po2tbl.sed.in xopen-msg.sed gettext.h gettextP.h hash-string.h libgettext.h loadinfo.h bindtextdom.c dcgettext.c dgettext.c gettext.c finddomain.c loadmsgcat.c localealias.c textdomain.c l10nflist.c explodename.c intl-compat.c cat-compat.c"; \
for file in $dists; do \
/usr/bin/install -c -m 644 ../../binutils-2.15.91.0.2/intl/$file /tools/share/gettext/intl/$file; \
done; \
else \
: ; \
fi
make[1]: Leaving directory `/mnt/lfs/sources/binutils-build/intl'
make[1]: Entering directory `/mnt/lfs/sources/binutils-build/ld'
Making install in po
make[2]: Entering directory `/mnt/lfs/sources/binutils-build/ld/po'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory `/mnt/lfs/sources/binutils-build/ld/po'
make[2]: Entering directory `/mnt/lfs/sources/binutils-build/ld'
make[3]: Entering directory `/mnt/lfs/sources/binutils-build/ld'
/bin/sh ../../binutils-2.15.91.0.2/ld/../mkinstalldirs /tools/bin /tools/i686-pc-linux-gnu/bin
/bin/sh ./libtool --mode=install /usr/bin/install -c ld-new /tools/bin/ld
/usr/bin/install -c ld-new /tools/bin/ld
n=`echo ld | sed 's,y,y,'`; \
if [ "/tools/bin/$n" != "/tools/i686-pc-linux-gnu/bin/ld" ]; then \
rm -f /tools/i686-pc-linux-gnu/bin/ld; \
ln /tools/bin/$n /tools/i686-pc-linux-gnu/bin/ld >/dev/null 2>/dev/null \
|| /bin/sh ./libtool --mode=install /usr/bin/install -c ld-new /tools/i686-pc-linux-gnu/bin/ld; \
fi
make install-man1
make[4]: Entering directory `/mnt/lfs/sources/binutils-build/ld'
/bin/sh ../../binutils-2.15.91.0.2/ld/../mkinstalldirs /tools/man/man1
/usr/bin/install -c -m 644 ld.1 /tools/man/man1/ld.1
make[4]: Leaving directory `/mnt/lfs/sources/binutils-build/ld'
/bin/sh ../../binutils-2.15.91.0.2/ld/../mkinstalldirs /tools/i686-pc-linux-gnu/lib/ldscripts
for f in ldscripts/*; do \
/usr/bin/install -c -m 644 $f /tools/i686-pc-linux-gnu/lib/$f ; \
done
make[3]: Leaving directory `/mnt/lfs/sources/binutils-build/ld'
make[2]: Leaving directory `/mnt/lfs/sources/binutils-build/ld'
Making install-info in po
make[2]: Entering directory `/mnt/lfs/sources/binutils-build/ld/po'
make[2]: Nothing to be done for `install-info'.
make[2]: Leaving directory `/mnt/lfs/sources/binutils-build/ld/po'
make[2]: Entering directory `/mnt/lfs/sources/binutils-build/ld'
/bin/sh ../../binutils-2.15.91.0.2/ld/../mkinstalldirs /tools/info
/usr/bin/install -c -m 644 ./ld.info /tools/info/ld.info
make[2]: Leaving directory `/mnt/lfs/sources/binutils-build/ld'
make[1]: Leaving directory `/mnt/lfs/sources/binutils-build/ld'
make[1]: Entering directory `/mnt/lfs/sources/binutils-build/libiberty'
make[2]: Entering directory `/mnt/lfs/sources/binutils-build/libiberty/testsuite'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/mnt/lfs/sources/binutils-build/libiberty/testsuite'
/bin/sh ../../binutils-2.15.91.0.2/libiberty/../mkinstalldirs /tools/lib
/usr/bin/install -c -m 644 ./libiberty.a /tools/lib/./libiberty.an
( cd /tools/lib ; ranlib ./libiberty.an )
mv -f /tools/lib/./libiberty.an /tools/lib/./libiberty.a
if test -n ""; then \
case "" in \
/*) thd=;; \
*) thd=/tools/include/;; \
esac; \
/bin/sh ../../binutils-2.15.91.0.2/libiberty/../mkinstalldirs ${thd}; \
for h in ../../binutils-2.15.91.0.2/libiberty/../include/ansidecl.h ../../binutils-2.15.91.0.2/libiberty/../include/demangle.h ../../binutils-2.15.91.0.2/libiberty/../include/dyn-string.h ../../binutils-2.15.91.0.2/libiberty/../include/fibheap.h ../../binutils-2.15.91.0.2/libiberty/../include/floatformat.h ../../binutils-2.15.91.0.2/libiberty/../include/hashtab.h ../../binutils-2.15.91.0.2/libiberty/../include/libiberty.h ../../binutils-2.15.91.0.2/libiberty/../include/objalloc.h ../../binutils-2.15.91.0.2/libiberty/../include/partition.h ../../binutils-2.15.91.0.2/libiberty/../include/safe-ctype.h ../../binutils-2.15.91.0.2/libiberty/../include/sort.h ../../binutils-2.15.91.0.2/libiberty/../include/splay-tree.h ../../binutils-2.15.91.0.2/libiberty/../include/ternary.h; do \
/usr/bin/install -c -m 644 $h ${thd}; \
done; \
fi
make[2]: Entering directory `/mnt/lfs/sources/binutils-build/libiberty/testsuite'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory `/mnt/lfs/sources/binutils-build/libiberty/testsuite'
make[1]: Leaving directory `/mnt/lfs/sources/binutils-build/libiberty'
Any thoughts would be greatly appreciated. /mnt/lfs is owned by user lfs and group lfs, as are all subdirectories/files. HELP!!!
 
Old 07-11-2005, 02:52 AM   #2
freegianghu
Member
 
Registered: Oct 2004
Location: somewhere in the street
Distribution: Window$
Posts: 192

Rep: Reputation: 30
Re: HELP!!! Binutils won't compile correctly

Quote:
Originally posted by microsoft/linux
ok, here's the problem. I downloaded the lfs-packages-6.0.tar file, and unpacked it in /mnt/lfs/tools. Then I unpacked binutils-2<etc.>, made the binutils-build directory. Changed to binutils-build, and confgured binutils according to the book. after running 'make install' as lfs(the user) I got the output


I then tried the same command('make install') as root, and got the following output


Any thoughts would be greatly appreciated. /mnt/lfs is owned by user lfs and group lfs, as are all subdirectories/files. HELP!!!
I think, you had been installed binutils by root before. Could you empty tools dir before make install by lfs user?
 
Old 07-11-2005, 07:52 AM   #3
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445

Original Poster
Blog Entries: 9

Rep: Reputation: 48
there is nothing in the tools directory, except ./ and ../. I'm almost positive everything is owned by lfs. Could you explain what you want me to do in more detail?
 
Old 07-11-2005, 09:04 PM   #4
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445

Original Poster
Blog Entries: 9

Rep: Reputation: 48
come on, noone knows?
 
Old 07-11-2005, 09:20 PM   #5
freegianghu
Member
 
Registered: Oct 2004
Location: somewhere in the street
Distribution: Window$
Posts: 192

Rep: Reputation: 30
Quote:
Originally posted by microsoft/linux
come on, noone knows?
It take nomuch time to rebuild binutils, do you think so? I suggest remove toolchain before reinstall:
Code:
# rm -rf /nmt/lfs/tools/*
 
Old 07-11-2005, 09:39 PM   #6
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445

Original Poster
Blog Entries: 9

Rep: Reputation: 48
there's nothing in /mnt/lfs/tools. I'll try it, but I don't think it will do anything
 
Old 07-12-2005, 12:11 PM   #7
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445

Original Poster
Blog Entries: 9

Rep: Reputation: 48
ok, I don't know what went wrong, but I fixed it. I removed user/group lfs, /tools, and formatted /mnt/lfs. I started over following the book, and now it works. Thanks for your time
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Binutils won't compile because it can't find install.sh CPUFreak91 Linux From Scratch 2 09-01-2005 08:32 AM
How to specify target when compile binutils? huweiming268 Programming 3 07-17-2005 11:42 PM
Compile binutils as lfs or root? El Basto Linux From Scratch 5 09-13-2004 01:37 PM
binutils - trying to compile peok Linux - Software 8 08-17-2004 12:09 PM
can't compile binutils (chapter 6) alaios Linux From Scratch 2 03-24-2004 04:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 04:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration