LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-30-2016, 03:15 AM   #1
corbis_demon
Member
 
Registered: Jun 2004
Distribution: CLFS
Posts: 523

Rep: Reputation: 38
Glibc executables still include reference to the /tools directory [CLFS-SysV]


Hi,

I just finished building my CLFS x86_64 SysV setup. Now, some programs (getent, iconv etc.) installed by Glibc still include a reference to the temporary build tools directory. Eg.:

Code:
$ ldd /usr/bin/getent

	linux-vdso.so.1 (0x00007ffdc53c8000)
	libc.so.6 => /lib/libc.so.6 (0x00007f542a286000)
	/tools/lib/ld-linux-x86-64.so.2 => /lib/ld-linux-x86-64.so.2 (0x000055d25c4ae000)
The result is, when I try to run them, they error out:

Code:
bash: /usr/bin/getent: No such file or directory
The sanity check I performed after installing Glibc produced the expected result.

Code:
[Requesting program interpreter: /lib/ld-linux-x86-64.so.2]
Only the Glibc binaries have this problem. The rest are fine. Is there a solution to this? Thanks in advance.

Last edited by corbis_demon; 11-30-2016 at 03:16 AM.
 
Old 11-30-2016, 01:31 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,278

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
That stuff is from glibc. Glibc is built in Chapter 5, and then not for a long time. When you do the 'Adjust Toolchain' bit, what does that show?http://www.clfs.org/view/CLFS-3.0.0-...adjusting.html
 
Old 12-01-2016, 11:06 AM   #3
corbis_demon
Member
 
Registered: Jun 2004
Distribution: CLFS
Posts: 523

Original Poster
Rep: Reputation: 38
Quote:
Originally Posted by business_kid View Post
When you do the 'Adjust Toolchain' bit, what does that show?
It creates the gcc specs file at the appropriate location (/tools/lib/gcc/<target-triplet>/<VERSION>), and the sanity check produces the expected output:

Code:
[Requesting program interpreter: /lib/ld-linux-x86-64.so.2]
I'm now compiling Glibc again using the current instead of the the cross-compiled one from the temp tools. I'm running into problems again, though, because I have Gold as the default linker. When using bfd as the linker, I get errors because I have ssse3/avx enabled in the CFLAGS, which I do not want to disable.

Last edited by corbis_demon; 12-01-2016 at 11:09 AM.
 
Old 12-02-2016, 04:17 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,278

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Quote:
It creates the gcc specs file at the appropriate location (/tools/lib/gcc/<target-triplet>/<VERSION>), and the sanity check produces the expected output:

Code:

[Requesting program interpreter: /lib/ld-linux-x86-64.so.2]
If you're getting the expected output, it means it's referencing the system interpreter, which is correct. Now what remains to be checked is have you a static or chapter 5 compile lying around (which all reference /tools) or have you somehow got /tools back into the configure line subsequent to chapter 5?
 
  


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
[SOLVED] Is there an easy way to convert sysV to systemd scripts? Or add dependencies to a sysV script? irey Linux - Software 2 10-19-2016 06:51 AM
/usr/include/linux directory or <mykernel>/include/linux directory? redjupiter58 Programming 0 06-04-2011 03:25 PM
[SOLVED] Changing $CHOST variable after tools are built (Chapter 10 CLFS guide) manwithaplan Linux From Scratch 1 11-12-2010 10:48 AM
glibc change in header file sysdeps/unix/sysv/linux/bits/socket.h Bambi535 Linux - General 4 08-19-2008 02:45 PM
undefined reference to `__ctype_b' on glibc 2.5-3 powah Programming 3 10-19-2007 04:01 PM

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

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