Skip to content

Fail to compile for ESP32-C5 #1154

@evoke0

Description

@evoke0

Hello, I get the following error when trying to compile for the esp32-c5 dev module board. There is no issue when compiling for the esp32 dev module.

In file included from /home/alejandro/Arduino/libraries/NimBLE-Arduino/src/nimble/porting/nimble/include/syscfg/syscfg.h:9,
                 from /home/alejandro/Arduino/libraries/NimBLE-Arduino/src/syscfg/syscfg.h:2,
                 from /home/alejandro/.arduino15/packages/esp32/tools/esp32c5-libs/3.3.8/include/bt/include/esp32c5/include/../../../../controller/esp32c5/esp_bt_cfg.h:19,
                 from /home/alejandro/.arduino15/packages/esp32/tools/esp32c5-libs/3.3.8/include/bt/include/esp32c5/include/esp_bt.h:17,
                 from /home/alejandro/Arduino/libraries/NimBLE-Arduino/src/NimBLEDevice.h:27,
                 from /home/alejandro/Arduino/mini_rastreator/mini_rastreator.ino:9:
/home/alejandro/Arduino/libraries/NimBLE-Arduino/src/nimble/esp_port/port/include/esp_nimble_cfg.h:21:29: error: operator '||' has no left operand
   21 | #if CONFIG_IDF_TARGET_ESP32 || CONFIG_IDF_TARGET_ESP32C3 || CONFIG_IDF_TARGET_ESP32S3
      |                             ^~
/home/alejandro/Arduino/libraries/NimBLE-Arduino/src/nimble/esp_port/port/include/esp_nimble_cfg.h:896:28: error: #if with no expression
  896 | #if CONFIG_IDF_TARGET_ESP32
      |                            ^
exit status 1

Compilation error: exit status 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions