LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 06-27-2010, 05:02 AM   #1
deepclutch
Member
 
Registered: Nov 2004
Distribution: Debian Testing+Sid
Posts: 707
Blog Entries: 1

Rep: Reputation: 32
Post 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.
 
Old 06-27-2010, 01:05 PM   #2
crts
Senior Member
 
Registered: Jan 2010
Posts: 1,604

Rep: Reputation: 446Reputation: 446Reputation: 446Reputation: 446Reputation: 446
Quote:
Originally Posted by deepclutch View Post
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.
 
Old 06-27-2010, 01:39 PM   #3
deepclutch
Member
 
Registered: Nov 2004
Distribution: Debian Testing+Sid
Posts: 707
Blog Entries: 1

Original Poster
Rep: Reputation: 32
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.

Last edited by deepclutch; 06-27-2010 at 01:46 PM.
 
Old 06-27-2010, 02:28 PM   #4
crts
Senior Member
 
Registered: Jan 2010
Posts: 1,604

Rep: Reputation: 446Reputation: 446Reputation: 446Reputation: 446Reputation: 446
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.
 
Old 06-29-2010, 06:20 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,947

Rep: Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602
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.
..

Last edited by knudfl; 06-30-2010 at 09:57 AM.
 
Old 06-30-2010, 07:30 AM   #6
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Quote:
Originally Posted by deepclutch View Post
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 View Post
#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
 
1 members found this post helpful.
  


Reply

Tags
lfs, ubuntu


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
64-bit VirtualBox host running a single 32-bit guest, good idea? FireRaven Linux - Virtualization and Cloud 10 04-03-2010 03:21 PM
Per-process memory queries on Redhat 5.3 (32 and 64-bit) sd136742 Linux - Software 2 08-20-2009 09:31 PM
DNS(named) - Fedora 9 - Answers Queries on Local Host Only rpeiffer Linux - Server 8 06-29-2008 04:51 PM
Will compiling LFS on an 64 bit distro build an 64 bit LFS? Vampirite Linux From Scratch 4 08-31-2007 02:48 PM
Can I build 32-bit LFS on a 64-bit AMD system? dhave Linux From Scratch 4 07-23-2007 07:00 PM


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