Linux From ScratchThis 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.
Hello ,
I'm planning to compile LFS fo 64-bit Platform.I have some Queries:
# Can I use gcc optimizations,makeopts While Compiling for the Processor(core2Duo)?Will Adding, the options to ~/.bashrc enough and What is the Format?Will CFLAGS="-march=core2 -O2 -pipe" ,CXXFLAGS="${CFLAGS}",MAKEOPTS="-j3"
the correct way?
#If I compile from 64-bit Ubuntu ,is that enough to make sure it compiles for 64-bit?
Hello ,
I'm planning to compile LFS fo 64-bit Platform.I have some Queries:
# Can I use gcc optimizations,makeopts While Compiling for the Processor(core2Duo)?Will Adding, the options to ~/.bashrc enough and What is the Format?Will CFLAGS="-march=core2 -O2 -pipe" ,CXXFLAGS="${CFLAGS}",MAKEOPTS="-j3"
the correct way?
#If I compile from 64-bit Ubuntu ,is that enough to make sure it compiles for 64-bit?
Thanks.
Short answer: Don't do it.
Long answer: Don't do it. If you would feel confident enough to deviate from the book then you would not have to ask this question. And more importanly you wouldn't even consider using Ubuntu as host in the first place. Search the lfs forum for Ubuntu and you'll know why.
If you really want to compile a 64-bit system then have a look at clfs.
Hope this helps.
I Hope Ubuntu is uptodate with latest Packages(libs&development headers).I am thinking of Trying Development Version,Currently Following "LFS-BOOK-SVN-20100627"
I learnt that LFS Livecd is a Little Old Now.
I have Debian GNU/Linux as My Main System While a Ubuntu Lucid Install is Sleeping for Most of the Time in Another Partition and Have No Objections if I need to mess with the Ubuntu System to Cope with LFS Installation.
I'm Just going to Try the Development Version Once My New hard disk arrives(in a couple of days).
Is there any LFS Specific Forums?And Other Resources are Warm Welcomed.
Thanks.
Last edited by deepclutch; 06-27-2010 at 01:46 PM.
What I meant to say is do not deviate from the book unless you know exactly what you are doing. When you try to build your LFS you will realize that even minor deviation will result in failure to compile. If you really want a 64-bit system then use clfs (http://trac.cross-lfs.org/) to accomplish that.
As for the Ubuntu issue, I am not going over that again. As I said, search the LFS forum for Ubuntu. You will see many problems with that. I already see you posting because gcc won't compile. If you still want to go with Ubuntu, good luck with that.
Distribution: pclos2010.12, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 9,287
Rep:
The LFS live cd version 6.3 can easily be used to create
LFS-6.6 ( Creating unstable SVN-20100627 : I don't know.)
Just don't use 6.3 packages, but only packages from 6.6.
And make 32 - Bits by the book. Ref. @crts.
Hello ,
I'm planning to compile LFS fo 64-bit Platform.I have some Queries:
# Can I use gcc optimizations,makeopts While Compiling for the Processor(core2Duo)?Will Adding, the options to ~/.bashrc enough and What is the Format?Will CFLAGS="-march=core2 -O2 -pipe" ,CXXFLAGS="${CFLAGS}",MAKEOPTS="-j3"
the correct way?
My experience of setting CFLAGS is that the only noticable difference they make to the system is that xorg-server tends to crash when I drag and drop files. The system doesn't get any faster. Individual apps set their own CFLAGS with their configure script. They know what they're doing. If it ain't broke, don't fix it
Quote:
Originally Posted by deepclutch
#If I compile from 64-bit Ubuntu ,is that enough to make sure it compiles for 64-bit?
Thanks.
I find Ubunut is a good host to start building LFS. Make sure you pay attention to the Host System Requirements.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.