Re: help with compiling for PPC8540

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

 



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.

Jim



[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