Skip to content

Binding generation fails for CDC ACM #377

Description

Bug description

After adding the esp_tinyusb component and enabling the CDC class in menuconfig I get the following error:

error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
      --> /home/ben/Projects/boppo/device_software/esp/components/rust-boppo/target/xtensa-esp32s3-espidf/debug/build/esp-idf-sys-40db7767b8d5884b/out/bindings.rs:115371:1
       |
115371 | pub struct cdc_desc_func_telephone_call_state_reporting_capabilities_t {
       | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
       |
note: `cdc_desc_func_telephone_call_state_reporting_capabilities_t__bindgen_ty_1` has a `#[repr(align)]` attribute
      --> /home/ben/Projects/boppo/device_software/esp/components/rust-boppo/target/xtensa-esp32s3-espidf/debug/build/esp-idf-sys-40db7767b8d5884b/out/bindings.rs:115383:1
       |
115383 | pub struct cdc_desc_func_telephone_call_state_reporting_capabilities_t__bindgen_ty_...
       | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

For more information about this error, try `rustc --explain E0588`.
error: could not compile `esp-idf-sys` (lib) due to 1 previous error
error: Recipe `check` failed on line 2 with exit code 101

I was attempting to follow the example at https://github.com/espressif/esp-idf/blob/master/examples/peripherals/usb/device/tusb_console/main/tusb_console_main.c

Expected behavior

Bindings should be able to be generated.

Environment

  • Crate (esp-idf-sys) version:
  • ESP-IDF branch or tag: v5.4
  • Target device (MCU): esp32-s3
  • OS: Arch Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions