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 11-26-2009, 09:40 PM   #1
dbbolton
LQ Newbie
 
Registered: Sep 2009
Location: WV
Distribution: Debian
Posts: 28

Rep: Reputation: 15
binutils pass 2 build directory


I am currently at this step: http://www.linuxfromscratch.org/lfs/...ils-pass2.html

It says: "Create a separate build directory again", followed by:

Code:
mkdir -v ../binutils-build
cd ../binutils-build
From what directory are these commands to be issued? I didn't see anything about removing the original binutils-build directory.
 
Old 11-26-2009, 09:56 PM   #2
dbbolton
LQ Newbie
 
Registered: Sep 2009
Location: WV
Distribution: Debian
Posts: 28

Original Poster
Rep: Reputation: 15
I forgot about one of the initial build instructions:
Quote:
After installing each package, delete its source and build directories, unless specifically instructed otherwise. Deleting the sources prevents mis-configuration when the same package is reinstalled later.
 
Old 03-09-2010, 03:12 AM   #3
kainosnous
Member
 
Registered: Mar 2010
Location: Tennessee, USA
Distribution: Arch, Fedora
Posts: 59

Rep: Reputation: 18
I see this is an old thread, but my problem is related. I just started with LFS 6.6 and I am in Chapter 5.4. The instructions at the start of the chapter suggest a separate build directory but the instruction (mkdir -v ../binutils-build) gives a relative path. Where exactly should this build directory be? It might not be too big of an issue, but on my first time through, I would like to follow the instructions exactly.

It would seem to me that it should be /mnt/lfs/sources/binutils-build. Is this correct?
 
Old 03-09-2010, 03:24 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
Hi,

@kainosnous: In general:

- Enter $LFS/sources,
- Unpack package,
- Enter package directory,
- Follow instructions given for specific package.

So in your case you should enter $LFS/sources, unpack binutiles (tar jxfv binutils-2.20.tar.bz2), enter newly created dir (cd binutils-2.20). And from this point on you follow the instructions in chapter 5.4, starting with th creation of the binutils-build directory.

This is mentioned in chapter 5.3 (last Important box)....

Hope this helps.
 
1 members found this post helpful.
Old 03-09-2010, 03:42 AM   #5
kainosnous
Member
 
Registered: Mar 2010
Location: Tennessee, USA
Distribution: Arch, Fedora
Posts: 59

Rep: Reputation: 18
Thank you very much! I read that part a couple of times, but I guess it didn't sink in. Sometimes you can miss the forest for the trees. I feel much more confident now.
 
  


Reply

Tags
binutils, lfs, pass


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
remove the gcc-build, binutils-build, etc after make @d4M Linux From Scratch 6 01-26-2009 04:29 AM
LFS binutils-build error : Pass 1 ramlnx Linux From Scratch 1 07-12-2006 07:06 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
Installation of binutils....can't mkdir...../binutils-build hmonster Linux From Scratch 6 08-22-2004 04:07 AM


All times are GMT -5. The time now is 04:59 PM.

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