LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 02-05-2006, 05:14 AM   #1
rohya_joshi
LQ Newbie
 
Registered: Nov 2005
Posts: 4

Rep: Reputation: 0
Cool Problem with gcc powerpc cross compile !!


hi!!!

ive started learninig powerpc for quite a while now... i was using cygwin with the powerpc tools in winxp for comliling my programs. latelly i shifted to SUSE 10. now in not able to compile my programs using "powerpc-elf-gcc" it says command not found.whay should i do.
are there any other packages required? if yes where will i get those frm???

thnx 4 help!!
 
Old 02-06-2006, 02:15 PM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 77
First off, you must have a gcc that is able to cross-compile. This may well require a complete rebuild of your toolchain (gcc, binutils, headers etc...) which you may want to install locally to avoid overwriting your native gcc.

Second, to do the actual cross compile, I think all that is necessary is to define your chost flags to your target platform.

I suggest reading the gcc docs, or searching for a tutorial on setting up gcc to cross-compile.
 
Old 02-07-2006, 12:44 AM   #3
rohya_joshi
LQ Newbie
 
Registered: Nov 2005
Posts: 4

Original Poster
Rep: Reputation: 0
Cool

hello,

thnx for the reply.ive installed suse10 oss with all the dev packages. how can i re compile these the toolchain.im new to this.... plz help me out.
 
  


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
Need help in adding PowerPC libraries to GCC 3.3.4 rmurthy Linux - Software 0 12-07-2005 09:52 AM
Can gcc cross-compile C code to M68K Assembly? lowpro2k3 Programming 1 03-25-2005 07:50 AM
Building cross-compiler gcc for powerpc-linux ccool Linux - General 3 09-17-2004 06:33 AM
cross compile PATH problem karfei00 Linux - Newbie 1 06-16-2004 07:39 AM
Setting up GCC for cross-compile ugenn Linux - Software 0 02-20-2003 09:08 AM


All times are GMT -5. The time now is 01:28 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration