Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

no stdint.h file on Debian

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.

like image 991
ceremcem Avatar asked May 31 '14 19:05

ceremcem


2 Answers

#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

like image 58
Phil Hord Avatar answered Nov 02 '22 08:11

Phil Hord


try this:

apt-get install avr-libc

Hmm, my answer is not suit for ARM, just wish other avr users can get help when they meet the same question.

like image 41
gzerone Avatar answered Nov 02 '22 10:11

gzerone