LinuxQuestions.org
Visit Jeremy's Blog.
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-31-2013, 09:13 AM   #1
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Possible oddness with 7.4rc1


built and booted t4.4rc1 seems ok but going back over some logs I found that the dummy.log created at

http://www.linuxfromscratch.org/lfs/...adjusting.html

Gives some odd results like so:
Code:
[Requesting program interpreter: /lib64/ld-linux-x86-64.so.2]
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/../../../../lib64/crt1.o succeeded
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/../../../../lib64/crti.o succeeded
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/../../../../lib64/crtn.o succeeded
 /usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/include-fixed
 /usr/include
SEARCH_DIR("/usr/x86_64-unknown-linux-gnu/lib64")
SEARCH_DIR("/usr/local/lib64")
SEARCH_DIR("/lib64")
SEARCH_DIR("/usr/lib64")
SEARCH_DIR("/usr/x86_64-unknown-linux-gnu/lib")
SEARCH_DIR("/usr/local/lib")
SEARCH_DIR("/lib")
SEARCH_DIR("/usr/lib");
attempt to open /lib64/libc.so.6 succeeded
found ld-linux-x86-64.so.2 at /lib64/ld-linux-x86-64.so.2
There seems to be no cross contamination with the host but some stuff seems to be in odd places according to the logfile I have checked and crt* are in /usr/lib where they should be, is this a problem or just genereal weirdness?
 
Old 08-31-2013, 01:11 PM   #2
re_nelson
Member
 
Registered: Oct 2011
Location: Texas, USA
Distribution: LFS-SVN, Gentoo~amd64, CentOS-7, Slackware64-current, FreeBSD-11.1, Arch
Posts: 229

Rep: Reputation: Disabled
Quote:
Originally Posted by Keith Hedger View Post
built and booted t4.4rc1 seems ok but going back over some logs I found that the dummy.log created at

http://www.linuxfromscratch.org/lfs/...adjusting.html

Gives some odd results like so:
Code:
[Requesting program interpreter: /lib64/ld-linux-x86-64.so.2]
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/../../../../lib64/crt1.o succeeded
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/../../../../lib64/crti.o succeeded
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/../../../../lib64/crtn.o succeeded
There seems to be no cross contamination with the host but some stuff seems to be in odd places according to the logfile I have checked and crt* are in /usr/lib where they should be, is this a problem or just genereal weirdness?
What does readlink -f /usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/../../../../lib64/crtn.o show?
 
Old 08-31-2013, 02:36 PM   #3
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Original Poster
Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
The link points to the correct place ie /usr/lib/crtn.o
As I said it all seems to be working and I am now building Xorg fine ( in chroot ), I don't see why these somwhat odd paths seem to be there.
 
Old 08-31-2013, 02:48 PM   #4
re_nelson
Member
 
Registered: Oct 2011
Location: Texas, USA
Distribution: LFS-SVN, Gentoo~amd64, CentOS-7, Slackware64-current, FreeBSD-11.1, Arch
Posts: 229

Rep: Reputation: Disabled
Quote:
Originally Posted by Keith Hedger View Post
The link points to the correct place ie /usr/lib/crtn.o
As I said it all seems to be working and I am now building Xorg fine ( in chroot ), I don't see why these somwhat odd paths seem to be there.
For quite some time, the GNU Compiler Collection has used the "indirection" of paths to resolve the location of object and library files. See the output of gcc -print-search-dirs for the extensive use of "double-dot" paths.
 
1 members found this post helpful.
Old 08-31-2013, 04:00 PM   #5
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Original Poster
Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
I get
Code:
install: /usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/
programs: =/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/:/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/:/usr/lib/gcc/x86_64-unknown-linux-gnu/:/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/:/usr/lib/gcc/x86_64-unknown-linux-gnu/:/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/../../../../x86_64-unknown-linux-gnu/bin/x86_64-unknown-linux-gnu/4.8.1/:/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/../../../../x86_64-unknown-linux-gnu/bin/
libraries: =/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/:/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/../../../../x86_64-unknown-linux-gnu/lib/x86_64-unknown-linux-gnu/4.8.1/:/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/../../../../x86_64-unknown-linux-gnu/lib/../lib64/:/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/../../../x86_64-unknown-linux-gnu/4.8.1/:/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/../../../../lib64/:/lib/x86_64-unknown-linux-gnu/4.8.1/:/lib/../lib64/:/usr/lib/x86_64-unknown-linux-gnu/4.8.1/:/usr/lib/../lib64/:/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/../../../../x86_64-unknown-linux-gnu/lib/:/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/../../../:/lib/:/usr/lib/
I still don't know if I can ignore this or if it will bite me in the a*** later on, any thougts?
 
Old 08-31-2013, 04:13 PM   #6
re_nelson
Member
 
Registered: Oct 2011
Location: Texas, USA
Distribution: LFS-SVN, Gentoo~amd64, CentOS-7, Slackware64-current, FreeBSD-11.1, Arch
Posts: 229

Rep: Reputation: Disabled
Quote:
Originally Posted by Keith Hedger View Post
I still don't know if I can ignore this or if it will bite me in the a*** later on, any thougts?
Try this to assure yourself that it's all good:

Code:
for path in $(gcc -print-search-dirs | awk '/libraries:/ { sub("=", ""); print $2 }' | tr ':' ' '); 
    do readlink -f $path; 
done | sort -u
And to really prove it, go to a known good host system using GCC 4.X.X and repeat the same command. It's normal.
 
1 members found this post helpful.
Old 08-31-2013, 04:59 PM   #7
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Original Poster
Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
I get
Code:
/lib
/usr/lib
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.1
On both my present system and the new 7.4rc1 ( allowing for the gcc version ) so I guess that means everything's OK.

I'll mark this solved.
 
  


Reply

Tags
check, crt1.o, glibc, lfs, weirdness



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] Can't compile fakeroot in LFS 7.4rc1 Lennie Linux From Scratch 15 09-12-2013 11:32 AM
how to make xfce 4.4RC1 write arabic tony safari Linux - Desktop 0 08-06-2007 05:41 PM
Xfce4.4RC1 fails to build missing dbus ? exvor Linux - Software 2 10-02-2006 04:34 PM
Xfce4.4RC1 on Slackware 11.0RC4 fcaraballo Slackware 2 09-06-2006 06:11 PM
ndiswrapper 1.4rc1 is buggy kaon Linux - Wireless Networking 2 10-02-2005 08:25 AM

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

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