On 27 October 2010 06:54, Bruce Dubbs <bruce.du...@gmail.com> wrote: > Brett Mahar wrote: > >> I read all sections of the book through twice before starting. >> I did not skip any sections. >> I have a fine command of the English language, it is the only language I >> speak. >> It is not clear. > > What is not clear? The book? I'm willing to clarify text in the book, > but need some details. > > If you are referring to the tar commands in section 5.5.1, what is not > clear? There is no chdir command before the tar commands. Section 5.3 > clearly says: > > b. Change to the directory created when the package was extracted. > c. Follow the book's instructions for building the package. > > I am not clear about what is unclear. > > -- Bruce > -- ---------------- From the prior posts in this thread and the many times people have asked the same question I thought it was obvious what was unclear, eg: ---------------- On 10/22/10 16:04, Ken Moffat wrote: > When you follow the instructions for *any* page in chapters 5 and > 6, you should first untar any tarball specified (so, > gcc-4.5.1.tar.bz2 in this case) *and then cd into the directory it > creates*. If you remember that last part, the problem disappears. Yes, I have been doing this. > What we are doing is creating gmp/, mpfr/, mpc/ directories > _within_ the gcc directoriy. We do this because any host using a > version of gcc older than 4.5 will NOT have all of these required > programs, so we will build them in to the temporary gcc. This is where I am totally confused. Why you ask?? @5.5.1 the first instructions are to extract the three tarballs & mv them to their short names. I now know that you must configure,make,make install for GCC to build. Which I accomplished in the build I just deleted. Also about the trippleet, gmp must be installed before mpfr. If you configure and make mpfr first it kicks out with the error that it cannot find gmp. *Then* the second instruction is to create the gcc-build directory and cd into it. So the question is, Should I create the gcc-build directory and *then* untar gmp,mpfr, mpc, from that(gcc-build) directory --------------- Simon's post following that one gave a good rundown of the confusion: --------------- On Mon, 2010-10-25 at 22:14 -0700, lfs wrote: > So the question is, Should I create the gcc-build directory and *then* > untar gmp,mpfr, mpc, from that(gcc-build) directory
No. Remember the rule - before starting on a particular page, extract it's tarball, and cd into the directory. So, when extracting gmp, mpfr, and mpc, you should be in the GCC source directory (gcc-4.5.1). The idea is that you should then have 'gmp', 'mpfr' and 'mpc' directories within the main GCC source, and the reason is that they'll be built by GCC automatically. Unfortunately, the book doesn't really explain this, with the result that people seem to improvise this part, instead of following the instructions to the letter. Editors, can we perhaps add some extra text to the GCC Pass 1 instructions (and perhaps a short reminder to Pass 2 as well)? Right now, all the book has to say is: "GCC now requires the GMP, MPFR and MPC packages. As these packages may not be included in your host distribution, they will be built with GCC" Can we go into a bit more detail about that "build with GCC" bit? Extracting seemingly unrelated tarballs into the GCC source tree *is* an unusual thing to do, unless you're aware that the GCC build will magically build those packages if present. A short explanation of how this works, and why we do it would 1) improve the educational aspects of the book, and 2) discourage people from improvising because the instructions seem wrong. ----------------- Section 5.3 says: 3. For each package: a. Using the tar program, extract the package to be built. b. Change to the directory created when the package was extracted. c. Follow the book's instructions for building the package....... So for example if I follow section 5.3 I: a. extract the package mpfr (as far as I, the beginning lfs person know, this is a package) b. Change to the directory created.......hold on, part c says I must follow the books instructions....but the book says rename mfpr with "mv -v mpfr-3.0.0 mpfr" and says nothing about "cd into the directory created when the package was extracted".... So what should I follow, the book at section 5.3 says follow the book's instructions. The instructions at "5.5. GCC-4.5.1 - Pass 1" say something different to 5.3, which should I follow? If I try to email lfs-support I get told to follow 5.3, and that the book is right. 5.3 part b says change into the directory created. But part c says follow the books instructions. So, should I cd into the mpfr directory or not? THIS IS UNCLEAR!!! There is not enough detailed information in the book to work this out, unless you already know NOT to cd into mpfr, gmp, or mpc. And section 5.3 specifically says "b. Change to the directory created when the package was extracted." Section 5.3 contradicts 5.5. Hence confusion. Brett. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page