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 09-12-2013, 07:13 AM   #1
jddantes
LQ Newbie
 
Registered: Sep 2013
Posts: 22

Rep: Reputation: Disabled
Make error in compiling binutils


When this is run from /mnt/lfs/sources/binutils-build

../binutils-2.23.2/configure \
--prefix=/tools \
--with-sysroot=$LFS \
--with-lib-path=/tools/lib \
--target=$LFS_TGT \
--disable-nls \
--disable-werror

and then after that, make

the error showed up like this:

rm -rf $backupdir; exit $rc
../../../binutils-2.23.2/bfd/doc/bfd.texinfo:325: unknown command `colophon'
../../../binutils-2.23.2/bfd/doc/bfd.texinfo:336: unknown command `cygnus'
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

I've tried using make clean as suggested in another thread and this is what I got:

[lfs@jdhost binutils-build]$ make clean
make[1]: Entering directory `/mnt/lfs/sources/binutils-build'
Doing clean in bfd
make[2]: Entering directory `/mnt/lfs/sources/binutils-build/bfd'
Making clean in po
make[3]: Entering directory `/mnt/lfs/sources/binutils-build/bfd/po'
rm -f core core.* *.pox bfd.po *.old.po cat-id-tbl.tmp
rm -fr *.o
make[3]: Leaving directory `/mnt/lfs/sources/binutils-build/bfd/po'
Making clean in doc
make[3]: Entering directory `/mnt/lfs/sources/binutils-build/bfd/doc'
test -z "bfd.dvi bfd.pdf bfd.ps bfd.html" \
|| rm -rf bfd.dvi bfd.pdf bfd.ps bfd.html
test -z "*.p *.ip" || rm -f *.p *.ip
rm -rf .libs _libs
rm -rf bfd.aux bfd.cp bfd.cps bfd.fn bfd.ky bfd.kys bfd.log bfd.pg bfd.pgs \
bfd.tmp bfd.toc bfd.tp bfd.tps bfd.vr bfd.vrs
test -z "chew *.o" || rm -f chew *.o
rm -f *.lo
make[3]: Leaving directory `/mnt/lfs/sources/binutils-build/bfd/doc'
Making clean in .
make[3]: Entering directory `/mnt/lfs/sources/binutils-build/bfd'
test -z "" || rm -f
test -z "bfd.h dep.sed stmp-bfd-h DEP DEPA DEP1 DEP2 libbfd.a stamp-lib stmp-bin2-h stmp-lbfd-h stmp-lcoff-h" || rm -f bfd.h dep.sed stmp-bfd-h DEP DEPA DEP1 DEP2 libbfd.a stamp-lib stmp-bin2-h stmp-lbfd-h stmp-lcoff-h
rm -rf .libs _libs
test -z "libbfd.a" || rm -f libbfd.a
test -z "libbfd.la" || rm -f libbfd.la
rm -f "./so_locations"
rm -f *.o
test -z "ofiles stamp-ofiles" || rm -f ofiles stamp-ofiles
rm -f *.lo
make[3]: Leaving directory `/mnt/lfs/sources/binutils-build/bfd'
make[2]: Leaving directory `/mnt/lfs/sources/binutils-build/bfd'
Doing clean in intl
make[2]: Entering directory `/mnt/lfs/sources/binutils-build/intl'
rm -f *.a *.la *.o *.obj *.lo core core.* libintl.h
make[2]: Leaving directory `/mnt/lfs/sources/binutils-build/intl'
Doing clean in libiberty
make[2]: Entering directory `/mnt/lfs/sources/binutils-build/libiberty'
CONFIG_FILES= CONFIG_HEADERS=config.h:../../binutils-2.23.2/libiberty/config.in /bin/sh ./config.status
config.status: creating config.h
config.status: executing default commands
make[3]: Entering directory `/mnt/lfs/sources/binutils-build/libiberty/testsuite'
rm -f test-demangle
rm -f test-pexecute
rm -f test-expandargv
rm -f core
make[3]: Leaving directory `/mnt/lfs/sources/binutils-build/libiberty/testsuite'
make SUBDIRS="" mostlyclean
make[3]: Entering directory `/mnt/lfs/sources/binutils-build/libiberty'
rm -rf *.o pic core errs \#* *.E a.out
rm -f errors dummy config.h stamp-*
rm -f stamp-picdir
rm -f libiberty.aux libiberty.cp libiberty.cps libiberty.fn libiberty.ky
rm -f libiberty.log libiberty.tmp libiberty.tps libiberty.pg
rm -f libiberty.pgs libiberty.toc libiberty.tp libiberty.tpl libiberty.vr
rm -f libtexi.stamp
make[3]: Leaving directory `/mnt/lfs/sources/binutils-build/libiberty'
rm -f *.a required-list tmpmulti.out
rm -f libiberty.dvi libiberty.pdf libiberty.info* libiberty.html
make[2]: Leaving directory `/mnt/lfs/sources/binutils-build/libiberty'
make[1]: Nothing to be done for `clean-target'.
make[1]: Leaving directory `/mnt/lfs/sources/binutils-build'
rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log

Unsure as to whether it was a success or not, I ran make again, leading once more to the output posted above.
 
Old 09-12-2013, 09:09 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 8,922

Rep: Reputation: 915Reputation: 915Reputation: 915Reputation: 915Reputation: 915Reputation: 915Reputation: 915Reputation: 915
I would remove binutils, & binutils-build, check the archive (md5sum or sha1sum) and start again.
 
Old 09-12-2013, 09:45 AM   #3
jddantes
LQ Newbie
 
Registered: Sep 2013
Posts: 22

Original Poster
Rep: Reputation: Disabled
This was actually the second time (technically third - I've done one that had binutils-build outside sources); I used a partition on the host the first time so I decided on doing it again.

Could it have been the files themselves (though confirmed OK by md5sums)?
For reference, here's the wget-list I used:

http://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.xz
http://ftp.gnu.org/gnu/automake/automake-1.14.tar.xz
http://ftp.gnu.org/gnu/bash/bash-4.2.tar.gz
http://alpha.gnu.org/gnu/bc/bc-1.06.95.tar.bz2
http://ftp.gnu.org/gnu/binutils/binutils-2.23.2.tar.bz2
http://ftp.gnu.org/gnu/bison/bison-3.0.tar.xz
http://www.bzip.org/1.0.6/bzip2-1.0.6.tar.gz
http://sourceforge.net/projects/chec...-0.9.10.tar.gz
http://ftp.gnu.org/gnu/coreutils/coreutils-8.21.tar.xz
http://ftp.gnu.org/gnu/dejagnu/dejagnu-1.5.1.tar.gz
http://ftp.gnu.org/gnu/diffutils/diffutils-3.3.tar.xz
http://prdownloads.sourceforge.net/e...-1.42.8.tar.gz
http://prdownloads.sourceforge.net/e...ect5.45.tar.gz
ftp://ftp.astron.com/pub/file/file-5.14.tar.gz
http://ftp.gnu.org/gnu/findutils/findutils-4.4.2.tar.gz
http://prdownloads.sourceforge.net/f...2.5.37.tar.bz2
http://ftp.gnu.org/gnu/gawk/gawk-4.1.0.tar.xz
http://ftp.gnu.org/gnu/gcc/gcc-4.8.1/gcc-4.8.1.tar.bz2
http://ftp.gnu.org/gnu/gdbm/gdbm-1.10.tar.gz
http://ftp.gnu.org/gnu/gettext/gettext-0.18.3.tar.gz
http://ftp.gnu.org/gnu/glibc/glibc-2.18.tar.xz
ftp://ftp.gmplib.org/pub/gmp-5.1.2/gmp-5.1.2.tar.xz
http://ftp.gnu.org/gnu/grep/grep-2.14.tar.xz
http://ftp.gnu.org/gnu/groff/groff-1.22.2.tar.gz
http://ftp.gnu.org/gnu/grub/grub-2.00.tar.xz
http://ftp.gnu.org/gnu/gzip/gzip-1.6.tar.xz
http://anduin.linuxfromscratch.org/s...c-2.30.tar.bz2
http://ftp.gnu.org/gnu/inetutils/inetutils-1.9.1.tar.gz
http://www.kernel.org/pub/linux/util...-3.10.0.tar.xz
http://ftp.altlinux.org/pub/people/l...-1.15.5.tar.gz
http://www.kernel.org/pub/linux/util...kmod-14.tar.xz
http://www.greenwoodsoftware.com/less/less-458.tar.gz
http://www.linuxfromscratch.org/lfs/...130821.tar.bz2
http://download.savannah.gnu.org/rel...e-1.2.4.tar.gz
http://ftp.gnu.org/gnu/libtool/libtool-2.4.2.tar.gz
http://www.kernel.org/pub/linux/kern...3.10.10.tar.xz
http://ftp.gnu.org/gnu/m4/m4-1.4.16.tar.bz2
http://ftp.gnu.org/gnu/make/make-3.82.tar.bz2
http://download.savannah.gnu.org/rel...b-2.6.5.tar.xz
http://www.kernel.org/pub/linux/docs...es-3.53.tar.xz
http://www.multiprecision.org/mpc/do...c-1.0.1.tar.gz
http://www.mpfr.org/mpfr-3.1.2/mpfr-3.1.2.tar.xz
http://ftp.gnu.org/gnu/ncurses/ncurses-5.9.tar.gz
http://ftp.gnu.org/gnu/patch/patch-2.7.1.tar.xz
http://www.cpan.org/src/5.0/perl-5.18.1.tar.bz2
http://pkgconfig.freedesktop.org/rel...ig-0.28.tar.gz
http://sourceforge.net/projects/proc...g-3.3.8.tar.xz
http://prdownloads.sourceforge.net/p...c-22.20.tar.gz
http://ftp.gnu.org/gnu/readline/readline-6.2.tar.gz
http://ftp.gnu.org/gnu/sed/sed-4.2.2.tar.bz2
http://pkg-shadow.alioth.debian.org/....1.5.1.tar.bz2
http://www.infodrom.org/projects/sys...ogd-1.5.tar.gz
http://download.savannah.gnu.org/rel....88dsf.tar.bz2
http://ftp.gnu.org/gnu/tar/tar-1.26.tar.bz2
http://prdownloads.sourceforge.net/t...6.0-src.tar.gz
http://www.iana.org/time-zones/repos...ta2013d.tar.gz
http://ftp.gnu.org/gnu/texinfo/texinfo-5.1.tar.xz
http://www.freedesktop.org/software/...emd-206.tar.xz
http://anduin.linuxfromscratch.org/s...-206-1.tar.bz2
http://www.kernel.org/pub/linux/util...-2.23.2.tar.xz
ftp://ftp.vim.org/pub/vim/unix/vim-7.4.tar.bz2
http://tukaani.org/xz/xz-5.0.5.tar.xz
http://www.zlib.net/zlib-1.2.8.tar.xz
http://www.linuxfromscratch.org/patc...4-test-1.patch
http://www.linuxfromscratch.org/patc...fixes-12.patch
http://www.linuxfromscratch.org/patc...l_docs-1.patch
http://www.linuxfromscratch.org/patc...1-i18n-1.patch
http://www.linuxfromscratch.org/patc...kspace-1.patch
http://www.linuxfromscratch.org/patc..._fixes-3.patch
http://www.linuxfromscratch.org/patc...1-libc-1.patch
http://www.linuxfromscratch.org/patc...anpage-1.patch
http://www.linuxfromscratch.org/patc...-fixes-1.patch
http://www.linuxfromscratch.org/patc...1-test-1.patch
 
Old 09-12-2013, 09:52 AM   #4
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 10,898

Rep: Reputation: 3241Reputation: 3241Reputation: 3241Reputation: 3241Reputation: 3241Reputation: 3241Reputation: 3241Reputation: 3241Reputation: 3241Reputation: 3241Reputation: 3241
looks like there is a patch: http://www.mail-archive.com/bug-binu.../msg14429.html
 
Old 09-12-2013, 04:16 PM   #5
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-Current
Posts: 6,431
Blog Entries: 15

Rep: Reputation: 1997Reputation: 1997Reputation: 1997Reputation: 1997Reputation: 1997Reputation: 1997Reputation: 1997Reputation: 1997Reputation: 1997Reputation: 1997Reputation: 1997
By any chance did you forget to run this?

Code:
sed -i -e 's/@colophon/@@colophon/' \
       -e 's/doc@cygnus.com/doc@@cygnus.com/' bfd/doc/bfd.texinfo
 
Old 09-14-2013, 04:32 AM   #6
jddantes
LQ Newbie
 
Registered: Sep 2013
Posts: 22

Original Poster
Rep: Reputation: Disabled
Quote:
By any chance did you forget to run this?
Code:
sed -i -e 's/@colophon/@@colophon/' \
       -e 's/doc@cygnus.com/doc@@cygnus.com/' bfd/doc/bfd.texinfo
Yes, I wasn't able to run it properly, and I dismissed it as something optional/irrelevant.

I ran it again and bfd.texinfo wasn't found. The closest thing I have is bfdio.texi.
 
Old 09-14-2013, 06:15 AM   #7
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debian
Posts: 2,288
Blog Entries: 1

Rep: Reputation: 373Reputation: 373Reputation: 373Reputation: 373
Hi

Can you post the output of version-check

http://www.linuxfromscratch.org/lfs/.../hostreqs.html
 
Old 09-15-2013, 02:40 AM   #8
jddantes
LQ Newbie
 
Registered: Sep 2013
Posts: 22

Original Poster
Rep: Reputation: Disabled
bash, version 4.2.45(2)-release
/bin/sh -> /usr/bin/bash
Binutils: (GNU Binutils) 2.23.2
bison (GNU Bison) 2.7.12-4996
/usr/bin/yacc -> /usr/bin/yacc
bzip2, Version 1.0.6, 6-Sept-2010.
Coreutils: 8.21
diff (GNU diffutils) 3.3
find (GNU findutils) 4.4.2
GNU Awk 4.1.0, API: 1.0 (GNU MPFR 3.1.2, GNU MP 5.1.2)
/usr/bin/awk -> /usr/bin/gawk
gcc (GCC) 4.8.1
g++ (GCC) 4.8.1
(GNU libc) 2.17
grep (GNU grep) 2.14
gzip 1.6
Linux version 3.10.3-1-ARCH (tobias@testing-i686) (gcc version 4.8.1 (GCC) ) #1 SMP PREEMPT Fri Jul 26 17:13:15 CEST 2013
m4 (GNU M4) 1.4.16
GNU Make 3.82
GNU patch 2.7.1
Perl version='5.18.0';
sed (GNU sed) 4.2.2
tar (GNU tar) 1.26
Texinfo: makeinfo (GNU texinfo) 5.1
xz (XZ Utils) 5.0.5
g++ compilation OK
 
Old 09-19-2013, 09:33 AM   #9
jddantes
LQ Newbie
 
Registered: Sep 2013
Posts: 22

Original Poster
Rep: Reputation: Disabled
Would using the LiveCD make the process easier for me?
 
Old 09-19-2013, 12:00 PM   #10
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debian
Posts: 2,288
Blog Entries: 1

Rep: Reputation: 373Reputation: 373Reputation: 373Reputation: 373
No because your system is compliant so that wont make a difference.
 
Old 09-19-2013, 08:27 PM   #11
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-Current
Posts: 6,431
Blog Entries: 15

Rep: Reputation: 1997Reputation: 1997Reputation: 1997Reputation: 1997Reputation: 1997Reputation: 1997Reputation: 1997Reputation: 1997Reputation: 1997Reputation: 1997Reputation: 1997
What base distribution system are you using to build LFS anyway?

If you're using any of the .rpm, .deb, and such mainstream or minimalist based distributions, you may want to check and see if you have the developer packages installed.
 
Old 09-20-2013, 10:26 AM   #12
jddantes
LQ Newbie
 
Registered: Sep 2013
Posts: 22

Original Poster
Rep: Reputation: Disabled
ArchLinux. This does not represent my experience with Linux, but rather my desire to learn.
 
Old 09-20-2013, 06:34 PM   #13
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-Current
Posts: 6,431
Blog Entries: 15

Rep: Reputation: 1997Reputation: 1997Reputation: 1997Reputation: 1997Reputation: 1997Reputation: 1997Reputation: 1997Reputation: 1997Reputation: 1997Reputation: 1997Reputation: 1997
ArchLinux should be able to produce LFS rather easily. Then again, I take that back because of the fact ArchLinux tends to be less than stable and uses very bleeding edge packages that could have not only conflicts but incompatibilities as well.

Do you have any other distributions you could use as a base-system to install with to use as a comparison?
 
Old 09-20-2013, 08:04 PM   #14
jddantes
LQ Newbie
 
Registered: Sep 2013
Posts: 22

Original Poster
Rep: Reputation: Disabled
I don't have other Linux distributions installed, although I've downloaded other isos like Ubuntu/Lubuntu, so I guess I'll try one. Thankfully, LinuxLive USB has Persistence.
 
Old 09-20-2013, 10:42 PM   #15
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-Current
Posts: 6,431
Blog Entries: 15

Rep: Reputation: 1997Reputation: 1997Reputation: 1997Reputation: 1997Reputation: 1997Reputation: 1997Reputation: 1997Reputation: 1997Reputation: 1997Reputation: 1997Reputation: 1997
I would suggest avoiding Ubuntu due to the fact Ubuntu uses packages that get confusing after a while. Staging, binary, developer, documentation packages... no thanks.

Personally, I recommend Salix. It's directly based on Slackware and runs as a Live DVD also. This way you can install LFS completely local without sacrificing space for another distribution.
 
  


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
[SOLVED] binutils make error getanshub4u Linux From Scratch 15 10-13-2012 04:10 AM
[SOLVED] Error while compiling binutils 2.15.92 package vinaytp Linux - Newbie 7 02-15-2011 06:58 AM
[SOLVED] binutils - error during make basheer Linux From Scratch 10 09-26-2010 11:47 PM
error compiling binutils R03L Linux From Scratch 3 12-18-2008 03:10 PM
error compiling GNU-ARM binutils leedude Programming 2 11-24-2008 04:38 AM

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

All times are GMT -5. The time now is 01:47 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration