LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   binutils compilation unsuccessful (http://www.linuxquestions.org/questions/linux-from-scratch-13/binutils-compilation-unsuccessful-905126/)

steviebob 09-26-2011 05:11 PM

binutils compilation unsuccessful
 
I recently decided to (re)try making my own LFS build on my laptop, and everything went just fine until I tried to build the first package in the book, binutils. Anywho, here's the error output:

From running MAKE:
Code:

        rm -rf $backupdir && mkdir $backupdir && \
        if (/media/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 /media/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 `/media/LFS/sources/binutils-build/bfd/doc'
Making info in po
make[3]: Entering directory `/media/LFS/sources/binutils-build/bfd/po'
make[3]: Nothing to be done for `info'.
make[3]: Leaving directory `/media/LFS/sources/binutils-build/bfd/po'
make[3]: Entering directory `/media/LFS/sources/binutils-build/bfd'
make[3]: Nothing to be done for `info-am'.
make[3]: Leaving directory `/media/LFS/sources/binutils-build/bfd'
make[2]: *** [info-recursive] Error 1
make[2]: Leaving directory `/media/LFS/sources/binutils-build/bfd'
make[1]: *** [all-bfd] Error 2
make[1]: Leaving directory `/media/LFS/sources/binutils-build'
make: *** [all] Error 2

aaaand from running `make install`
Code:

f=""; \
        for i in elf32-i386.lo elf-vxworks.lo elf32.lo elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo i386linux.lo aout32.lo efi-app-ia32.lo peigen.lo cofflink.lo elf32-gen.lo cpu-i386.lo  ; do \
          case " $f " in \
            *" $i "*) ;; \
            *) f="$f $i" ;; \
          esac ; \
        done ; \
        echo $f > tofiles
/bin/bash ../../binutils-2.18/bfd/../move-if-change tofiles ofiles
touch stamp-ofiles
/bin/bash ./libtool --tag=CC --mode=link gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2  -o libbfd.la -rpath /tools/i686-pc-linux-gnu/i686-lfs-linux-gnu/lib -release `cat libtool-soversion`  archive.lo archures.lo bfd.lo bfdio.lo bfdwin.lo cache.lo coffgen.lo corefile.lo format.lo init.lo libbfd.lo opncls.lo reloc.lo section.lo syms.lo targets.lo hash.lo linker.lo srec.lo binary.lo tekhex.lo ihex.lo stabs.lo stab-syms.lo merge.lo dwarf2.lo simple.lo `cat ofiles` 
libtool: link: ar rc .libs/libbfd.a  archive.o archures.o bfd.o bfdio.o bfdwin.o cache.o coffgen.o corefile.o format.o init.o libbfd.o opncls.o reloc.o section.o syms.o targets.o hash.o linker.o srec.o binary.o tekhex.o ihex.o stabs.o stab-syms.o merge.o dwarf2.o simple.o elf32-i386.o elf-vxworks.o elf32.o elf.o elflink.o elf-attrs.o elf-strtab.o elf-eh-frame.o dwarf1.o i386linux.o aout32.o efi-app-ia32.o peigen.o cofflink.o elf32-gen.o cpu-i386.o
libtool: link: ranlib .libs/libbfd.a
libtool: link: creating libbfd.la
libtool: link: ( cd ".libs" && rm -f "libbfd.la" && ln -s "../libbfd.la" "libbfd.la" )
libtooldir=`/bin/bash ./libtool --config | sed -n -e 's/^objdir=//p'`; \
        if [ -f $libtooldir/libbfd.a ]; then \
          cp $libtooldir/libbfd.a libbfd.tmp; \
          ranlib libbfd.tmp; \
          /bin/bash ../../binutils-2.18/bfd/../move-if-change libbfd.tmp libbfd.a; \
        else true; fi
touch stamp-lib
make[4]: Entering directory `/media/LFS/sources/binutils-build/bfd'
make[4]: Nothing to be done for `install-exec-am'.
make[4]: Leaving directory `/media/LFS/sources/binutils-build/bfd'
make[3]: Leaving directory `/media/LFS/sources/binutils-build/bfd'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/media/LFS/sources/binutils-build/bfd'
make[1]: *** [install-bfd] Error 2
make[1]: Leaving directory `/media/LFS/sources/binutils-build'
make: *** [install] Error 2

I don't know if these errors are acceptable or not, so I'm posting here.

The system I'm building from is Ubuntu 11.04 32-bit using gcc 4.5.2

Any help is appreciated
~Steve

druuna 09-27-2011 12:31 AM

Hi,

Did you make your host compliant? vii. Host System Requirements (points to LFS 6.8 stable. I assume you are trying to build that one).

It seems you are missing at least one package.
Code:

WARNING: `makeinfo' is missing on your system.
BTW: If the make step fails, there's no use in doing the make install step (same is true for configure -> make step).

Hope this helps.

steviebob 09-27-2011 06:48 PM

Quote:

Originally Posted by druuna (Post 4483176)
Hi,

Did you make your host compliant? vii. Host System Requirements (points to LFS 6.8 stable. I assume you are trying to build that one).

It seems you are missing at least one package.
Code:

WARNING: `makeinfo' is missing on your system.
BTW: If the make step fails, there's no use in doing the make install step (same is true for configure -> make step).

Hope this helps.

Hm. Seems that texinfo (the pkg that makeinfo is in) is already installed.

EDIT:

I searched through some forums and found that reinstalling texinfo through
Code:

sudo apt-get install --reinstall texinfo
sometimes helps, but in my case, it didn't. It returns the same error yet again.

EDIT 2:

I went into the terminal and to see if I could execute makeinfo, and there it is. But why isn't make seeing it?

~Steve

druuna 09-28-2011 12:37 AM

Hi,

I guess we need to dig a little deeper.

Can you post the following:

- The version-check.sh script output,
- The binutils config.log file,
- Full output of the make command.

Before you do the last 2 steps: First remove the $LFS/sources/binutils-2.21 and $LFS/sources/binutils-build directories and start fresh with untarring the binutils tarball.

Hope this helps.

steviebob 09-28-2011 04:01 PM

Odd. On a hunch, I went a re dl'd the source, and compiled and ran all that make stuff, and it worked perfectly. Ah well, thanks for your support anyway :)

druuna 09-29-2011 04:20 AM

Nice to see you got it fixed!


All times are GMT -5. The time now is 11:35 PM.