Gnuk 1.2.19 fails to build with gcc-11.2.1
Bertrand Jacquin
bertrand at jacquin.bzh
Sun Mar 20 14:51:30 CET 2022
Hi,
Gnuk 1.2.19 fails to build with gcc-11.2.1 due to type conflict:
arm-none-eabi-gcc -O2 -g -Wa,-alms=regnual.lst -fpie -Wall -Wextra -Wstrict-prototypes -I . -I ../chopstx -fno-common -mcpu=cortex-m3 -mthumb -DTHUMB -mno-thumb-interwork -DMEMORY_SIZE=20 -DMHZ=72 -DFREE_STANDING -c -o regnual.o regnual.c
In file included from regnual.c:31:
types.h:1:23: error: conflicting types for ‘size_t’; have ‘long unsigned int’
1 | typedef unsigned long size_t;
| ^~~~~~
In file included from /usr/arm-none-eabi/include/sys/reent.h:14,
from /usr/arm-none-eabi/include/string.h:11,
from regnual.c:29:
/usr/lib/gcc/arm-none-eabi/11.2.1/include/stddef.h:209:23: note: previous declaration of ‘size_t’ with type ‘size_t’ {aka ‘unsigned int’}
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
It it safe to assume that type used by gnuk should be redefined to avoid
conflict with compiler provided types ?
Cheers,
Bertrand
--
Bertrand
More information about the Gnuk-users
mailing list