help with compiling for PPC8540
Jim Wilson
jimw@sifive.com
Tue Jul 2 03:49:00 GMT 2019
On Mon, Jul 1, 2019 at 11:19 PM Peggy Harvey via gcc-help
<gcc-help@gcc.gnu.org> 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
More information about the Gcc-help
mailing list