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 08-02-2015, 12:58 PM   #1
mreff555
Member
 
Registered: Sep 2011
Location: Philly
Distribution: Gentoo
Posts: 473

Rep: Reputation: Disabled
Chapter 5. I keep ending up with two targets


I started building LFS the other day. I was very careful to not skip instructions, but because the build was fairly discontinuous (spread over a week or so) I suppose I could have missed a step. Somewhere about halfway through chapter 6, I got an error that an include was missing. It was than that I noticed I had built in two targets within my $LFS/tools directory: x86_64-lfs-linux-gnu, and x86_64-unknown-linux-gnu. I had backed up my tool chain at the end of chapter 5 so I double checked to see if I had two targets at that point. I did. Finally, I decided to just start all over. I was very careful to check $LFS_TGT variable regularly. Before step 5.11, right after gcc pass 2 I double checked the /tools directory. Same thing again. My target variable was still set. I have been copy and pasting all expressions to avoid mistyping. The lfs target has an include directory while the unknown does not. They both appear to have binutils binaries.

I can't figure out what I would have done. Any ideas?

Last edited by mreff555; 08-02-2015 at 12:59 PM.
 
Old 08-04-2015, 07:59 AM   #2
wesaus32
LQ Newbie
 
Registered: Jul 2015
Location: Michigan, USA
Distribution: Ubuntu Mate, Debian 8.0, LFS 7.7
Posts: 20

Rep: Reputation: Disabled
Is it possible that the error occurred somewhere prior to chapter 5?? I'm wondering if that is when it occurred since you said that the backup of the tool chain at the end of chapter 5 already had two target points. Some of the errors I received when building my first LFS (last week lol) were able to be solved via going back to the first chapter and sort of re-tracing my steps. I reviewed the steps and thought "oh yeah... i did do that..or sometimes it was oh wait, I did that wrong" and it helped out.
 
Old 08-04-2015, 02:09 PM   #3
Krejzi
Member
 
Registered: Jan 2015
Posts: 215

Rep: Reputation: Disabled
That's what it needs to be. x86_64-lfs-linux-gnu-gcc is treated as a cross-compiler on auto-detected x86_64-unknown-linux-gnu host.

A cross compiler is needed to compile a toolchain that isn't dependent on the host toolchain, aka x86_64-unknown-linux-gnu-gcc.
 
  


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
LFS chapter-by-chapter complete commands with notes DrinkinHomeBrew Linux From Scratch 6 03-16-2012 01:57 AM
The Never-Ending Login anarchic_birdsong Fedora 8 03-04-2009 05:56 PM
LFS 6.3, messed up somewhere prior to chapter 6.12 (gcc), how to restart chapter 6? Funkster Linux From Scratch 2 12-24-2008 06:30 AM
Ending in deb? liguorir Linux - Software 1 06-17-2003 06:15 PM
ending x session illtbagu Linux - Newbie 7 02-22-2003 01:05 AM

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

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