Re: help with compiling for PPC8540

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Start with a version that supports what I'm trying to do? Yes that is an excellent hint! Thank you both for taking the time to respond. I'll post my results - if I ever get this working :)


On 7/2/19 12:55 AM, Segher Boessenkool wrote:
On Tue, Jul 02, 2019 at 11:49:28AM +0800, Jim Wilson wrote:
On Mon, Jul 1, 2019 at 11:19 PM Peggy Harvey via gcc-help
<gcc-help@xxxxxxxxxxx> wrote:
This is the error I'm getting
/opt/vxworks/linux/powerpc-vxworks-eabi/sys-include/types/vxCpu.h:361:2:
error: #error CPU is not defined correctly
vxworks header files require that the compiler define CPU.  So verify
that your gcc is defining CPU.  Try creating a file tmp.c in the gcc
build dir that just contains "CPU" and compile it with "./xgcc -B./ -E
tmp.c".  Then check that the vxworks header files support the CPU
value that gcc is defining.  The gcc CPU value should be coming from
gcc/config/rs6000/vxworks in the CPP_SPEC definition.  The error
message points at the place in the vxworks header files where it is
checking CPU.
Ah, that's enough of a hint to dig :-)

Support for the 8540 was added in 4.1 (r103432).  4.0 is from 2005, 4.1
is from 2006.

Alternatively, you can use a different -mcpu=?


Segher





[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux