Issues compiling GCC v4.7.1 while building LFS for ARM (Raspberry Pi)
Linux From ScratchThis 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.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
You told us this is LFS 7.2, what you did not tell us:
- Is this gcc pass 1 or pass 2 (assuming this is chapter 5....)?
- Is your host made compliant? (post output of the version-check.sh script)
- Did you have other issues before reaching this point?
- Any clues in the log files?
So, I'm going to back up a bit and let you know what I'm doing.
There is a version of LFS for the Raspberry Pi, it's based on the developer build of 7.3. I'm using that to compile a stable version of LFS.
Being that it's a developer version, I'd really like to use a version from the stable tree. This is why I'm going backwards in what version I have vs the one I'm trying to compile. I didn't think it would matter much because they're the same major release version, 4.7.x. Am I wrong to assume that?
Some of the host versions are larger then mentioned in the Host System Requirements. I don't know if that could be problematic.
You do not mention which log files you did check, I would start with gcc's config.log
Are you sure you didn't make a typo in this chapter? Easy to find out: Do this chapter from scratch (including removal of gcc and build directory).
You know, I was thinking that might be a problem. What would be a better way of building LFS then?
I did look at the config.log file, this showed some data, not anything out of the ordinary. Unfortunately, I managed to remove the old GCC directory after I did a 'make clean' to start from scratch on GCC. I'll let it run again and bomb out so that I can show you.
Also, I'm positive that I didn't make a mistake in my typing.
I did a 'make clean' to start from scratch on GCC.
A lot of actions are done while inside the gcc directory, I'm not 100% sure that make clean is sufficient when starting from the top of that chapter. I would completely remove the gcc-x.y.z and build-gcc dir, untar again and start from there (which is also the method mentioned in the book).