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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-12-2006, 09:40 AM
|
#1
|
Member
Registered: Feb 2006
Location: Sweden
Distribution: Archlinux
Posts: 112
Rep:
|
I'm have a binutils headache.
Im trying to install LFS from the live cd on an empty hd with partitions and i have a x86_64
architecture motherboard.
1
The LFS live cd can't get my network to work. (least concerns at the moment)
(I copied the source files into a partition and im running a ubuntu amd64 live cd at the moment so that my networkcard can work.)
2
Im running linux from a live cd and therefor I dont have a "real" host. Do I have to make the lfs user and these bash scripts, and change the owner of some dir?
(I've skipped those steps.)
3
now the big issue
Im confused with the target triplet thing and how binutils can be configured so that it doesnt pick the target triplet from the host, in this case, the live cd. When i run the LFS live cd the target triple becomes i686-pc-linux-gnu and when i run ./config-guess in ubuntu it's tx86_64-unknown-linux-gnu.
I have no clue what the programs in binutils really does (I mean REALLY!) but the main thing is that i want all the programs to run under x86_64, what is it that I have to do different to get it to work properly before i compile binutils.
4)
I can't patch binutils
root@ubuntu:/mnt/sources # patch -Np1 -i binutils-2.15.94.0.2.2-gcc4-1.patch
can't find file to patch at input line 10
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Submitted By: Alexander E. Patrakov
|Date: 2005-10-10
|Initial Package Version: 2.15.94.0.2.2
|Upstream Status: Backport from 2.16.1
|Origin: Alexander E. Patrakov
|Description: Fixes compilation by gcc4 (e.g. from Fedora Core 4 hosts)
|
|--- binutils-2.15.94.0.2.2/gas/tc.h 2004-11-22 20:33:31.000000000 +0000
|+++ binutils-2.16.1/gas/tc.h 2005-02-17 13:46:00.000000000 +0000
--------------------------
File to patch:
|
|
|
04-12-2006, 10:15 AM
|
#2
|
LQ Veteran
Registered: Sep 2003
Posts: 10,532
|
Hi,
To my knowledge, LFS is 32 bits only and doesn't work with x86_64.
And yes, you do have a real host and do need to do all the steps mentioned. Running from a live cd will give you the best base possible: A static environment that has proven itself and bugs (if any) are known and have solutions.
|
|
|
04-12-2006, 10:36 AM
|
#3
|
Member
Registered: Feb 2006
Location: Sweden
Distribution: Archlinux
Posts: 112
Original Poster
Rep:
|
How can it not work with x86_64? It's from scratch isnt it? There must be a way.
|
|
|
04-12-2006, 10:48 AM
|
#4
|
LQ Veteran
Registered: Sep 2003
Posts: 10,532
|
Hi again,
I just checked the LFS site:
lfs x86_64
Did not find a link from the main LFS site, so I guess it's not official yet........
As you can see you need different packages, especially glibc and cross-binutils caught my eye.
|
|
|
04-12-2006, 12:11 PM
|
#5
|
Member
Registered: Feb 2006
Location: Sweden
Distribution: Archlinux
Posts: 112
Original Poster
Rep:
|
Well, I want to squeeze out as much preformance as I can from my computer, and I dont feel like being a pioneer at something that i dont fully grasp yet. I have read about this distro called gentoo and it seems like it's almost the same as LFS. You think i should try that?, beacouse I saw that they had a handbook for AMD64 and that's exacly what I have.
|
|
|
04-12-2006, 12:18 PM
|
#6
|
Member
Registered: Feb 2006
Location: Sweden
Distribution: Archlinux
Posts: 112
Original Poster
Rep:
|
oh, i didnt see that link, im checking it out now
|
|
|
04-12-2006, 12:44 PM
|
#7
|
LQ Veteran
Registered: Sep 2003
Posts: 10,532
|
Hi,
It's your choice, but if you aren't (that) experienced, gentoo (from step 1 on) would be a nice start before diving head first into LFS on a x86_64 platform.
If you like a good challenge and want to learn about the inner workings of linux you could try LFS, I found it more the worthwhile. This will take a while to accomplish, this is also true for gentoo, although not as long as a LFS install takes. In both cases your machine will be off-line for a while.
One thing is true for LFS: If you never installed LFS before you have to follow the book to the letter. Ok, that's a bit harsh, it also depends on your level of linux experience. But do remember that LFS is the foundation on which 'the rest' is build.
|
|
|
05-14-2006, 12:44 PM
|
#8
|
Member
Registered: May 2006
Posts: 56
Rep:
|
I had the same probs
I had exactly those problems today.
I found an answer in chinese ...
linuxsir .org /bbs/ showthread.php?t=244052
oh no I cannot submit urls...
The answer is if your using live cd :
cd $LFS/sources
tar xvf /lfs-sources/binutils-2.15.94.0.2.2.tar.bz2
cd binutils-2.15.94.0.2.2
patch -Np1 -i /lfs-sources/binutils-2.15.94.0.2.2-gcc4-1.patch
etc.
I am writing an email to the LFS people because the LFS documentation is not always clear, especially for debutants.
I was lucky this time because I am not a debutant and I did a good google search !
|
|
|
All times are GMT -5. The time now is 12:19 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|