LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,325

Rep: Reputation: 2330Reputation: 2330Reputation: 2330Reputation: 2330Reputation: 2330Reputation: 2330Reputation: 2330Reputation: 2330Reputation: 2330Reputation: 2330Reputation: 2330
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
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,151

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 05:03 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration