Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
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.


  Search this Thread
Old 02-07-2011, 11:56 PM   #1
LQ Newbie
Registered: Oct 2007
Posts: 9

Rep: Reputation: 2
Best Host System for CLFS Multi-lib x86_64

Over the next couple of days I plan to start making a new CLFS system. I ran into some issues the last time I began, partially because the host I was using wouldn't allow me to go the chroot method instead of the boot method. Can anyone suggest a good host system to use for an x86_64 build? Currently I'm using Ubuntu 10.04 LTS. If it's just a matter of having the correct packages, what dev packages are key to allowing me to chroot rather than have to boot? If it's actually an architecture concern, please suggest a better distro that will work.
Old 02-08-2011, 05:05 PM   #2
LQ Newbie
Registered: Apr 2005
Distribution: LFS 9.1 / BLFS 9.1
Posts: 17

Rep: Reputation: 1
chroot isn't part of any of the dev packages. It's part of coreutils and should be automatically included in any distro.

Figuring out why you were unable to chroot will depend on the error message you got. A couple things to keep in mind: you should enter the chroot command from the clfs book as root. If you su, and it says it cannot find the chroot command, it's possible you didn't get root's path when you executed su. you may have to enter the command with the full path to chroot: "/usr/sbin/chroot"

I've built clfs in Ubuntu 9.10, and I am currently building it on a new system with Fedora 14 as the Host.
Many prefer using a live cd or slackware as their hosts. It's possible to do in any of these, just make sure you have gcc, make, flex, bison, etc installed.

Hope this helps.
Old 02-08-2011, 08:41 PM   #3
LQ Newbie
Registered: Oct 2007
Posts: 9

Original Poster
Rep: Reputation: 2
I appreciate the reply, but I guess I was unclear as to exactly what my issue was. Following Chapter 6 of the CLFS book, you have the option to boot or chroot to finish the job. The book states,

If you are in any doubt about this, you can try the following commands to see if you can chroot:

/tools/bin/gcc -v
During my last build attempt, these tests failed, leading me down the boot method. Along the way I ran into a few other issues and ended up setting the project aside, and have just returned to it. Now, it's been several months, and I don't remember exactly how they failed, but I assumed that failure indicated an issue with the host system allowing me to complete the installation using the chroot method over the boot method. I hope that is a little more clear. I've no issue using the chroot command, but rather during my last adventure I ran the above commands and it told me to boot, and I'd much rather chroot through Chapter 7. Since I'm not 100% certain what the above commands are telling me, a little clarification in their purpose would probably go a long way toward solving me dilemma as well, if anyone is able to explain it.
Old 02-09-2011, 02:08 AM   #4
LQ Newbie
Registered: Oct 2007
Posts: 9

Original Poster
Rep: Reputation: 2
As an update, I have reached the point I was at before and can provide the actual messages I was getting. When attempting to run

/tools/bin/gcc -v
at the section about To Boot or to Chroot, this is what I get.

clfs@thebeast:/mnt/clfs/sources$ /tools/lib/
GNU C Library (EGLIBC) stable release version 2.12.2, by Roland McGrath et al.
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
Compiled by GNU CC version 4.5.2.
Compiled on a Linux 2.6.37 system on 2011-02-08.
Available extensions:
	crypt add-on version 2.1 by Michael Glad and others
	GNU Libidn by Simon Josefsson
	Native POSIX Threads Library by Ulrich Drepper et al
For bug reporting instructions, please see:
clfs@thebeast:/mnt/clfs/sources$ /tools/lib64/
bash: /tools/lib64/ cannot execute binary file
clfs@thebeast:/mnt/clfs/sources$ /tools/bin/gcc -v
bash: /tools/bin/gcc: cannot execute binary file
Any assistance would be appreciated. I'm going to attempt a Package Users build and it would be so much easier to chroot and have access to quick research if I run into any trouble.


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
PPPoE not working on a CLFS system corbis_demon Linux From Scratch 1 12-15-2010 03:28 AM
CLFS x86_64 gnat... ProtoformX Linux From Scratch 2 09-19-2009 12:51 PM
Building CLFS with Windows/Cygwin as Host. Possible? benz Linux From Scratch 1 02-16-2009 12:02 AM
CLFS SVN-20080921-x86_64-Multilib Part 10 binutils chokes on install ChrisMP1 Linux From Scratch 0 09-23-2008 08:11 PM
How do I use GRUB with x86_64 CLFS? fatsheep Linux From Scratch 2 10-18-2006 11:58 AM > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 06:35 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration