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-27-2015, 02:47 AM   #1
Sarthak
LQ Newbie
 
Registered: Sep 2015
Posts: 25

Rep: Reputation: Disabled
binutils pass 2 build directory


Create a separate build directory again:
Code:
mkdir -v ../binutils-build
cd ../binutils-build
from which directory i was supposed to make it and i have made binutils-build in pass 1 also so how can it be made at the same path. please help
 
Old 09-27-2015, 03:07 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
You are supposed to delete everything "Pass 1" = everything {previous build folders and source folders} before you continue.

And all "Pass 2" *build*/ and <source>/ folders, before you do "Chapter 6. Installing Basic System Software".


Which also means : When you start from scratch, nothing can be reused.



-

Last edited by knudfl; 09-27-2015 at 03:11 AM.
 
Old 09-27-2015, 03:38 AM   #3
Mihail Zenkov
LQ Newbie
 
Registered: Sep 2015
Location: Belarus, Vitebsk
Distribution: LFS
Posts: 19

Rep: Reputation: Disabled
del

Last edited by Mihail Zenkov; 09-27-2015 at 03:39 AM.
 
Old 09-27-2015, 07:28 AM   #4
Sarthak
LQ Newbie
 
Registered: Sep 2015
Posts: 25

Original Poster
Rep: Reputation: Disabled
Quote:
You are supposed to delete everything "Pass 1" = everything {previous build folders and source folders} before you continue.
this means that i have to delete the binutils-build directory and the source binutils-2.25 directory and again extract the tar of binutils to perform pass 2 of binutils and also for libstdc++ will i have to do the same with gcc directories ?


is it becoz we compiled everything is stored in /tools directory and now we dont need build directories.
 
Old 09-27-2015, 07:58 AM   #5
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
During Chapter 5 after you build part of the bootstrap system you delete the extracted sources. It's only in Chapter 6 you should keep the extracted sources handy pre-configured by running "make clean" on the sources after installing them.
 
Old 09-27-2015, 07:59 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
this means that i have to delete the binutils-build directory and the source binutils-2.25 directory and again extract the tar of binutils to perform pass 2 of binutils and also for libstdc++ will i have to do the same with gcc directories ?
Yes.
 
Old 09-27-2015, 08:10 AM   #7
Sarthak
LQ Newbie
 
Registered: Sep 2015
Posts: 25

Original Poster
Rep: Reputation: Disabled
Thank you
 
  


Reply

Tags
binutils, lfs


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
A puzzle on the build of binutils Pass 1 wang Linux From Scratch 4 04-07-2015 01:25 AM
[SOLVED] Binutils Pass 2 build fail kikinovak Linux From Scratch 1 11-21-2014 08:54 AM
binutils 2.20/gcc-4.5.1 build pass 2 reverts to targeting the host system anakinwy Linux From Scratch 2 11-11-2010 03:21 PM
binutils pass 2 build directory dbbolton Linux From Scratch 4 03-09-2010 03:42 AM
LFS binutils-build error : Pass 1 ramlnx Linux From Scratch 1 07-12-2006 07:06 AM

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

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