Need to undo toolchain adjustment
e_lion_1 at hotmail.com
Fri Feb 11 23:07:41 PST 2011
On Fri, Feb 11, 2011 at 10:48:27PM -0600, Mitch Embry wrote:
> This is my first LFS build and all was going well until I went and
> changed a command. I am building this system in virtualbox using the
> latest LFS Live-CD, all the latest packages from lfs.org, and LFS-BOOK-6.7
> I had completed the steps up to 5.9 in the book where I was starting
> pass 2 of Binutils when I realized what I had done. Two steps back when
> I was compiling Glibc I erroneously changed a command thinking I was
> doing the right thing (against my better judgment). The command I edited
> was the following:
> #begin command
> ../glibc-2.13/configure --prefix=/tools \
> --host=$LFS_TGT --build=$(../glibc-2.13/scripts/config.guess) \
> --disable-profile --enable-add-ons \
> --enable-kernel=184.108.40.206 --with-headers=/tools/include \
> libc_cv_forced_unwind=yes libc_cv_c_cleanup=yes
> #end command
> While typing this command I mistakenly assumed I needed to change the
> '--enable-kernel=220.127.116.11' line to reflect the latest kernel that I had
> downloaded from lfs.org not realizing that this line was in fact
> referring to the host system. However, everything compiled and installed
> correctly and I moved on to 5.8 Adjusting the Toolchain. Again all of
> this completed without error, including the sanity-check.
> It was not until I started to compile Pass 2 of Binutils and the
> compiler threw a "FATAL: Kernel too old" error that I realized what I
> had done. Now, since I already have adjusted the toolchain and GCC's
> dynamic linker has changed when I try to rebuild Glibc, make will not
> complete (it hangs) and as a result I am stuck.
> What should I do to correct this? Can I undo the Toolchain adjustment so
> I can recompile Glibc or do I have to start from square one again? Any
> advice is greatly appreciated. Either way I've learned my lesson about
> altering commands unless expressly directed to do so.
It seems that I've made this mistake a few times myself.
You may consider updating the kernel on your host system (which looks
like the liveCD). This is what I've done before. Also, it's my preferred
solution for this mistake. Works out fine in the end.
Or cleaning out the file system and starting over. Very time consuming
and not much fun! (Think I've gone this route too, on occasion).
Or by undoing the changes made to the gcc spec file and reverting the
toolchain back and then rebuilding glibc. Time consuming and a fun way
to learn, but ... it's been a long time since I've done such the details
More information about the lfs-support