LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 02-01-2019, 07:22 AM   #1
akiratakasaki
LQ Newbie
 
Registered: Feb 2019
Posts: 5

Rep: Reputation: Disabled
Exclamation lfs 8.3 binutils 2.32.1 in separated directory.


Hi,

I need some help to avoid screwing up, chapter five states:

The Binutils documentation recommends building Binutils in a dedicated build directory:

mkdir -v build
cd build

But i have no clue on where to build that directory. Should the build directory be inside the source directory , or should it be in the tools directory , or just somewhere on the $LFS partition, or on the host? I have no clue. I assume not in the tools directory , cause it's a temporary dir that will be deleted afterwards.
The book does not mention where to make te "build" directory, and i cannot find it in faq's nor mailing lists so please help me out here

so well i wanna know where to run the mkdir- v build? Thanks
 
Old 02-01-2019, 07:27 AM   #2
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hi the lfs book states untar package cd into untarred dir. follow book directions.
Reread ch 5.3 last important
 
Old 02-01-2019, 07:41 AM   #3
akiratakasaki
LQ Newbie
 
Registered: Feb 2019
Posts: 5

Original Poster
Rep: Reputation: Disabled
did read 5.3 over and over again

so i did read 5.3 over and over again and it does not mention where to make a build folder for binutils. It's just not there.

If i am wrong , please link me to the place in the book 8.3 where it say's where to put the build folder for binutils. thanks
 
Old 02-01-2019, 07:49 AM   #4
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
the instructions are generic, untar cd dir follow book.
 
Old 02-01-2019, 08:18 AM   #5
akiratakasaki
LQ Newbie
 
Registered: Feb 2019
Posts: 5

Original Poster
Rep: Reputation: Disabled
ok so....

ok so i shoul ignore 5.4 that says :

mkdir -v build
cd build

?
 
Old 02-01-2019, 08:21 AM   #6
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
NO

untar binutils cd binutils-2.32.1 mkdir -v build
cd build

Simple
untar cd dir follow what book sayes to do....

Are you sure you are ready to do this????
 
Old 02-01-2019, 09:18 AM   #7
akiratakasaki
LQ Newbie
 
Registered: Feb 2019
Posts: 5

Original Poster
Rep: Reputation: Disabled
thanks

thank you,

yes i am sure i am ready to to this.
English is not my native language. ok so "mkdir build" in the unpacked binutils dir. ok got it. thanks a lot.
I did read some articles that state that is not even nessesary to use a seperate build dir for binutils. but since in wanna follow the book, hence my question . Now i understand 5.3 in relation to what has to come

Thanks you very much
 
Old 02-01-2019, 11:09 AM   #8
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,573
Blog Entries: 19

Rep: Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452
Before the specific builds in chapter 5, there is a general section on builds. It's called (surprise, surprise!) General Compilation Instructions. Read it carefully. It explains that all builds start with the same set of operations which are listed in the second of the two boxes labelled "Important!".

All specific build sections start by assuming that you have carried out these initial steps: i.e. you have untarred the package and cd'd to the resultant directory. Only then should you carry out the specific build operations for the package.

This will ensure that any extra directories you are told to create will go into the correct locations.
 
1 members found this post helpful.
Old 02-01-2019, 02:41 PM   #9
akiratakasaki
LQ Newbie
 
Registered: Feb 2019
Posts: 5

Original Poster
Rep: Reputation: Disabled
ok thanks

Ok, thank you everyone for repleying.
Ik could not see that de "general compilation instructions " and sections labled as importandd could be interpreted as beëing "initial steps" ( due to my english that is not context sensitive enough ), that is why i was confused.
thank you all for the clarification. I understand perfect now.

many thanks
 
  


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] LFS: Error during Binutils-2.22 - Pass 1 (Section 5.4, LFS 7.2) erkant Linux From Scratch 4 11-26-2012 01:26 PM
[SOLVED] lfs 6.7 book ch 5.4 binutils 2.20.1 pass 1 error:error: ppl_c.h: No such file or directory frank zhu Linux From Scratch 6 03-04-2011 11:23 AM
nvidia display drivers installation error with binutils, binutils allready installed mandrakeBren Linux - Newbie 9 01-06-2009 12:52 PM
binutils-2.16.1 or binutils-2.17 Hern_28 Linux From Scratch 2 07-15-2007 09:05 AM
Installation of binutils....can't mkdir...../binutils-build hmonster Linux From Scratch 6 08-22-2004 04:07 AM

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

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