esphome / issues

Issue Tracker for ESPHome
https://esphome.io/
291 stars 34 forks source link

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

Open p1otr opened 6 days ago

p1otr commented 6 days ago

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

werdnum commented 5 days ago

I was able to reproduce this in ESPHome dashboard (running on linux-aarch64), but not on my Intel Mac. Perhaps an issue specific to compiling on ARM?

I see https://github.com/esphome/esphome/pull/6330 in the changelog, I wonder if this has anything to do with it?

p1otr commented 5 days ago

Not ARM specific as I'm on amd64 (on Debian)

p1otr commented 4 days ago

FTR: error message is generated by platformio's scons-local-4.5.2 in my case

p1otr commented 4 days ago

The problem is only with esp-idf - removing framework settings (and thus defaulting to platformio/framework-arduinoespressif32 doesn't trigger it)