Public bug reported:

```c
// a.c
#include <inttypes.h>
const char *s = PRIu64;
```
run `arm-none-eabi-gcc -c a.c`

1) Ubuntu 26.04.1 LTS
2) gcc-arm-none-eabi: Installed: 15:14.2.rel1-1
3) I expect the build succeeds
4) The build fails, PRIu64 is not recognized

It seems gcc doesn't have `inttypes.h`, so newlib's `inttypes.h` is used
(search path is /usr/lib/arm-none-eabi/include, a soft link to newlib
path). And newlib's `inttypes.h` is incompatible with gcc's `stdint.h`

** Affects: gcc-arm-none-eabi (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2171605

Title:
  gcc-arm-none-eabi inttypes.h macros doesn't work

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-arm-none-eabi/+bug/2171605/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to