Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Click Here to receive this Complete Guide absolutely free.
Creating cross compilers (cross toolchains, to be more complete) is not as simple as it may sound. For this reason, there are toolkits that are used to streamline the process. On such toolkit is crosstool-NG. There is a very active and supportive mailing list to help you with both the use of crosstool-ng, and to assist you if you need to modify or upgrade the toolkit itself.
Accomplishing your objective on a Windows platform surely complicates the situation, but you may be able to achieve success using the Cygwin package as a platform to build a GCC cross compiler. I assume you want the cross compiler to also run on Windows, otherwise you will almost certainly be taking on a very large task.
Thanks for your kind reply. I am inteterested in your statement "using the Cygwin package as a platform to build a GCC cross compiler".
I was confused by comping procedure as with different options like
a. with libraries
b. without libraries
c. building boot gcc
d. complete gcc
But I was not getting clear picture on how to get complete toolchain: GCC cross compiler, GCC cross assembler and GCC cross linker for PowerPC MPC8260 on windows using cygwin....Any document which mentions why do we need to do twice/thrice make & make install cycle to get a toolchain with above options.
Cygwin is a package that runs on Windows, and allows you to build and run a fair amount of Linux-targeted software. We can leverage the value of Linux as a platform for building cross toolchains.
Naturally, before we build anything, it makes sense to know what we need to build. A toolchain targets a fairly specific architecture, in particular the target CPU, the target OS (if there is one; otherwise it is called a bare-metal target), and the standard C library to use. I believe these are the basis for your list of questions. You need to understand your target architecture well enough to answer these kinds of questions about the toolchain you need to build.
In order to perform a toolchain build in a repeatable and consistent manner, there are a series of scaffolding builds performed, so that the final compiler and related parts will themsleves be built from a well understood set of tools. This kind of procedure is built into toolkits such as crosstool-NG, and is substantially what gives them a lot of value over a roll-your-own procedure. Many man-years of experience and knowledge are embedded in such a package, and to not take advantage of that is to give up a lot of value. I cannot point to any specific documentation that explains this, although I'm sure there are documents out there. Perhaps sign up to the mailing list I referenced earlier, and ask there.