No stdint.h file in Debian

I am trying to use Chibios. The sample code they provide seems to need the stdint.h file. The Makefile produces 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 not find anything useful on the Internet.

+11
c gcc arm embedded stm32
source share
5 answers

Thanks to the valuable tools of the gcc-arm team ( here ), I was able to compile the Chibios demo program. I downloaded gcc-arm-none-eabi-4_8-2014q1 from my website and it worked perfectly.

+2
source share

#include_next used to make a single file increment a single name with the same name. In this case, it seems that the β€œother” is not available.

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

+12
source share

try it:

 apt-get install avr-libc 

Hmm, my answer is not suitable for ARM, I just want other avr users to be able to get help when they answer the same question.

+5
source share

You may have forgotten to specify -ffreestanding for gcc.

+1
source share

# include "stdint.h"

(I had a wrong < > in my # include , which was wrong, and that should have been obvious

# include <stdint.h>

-one
source share

All Articles