This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PPC and vxworks crosscompiler


Hello,

crossgcc@sources.redhat.com

  What is the current trick for making a crossgcc compiler
for a MPC750 for vxworks? I did the standard things that have worked
for me before for making m68k cross with vxworks. I ran into
the old 

#error CPU is not defined correctly

error. I got the error for
target=powerpc-wrs-vxworks.
I was trying this with gcc-3.3.1 and vxworks 5.4.2.

There was some discussion about these kinds of errors
posted to this list in April 2002. One suggestion from
Jimm Burk was to simply include -D__CPU__=xxx
(xxx is probably 603 for the 750...judging from the Makefile
in the BSP for my 750...and the vxCpu.h) and 
-D__CPU_FAMILY__=PPC

Is this still the way people are doing this?

Thanks,

Jim
 


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]