Newbie Linux From Scratch Question on Compiling 32 bit
Linux From ScratchThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Newbie Linux From Scratch Question on Compiling 32 bit
Hi All,
Sorry if this post seems simple, but I've been struggling with this for some time now, and am unsure of where I'm going wrong. I'm trying to build a 32 bit LFS only (no 64 bit at all), but whenever I try on my 32 bit Ubuntu 14.04 machine, it keeps attempting to build the 64 bit files as well. I've been searching for a while, and am unable to which setting I need to manipulate in order to fix this. Any help would be greatly appreciated!
That output isn't helpful at all (and has nothing to do with 64 bit architecture, you can have 64 bit type on 32 bit os just fine). Post the entire output.
I have never had a problem in building 32-bit LFS distros. One time in the past, I just downloaded an Ubuntu 32-bit live CD.
Now my 7.9 32-bit build was my host for building 32-bit 7.10. I found that approach much easier than CLFS. I would check
and see if your running a 64-bit kernel or not. Maybe 'setarch 32' would help. CLFS posts a uname hack. That is a kernel
module which reports a 32-bit kernel.
A good configure script can detect a 64-bit processor if it wants, no matter which precautions you make. See the comments
concerning the package GMP-6.1.0. I developed the habit of using the utility 'file' after a compile. This is verification if
the 32-bit build was good.
I have always used a 32-bit live cd on 64-bit machines. The end result is a 32-bit LFS. If your host is 32-bit, the system you are building will be 32-bit.
I have always used a 32-bit live cd on 64-bit machines. The end result is a 32-bit LFS. If your host is 32-bit, the system you are building will be 32-bit.
Works for me too, with different condition. I build LFS on VMWare.
My machine 64 bit. My Windows OS 64 bit version.
Building LFS on VMWare
Using 32 bit Debian Live CD as a host -> result LFS 32 bit
Using 64 bit Debian Live CD as a hots -> result LFS 64 bit
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.