LinuxQuestions.org
Help answer threads with 0 replies.
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 03-19-2011, 10:09 PM   #1
sbdev
LQ Newbie
 
Registered: Mar 2011
Posts: 5

Rep: Reputation: 1
Will CLFS resolve my issue below


Hi,

Sorry, if this question has been repeatedly asked and answered. I also tried searching, but to my search i was unable to figure out an answer.

My Objective:
-------------

To have a separate folder of cross-tools in my development machine(amd64) for GCC, glibc(? - though i prefer this compared to uClibc because my development is mainly in c++ and i don't know if uClibc or newlib would go well with libstdc++) and libstdc++(i really want to use the STLs). So these 3 i need it in a separate folders for x86 and arm architectures

My Question is
---------------
1. So where should i start?

2. Will it suffice if i just use CLFS guide to start building on my development machine.

3. another weird question, though it is possible i suppose
can i crosscompile for the same architecture as my development machine(x86_64) and keep the binaries in a separate folder. Though this sounds weird, the reason i want to do this is that, i could freeze the versions of kernel, libraries and gcc and prepare to build system to always point to the directories when linking the libraries. This way to move the development system to a different computer all i would have to do is just to copy the tools folder to the new pc.

Last edited by sbdev; 03-19-2011 at 10:28 PM.
 
Old 03-20-2011, 12:14 AM   #2
ProtoformX
Member
 
Registered: Feb 2004
Location: Canada
Distribution: LFS SVN
Posts: 334

Rep: Reputation: 34
Yes you can, but it will a bit different, to use CLFS as a cross-compiler you would have to use a fake root, and then just chroot into it when you wish to use it, because unless your plan is to relocate every default directory for GCC, libc and all the rest of the entire cross tool chain this is the only way i can think of to make that work.

What do you mean by freezing though? essentially the entire fake root will be frozen unless you make changes to it as root (when you chroot into it)
 
Old 03-20-2011, 11:59 AM   #3
sbdev
LQ Newbie
 
Registered: Mar 2011
Posts: 5

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by ProtoformX View Post
Yes you can, but it will a bit different, to use CLFS as a cross-compiler you would have to use a fake root, and then just chroot into it when you wish to use it, because unless your plan is to relocate every default directory for GCC, libc and all the rest of the entire cross tool chain this is the only way i can think of to make that work.

What do you mean by freezing though? essentially the entire fake root will be frozen unless you make changes to it as root (when you chroot into it)

Hmmm, let me start with it then, and will come back here again when i start facing issues, maybe i would read the readme wiki thoroughly first to get the understanding...

By freezing, i meant i would freeze the versions of gcc, glibc, kernel headers etc., in my tools directory, rather if i use my same dev machine's headers and glibc, with every update i do, there is a possibility that i may by mistake update the libraries etc., instead if i used a seperate folder, i could manually control the versions i use there.

i felt that would be nice.
 
  


Reply


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
[SOLVED] LFS 6.7 : $LFS/sources and $LFS/tools folders missing prakashsince92 Linux From Scratch 5 12-09-2010 02:26 PM
LFS live-cd: /dev/mapper/lfs-cd ran out of space bucovaina78 Linux From Scratch 0 10-12-2009 11:00 AM
LFS newbie stuck in Linux API headers step 5.5 LFS book 6.3 Vxplus Linux From Scratch 2 11-10-2008 08:13 PM
LFS Book Chapter 6 - 1st step (chroot to /mnt/lfs) doens't work bauld Linux From Scratch 11 03-15-2006 12:31 AM

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

All times are GMT -5. The time now is 02: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