LinuxQuestions.org
Help answer threads with 0 replies.
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 10-03-2006, 12:55 AM   #1
bitrux
LQ Newbie
 
Registered: Sep 2006
Location: Bandung
Distribution: Ubuntu 8.04 (Hardy Heron)
Posts: 4

Rep: Reputation: 0
Problem on building Binutils


I have some problems when trying to build LFS 6.2.

I have read the book to Chapter 5, I have add the user (lfs), and also the sources and tools dirs. But I'm stuck on the "installation of binutils" section.

As a note: On the typography section, I remembered that a bold fixed-width text should be considered as an instruction to the reader to types the text exactly as it seen. Right?

And back to the problem, the 5.3.1 section told me to type:
mkdir -v ../binutils-build
cd ../binutils-build

My questions is..

1. Where should I do that? (it says that the Binutils documentation recommends the building process to be done outside the source directory) Is it on the $LFS/tools ? And using which user? Is it lfs (as previously recommended in the book)? or as a root?

2. And, please excuse me for being dumb, do I have to change "binutils-build" to "binutils-2.16.1"?

3. As I use VectorLinux as a host (and a KDE in it), can I just use Ark to unpack the package so I'm be able to configure it afterwards?

I'm very very confused here.. The book didn't show me how to unpack the packages and where to unpacked it.

Can someone help me?
 
Old 10-03-2006, 05:23 AM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
1. The LFS book presumes that you have unpacked the tarball and cd'd into the source directory. Just like the book says
Quote:
Before issuing the build instructions for a package, the package should be unpacked as user lfs, and a cd into the created directory should be performed.
In this case, you should be in the /mnt/lfs/sources/binutils-2.16.1 directory as referenced from your host system. If the book tells you to do something as root, do it as root. If the book tells you to do somethings as lfs, do it as lfs.
2. Why would you change "binutils-build" to "binutils-2.16.1"? The book tells you to mkdir -v binutils-build. The directory binutils-2.16.1 is the source directory and that's not where you're supposed to be building binutils.
3. If you need to use GUI tools to install LFS, you probably shouldn't be installing LFS. I suppose you could use ARK, but why would you. To unpack a tarball ending with .tar.gz
Code:
tar xzf <tarball_name>.tar.gz
To unpack a tarball ending with .tar.bz2
Code:
tar xjf <tarball_name>.tar.bz2

Last edited by weibullguy; 10-04-2006 at 01:40 PM.
 
Old 10-03-2006, 06:48 PM   #3
status1
Member
 
Registered: Sep 2006
Posts: 122

Rep: Reputation: 15
Hello,
Iam fairly new to lfs but I know what you are talking about because I had the same problem.
The book could have been a little more specific at the begining insted of presuming you know everything.

"Before issuing the build instructions for a package, the package should be unpacked as user lfs," (into /mnt/lfs/sources )I added the part in ()that I
think should have been in the book
So I belive that statement is incorrect
"In this case, you should be in the /mnt/lfs/tools/binutils-2.16.1"

It should be /mnt/lfs/sources/binutils-2.16.1
So after you are in that directory you can resume from the book with the mkdir command

As to question 3 I don't know but I would'nt sugest deviating from the book
unless you know exactly what you are doing

Hope that helps with question 1 and 2
 
Old 10-04-2006, 12:04 PM   #4
Vitalie Ciubotaru
Member
 
Registered: Dec 2005
Location: Osaka, Japan
Distribution: Ubuntu Trinity
Posts: 153

Rep: Reputation: 30
Hallo, bitrux and all,

1. The Booksays (implies) you build all your packages in /mnt/lfs/sources. However, you can build it wherever you like to. Just watch the disk size and make sure everithing gets into /mnt/lfs/tools. That's it.
2. The Book says
Quote:
The Binutils documentation recommends building Binutils outside of the source directory in a dedicated build directory
So just create that /mnt/lfs/sources/binutils-build directory and "cd" into it. No need to rename. However, you can name the build directory the way you like to.
3. The Book says "tar -xvf". You can use you preferred archiving utility, but you will have to change the permissions "chown -rv lfs:lfs /mnt/lfs/sources/binutils-version-number". That's what I did. If I were to repeat that stage, I'd follow the book (and I'd build it in console mode).

Good luck!!!

Last edited by Vitalie Ciubotaru; 10-04-2006 at 12:15 PM.
 
Old 10-04-2006, 01:41 PM   #5
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Quote:
Originally Posted by status1
The book could have been a little more specific at the begining insted of presuming you know everything.
That's not the point. It's really not intended for a newcomer. An excerpt from the prerequisites section of the CLFS book (says the same thing in the LFS book).
Quote:
Building a CLFS system is not a simple task. It requires a certain level of existing knowledge of Unix system administration in order to resolve problems, and correctly execute the commands listed. In particular, as an absolute minimum, the reader should already have the ability to use the command line (shell) to copy or move files and directories, list directory and file contents, and change the current directory. It is also expected that the reader has a reasonable knowledge of using and installing Linux software.
 
Old 10-04-2006, 06:10 PM   #6
status1
Member
 
Registered: Sep 2006
Posts: 122

Rep: Reputation: 15
Hello,
"you can build it wherever you like to. Just watch the disk size "
I would not advise that, especially to a newcomer.
I learned that the hard way when I was getting out of memory errors because
I did just that.

"It's really not intended for a newcomer."
Maybe not but it doesn't mean you can't even give it a try.
I look at it as an oportunity to learn something new.

"In particular, as an absolute minimum, the reader should already have the ability to use the command line (shell) to copy or move files and directories, list directory and file contents, and change the current directory."

That is true.

"It is also expected that the reader has a reasonable knowledge of using and installing Linux software."

I am not so sure about that.
Installing linux and using it especially with th gui does not give you any
special knowledge in building linux from scratch
 
Old 10-04-2006, 06:41 PM   #7
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Quote:
Originally Posted by status1
Maybe not but it doesn't mean you can't even give it a try.
I look at it as an oportunity to learn something new.
Sure, have at it, but the book shouldn't be written for newcomers because it's not intended for newcomers. It's pretty clear if you read it where you're supposed to be.
Quote:
Originally Posted by status1
Installing linux and using it especially with th gui does not give you any special knowledge in building linux from scratch
Your comment is in reference to a quote from the book. The authors of the book have every right to expect whatever they want of the reader. They expect the reader to have some experience building and installing *nix software from a CLI.
 
Old 10-04-2006, 07:07 PM   #8
status1
Member
 
Registered: Sep 2006
Posts: 122

Rep: Reputation: 15
Hello,
No arguments there.
It's just my opinion that with a just few hints and tips even a newcomer with a reasonable small experience should be able to follow the book.
No matter. We newcomers just have to learn the hard way.
 
Old 10-05-2006, 10:04 AM   #9
Vitalie Ciubotaru
Member
 
Registered: Dec 2005
Location: Osaka, Japan
Distribution: Ubuntu Trinity
Posts: 153

Rep: Reputation: 30
Come on, guys, is this the way you're helping bitrux?
If a newbie [like me or bitrux] wants to build a LFS system, why not say "Good, keep on moving! If you have questions we arehere to help you." What you are saying is "The book is not for newbies. It requires a certain level of ... etc."
It is for newbies! Probably the best way of learning is to learn by doing!
 
  


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
Startup Problem: Binutils rvijay Linux From Scratch 10 06-15-2007 08:54 AM
building Binutils-2.14 pass 1 (LFS 5.1.1) alihamza Linux From Scratch 1 10-10-2005 07:37 AM
5.3 Binutils problem dupree Linux From Scratch 2 07-20-2005 07:36 PM
binutils problem?? alaios Linux From Scratch 4 01-17-2005 09:17 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 01:33 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