Skip to content

compile error on ESP-IDF v6.0 #372

@rh-chen

Description

@rh-chen

Answers checklist.

  • I have read the Rainmaker documentation and the issue is not addressed there.
  • I have updated my IDF branch (release/vX.Y) to the latest version and checked that the issue is present there. This is not applicable if you are using Rainmaker with Arduino.
  • I have searched the Rainmaker forum and issue tracker for a similar issue and not found a similar issue.

IDF / ESP32-Arduino version.

ESP-IDF V6.0

Operating System used.

Windows

How did you build your project?

Command line with idf.py

Development Kit.

ESP32S3 built-in USB-JTAG

What is the expected behavior?

no compile issue on ESP-IDF v6.0

What is the actual behavior?

D:/projects/PowerBox/esp/esp-rainmaker/examples/led_light/managed_components/espressif__cbor/tinycbor/src/open_memstream.c: In function 'open_memstream':
D:/projects/PowerBox/esp/esp-rainmaker/examples/led_light/managed_components/espressif__cbor/tinycbor/src/open_memstream.c:105:18: error: unknown type name 'cookie_io_functions_t'
105 | static const cookie_io_functions_t vtable = {
| ^~~~~~~~~~~~~~~~~~~~~
D:/projects/PowerBox/esp/esp-rainmaker/examples/led_light/managed_components/espressif__cbor/tinycbor/src/open_memstream.c:106:9: error: initialization of 'int' from 'void *' makes integer from pointer without a cast [-Wint-conversion]
106 | NULL,
| ^~~~
D:/projects/PowerBox/esp/esp-rainmaker/examples/led_light/managed_components/espressif__cbor/tinycbor/src/open_memstream.c:106:9: note: (near initialization for 'vtable')
D:/projects/PowerBox/esp/esp-rainmaker/examples/led_light/managed_components/espressif__cbor/tinycbor/src/open_memstream.c:107:9: error: excess elements in scalar initializer [-Werror]
107 | write_to_buffer,
| ^~~~~~~~~~~~~~~
D:/projects/PowerBox/esp/esp-rainmaker/examples/led_light/managed_components/espressif__cbor/tinycbor/src/open_memstream.c:107:9: note: (near initialization for 'vtable')
D:/projects/PowerBox/esp/esp-rainmaker/examples/led_light/managed_components/espressif__cbor/tinycbor/src/open_memstream.c:108:9: error: excess elements in scalar initializer [-Werror]
108 | NULL,
| ^~~~
D:/projects/PowerBox/esp/esp-rainmaker/examples/led_light/managed_components/espressif__cbor/tinycbor/src/open_memstream.c:108:9: note: (near initialization for 'vtable')
D:/projects/PowerBox/esp/esp-rainmaker/examples/led_light/managed_components/espressif__cbor/tinycbor/src/open_memstream.c:109:9: error: excess elements in scalar initializer [-Werror]
109 | close_buffer
| ^~~~~~~~~~~~
D:/projects/PowerBox/esp/esp-rainmaker/examples/led_light/managed_components/espressif__cbor/tinycbor/src/open_memstream.c:109:9: note: (near initialization for 'vtable')
D:/projects/PowerBox/esp/esp-rainmaker/examples/led_light/managed_components/espressif__cbor/tinycbor/src/open_memstream.c:111:12: error: implicit declaration of function 'fopencookie' [-Wimplicit-function-declaration]
111 | return fopencookie(b, "w", vtable);
| ^~~~~~~~~~~
D:/projects/PowerBox/esp/esp-rainmaker/examples/led_light/managed_components/espressif__cbor/tinycbor/src/open_memstream.c:111:12: error: returning 'int' from a function with return type 'FILE *' makes pointer from integer without a cast [-Wint-conversion]
111 | return fopencookie(b, "w", vtable);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1.exe: all warnings being treated as errors
[10/249] Building C object esp-idf/sdmmc/CMakeFiles/__idf_sdmmc.dir/sdmmc_cmd.c.obj
ninja: build stopped: subcommand failed.

Steps to reproduce.

  1. Step
  2. Step
  3. Step
    ...

Build Logs.


More Information.

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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