Compilation fails on 32-bit Windows
I am using the GNU ARM Embedded tools for STM32F4-Discovery board. Everything works fine on my 64-bit Windows machine. However, on a 32-bit windows computer I get compilation errors with exactly the same source code and makefile:
gmake -C buildARM_ert_rtw -f buildARM.mk build
gmake: Entering directory `C:/TEMP/
### Compiling syscalls.c ...
arm-none-eabi-gcc -MD -std=c99 -ffunction-sections -fdata-sections -Wall -c -O0 -mcpu=cortex-m3 -mthumb -mlittle-endian -mthumb-interwork -fsingle-
syscalls.c:14:29: warning: 'struct stat' declared inside parameter list [enabled by default]
syscalls.c:14:29: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
syscalls.c: In function '_fstat':
syscalls.c:16:7: error: dereferencing pointer to incomplete type
syscalls.c:16:19: error: 'S_IFCHR' undeclared (first use in this function)
syscalls.c:16:19: note: each undeclared identifier is reported only once for each function it appears in
syscalls.c: At top level:
syscalls.c:52:1: error: unknown type name 'caddr_t'
syscalls.c:53:1: error: unknown type name 'caddr_t'
syscalls.c: In function '_sbrk':
syscalls.c:54:5: error: unknown type name 'caddr_t'
syscalls.c:55:5: error: unknown type name 'caddr_t'
syscalls.c:58:21: error: 'caddr_t' undeclared (first use in this function)
syscalls.c:66:25: error: expected ';' before numeric constant
gmake: *** [syscalls.o] Error 1
gmake: Leaving directory `C:/TEMP/
Compiler seems not being able to locate <sys/stat.h> include file for some reason. Has anybody else encounter this issue? Any 32-bit Windows users out there?
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Murat Belge
- Solved:
- Last query:
- Last reply: