Ahh, ok, yes thank you, that is more what I am looking for. So you can have the Binutils-xx AND Binutils-build in the same /mnt/lfs/sources directory. I know everyone disagrees with me, but I still think that isn't clear given that quote on page 35 recommending that Binutils be built outside the sources directory. But maybe it is just a wording issue. I guess in essence, there are two "sources" directories:
/mnt/lfs/sources AND /mnt/lfs/sources/Binutils-xx So the GCC directory is similar in that it goes in /mnt/lfs/sources/GCC-4.x is that right? I don't think the book explicitly says it, but I guess you are supposed to uncompress the GCC-4.x tar file into the GCC-4.x directory first, right? And then the GMP, MPFR and MPC packages go into the GCC-4.x directory? So the folder structure would be: /mnt/lfs/sources/GCC-4.x/ /mnt/lfs/sources/GCC-4.x/GMP /mnt/lfs/sources/GCC-4.x/MPFR /mnt/lfs/sources/GCC-4.x/MPC and then you put the gcc-4.x-cross_compile-1.patch into the /mnt/lfs/sources/GCC-4.x directory right? Then you create the GCC-Build directory. So that would be /mnt/lfs/sources/GCC-Build so you would have: /mnt/lfs/sources/GCC-4.x and /mnt/lfs/sources/GCC-Build is that right? ----- Original Message ----- From: Philippe Delavalade <philippe.delaval...@orange.fr> To: Scott Robertson <scottrobertso...@yahoo.com> Cc: lfs-support@linuxfromscratch.org Sent: Thursday, May 3, 2012 4:20 AM Subject: Re: [lfs-support] Chapter 5 questions Le jeudi 03 mai à 09:47, Scott Robertson a écrit : > Page 35 of the book specifically says: > > "The Binutils documentation recommends building Binutils outside of the > source directory in a dedicated build directory:" > > mkdir -v ../binutils-build > cd ../binutils-build > > > Should I just disregard that and put it inside the sources directory? If I > follow the directions, I am not supposed to put the binutils-build directory > inside the sources directory? If I don't put it in the sources directory, > then where is the binutils-build directory supposed to go? Can someone > explain what the full path is supposed to be? > Is it supposed to be /mnt/lfs/sources/binutils-build or something else? Is the binutils-build directory inside the lfs/sources directory or outside of it? Well, first, reply on the list and don't top post. For your question, there is a general sources directory : $LFS/sources ; and each package has is own source directory, the one obtained when untaring. So, for binutils, you have the file binutils-xx.tar.bz2 in $LFS/sources ; after tar -xvf binutils-xx.tar.bz2 you obtain a subdirectory binustils-xx in which you enter ; you are in $LFS/sources/binutils-xx which is the source directory for binutils ; then you create ../binutils-build which is in $LFS/sources ; then cd ../binutils-build and you are in $LFS/sources/binutils-build. And so on. In $LFS/sources you have the two directories binutils-xx and binutils-build. When binutils is built, you go in £LFS/sources with "cd .." and then you have to delete those two directories with "rm -vfr binutils-xx" and "rm -vfr binutils-build" ; the 'f' is possibly unmandatory. I hope I'm clear but English is not my native language :-) -- Ph. Delavalade -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page