LinuxQuestions.org
Review your favorite Linux distribution.
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 12-17-2012, 08:42 PM   #1
engineer
Member
 
Registered: Oct 2007
Distribution: LFS
Posts: 69

Rep: Reputation: 2
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 08:44 PM.
 
Old 12-17-2012, 09:06 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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, 09:17 PM   #3
engineer
Member
 
Registered: Oct 2007
Distribution: LFS
Posts: 69

Original Poster
Rep: Reputation: 2
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



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 07:18 AM
[SOLVED] Chapter 5.9 Binutils Pass 2 - make install step failure daveLin Linux From Scratch 2 08-25-2012 02:19 PM
LFS 6.4 Chapter 5.4. Binutils-2.18 - Pass 1 gazza1z Linux From Scratch 2 01-23-2009 11:16 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 chapter 5 pass 2 qod Linux From Scratch 3 11-03-2003 12:39 PM

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

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