LinuxQuestions.org
Review your favorite Linux distribution.
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 09-26-2011, 06:11 PM   #1
steviebob
Member
 
Registered: Jan 2010
Location: Arkansas
Distribution: Slackware-Current, LFS
Posts: 136

Rep: Reputation: 16
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
 
Old 09-27-2011, 01:31 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
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.
 
Old 09-27-2011, 07:48 PM   #3
steviebob
Member
 
Registered: Jan 2010
Location: Arkansas
Distribution: Slackware-Current, LFS
Posts: 136

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by druuna View Post
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

Last edited by steviebob; 09-27-2011 at 08:06 PM.
 
Old 09-28-2011, 01:37 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
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.
 
Old 09-28-2011, 05:01 PM   #5
steviebob
Member
 
Registered: Jan 2010
Location: Arkansas
Distribution: Slackware-Current, LFS
Posts: 136

Original Poster
Rep: Reputation: 16
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
 
Old 09-29-2011, 05:20 AM   #6
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Nice to see you got it fixed!
 
  


Reply

Tags
binutils, host, lfs, rtequirements


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
compilation with binutils-2.18 shobhitsharda Linux From Scratch 2 06-01-2009 06:26 AM
binutils-2.17 compilation error rcg1984 Linux From Scratch 7 04-16-2009 09:17 AM
compilation error-binutils-2.16.1 ashmita04 Linux From Scratch 1 10-24-2007 03:50 AM
compilation error- binutils 2.16.1 baljeet Linux From Scratch 2 10-19-2007 10:40 AM
BINUTILS 2.9.1 - Compilation errors BlueSpirit Slackware 7 08-14-2006 10:36 AM

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

All times are GMT -5. The time now is 12:57 PM.

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