Skip to content

Unable to build with ESPIDF 6.0.0 usig PlatformIO #10049

@fixiwurm

Description

@fixiwurm

LVGL version

9.5.0

Platform

PlatformIO using the following configuration:

platform = espressif32 @ ^7.0.0


board                       = esp32-s3-devkitc-1
framework                   = espidf

board_build.flash_mode      = qio
board_build.psram_type      = opi
board_upload.flash_size     = 16MB
board_upload.maximum_size   = 16777216

build_flags =
    -D LV_CONF_SKIP
    -D LV_COLOR_DEPTH=16
    -D LV_USE_LOG=1
    -D LV_FONT_MONTSERRAT_24=1

lib_deps =
    lvgl/lvgl @ ^9.5.0 

What happened?

No matter what i try, i get the following error
cc1plus: warning: command-line option '-Wno-old-style-declaration' is valid for C/ObjC but not for C++

setting CONFIG_COMPILER_WARNINGS_AS_ERRORS to false results in a buch of the following issues:

/home/XXX/.platformio/packages/toolchain-xtensa-esp-elf/lib/gcc/xtensa-esp-elf/15.2.0/include/stddef.h:344: Error: unknown opcode or format name 'typedef'
/home/XXX/.platformio/packages/framework-espidf/components/esp_libc/platform_include/sys/reent.h:31: Error: unknown opcode or format name 'struct'
/home/XXX/.platformio/packages/framework-espidf/components/esp_libc/platform_include/sys/reent.h:34: Error: unknown opcode or format name 'int'
/home/XXX/.platformio/packages/framework-espidf/components/esp_libc/platform_include/sys/reent.h:35: Error: unknown opcode or format name 'int' 

Due to other issues I was unable to try an older ESP IDF version. Any help would be appreciated!

How to reproduce?

Create an empty PlatformIO project, past the configuration, and try to compile the project. I tested it on my machine, with a clean setup, and found that the issue is reproducible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions