issues icon indicating copy to clipboard operation
issues copied to clipboard

Multiple ways to build the same target were specified for: adc.o

Open p1otr opened this issue 7 months ago • 4 comments

The problem

Since few ESPHome versions (or espidf/platformio updates? I didn't change anything related to it) I cannot build my ESP32 firmwares anymore (ESP8266 works fine).

It fails with this message:

*** Multiple ways to build the same target were specified for: /tmp/esphome/.esphome/build/lampa-salon/.pioenvs/lampa-salon/adc.o  (from ['/home/piotr/.platformio/packages/framework-espidf/components/driver/adc.c'] and from ['/home/piotr/.platformio/packages/framework-espidf/components/driver/esp32/adc.c'])
File "/home/piotr/.platformio/platforms/espressif32/builder/frameworks/espidf.py", line 684, in compile_source_files

Removing ~/.platformio and ./.esphome and regenerating all needed files doesn't help

Which version of ESPHome has the issue?

2024.6.3

What type of installation are you using?

pip

Which version of Home Assistant has the issue?

No response

What platform are you using?

ESP32-IDF

Board

esp32doit-devkit-v1

Component causing the issue

adc

Example YAML snippet

esphome:
  name: some_name

esp32:
  board: esp32doit-devkit-v1
  framework:
    type: esp-idf

Anything in the logs that might be useful for us?

No response

Additional information

No response

p1otr avatar Jun 26 '24 12:06 p1otr