Toolchain
Working trough the LFS guide I had a question about the toolchain.
I've already read this thread: http://www.linuxquestions.org/questi...lchain-520503/ Why do I need a new, 'clean' toolchain to build a new linux system. Why can't I just compile (for instance) kernel and busybox and then boot it up? After it has been compiled (and necessary libraries are present) it should work, right? |
I assume the tools are not perfect. They may fail in case of some strange "circumstances", so if the production environment contained some aliens. You can never guarantee all the tools work in all cases. The most secure solution whould be to use a new, fresh, clean and unused environment.
Remember, you will have no chance to recover such errors in a running system. |
Quote:
|
The idea of building the toolchain is to stop cross contamination from the host system, ie you don't want programs linked to library's that are on the host that may not be on the destination system, and don't forget that some libs are linked to other libs and so on, compiling the toolcain is fairly painless IF YOU STICK TO THE BOOK, at least for the first few times, once you have a built and working toolchain you can always save it for future use so you don't have to rebuild from scratch every time, although for your first couple of builds I would build the toolchain from scratch every time as its good practice.
|
Quote:
Quote:
Quote:
|
Quote:
Quote:
|
All times are GMT -5. The time now is 04:32 PM. |