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.

Notices

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.

I know it might be out of place to report an error from a development version of the book, but still I hope somebody kind enough will try and help me here. I'm on Chapter 5.4 (GCC first pass), and I get this error while compiling

Thanks rocket. I did as you said and gcc compiled fine. But I have another problem now. I'm in Chapter 5.7 (Adjusting the toolchain), and am trying to dump gcc's specs file. But it seems that there isn't any specs file in /tools/lib/gcc/<target-triplet>/<gcc-version>/. I did a clean build again and installed gcc, but the problem persists. It doesn't seem to be producing the specs file, or if it is, then it's not being installed. I followed procedures as mentioned in the book. Please advise.

Ah...Thank you so much, rocket. Syntactic error had most probably pushed me down the cliff before. I had forgotten to pipe the -dumpspecs to it's proper location. I apologize for being so thick. Thanks once again.

Ah...Thank you so much, rocket. Syntactic error had most probably pushed me down the cliff before. I had forgotten to pipe the -dumpspecs to it's proper location. I apologize for being so thick. Thanks once again.

In spite of all the help from rocket, there seems to be a truckload of hell in store for me. After I passed the specs file amendment, I'm getting this new error whil trying to build the binutils Pass 2 (Chapter 5.12):

What can be the problem here? I have encountered this error in the past, but that was due to the partition not being mounted executable. That's not the case now. I got this error after i performed the specs file amend. Could it be that configure is not able to find gcc in the PATH? But why now, all of a sudden? Please advise.

Well, Jomen, I'm pretty sure that "Binutils-2.18 - Pass 2" is the title of Chapter 5.12. Yes, 6.11 also deals with Binutils, but that is when you have started with the actual building and installation of the LFS system. That chapter is simply titled as "binutils-2.18". Right now I'm at the stage where I'm setting up the temp system. 5.12 is next after you're done with "GCC - Pass 2". Has the reinstallation of gcc caused this problem? I'm following procedures strictly as mentioned in the book, with no customizations.

I have absolutely no idea as to how the specs file showed the version as 4.2.4. So I wiped out everything and started again. I got thru the 2nd GCC pass and again while building binutils, the aforementioned error popped up. Here's the specs file dump: