Skip to content

uint{size}_t not defined #2473

@sivansh11

Description

@sivansh11
In file included from /home/sivansh/pico-sdk/tools/pioasm/c_sdk_output.cpp:9:
/home/sivansh/pico-sdk/tools/pioasm/output_format.h:83:9: error: ‘uint8_t’ does not name a type
   83 |         uint8_t used_gpio_ranges;
      |         ^~~~~~~
/home/sivansh/pico-sdk/tools/pioasm/output_format.h:16:1: note: ‘uint8_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
   15 | #include "pio_enums.h"
  +++ |+#include <cstdint>
   16 |
In file included from /home/sivansh/pico-sdk/tools/pioasm/json_output.cpp:9:
/home/sivansh/pico-sdk/tools/pioasm/output_format.h:83:9: error: ‘uint8_t’ does not name a type
   83 |         uint8_t used_gpio_ranges;
      |         ^~~~~~~
/home/sivansh/pico-sdk/tools/pioasm/output_format.h:16:1: note: ‘uint8_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
   15 | #include "pio_enums.h"
  +++ |+#include <cstdint>
   16 |

there are multiple more of similar errors

> arm-none-eabi-gcc --version
arm-none-eabi-gcc (Arch Repository) 14.2.0
Copyright (C) 2024 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

my theory is that some recent gcc update stopped implictly including stdint.h

is this a user error ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions