LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-10-2010, 07:11 PM   #1
anakinwy
LQ Newbie
 
Registered: Nov 2010
Location: Melbourne Australia
Distribution: Ubuntu 10.10
Posts: 5

Rep: Reputation: 0
binutils 2.20/gcc-4.5.1 build pass 2 reverts to targeting the host system


I've been trying to build a cross compiler for an i486 linux based system by following LFS 6.7 and I have successfully built pass 1 of all the tools. However, when I begin the processing of second pass builds the make process will revert the target back the host system (i'm using Ubuntu 10.10 in a VM environment) which is i686-pc-linux-gnu

Can anyone help me with this?

As a second part of the question. Is there a stripped down version of the tutorial that I could follow to build a cross-compiling toolchain and glibc library for the target system rather than rebuilding the entire filesystem? I only really need to replace the glibc and the toolchain because the exisiting system is perfectly ok.

Thanks
 
Old 11-11-2010, 11:53 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Quote:
I've been trying to build a cross compiler for an i486 linux based system by following LFS 6.7
If you want to build a cross compiler, shouldn't you be focusing on CLFS instead of LFS?

Quote from the CLFS home page:
Quote:
CLFS teaches people how to build a cross compiler

Building CLFS teaches you how to make a cross-compiler and the necessary tools, to build a basic system on a different architecture. For example you would be able to build a Sparc toolchain on an x86 machine, and utilize that toolchain to build a Linux system from source code.
Hope this helps.
 
Old 11-11-2010, 04:21 PM   #3
anakinwy
LQ Newbie
 
Registered: Nov 2010
Location: Melbourne Australia
Distribution: Ubuntu 10.10
Posts: 5

Original Poster
Rep: Reputation: 0
Just found it .... looks like it'll do what I need except that the compiled application that i built using the new toolchain points to a directory on my system for the dynamic libraries it needs.

Can I adjust the cross-compile toolchain so I can use it to compile things which point at the proper location of the library on the final target when I deploy the application (/usr/lib)?
 
  


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
binutils pass 2 build directory dbbolton Linux From Scratch 4 03-09-2010 04:42 AM
remove the gcc-build, binutils-build, etc after make @d4M Linux From Scratch 6 01-26-2009 05:29 AM
LFS binutils-build error : Pass 1 ramlnx Linux From Scratch 1 07-12-2006 08:06 AM
questions on GCC-3.4.3 - Pass 2 and Binutils-2.15.94.0.2.2 - Pass 2 satimis Linux From Scratch 7 12-26-2005 10:23 PM
binutils-2.14 first pass, gcc error Add1Sun Linux From Scratch 3 04-29-2004 05:27 PM

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

All times are GMT -5. The time now is 01:54 PM.

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