libDaisy Compilation: fatal error: stdint.h: No such file or directory

Hi to all,

I try to compile libDaisy on linux

I’ve followed the Toolchain install wiki and installed

  • Make
  • arm-none-eabi < 10.3

Here is my setup:

local/arm-none-eabi-binutils 2.39-2
    A set of programs to assemble and manipulate binary and object files for the ARM EABI (bare-metal) target
local/arm-none-eabi-gcc 10.2.0-1
    The GNU Compiler Collection - cross compiler for ARM EABI (bare-metal) target
local/make 4.4.1-2
    GNU make utility to maintain groups of programs

When I compile libDaisy, I get the following error

/usr/lib/gcc/arm-none-eabi/10.2.0/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory
    9 | # include_next <stdint.h>
      |                ^~~~~~~~~~

How can I fix that?
Thanks for your feedback

I found the solution :slight_smile:

On Archlinux, to install the toolchain

$ pacman -S arm-none-eabi-gcc

It will install:

  • arm-none-eabi-gcc
  • and arm-none-eabi-binutils as a dependancy

Then install:

$ pacman -S arm-none-eabi-newlib

If necessary, use

yay -S downgrade

to downgrade arm-none-eabi-gcc to a working version

EDIT:
Both libDaisy and DaisySP compile with the current arm-none-eabi-gcc version (12.2.0-1)

cheers

Glad to hear that it’s working now! And thank you for sharing your troubleshoot method as it’ll be helpful for other users in the future!