LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-10-2016, 03:49 PM   #1
kostly
LQ Newbie
 
Registered: Sep 2016
Posts: 2

Rep: Reputation: Disabled
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!
 
Old 09-10-2016, 04:02 PM   #2
Krejzi
Member
 
Registered: Jan 2015
Posts: 215

Rep: Reputation: Disabled
It shouldn't be attempting to build for 64 bit. Post the exact output where you think this happens and someone may figure out what's wrong.
 
Old 09-10-2016, 04:17 PM   #3
kostly
LQ Newbie
 
Registered: Sep 2016
Posts: 2

Original Poster
Rep: Reputation: Disabled
configure: error: error verifying int64_t uses long long

I understand this is included in the g++ library (I think?), but why would it even want to build a 64 bit integer on a 32 bit machine?
 
Old 09-10-2016, 04:19 PM   #4
Krejzi
Member
 
Registered: Jan 2015
Posts: 215

Rep: Reputation: Disabled
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.
 
Old 09-10-2016, 06:56 PM   #5
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
because your host is 32bit does not mean your machine is 32 bit, if your machine is 64 bit you will need to use clfs to build 32bit
 
Old 09-10-2016, 07:41 PM   #6
Krejzi
Member
 
Registered: Jan 2015
Posts: 215

Rep: Reputation: Disabled
That makes even less sense. If you are on 32 bit host, you build 32 bit LFS. If you are on 64 bit host, you build a 64 bit LFS.
 
Old 09-13-2016, 12:04 PM   #7
sr_ls_boy
Member
 
Registered: Apr 2015
Posts: 105

Rep: Reputation: Disabled
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.
 
Old 09-13-2016, 12:37 PM   #8
hendrickxm
Member
 
Registered: Feb 2014
Posts: 344

Rep: Reputation: Disabled
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.
 
Old 09-13-2016, 07:20 PM   #9
anak_bawang
Member
 
Registered: Jun 2015
Location: Bandung Indonesia
Distribution: Debian, LFS/BLFS
Posts: 138

Rep: Reputation: 23
Quote:
Originally Posted by hendrickxm View Post
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
 
  


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
compiling 32 bit application on 64 bit linux(x86_64) uttam_h Linux - Software 16 07-19-2008 02:33 PM
question about kernel compiling from scratch ... purpleburple Slackware 2 03-19-2003 06:18 AM

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

All times are GMT -5. The time now is 10:33 AM.

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