LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 01-11-2014, 03:19 PM   #1
alpo85
Member
 
Registered: Nov 2012
Posts: 30

Rep: Reputation: Disabled
Verifying correct Binutils-2.23.2 Pass 1


All,

I am attempting to install LFS, and upon completion of the first pass of Binutils (LFS version 7.4, Paragraph 5.4), I found that Binutils should supply both libbfd.{a,so} and libopcodes.{a,so}. However, upon reviewing the system after the final "make install" call, I noticed that neither libbfd.{a,so} nor libopcodes.{a,so} are installed and that my ./configure output states,

Code:
checking whether to install libbfd... no
Checking known-good LFS logs at http://www.linuxfromscratch.org/lfs/build-logs/7.4/, the LFS logs also show the same indication that libbfd should not be installed.

Thus, 3 Questions:
1) How can I verify that the Binutils install is complete, bug-free, and fully operational?
2) Will the missing libopcodes.{a,so} negatively affect subsequent package builds or any other process as I continue to install the LFS system?
3) Why does Binutils not install libbfd.{a,so} on the first pass? (Though, it appears to do so on the second pass according to LFS build logs.)

System Info:

Code:
[root@localhost /]# uname -a
Linux localhost 2.6.32-431.el6.x86_64 #1 SMP Sun Nov 10 22:19:54 EST 2013 x86_64 x86_64 x86_64 GNU/Linux
md5sum of Binutils:

Code:
binutils-2.23.2.tar.bz2: OK
Host Packages Version Information:

Code:
bash, version 4.1.2(1)-release
/bin/sh -> /bin/bash
Binutils: version 2.20.51.0.2-5.36.el6 20100205
bison (GNU Bison) 2.4.1
/usr/bin/yacc -> /usr/bin/bison
bzip2,  Version 1.0.5, 10-Dec-2007.
Coreutils:  8.4
diff (GNU diffutils) 2.8.1
find (GNU findutils) 4.4.2
GNU Awk 4.1.0, API: 1.0
/usr/bin/awk -> /bin/gawk
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-4)
g++ (GCC) 4.4.7 20120313 (Red Hat 4.4.7-4)
(GNU libc) 2.12
GNU grep 2.6.3
gzip 1.3.12
Linux version 2.6.32-431.el6.x86_64 (mockbuild@x86-023.build.eng.bos.redhat.com) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC) ) #1 SMP Sun Nov 10 22:19:54 EST 2013
m4 (GNU M4) 1.4.13
GNU Make 3.81
patch 2.6
Perl version='5.10.1';
GNU sed version 4.2.1
tar (GNU tar) 1.23
Texinfo: makeinfo (GNU texinfo) 4.13
xz (XZ Utils) 5.0.5
g++ compilation OK
Commands used to configure, make, and make install:

Code:
su - lfs
cd $LFS/sources/
tar -xvf binutils-2.23.2.tar.bz2
cd binutils-2.23.2
sed -i -e 's/@colophon/@@colophon/' \
	-e 's/doc@cygnus.com/doc@@cygnus.com/' bfd/doc/bfd.texinfo
../binutils-2.23.2/configure --prefix=/tools --with-sysroot=$LFS --with-lib-path=/tools/lib --target=$LFS_TGT --disable-nls --disable-werror
make -j8 
case $(uname -m) in 
x86_64) mkdir -v /tools/lib && ln -sv lib /tools/lib64 ;; \
esac
make -j8 install
Ater installing Binutils Pass 1, the $LFS/tools directory contains the following :

Code:
lfs:LFS/tools$ find
.
./bin
./bin/x86_64-lfs-linux-gnu-gprof
./bin/x86_64-lfs-linux-gnu-strip
./bin/x86_64-lfs-linux-gnu-c++filt
./bin/x86_64-lfs-linux-gnu-readelf
./bin/x86_64-lfs-linux-gnu-size
./bin/x86_64-lfs-linux-gnu-ranlib
./bin/x86_64-lfs-linux-gnu-objcopy
./bin/x86_64-lfs-linux-gnu-ld.bfd
./bin/x86_64-lfs-linux-gnu-as
./bin/x86_64-lfs-linux-gnu-addr2line
./bin/x86_64-lfs-linux-gnu-elfedit
./bin/x86_64-lfs-linux-gnu-strings
./bin/x86_64-lfs-linux-gnu-objdump
./bin/x86_64-lfs-linux-gnu-ar
./bin/x86_64-lfs-linux-gnu-nm
./bin/x86_64-lfs-linux-gnu-ld
./lib64
./share
./share/info
./share/info/standards.info
./share/info/gprof.info
./share/info/configure.info
./share/info/binutils.info
./share/info/ld.info
./share/info/as.info
./share/info/bfd.info
./share/man
./share/man/man1
./share/man/man1/x86_64-lfs-linux-gnu-as.1
./share/man/man1/x86_64-lfs-linux-gnu-ld.1
./share/man/man1/x86_64-lfs-linux-gnu-ar.1
./share/man/man1/x86_64-lfs-linux-gnu-readelf.1
./share/man/man1/x86_64-lfs-linux-gnu-gprof.1
./share/man/man1/x86_64-lfs-linux-gnu-c++filt.1
./share/man/man1/x86_64-lfs-linux-gnu-strings.1
./share/man/man1/x86_64-lfs-linux-gnu-strip.1
./share/man/man1/x86_64-lfs-linux-gnu-dlltool.1
./share/man/man1/x86_64-lfs-linux-gnu-elfedit.1
./share/man/man1/x86_64-lfs-linux-gnu-windres.1
./share/man/man1/x86_64-lfs-linux-gnu-addr2line.1
./share/man/man1/x86_64-lfs-linux-gnu-nm.1
./share/man/man1/x86_64-lfs-linux-gnu-objcopy.1
./share/man/man1/x86_64-lfs-linux-gnu-objdump.1
./share/man/man1/x86_64-lfs-linux-gnu-nlmconv.1
./share/man/man1/x86_64-lfs-linux-gnu-size.1
./share/man/man1/x86_64-lfs-linux-gnu-ranlib.1
./share/man/man1/x86_64-lfs-linux-gnu-windmc.1
./lib
./lib/libiberty.a
./x86_64-lfs-linux-gnu
./x86_64-lfs-linux-gnu/bin
./x86_64-lfs-linux-gnu/bin/objdump
./x86_64-lfs-linux-gnu/bin/ar
./x86_64-lfs-linux-gnu/bin/ld
./x86_64-lfs-linux-gnu/bin/ld.bfd
./x86_64-lfs-linux-gnu/bin/nm
./x86_64-lfs-linux-gnu/bin/ranlib
./x86_64-lfs-linux-gnu/bin/objcopy
./x86_64-lfs-linux-gnu/bin/strip
./x86_64-lfs-linux-gnu/bin/as
./x86_64-lfs-linux-gnu/lib
./x86_64-lfs-linux-gnu/lib/ldscripts
./x86_64-lfs-linux-gnu/lib/ldscripts/elf_x86_64.xw
./x86_64-lfs-linux-gnu/lib/ldscripts/elf32_x86_64.xdc
./x86_64-lfs-linux-gnu/lib/ldscripts/elf_x86_64.xr
./x86_64-lfs-linux-gnu/lib/ldscripts/elf_x86_64.xc
./x86_64-lfs-linux-gnu/lib/ldscripts/elf_k1om.xw
./x86_64-lfs-linux-gnu/lib/ldscripts/elf_x86_64.xbn
./x86_64-lfs-linux-gnu/lib/ldscripts/elf_i386.xdw
./x86_64-lfs-linux-gnu/lib/ldscripts/elf_l1om.xw
./x86_64-lfs-linux-gnu/lib/ldscripts/elf_l1om.xsc
./x86_64-lfs-linux-gnu/lib/ldscripts/i386linux.xn
./x86_64-lfs-linux-gnu/lib/ldscripts/elf_i386.xsc
./x86_64-lfs-linux-gnu/lib/ldscripts/elf_k1om.xn
./x86_64-lfs-linux-gnu/lib/ldscripts/i386linux.xu
./x86_64-lfs-linux-gnu/lib/ldscripts/elf32_x86_64.xbn
./x86_64-lfs-linux-gnu/lib/ldscripts/elf_k1om.xd
./x86_64-lfs-linux-gnu/lib/ldscripts/elf_k1om.xs
./x86_64-lfs-linux-gnu/lib/ldscripts/elf_i386.xc
./x86_64-lfs-linux-gnu/lib/ldscripts/elf_l1om.xs
./x86_64-lfs-linux-gnu/lib/ldscripts/elf_k1om.x
./x86_64-lfs-linux-gnu/lib/ldscripts/elf_l1om.x
./x86_64-lfs-linux-gnu/lib/ldscripts/elf32_x86_64.xn
./x86_64-lfs-linux-gnu/lib/ldscripts/elf_l1om.xc
./x86_64-lfs-linux-gnu/lib/ldscripts/elf_k1om.xu
./x86_64-lfs-linux-gnu/lib/ldscripts/elf_i386.xbn
./x86_64-lfs-linux-gnu/lib/ldscripts/elf_x86_64.xsc
./x86_64-lfs-linux-gnu/lib/ldscripts/elf_k1om.xdc
./x86_64-lfs-linux-gnu/lib/ldscripts/elf_l1om.xsw
./x86_64-lfs-linux-gnu/lib/ldscripts/elf_i386.xdc
./x86_64-lfs-linux-gnu/lib/ldscripts/elf_l1om.xn
./x86_64-lfs-linux-gnu/lib/ldscripts/elf32_x86_64.xsw
./x86_64-lfs-linux-gnu/lib/ldscripts/elf_k1om.xbn
./x86_64-lfs-linux-gnu/lib/ldscripts/elf_x86_64.xsw
./x86_64-lfs-linux-gnu/lib/ldscripts/elf_x86_64.xs
./x86_64-lfs-linux-gnu/lib/ldscripts/elf_k1om.xdw
./x86_64-lfs-linux-gnu/lib/ldscripts/elf_i386.xn
./x86_64-lfs-linux-gnu/lib/ldscripts/elf_l1om.xd
./x86_64-lfs-linux-gnu/lib/ldscripts/elf_l1om.xu
./x86_64-lfs-linux-gnu/lib/ldscripts/elf_l1om.xbn
./x86_64-lfs-linux-gnu/lib/ldscripts/elf_k1om.xsc
./x86_64-lfs-linux-gnu/lib/ldscripts/elf32_x86_64.xr
./x86_64-lfs-linux-gnu/lib/ldscripts/elf32_x86_64.xu
./x86_64-lfs-linux-gnu/lib/ldscripts/elf_x86_64.xd
./x86_64-lfs-linux-gnu/lib/ldscripts/elf_i386.xd
./x86_64-lfs-linux-gnu/lib/ldscripts/elf_x86_64.xu
./x86_64-lfs-linux-gnu/lib/ldscripts/elf_k1om.xc
./x86_64-lfs-linux-gnu/lib/ldscripts/elf_l1om.xdc
./x86_64-lfs-linux-gnu/lib/ldscripts/elf_l1om.xdw
./x86_64-lfs-linux-gnu/lib/ldscripts/elf32_x86_64.xs
./x86_64-lfs-linux-gnu/lib/ldscripts/elf_x86_64.xdw
./x86_64-lfs-linux-gnu/lib/ldscripts/elf32_x86_64.xc
./x86_64-lfs-linux-gnu/lib/ldscripts/elf_i386.x
./x86_64-lfs-linux-gnu/lib/ldscripts/elf_i386.xsw
./x86_64-lfs-linux-gnu/lib/ldscripts/elf32_x86_64.x
./x86_64-lfs-linux-gnu/lib/ldscripts/elf_i386.xw
./x86_64-lfs-linux-gnu/lib/ldscripts/elf_x86_64.xdc
./x86_64-lfs-linux-gnu/lib/ldscripts/elf32_x86_64.xw
./x86_64-lfs-linux-gnu/lib/ldscripts/i386linux.xr
./x86_64-lfs-linux-gnu/lib/ldscripts/elf_x86_64.x
./x86_64-lfs-linux-gnu/lib/ldscripts/i386linux.xbn
./x86_64-lfs-linux-gnu/lib/ldscripts/elf_i386.xu
./x86_64-lfs-linux-gnu/lib/ldscripts/elf32_x86_64.xd
./x86_64-lfs-linux-gnu/lib/ldscripts/elf_i386.xr
./x86_64-lfs-linux-gnu/lib/ldscripts/elf32_x86_64.xdw
./x86_64-lfs-linux-gnu/lib/ldscripts/i386linux.x
./x86_64-lfs-linux-gnu/lib/ldscripts/elf32_x86_64.xsc
./x86_64-lfs-linux-gnu/lib/ldscripts/elf_l1om.xr
./x86_64-lfs-linux-gnu/lib/ldscripts/elf_k1om.xr
./x86_64-lfs-linux-gnu/lib/ldscripts/elf_i386.xs
./x86_64-lfs-linux-gnu/lib/ldscripts/elf_x86_64.xn
./x86_64-lfs-linux-gnu/lib/ldscripts/elf_k1om.xsw
Any assistance regarding the above 3 questions would be greatly appreciated.

Cheers,


alpo

Last edited by alpo85; 01-11-2014 at 03:33 PM.
 
Old 01-11-2014, 08:45 PM   #2
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
More or less the only way to confirm this during the tools building stage is to proceed to the next package.
 
1 members found this post helpful.
Old 01-12-2014, 03:44 AM   #3
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
Quote:
Originally Posted by alpo85 View Post
I am attempting to install LFS, and upon completion of the first pass of Binutils (LFS version 7.4, Paragraph 5.4), I found that Binutils should supply both libbfd.{a,so} and libopcodes.{a,so}. However, upon reviewing the system after the final "make install" call, I noticed that neither libbfd.{a,so} nor libopcodes.{a,so} are installed
Where did you get that info?

The Contents of Binutils from chapter 6.13 isn't in any way accurate for chapter 5 (5 being a temporary environment set up to be able to build chapter 6).

If no errors show up during the build you can safely assume that the steps where done correctly.

As already stated by ReaperX7: the only way to confirm this during the tools building stage is to proceed to the next package[s].
 
1 members found this post helpful.
Old 01-12-2014, 11:14 AM   #4
alpo85
Member
 
Registered: Nov 2012
Posts: 30

Original Poster
Rep: Reputation: Disabled
Perfect! You both have provided great feedback and have satisfied my curiosity. Thank you kindly.

Quote:
druuna: Where did you get that info?
You are correct in assuming that I was referencing Chapter 6 Contents of Binutils section.
 
  


Reply



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
Verifying file is correct and safe NotionCommotion Linux - Newbie 1 06-15-2013 11:44 AM
pass 2 of binutils giraf Linux From Scratch 2 07-18-2010 08:34 PM
5.3. Binutils-2.17 - Pass 1 willz06jw Linux From Scratch 5 09-24-2008 02:54 AM
questions on GCC-3.4.3 - Pass 2 and Binutils-2.15.94.0.2.2 - Pass 2 satimis Linux From Scratch 7 12-26-2005 09:23 PM
Binutils-pass 1 v. 6.1 microsoft/linux Linux From Scratch 10 09-04-2005 07:27 AM

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

All times are GMT -5. The time now is 08:17 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