LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-02-2010, 03:37 AM   #1
raghuhb
LQ Newbie
 
Registered: Sep 2009
Posts: 6

Rep: Reputation: 0
Building a ppc476 enabled GCC cross compiler and tool chain


Building a ppc476 enabled GCC cross compiler and tool chain

Hello,

I am trying to build a cross GCC compiler for PPC476.
I applied all the relevant patches. Cross compiler build was successful.
When i try to compile the source code using the cross compiler i am getting the below error message. I think this is something related to linker.
Please see if anyone tried this and come across the similar problem. please suggest me if you have any solutions for this issue.


Code:

cow_shim_funcs_startup_shutdown.o cow_shim_utils.o ../../dm/cfg/cfgi.a ../../dm/pl2/libsas21xxpl.a ../../raid/pfk/libpfk.a
/home/Raghu/gcc/cross-compiler/ppc/tools/lib/gcc/powerpc-unknown-linux-gnu/4.3.1/../../../../powerpc-unknown-linux-gnu/lib/libgcc_s.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make: *** [app.out] Error 1
 
Old 08-03-2010, 01:42 PM   #2
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
You need binutils compiled with support for that target also.
 
1 members found this post helpful.
Old 08-09-2010, 01:52 AM   #3
raghuhb
LQ Newbie
 
Registered: Sep 2009
Posts: 6

Original Poster
Rep: Reputation: 0
gnashley,

Thanks for your response.

binutils also compiled on the same OS and for the target platform as well.
Can you please describe the steps to do so.
I can re-check on the steps as well.

Thanks,
Raghu
 
Old 08-10-2010, 01:55 AM   #4
kapilsundrani
LQ Newbie
 
Registered: Aug 2010
Posts: 1

Rep: Reputation: 0
I am facing the same problem. Can you please outline the steps to build or any patches that I might be missing?

Quote:
Originally Posted by raghuhb View Post
gnashley,

Thanks for your response.

binutils also compiled on the same OS and for the target platform as well.
Can you please describe the steps to do so.
I can re-check on the steps as well.

Thanks,
Raghu
 
  


Reply



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
How could i cross compile ralink RT 2870 USB drivers with codesourcery tool chain? majji.hari Linux - Hardware 2 05-10-2010 10:30 AM
Problem building gcc 4.4.3 cross-compiler on Fedora 12 sdt Fedora 2 03-28-2010 03:14 PM
Building a Tool Chain yugandhar Linux - Kernel 3 12-16-2006 05:45 PM
Building cross-compiler gcc for powerpc-linux ccool Linux - General 3 09-17-2004 06:33 AM
Building an ARM7 cross compiler from gcc Charlie_B Linux - Software 2 08-20-2003 08:59 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:29 AM.

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
Open Source Consulting | Domain Registration