LinuxQuestions.org
Visit Jeremy's Blog.
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 11-14-2009, 12:34 PM   #1
Openumerix
LQ Newbie
 
Registered: Nov 2009
Location: Canada
Distribution: Own derived from LFS
Posts: 14

Rep: Reputation: 0
building x86_64 using lsflivecd-86_64


Hello All,

I the the 6.4 book thourgh, and it worked out very nicely. Now I need a 64 bit version. I am aware that the support for 64 bit systems is only about to come in a future release of LFS, but I would like to give it a shot somehow, since that is what I need. In order to do this, one needs a 64-bit compiler and kernel, which the x86_64 lsflivecd has, at least in my understanding. Having said that, I would like to ask a few questions:

1) For now, I am booting off the x86_64 lsflivecd, and I am following the CLFS way to build a 64-bit multilib system, although pure 64 would suffice, and somehow I find it unnatural that one would need to cross-compile, while building for the host, on the host itself. It just doesn't feel right. Or am I completelly wrong?

2) While on the x86_64 lsflivecd platform, by following the LSF 6.5 instructions one should, more or less, be able to build a 64 bit system. A few parameters would need to be modified only, right? For example, having --target=x86_64-unknown-linux-gnu among the compilation parameters, should on its own invoke 64-bit output generation. A few settings could also be borrowed from the CLFS book, in order to get 64-bit generation enabled, right? By the way, would that not be the default gcc setting on a 64-bit platform? I mean, automatically?

3) The lsflivecd (x86_64) site mentions an unofficial version of the, I suppose, 64-bit version book, that I hope would contain some pointers for me to start with, but neither could I find it in the mounted CD iso image nor on the webpages. Is such thing really available? A pointer to any version or draft would be highly appreciated.

Thank you All in advance,
Tibor
 
Old 12-14-2009, 08:13 PM   #2
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
Actually in the main book you do a sort of cross compile even on x86 to separate the host system from the one your trying to build. They call this step adjusting the tool-chain but your in essence building a cross compiler for the same arch. In the main book not the CLFS one there are parts that mention if you are building for x64 so I think the document that the live disk is refering to was merged with the main book at some time. Remember the live disk is rather dated and I suspect some of the documents in the x64 version are probably very old and there was a separate document that existed. In any case your assumption is correct. You could just modify some of the parameters in the main book and make it work alright. I just don't know if it is something that is currently supported.

In section 5.8 of the dev LFS book there is a caution statment that has this in it
Code:
 
Note that /tools/lib, or /tools/lib64 for 64-bit machines appears as the prefix of the dynamic linker.
So I suspect that they anticipate people trying this.

After looking around some on the book they defiantly do have modified instructions for people building pure 64 bit stuff.

PS: Also sorry for the late response to this.

Last edited by exvor; 12-14-2009 at 08:17 PM. Reason: code tags were not correct
 
1 members found this post helpful.
  


Reply

Tags
clfs, crosscompile, lfs, x8664



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
building i386 SDL on x86_64 x0563511 Linux - Software 2 01-25-2009 09:49 PM
Is it possible to building i386 rpm on x86_64 system? MikeyCarter Linux - Software 2 06-02-2008 03:41 PM
ld (binutils) issues when building enigmail on Fedora 7 x86_64 ordealbyfire83 Linux - Software 2 02-05-2008 05:38 PM
trouble building PHP-5.1 on RHEL4 x86_64 soapbox Linux - Server 4 09-14-2007 06:12 AM
Building pure x86_64 daly1 Linux From Scratch 1 06-24-2005 11:59 PM

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

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