no stdint.h file on Debian

ceremcem picture ceremcem · May 31, 2014 · Viewed 24.9k times · Source

I'm trying to use Chibios. The example code they provide seems to need stdint.h file. The Makefile gives the following error:

/usr/lib/gcc/arm-none-eabi/4.8/include/stdint.h:9:26: fatal error: stdint.h: No such file or directory
 # include_next <stdint.h>
                          ^
compilation terminated.
../../os/ports/GCC/ARMCMx/rules.mk:182: recipe for target 'build/obj/crt0.o' failed
make: *** [build/obj/crt0.o] Error 1

I could find nothing useful in the web.

Answer

phord picture phord · Aug 13, 2015

#include_next is used to let one file augment another one with the same name. In this case, it seems the "other one" is not available.

I got the same error trying to compile my code using the gcc-arm package in Linux Mint, gcc-arm-none-eabi. I got past this problem by installing libnewlib-arm-none-eabi: sudo apt-get install libnewlib-arm-none-eabi