LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-28-2012, 04:11 AM   #1
anjohn
LQ Newbie
 
Registered: Nov 2012
Posts: 16

Rep: Reputation: Disabled
Build 32 bit system on a 64 bit machine


Hello,

I have a general question about building a 32 bit LFS system on a 64 bit machine.

Do I need to follow the instructions of CLFS? Since my system is a multi-lib system, can't I just somewhere say "compile with the 32 bit libs"? As you could give the option -m32 to your compiler and it builds an 32 bit app for you.

If I understood the book I'd say I first build the compiler and after that I use the compiler of my LFS system to build the rest. But what if I don't want to have gcc on my target system?

I found this post but they recommend to build a multi-lib system:

http://www.linuxquestions.org/questi...system-571711/

I don't want a multi-lib system!

Could anyone give me some general information how to start, please? Thank you very much!

Regards,
anjohn
 
Old 11-28-2012, 05:12 AM   #2
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,380

Rep: Reputation: 557Reputation: 557Reputation: 557Reputation: 557Reputation: 557Reputation: 557
Quote:
Do I need to follow the instructions of CLFS?
If you're doing clfs, yes. Many things build 32 bit with some configure option (--build?) but some have real issues. But these are only as good as the script, which sometimes disappoints. IIRC, clfs does a uname hack, which is nice.
 
Old 11-28-2012, 06:09 AM   #3
Keith Hedger
Member
 
Registered: Jun 2010
Location: Devon,UK
Distribution: Linux From Scratch, Slackware64,
Posts: 836

Rep: Reputation: 167Reputation: 167
When you build a multi lib system you do two builds for every package one 32bit and one 64bit then some stuff to tie them together, so you should be OK to just build the 32 bit stuff, just make sure you read ALL the instructions so you don't miss a step.

I did this the first time around but just using 64bit.
 
  


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
segmantation fault on a 64 bit machine caused by binary compiled on a 32 bit machine ninofattore Linux - Newbie 1 10-13-2011 01:48 PM
Build 32 bit r600_dri in 64 bit system lindemidux Linux - Software 0 12-17-2009 04:38 PM
Mozilla Firefox 64-bit build for Linux with Adobe Flash Player 64-bit integrated silos Linux - Software 4 12-03-2009 07:40 PM
Apache & Tomcat build fine in RHEL5 32-bit, not in 64-bit. Why? jackofalltrades Linux - Newbie 1 10-30-2009 01:07 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 02:06 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