U-boot compilation error

I do get following error:

In file included from uart.c:23:0:
/usr/lib/gcc/arm-none-eabi/4.9.3/include/stdint.h:9:26: fatal error: stdint.h: No such file or directory

include_next <stdint.h>

                      ^

compilation terminated.
Makefile:86: recipe for target ‘/media/gytis/raid2tb/gytis/development/git-files/khadas/android-7/uboot/build/scp_task/uart.o’ failed
make[2]: *** [/media/gytis/raid2tb/gytis/development/git-files/khadas/android-7/uboot/build/scp_task/uart.o] Error 1
/media/gytis/raid2tb/gytis/development/git-files/khadas/android-7/uboot/Makefile:896: recipe for target ‘/media/gytis/raid2tb/gytis/development/git-files/khadas/android-7/uboot/build/scp_task/bl301.bin’ failed
make[1]: *** [/media/gytis/raid2tb/gytis/development/git-files/khadas/android-7/uboot/build/scp_task/bl301.bin] Error 2
Makefile:147: recipe for target ‘sub-make’ failed
make: *** [sub-make] Error 2

Found how to fix it:
sudo apt-get install libnewlib-arm-none-eabi

3 Likes