sim/ppc PAGE_SIZE redefinition
CHIGOT, CLEMENT
clement.chigot@atos.net
Thu Jun 17 08:32:22 GMT 2021
Hi,
I'm not able to build "sim/ppc" anymore on AIX.
I'm not exactly sure what have changed since there was a lot of commit
recently.
But there is a redefinition of PAGE_SIZE (which is defined in AIX includes).
In file included from icache.c:29:
semantics.h:32: error: "PAGE_SIZE" redefined [-Werror]
32 | #define PAGE_SIZE 0x1000
|
In file included from /opt/freeware/src/packages/BUILD/gcc-build-master/gcc/include-fixed/stdio.h:580,
from ../../../sim/ppc/basics.h:82,
from ../../../sim/ppc/cpu.h:24,
from icache.c:27:
/usr/include/sys/limits.h:392: note: this is the location of the previous definition
392 | #define PAGE_SIZE 4096 /* page size granularity of memory */
Is this PAGE_SIZE constant is supposed to be link to host defines or is it safe to
rename it PAGE_SIZE_1k or something like that ?
Thanks,
Clément Chigot
ATOS Bull SAS
1 rue de Provence - 38432 Échirolles - France
More information about the Binutils
mailing list