LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Build 32 bit system on a 64 bit machine (http://www.linuxquestions.org/questions/linux-from-scratch-13/build-32-bit-system-on-a-64-bit-machine-4175439089/)

anjohn 11-28-2012 04:11 AM

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

business_kid 11-28-2012 05:12 AM

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.

Keith Hedger 11-28-2012 06:09 AM

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.


All times are GMT -5. The time now is 08:16 AM.