LinuxQuestions.org
Review your favorite Linux distribution.
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-11-2007, 12:20 PM   #1
smurth
LQ Newbie
 
Registered: Feb 2007
Posts: 9

Rep: Reputation: 0
Building a 64 bits LFS


Hi,

I just want to know if someone had successfully build a pure 64bits CLFS, and how.
I've tried several times and everything seemed fine until I compiled libcairo which seems to link itself with stuff in /sources/gcc-build. Too bad...

Now, I'm just wondering if building a LFS (not using CLFS) from a good 64bits host would produce a real 64bits and stable LFS.

Thanks in advance
 
Old 04-11-2007, 01:36 PM   #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
Yup. I have successfully built a pure 64-bit CLFS on an AMD64 platform. I followed the instructions in the CLFS book for the pure 64-bit build. After completing the base system build, I built Xorg and GNOME and many other packages. Something went wrong with your build if that is the problem you're getting.

The commands for building several of the packages in the toolchain and elsewhere are different for a 64-bit build (CLFS) than they are for a 32-bit build (LFS). You might get a stable 64-bit build using LFS and adjusting the commands therein appropriately, but you're better off using CLFS.

Also bear in mind, the x86_64 ABI is considered a multilib architecture. The pure 64-bit CLFS book doesn't treat it that way (see this mailing list post http://lists.cross-lfs.org/pipermail...h/000587.html). The CLFS gcc-pure-64 patch undoes what is *correct* according to the standards in the gcc code. The pure-64 CLFS is not standards compliant whereas the multilib CLFS is. You really should use the multilib book for an x86_64 architecture.
 
Old 04-12-2007, 01:01 AM   #3
smurth
LQ Newbie
 
Registered: Feb 2007
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Arow
Yup. I have successfully built a pure 64-bit CLFS on an AMD64 platform. I followed the instructions in the CLFS book for the pure 64-bit build. After completing the base system build, I built Xorg and GNOME and many other packages. Something went wrong with your build if that is the problem you're getting.
Then, the CLFS book for the pure 64-bit build should work... I've used the developpement book; maybe that's the problem...
seems broken...
Quote:
Originally Posted by Arow
The CLFS gcc-pure-64 patch undoes what is *correct* according to the standards in the gcc code. The pure-64 CLFS is not standards compliant whereas the multilib CLFS is. You really should use the multilib book for an x86_64 architecture.
hum, I still don't know if I'll build a pure or a multilib one. If you say GNOME can be build with a pure 64bits, essential packages could be build, then.
Which CLFS version did you use ? What about you're feeling about the toolchain ?
 
Old 04-12-2007, 05:06 AM   #4
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Yeah, the only thing I had problems with on a pure 64-bit build were the precompiled Java (JDK) binaries and the nVidia driver. The mailing list post I pointed you too explains why -> http://lists.cross-lfs.org/pipermail...ch/000587.html (If this one doesn't work, its in the clfs-dev list in March 2007).

I used an SVN version of the current stable release. Something got hosed in your build of the base system. Could be one of many things that is wrong. Could be a problem in the SVN version you used, but not likely.

Last edited by weibullguy; 04-12-2007 at 05:08 AM.
 
  


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
Building 64bit LFS currir55 Linux From Scratch 1 11-15-2005 03:47 PM
Questions about building LFS kornerr Linux From Scratch 9 07-29-2005 08:06 AM
Building Binary LFS Tuvok Linux From Scratch 10 03-20-2005 07:09 PM
Building LFS on a Pocket PC Immolo Linux From Scratch 0 05-21-2004 04:51 AM
Building LFS for Server Iceman Cometh Linux From Scratch 3 03-04-2002 01:14 AM

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

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