LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Trouble Building glibc chapter 6 (https://www.linuxquestions.org/questions/linux-from-scratch-13/trouble-building-glibc-chapter-6-a-4175465984/)

druuna 06-21-2013 12:48 AM

Quote:

Originally Posted by mreff555 (Post 4975452)
I apologize, where would this config.log file be? It's not in the source directory.

It is created in the build directory or the glibc source directory.

Quote:

Also, I'm not sure how to post the entire make output as the error doesn't occur until the log file is over 6 MB.
Compress the file using zip/bzip/tar/.. and upload that.

mreff555 06-22-2013 12:15 PM

Alright I have the config log and make logs.

to clarify:
This was all run on a single thread.
Freshly extracted source directory and empty build directory
I used the exact syntax for the config that was specified in build 7.3
for the make command I used

Code:

make -S > /root/glibc-logfile 2>&1
The locations of the files are:

http://www.pages.drexel.edu/~dmf86/glibc-logfile.gz
http://www.pages.drexel.edu/~dmf86/config.log

line 8892 contains the first line of the loop. I stopped it after a few iterations.

business_kid 06-22-2013 02:05 PM

Grabbed the logfile, and my attention was caught by lines 8892, & 8893
Code:

make[4]: Leaving directory `/sources/glibc-2.17/nptl'
make[4]: Entering directory `/sources/glibc-2.17/nptl'

That is suspicious, as make should clear off and build something else. If you stop a make after it has done several directories, it is usually capable of running down through what it has done without recompiling and taking up where it left off. That points to possibly
1. A mistake in the makefile causing it to loop.
2. Maybe some weird issue with writing notes to itself.
3. Something else that my devious mind cannot conceive of.

mreff555 06-23-2013 06:58 AM

I guess I could try reverting to 2.16. At least that will help me zero in on the problem

mreff555 06-23-2013 08:28 AM

Well, I tried 2.16.0 and got the exact same looping error. It seems to me that this probably rules out a makefile error as I doubt the error would make it through two releases. I'm wondering if this could be some kind of problem with permissions.

druuna 06-23-2013 09:27 AM

I guess we can rule out glibc itself as the culprit, something must have gone wrong earlier in the build process.

Did you check and re-check if the first few chapters in chapter 6 were done correctly? I do hope for you its a problem in chapter 6, going back to trouble-shoot chapter 5 at this point would be very hard to do.....

mreff555 06-23-2013 09:43 AM

yeah... sadly if it is a problem from previous mistakes it's probably chapter five. I have re-ran through all the steps up to this point a dozen times. I'm seriously considering redoing the entire chapter five with all of the make checks.

druuna 06-23-2013 09:59 AM

Quote:

Originally Posted by mreff555 (Post 4977086)
I'm seriously considering redoing the entire chapter five

That might be a good idea.

Quote:

Originally Posted by mreff555
with all of the make checks.

Running the tests in chapter 5 can be problematic and some test cannot be run at all (details are in the specific build chapters).

mreff555 06-23-2013 12:06 PM

I'm just worried that I'm not going to see any difference. Oh well. I guess I have nothing else to try.

Has anyone successfully build book 7.3?

druuna 06-23-2013 12:47 PM

Quote:

Originally Posted by mreff555 (Post 4977136)
Has anyone successfully build book 7.3?

Multiple people have (me being one of those).

spiky0011 06-23-2013 04:00 PM

Me

+1

stoat 06-23-2013 08:53 PM

Quote:

Originally Posted by mreff555

I'm just worried that I'm not going to see any difference.

Understandable.

Quote:

Originally Posted by mreff555

Oh well. I guess I have nothing else to try.

You'll just be re-doing the tools. Mostly. In the context of a complete BLFS project, that's not so bad. Probably one evening of work. Some other ideas to consider might be using another host system. It's Debian now, right? Try your Slackware system. That was the last distro host I used. Another idea is to consider building a 32-bit system. Those ideas are mostly guesswork. Thinking out loud mostly, and not really based on much. Nor guaranteed.

Quote:

Originally Posted by mreff555

Has anyone successfully build book 7.3?

I had no problems with it.

business_kid 06-24-2013 03:29 AM

One other consideration: The build tools on your base system must be good enough, and up to date enough to build chapter 5. One suspect is always the kernel headers. In the time I was doing LFS, some uclibc based builds were failing with weird errors, and it was traced to an older kernel headers package than the kernel itself (headers 2-15, kernel 2.29 or some such). These kernel headers only affect what you build. They do change occasionally.

Right now, on Slackware-14.0, I have kernel headers-3.2.29, and kernel 3.8.8 - not a good mix. If I hit build difficulties, the headers would be the first thing I'd change. You can simply run
make headers check
make headers install
in the kernel top source to install new headers, or install the headers from the updates, or current.

Lennie 06-24-2013 10:34 AM

Quote:

Originally Posted by business_kid (Post 4977450)
You can simply run
make headers check
make headers install
in the kernel top source to install new headers, or install the headers from the updates, or current.

Don't update the kernel api headers.
http://www.linuxfromscratch.org/lfs/...08/kernel.html
Quote:

Warning

The headers in the system's include directory should always be the ones against which Glibc was compiled, that is, the sanitised headers from this Linux kernel tarball. Therefore, they should never be replaced by either the raw kernel headers or any other kernel sanitized headers.
The kernel api headers should be the same as was compiled in chapter 5. Once I tried to use newer version in chapter 6 (3.8.8 instead of 3.8.1) and I had strange problems, where things "mystically" didn't compile. Switching back to the same version of the kernel api headers as I used in chapter 5 solved the problem.

business_kid 06-24-2013 11:35 AM

Funny how things change. . . It was 10 years ago. Agreed, Lennie. I was somehow thinking if all else fails, replace the headers before starting on ch 5. But I didn't say that, or nearly. Any switch midway would be a disaster. Thanks for tidying up for me.


All times are GMT -5. The time now is 11:35 AM.