Closed tgibson-work closed 1 year ago
We're also seeing this problem when trying to build a project based on the 1060 EVK sample source code when using the 11.3.Rel1 ARM GCC toolchain.
Thanks for the information of this issue, has reported to the development team and it's under analysis. Feedback may be delayed, appreciate for your patience.
Update from the developer: caddr_t is defined in sys/types.h. For gcc 10, the stdio.h includes sys/types.h, in contrast, gcc 11 includes sys/_types.h. The fsl_sbrk.c include stdio.h, then it can't see caddr_t for gcc 11, need add explicitly.
Modification needed in fsl_sbrk.c:
@@ -8,6 +8,8 @@
#if defined(__GNUC__)
#include <stdio.h>
#include <errno.h>
+#include <stdint.h>
+#include <sys/types.h>
#endif
Fix will be available on github soon.
Describe the bug demo_apps fail to compile with
gcc-arm-none-eabi
11.3.1 because of unknown type namecaddr_t
incore/utilities/misc_utilities/fsl_sbrk.c
To Reproduce
/examples/evkbimxrt1050/demo_apps/hello_world/armgcc
build_debug.sh
to build example, get compile error:Expected behavior Build should compile without error
Additional context
Problem not present with ARMGCC 11.2.1