Build Binutils-2.18 - Pass 1

Anthony Price elenmar at mailworks.org
Sat Feb 7 01:00:10 PST 2009


ForrestG wrote:
> Hello
>
> Im new at LFS, I use 6.4 book for building my own simple linux but
> I need to help with compilation Binutils.
> If a make it a get this error.
>
>
> make[3]: Entering directory `/mnt/lfs/sources/binutils-build/bfd/doc'
> restore=: && backupdir=".am$$" && \
> 	rm -rf $backupdir && mkdir $backupdir && \
> 	if (/mnt/lfs/sources/binutils-2.18/missing makeinfo --split-size=5000000 --split-size=5000000 --version) >/dev/null 2>&1; then \
> 	  for f in bfd.info bfd.info-[0-9] bfd.info-[0-9][0-9] bfd.i[0-9] bfd.i[0-9][0-9]; do \
> 	    if test -f $f; then mv $f $backupdir; restore=mv; else :; fi; \
> 	  done; \
> 	else :; fi && \
> 	if /mnt/lfs/sources/binutils-2.18/missing makeinfo --split-size=5000000 --split-size=5000000   -I ../../../binutils-2.18/bfd/doc \
> 	 -o bfd.info `test -f 'bfd.texinfo' || echo '../../../binutils-2.18/bfd/doc/'`bfd.texinfo; \
> 	then \
> 	  rc=0; \
> 	else \
> 	  rc=$?; \
> 	  $restore $backupdir/* `echo "./bfd.info" | sed 's|[^/]*$||'`; \
> 	fi; \
> 	rm -rf $backupdir; exit $rc
> WARNING: `makeinfo' is missing on your system.  You should only need it if
>          you modified a `.texi' or `.texinfo' file, or any other file
>          indirectly affecting the aspect of the manual.  The spurious
>          call might also be the consequence of using a buggy `make' (AIX,
>          DU, IRIX).  You might want to install the `Texinfo' package or
>          the `GNU make' package.  Grab either from any GNU archive site.
> make[3]: *** [bfd.info] Error 1
> make[3]: Leaving directory `/mnt/lfs/sources/binutils-build/bfd/doc'
> Making info in po
> make[3]: Entering directory `/mnt/lfs/sources/binutils-build/bfd/po'
> make[3]: Nothing to be done for `info'.
> make[3]: Leaving directory `/mnt/lfs/sources/binutils-build/bfd/po'
> make[3]: Entering directory `/mnt/lfs/sources/binutils-build/bfd'
> make[3]: Nothing to be done for `info-am'.
> make[3]: Leaving directory `/mnt/lfs/sources/binutils-build/bfd'
> make[2]: *** [info-recursive] Error 1
> make[2]: Leaving directory `/mnt/lfs/sources/binutils-build/bfd'
> make[1]: *** [all-bfd] Error 2
> make[1]: Leaving directory `/mnt/lfs/sources/binutils-build'
> make: *** [all] Error 2
>
> and if I now can install 
>
> lfs at forrest:/mnt/lfs/sources/binutils-build$ make install
> make[1]: Entering directory `/mnt/lfs/sources/binutils-build'
> /bin/bash ../binutils-2.18/mkinstalldirs /tools /tools
> mkdir -p -- /tools /tools
> mkdir: cannot create directory `/tools': File exists
> mkdir: cannot create directory `/tools': File exists
> make[1]: *** [installdirs] Error 1
> make[1]: Leaving directory `/mnt/lfs/sources/binutils-build'
> make: *** [install] Error 2
>
>
> I use Ubuntu at host system a dont know whitch errors mens?
>   
I hesitate to offer advice to anyone as I am very new to LFS myself 
(only finished my first successful build a couple of days ago.)
However, what it's worth, my early difficulties stemmed from not reading 
the Book with enough attention to detail.
Each section of instructions assumes that you have:

1. Copied the source code for the package to the sources directory.
2. CD to the sources directory
3. Unpacked the compressed code
4. Changed directory to the directory created in the course of unpacking 
the source code.

 From there, follow the instructions in the book.

SO:
cp mysource.bz2 ..... sources
cd sources
tar vjxf mysource.bz2
cd mysource

Follow the Book.

I hope this helps.

Regards,

Anthony.





More information about the lfs-support mailing list