LinuxQuestions.org
Register a domain and help support LQ
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

View Poll Results: How many time do you think we must wait before seeing a 'native' 64bit LFS system?
It has been done 2 40.00%
Maybe 3 months? 0 0%
Maybe 6 months? 0 0%
Maybe 1 year? 1 20.00%
It's not possible to do it 0 0%
LFS? What is LFS? 2 40.00%
Voters: 5. You may not vote on this poll

Reply
 
Search this Thread
Old 05-03-2004, 02:04 AM   #1
ParticleHunter
Member
 
Registered: Apr 2004
Location: Malaga, Spain
Distribution: LFS
Posts: 129

Rep: Reputation: 15
LFS compiled in 64bit mode?


Hi,

This is just a question, not technical, just want to know is someone has managed to do a 64bit compilation of LFS or it's just too far from the scope of the LFS project...

Julio
 
Old 05-05-2004, 06:43 AM   #2
ParticleHunter
Member
 
Registered: Apr 2004
Location: Malaga, Spain
Distribution: LFS
Posts: 129

Original Poster
Rep: Reputation: 15
Ok, ok, maybe the post was kinda' stupid... just wondering if someone managed to do it and have success...

Julio
 
Old 06-02-2004, 04:21 PM   #3
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Rep: Reputation: 30
i hopefully haven't misread anything in this post...

since LFS is build completely from source, all programs will build to whatever they can for your system; there is no such thing as "native"; some programs may not have the capability to use 64-bit but will run just fine with a 32-bit emulated layer

also, the book makes note of 64-bit systems; they can be built, just make sure your dynamic loader library file is used correctly during the course of your builds
 
Old 06-03-2004, 01:48 AM   #4
ParticleHunter
Member
 
Registered: Apr 2004
Location: Malaga, Spain
Distribution: LFS
Posts: 129

Original Poster
Rep: Reputation: 15
Thanks for replying,

I made this post just because I had the idea of compiling a 64bit LFS system for my just-received-2-days-ago laptop computer powered by an AMD Mobile Athlon64 3400+ CPU, so I wanted to make this post as some sort of a 'probe' to be able to obtain advice on how to do it, or just receive your personal impressions about this

Currently I haven't started the compilation, I'm too busy at the moment and hey, even turned off it's still the cutest mobile pc I've seen

My intention on this is to build in 'full' 64bit mode the following:

- linux system (binutils, glibc, gcc, etc, etc...)
- xfree86 4.x.x along with the propietary ATi drivers
- gnome 2.x.x (currently 2.6.1 if I remember correctly)

and several programs and utilities like:

- evolution
- pan
- firebird
- x-chat
- xmule
- kino

and so on...

My fears were just thinking on the nasty chance to find 32bit inline asm code that could trash my project and not letting me make a good use of the -march/mcpu=k8 flag...

Julio

P.D BTW i've seen many times the -O2 optimization flag, and as far as I've seen, there's 3 levels of optimization, but what level is the best for the best code production? I mean... what if I use -O3? will it be... faster? slower? maybe more 'reliable' code?
 
Old 06-03-2004, 01:33 PM   #5
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Rep: Reputation: 30
i don't think you can build absolutely everything you would need in a linux system in 64 bit right now; for one, mplayer won't compile in 64-bit afaik, but the underlying stuff (glibc, gcc) should all be fine

as for the optimization flag -O3, be careful.... this requires Extremely High Level amounts of math, but for things that compile successfully with that optimization, they are generally faster, smaller, but less reliable (because so many things can go wrong with the routines involved); just because it compiles doesn't mean it won't segfault

LFS does provide optimization hints, and tells you what base programs will not compile well with this optimization.... if you are game for trying that level of optimization (and perhaps willing to sacrifice a bit of stability), go for it!
 
  


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
can 64bit processor run both 64bit and 32bit computers? DJOtaku Linux - General 4 09-08-2005 08:14 PM
Does 64Bit Linux have all 64Bit Packages UltimateLinux Linux - Distributions 5 02-19-2005 02:20 PM
gcc on Opteron: 64bit-mode slower than 32bit-mode!!!? duckie Linux - General 2 05-20-2004 10:51 AM
LFS compiled kernel can't read partition table curtdodds Linux From Scratch 6 08-05-2003 09:50 PM


All times are GMT -5. The time now is 11:39 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration