LinuxQuestions.org
Help answer threads with 0 replies.
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 07-26-2014, 09:41 PM   #16
j_v
Member
 
Registered: Oct 2011
Distribution: Slackware64
Posts: 364

Rep: Reputation: 67

Code:
cmp /tools/bin/ld-new /mnt/lfs/sources/binutils-build/ld/ld-new
Or
Code:
md5sum /mnt/lfs/sources/binutils-build/ld/ld-new
md5sum /tools/bin/ld-new
This last, just compare the two outputs... should be identical.

Either only works if you haven't yet deleted to build directory.
 
Old 07-26-2014, 10:04 PM   #17
dmssargent
Member
 
Registered: Jul 2014
Posts: 32

Original Poster
Rep: Reputation: Disabled
The new ld-new seems to work in chroot in eviroment. The cmp tool says it differes at line 1, byte 25 and the md5 is wildly off. Shall I try to reinstall binutils pass 2 (version I checked)?
 
Old 07-26-2014, 10:35 PM   #18
j_v
Member
 
Registered: Oct 2011
Distribution: Slackware64
Posts: 364

Rep: Reputation: 67
I'm getting a nasty feeling this bit where we're trying to work from reconstructed log files could be very misleading, so I'm wondering if we're not chasing this down a blind alley. I think it is better to just start again. I know it's a pain, believe me, I've been there. It's why I have setup to script as much of this as possible. But the problem is that each step is so dependent on the previous one and toolchains are such persnickety beasts that trying to start again in the middle is similar to trying to rebuild a car that has been partially smelted down. Maybe it can be done. Are you sure you want to drive it in congested traffic?

btw... the two files are probably different because of whatever you did to recreate the logs. I enjoy helping with this type of thing, but the effort to find out what went wrong and we don't even have the original build output logged is bordering on the limit of even my patience. Sorry I'm not more help here. I've debugged enough of my own builds, and I sometimes do some changing of versions and trying out different build methods that I've managed to get through some irritatingly weird errors, but not without reliable logfiles to work from.

Last edited by j_v; 07-26-2014 at 10:37 PM.
 
Old 07-26-2014, 10:47 PM   #19
dmssargent
Member
 
Registered: Jul 2014
Posts: 32

Original Poster
Rep: Reputation: Disabled
I relealize that. Since the new binutils, seems to work in the chrooted enviroment, I will chance an actual make install of the new binutils (I did make lots of backups for this install as it is my third attempt). Does the LFS book even have a notification that you should backup your log files?
If this fails and re-start, I think I will try the method a generated the log files for make with:
Code:
make -j4 2>>make_errors.log >>make.log
I hope I can get a stabilized compling enviroment in chroot by pursing this, but I too have that feeling it may not work.
 
Old 07-26-2014, 11:12 PM   #20
j_v
Member
 
Registered: Oct 2011
Distribution: Slackware64
Posts: 364

Rep: Reputation: 67
Good luck. Don't hestitate ask if you run into another roadblock.
 
Old 07-26-2014, 11:18 PM   #21
dmssargent
Member
 
Registered: Jul 2014
Posts: 32

Original Poster
Rep: Reputation: Disabled
The gut feelings was right the complied tools just won't run correctly, but this time I will backup every build directory in a special backup folder. Is there a better sanity check to run after the initial compilers pass 2?
 
Old 07-27-2014, 01:59 AM   #22
dmssargent
Member
 
Registered: Jul 2014
Posts: 32

Original Poster
Rep: Reputation: Disabled
Rebuilding the tools got binutils back online, now currently xz is suffering this issue, maybe others.
 
Old 07-27-2014, 09:27 AM   #23
j_v
Member
 
Registered: Oct 2011
Distribution: Slackware64
Posts: 364

Rep: Reputation: 67
Did you start over?
 
Old 07-27-2014, 09:46 AM   #24
dmssargent
Member
 
Registered: Jul 2014
Posts: 32

Original Poster
Rep: Reputation: Disabled
Wiped /tools and rebuilt it. I wasn't sure about the other directorys.
 
Old 07-27-2014, 03:19 PM   #25
j_v
Member
 
Registered: Oct 2011
Distribution: Slackware64
Posts: 364

Rep: Reputation: 67
If you grep the logs:
Code:
grep -E "[Ee]rror" /path/to/logfile
what is the first point of failure?
 
Old 07-27-2014, 04:12 PM   #26
dmssargent
Member
 
Registered: Jul 2014
Posts: 32

Original Poster
Rep: Reputation: Disabled
Which logfile should I grep or all of them? I created a new thread for a new issue with glibc, as I was thinking this thread was ending its life, but the issues maybe related. Though, right it does not seem so.

Edit: I rebuilt xz in the chroot and it works (the error seems to have changed to "command not found" from it orginial state)
Though, here are a few build errors I found when rebuilding (or building) it:
In config:
Code:
./configure: line 9080: /usr/bin/file: No such file or directory
In make install
Code:
/sources/xz-5.0.5/libtool: line 1088: ldconfig: command not found

Last edited by dmssargent; 07-27-2014 at 04:30 PM.
 
Old 07-27-2014, 09:21 PM   #27
j_v
Member
 
Registered: Oct 2011
Distribution: Slackware64
Posts: 364

Rep: Reputation: 67
I looked at your other thread. I feel certain that all these problems boil down to one common problem, but still we are only seeing the effects.

As for which logs to grep, yeah grep em all. You need to find the error that is first in the chain of errors.
If this really is the first error, then something is very wrong with the toolchain. The error in the make log looks to me to be a multiarch <-> non-multiarch problem.
I'm trying real hard here to be helpful. One log, two errors. Toolchain problem looks like to me. One possible problem, and be aware that I'm grasping at straws from
out on the thin ice, is that your host system gcc is multiarch or multilib.
 
Old 07-27-2014, 09:41 PM   #28
dmssargent
Member
 
Registered: Jul 2014
Posts: 32

Original Poster
Rep: Reputation: Disabled
Okay, I believe that it does it does have that, but I have basically started copy and pasting from the books. I will put together every log file I created in archive and upload them.

https://onedrive.live.com/redir?resi...347110C1%21416

Last edited by dmssargent; 07-27-2014 at 10:16 PM. Reason: Added log archive link
 
Old 07-28-2014, 06:02 PM   #29
j_v
Member
 
Registered: Oct 2011
Distribution: Slackware64
Posts: 364

Rep: Reputation: 67
Are you removing both the old source and old build directories before starting each new build?

About your logs: there is a binutils and a binutils-2 logs directory, but only a gcc-2.
I'm not sure it is helpful separating the stderr from stdin for the logs; doing something like:
Code:
make > make.log 2>&1
or
Code:
make 2>&1 | tee make.log
will help keep the error output more in sync with the non-error output, thus leaving better clues as to what was happening at the time of the error. This is my preference, since typos are my most common mistake and are often such a pain to track down. I make this point because the most serious error I see so far is this one in gcc-2/make-err.log:
Quote:
xgcc: error trying to exec 'cc1': execvp: No such file or directory
I don't get this error in my most recent run of gcc-pass2 and it would help to see what is being compiled at that point.
 
Old 07-28-2014, 07:19 PM   #30
dmssargent
Member
 
Registered: Jul 2014
Posts: 32

Original Poster
Rep: Reputation: Disabled
The reason there is a gcc-2, is because of a typo. tar overwrote the first one. I do extract the errors via 2>*err.log where star is the log name before it.
 
  


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] Invoke root directory owner/group while moving file/directory yogesh_attarde Linux - Security 5 04-14-2014 11:36 PM
su:warning: cannot change directory to home/orausr: No such file or directory cdhar Linux - Newbie 4 09-11-2012 06:17 AM
chroot:cannot change root directory to: No such file directory janakiramulu Linux From Scratch 5 04-23-2011 01:00 AM
Get first file of directory then copy to other directory andd rename the file Faye Linux - Software 4 01-30-2011 09:16 AM
How to protect a file/directory in your home login directory (RH Linux) jitsenho Linux - Security 9 07-03-2006 11:08 PM

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

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