Joel Stanley <j...@jms.id.au> writes:

> Package: gcc-riscv64-unknown-elf
> Version: 8.3.0.2019.08+dfsg-1
> Severity: normal
>
> Dear Maintainer,
>
> I am trying to use the riscv toolchain to build a bare metal
> application. It appears to have a broken stdint.h:

You might try using picolibc instead of newlib; that's the library I
maintain. It's a fork of newlib with changes for embedded systems.

$ sudo apt install picolibc-riscv64-unknown-elf
$ riscv64-unknown-elf-gcc -specs=picolibc.specs -march=rv32i -mabi=ilp32  -c 
test.c

-- 
-keith

Attachment: signature.asc
Description: PGP signature

Reply via email to