LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   64-bit LFS with Ubuntu as Host.Some Queries: (http://www.linuxquestions.org/questions/linux-from-scratch-13/64-bit-lfs-with-ubuntu-as-host-some-queries-816608/)

deepclutch 06-27-2010 06:02 AM

64-bit LFS with Ubuntu as Host.Some Queries:
 
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.

crts 06-27-2010 02:05 PM

Quote:

Originally Posted by deepclutch (Post 4016209)
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.

deepclutch 06-27-2010 02:39 PM

Quote:

Short answer: Don't do it.

Long answer: Don't do it.
Can You Elaborate a bit More Please?

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.

crts 06-27-2010 03:28 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.

knudfl 06-29-2010 07:20 AM

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.

Ubuntu is not very usable. Ref. @crts.
..

Andrew Benton 06-30-2010 08:30 AM

Quote:

Originally Posted by deepclutch (Post 4016209)
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 (Post 4016209)
#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.
Code:

sudo ln -sf bash /bin/sh
sudo ln -sf gawk /usr/bin/awk
sudo apt-get install bison flex



All times are GMT -5. The time now is 01:54 AM.