LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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!

Notices


Reply
  Search this Thread
Old 03-02-2011, 11:33 PM   #1
tramu
LQ Newbie
 
Registered: Feb 2011
Posts: 2

Rep: Reputation: 0
cross compiling gcc for powerpc MPC8260


Dear Sir,

We want to use GCC for cross compiling C source code for POWERPC MPC8260 target. How do we build cross compiler in windows?

Thanks in advance,
Regards,
Thulasi
 
Old 03-04-2011, 01:35 PM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,396
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
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.

--- rod.
 
Old 03-07-2011, 01:27 AM   #3
tramu
LQ Newbie
 
Registered: Feb 2011
Posts: 2

Original Poster
Rep: Reputation: 0
cross compiling gcc for powerpc MPC8260

Dear Sir,
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.

Thanks in advance.

Regards,
Thulasi
 
Old 03-07-2011, 02:33 PM   #4
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,396
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
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.

--- rod.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
compiling cross gcc for powerpc, glibc trouble and73y Programming 14 06-05-2009 05:21 AM
Cross Compiling gcc sci3ntist Programming 3 08-07-2007 09:33 AM
Cross compiling gcc 4.x mks_jangra Linux - Software 1 05-17-2007 09:32 PM
Problem with gcc powerpc cross compile !! rohya_joshi Linux - Software 2 02-07-2006 01:44 AM
Building cross-compiler gcc for powerpc-linux ccool Linux - General 3 09-17-2004 07:33 AM


All times are GMT -5. The time now is 06:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration