LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 11-23-2011, 05:06 PM   #1
jimmy_page_89
Member
 
Registered: Sep 2010
Location: Turin (Italy)
Distribution: Slackware 14.2
Posts: 51

Rep: Reputation: 4
5.8, adjusting the toolchain problem


I'm building an lfs on Arch Linux
I follow ALL the commands perfectly
but when i adjust the toolchain, readelf does not put on screen anything
because the "requesting program interpreter" is tools/lib/ld-linux.so.2, and NOT /tools/lib/ld-linux.so.2
Can you help me?
The gcc of this Arch is the 4.5.2
 
Old 11-24-2011, 10:41 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,

If the first / is missing I suspect a typo somewhere in the previous steps (might even have occured in the previous chapters). Have you redone the commands in the first grey box (chapter 5.8)?

If I look at the system requirements I don't see any problems with using gcc 4.5.2 on your (arch) host.

Although you mention following the book in the above post I have to ask: Did you really? I'm double checking 'cause if I look at your other posts I do see you've been solving problems in a "creative" way (adding to/changing commands and using a newer gcc version) I do hope you didn't do that this time around....

Can you post the output of the version-check.sh script?

Hope this helps.
 
Old 11-24-2011, 01:57 PM   #3
jimmy_page_89
Member
 
Registered: Sep 2010
Location: Turin (Italy)
Distribution: Slackware 14.2
Posts: 51

Original Poster
Rep: Reputation: 4
Hi,
yeah, i haven't made anything of "exotic" now :P
Now i'm going to rebuild again the toolchain (pray for me)

This is the output of version-check.sh
Code:
bash, version 4.1.9(2)-release
/bin/sh -> /bin/bash
Binutils: (GNU Binutils) 2.21.0.20101217
bison (GNU Bison) 2.4.3
/usr/bin/yacc -> /usr/bin/yacc
bzip2,  Version 1.0.6, 6-Sept-2010.
Coreutils:  8.9
diff (GNU diffutils) 3.0
find (GNU findutils) 4.4.2
GNU Awk 3.1.8
/usr/bin/awk -> /bin/gawk
gcc (GCC) 4.5.2
GNU C Library stable release version 2.13
grep (GNU grep) 2.7
gzip 1.4
Linux version 2.6.36-ARCH (tobias@T-POWA-LX) (gcc version 4.5.2 (GCC) ) #1 SMP PREEMPT Mon Jan 24 18:34:55 UTC 2011
m4 (GNU M4) 1.4.15
GNU Make 3.81
patch 2.6.1
Perl version='5.12.2';
GNU sed version 4.2.1
tar (GNU tar) 1.25
Texinfo: makeinfo (GNU texinfo) 4.13
Compilation OK

Last edited by jimmy_page_89; 11-24-2011 at 01:59 PM.
 
Old 11-24-2011, 02:18 PM   #4
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,

Except for one thing the above output looks ok.

There's no output for: xz --version | head -n1
I doubt, but are not 100% sure, that it is relevant for the current problem.
 
Old 11-24-2011, 04:35 PM   #5
jimmy_page_89
Member
 
Registered: Sep 2010
Location: Turin (Italy)
Distribution: Slackware 14.2
Posts: 51

Original Poster
Rep: Reputation: 4
LOL, the xz check was not included inside my version-check.sh
the output of xz is
Code:
xz (XZ Utils) 5.0.0
 
Old 11-24-2011, 11:36 PM   #6
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:
Originally Posted by jimmy_page_89 View Post
LOL, the xz check was not included inside my version-check.sh
the output of xz is
Code:
xz (XZ Utils) 5.0.0
xz hasn't been present for too long in LFS, so the logical question: Which LFS version are you building?

The above answers are based on you building LFS 7.0 stable.
 
Old 11-26-2011, 12:34 AM   #7
jimmy_page_89
Member
 
Registered: Sep 2010
Location: Turin (Italy)
Distribution: Slackware 14.2
Posts: 51

Original Poster
Rep: Reputation: 4
I'm building the 7.0
But now i mar "solved" this thread
Maybe i wrote something wrong on gcc-pass2 (all that sed-stuff is not easy to write on a IT-keyboard)
 
Old 11-26-2011, 01:59 AM   #8
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:
Originally Posted by jimmy_page_89 View Post
(all that sed-stuff is not easy to write on a IT-keyboard)
I would copy/paste those commands. As long as you understand what's being done and don't just copy/paste the commands and skip the explanatory text there's nothing wrong with that. It will make sure you don't make typo's (especially true for the larger, more complicated commands.

Hope this helps.
 
Old 11-27-2011, 01:40 AM   #9
Bertical
Member
 
Registered: Oct 2008
Location: Kingdom of Mercia
Distribution: Slackware
Posts: 83

Rep: Reputation: 14
It's worth checking the specs file has been modified correctly after adjusting the tool chain as it can save a lot of searching later. Something like :
Code:
lfs:~$ $LFS_TGT-gcc -dumpspecs | diff /mnt/lfs/tools/lib/gcc/i686-lfs-linux-gnu/4.6.1/specs -
18c18
< %{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT} -isystem /tools/include
---
> %{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}
138c138
< %{muclibc:/tools/lib/ld-uClibc.so.0;:%{mbionic:/system/bin/linker;:/tools/lib/ld-linux.so.2}}
---
> %{muclibc:/lib/ld-uClibc.so.0;:%{mbionic:/system/bin/linker;:/lib/ld-linux.so.2}}
This shows that the overrides for the compilers default cpp header path is now /tools/include and the dynamic linker is going to be from /tools/lib.
 
0 members found this post helpful.
Old 11-27-2011, 05:29 AM   #10
jimmy_page_89
Member
 
Registered: Sep 2010
Location: Turin (Italy)
Distribution: Slackware 14.2
Posts: 51

Original Poster
Rep: Reputation: 4
druuna, thanks for all the assistence
Yep, the problem was a typing-error
 
  


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
Problem Adjusting the Toolchain Alex83 Linux From Scratch 4 10-07-2010 12:01 PM
LFS- Adjusting the Toolchain problem LinuxNewman Linux From Scratch 27 06-09-2009 02:04 AM
LFS - Adjusting the toolchain problem (book 6.4) charlie_lab Linux From Scratch 4 05-26-2009 04:20 AM
5.7 Adjusting the Toolchain Problem g3neration Linux From Scratch 2 09-08-2007 10:41 AM
Adjusting toolchain problem (in temport system) ChrisScott Linux From Scratch 6 01-21-2007 09:26 AM

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

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