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 04-12-2006, 09:40 AM   #1
inverted.gravity
Member
 
Registered: Feb 2006
Location: Sweden
Distribution: Archlinux
Posts: 112

Rep: Reputation: 15
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:
 
Old 04-12-2006, 10:15 AM   #2
anon237
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
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.
 
Old 04-12-2006, 10:36 AM   #3
inverted.gravity
Member
 
Registered: Feb 2006
Location: Sweden
Distribution: Archlinux
Posts: 112

Original Poster
Rep: Reputation: 15
How can it not work with x86_64? It's from scratch isnt it? There must be a way.
 
Old 04-12-2006, 10:48 AM   #4
anon237
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
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.
 
Old 04-12-2006, 12:11 PM   #5
inverted.gravity
Member
 
Registered: Feb 2006
Location: Sweden
Distribution: Archlinux
Posts: 112

Original Poster
Rep: Reputation: 15
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.
 
Old 04-12-2006, 12:18 PM   #6
inverted.gravity
Member
 
Registered: Feb 2006
Location: Sweden
Distribution: Archlinux
Posts: 112

Original Poster
Rep: Reputation: 15
oh, i didnt see that link, im checking it out now
 
Old 04-12-2006, 12:44 PM   #7
anon237
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
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.
 
Old 05-14-2006, 12:44 PM   #8
linuxcbon
Member
 
Registered: May 2006
Posts: 56

Rep: Reputation: 16
Smile 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 !
 
  


Reply


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
binutils ? siggns Ubuntu 1 10-29-2005 06:11 PM
Installation of binutils....can't mkdir...../binutils-build hmonster Linux From Scratch 6 08-22-2004 04:07 AM
Binutils Scratchit Linux - Newbie 11 06-30-2004 01:19 AM
Help im so new i have a headache jjh221 Linux - Newbie 3 02-11-2004 08:02 PM
headache... katana Linux - General 2 08-02-2001 07:44 AM

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

All times are GMT -5. The time now is 12:19 PM.

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