LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 12-17-2012, 09:42 PM   #1
engineer
Member
 
Registered: Oct 2007
Distribution: LFS
Posts: 65

Rep: Reputation: 0
Clarification request on the instructions for chapter 5.9 binutils pass 2


Hi again all.

Can someone please help me understand the instructions a bit better in this section? All the previous sections up to this point have been completed successfully.

The instructions say to create a separate build directory again, called binutils-build. There were no instructions (AFAIK) to remove the previous binutils-build directory created during pass 1, so my directory still exists in the $LFS/sources folder.

So, do I remove the first binutils-build directory before proceeding? Using the note on general installation instructions, I assumed that the instructions wanted me to untar the package, cd into $LFS/sources/binutils-2.22 (the directory created after untarring) and then execute the command to create a new binutils-build folder, which I cannot do at this point, since one already exists. I did not untar the package again, since I had already untarred it, but I did switch to the sources directory before trying to run the command to create the binutils-build directory a second time.

What am I missing?

Last edited by engineer; 12-17-2012 at 09:44 PM.
 
Old 12-17-2012, 10:06 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,616
Blog Entries: 2

Rep: Reputation: 4072Reputation: 4072Reputation: 4072Reputation: 4072Reputation: 4072Reputation: 4072Reputation: 4072Reputation: 4072Reputation: 4072Reputation: 4072Reputation: 4072
Quote:
Originally Posted by engineer View Post
There were no instructions (AFAIK) to remove the previous binutils-build directory created during pass 1, so my directory still exists in the $LFS/sources folder.

So, do I remove the first binutils-build directory before proceeding?
Yes, you do remove the build directory. While not stated in every chapter, actually there are instructions to remove that directory:
Chapter 5.3:
Quote:
Important
To re-emphasize the build process:

Place all the sources and patches in a directory that will be accessible from the chroot environment such as /mnt/lfs/sources/. Do not put sources in /mnt/lfs/tools/.
Change to the sources directory.
For each package:
Using the tar program, extract the package to be built. In Chapter 5, ensure you are the lfs user when extracting the package.
Change to the directory created when the package was extracted.
Follow the book's instructions for building the package.
Change back to the sources directory.
Delete the extracted source directory and any <package>-build directories that were created in the build process unless instructed otherwise.
 
Old 12-17-2012, 10:17 PM   #3
engineer
Member
 
Registered: Oct 2007
Distribution: LFS
Posts: 65

Original Poster
Rep: Reputation: 0
That was a bone-headed oversight.

Thanks for the clarification. I think I was so excited/surprised that configuring and building the binaries actually worked, I forgot to read the rest of the steps after that...
 
  


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] Would like to get path clarification for doing the binutils? dwmolyneux Linux From Scratch 5 04-10-2013 08:18 AM
[SOLVED] Chapter 5.9 Binutils Pass 2 - make install step failure daveLin Linux From Scratch 2 08-25-2012 03:19 PM
LFS 6.4 Chapter 5.4. Binutils-2.18 - Pass 1 gazza1z Linux From Scratch 2 01-23-2009 12:16 PM
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 10:23 PM
binutils chapter 5 pass 2 qod Linux From Scratch 3 11-03-2003 01:39 PM


All times are GMT -5. The time now is 01:56 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration