ESPHome linking warnings

I am currently running the latest ESPHome Builder and the latest version of ESPHome on my ESP32 boards. Every time I compile I get this set of linking errors. I figured during the last couple of ESPHome Builder updates something would get cleaned up and they would go away, but they have not. Can anyone tell me how to fix this or even if I need to fix it?

I am running:
Core 2025.1.4
OS 14.2
Supervisor 2025.02.1
ESPHome 2025.2.0

On bare metal Gen8 i5

Thanks Matt

Compiling .pioenvs/esphome-web-8281ec/src/main.cpp.o
In file included from src/esphome/components/adc/adc_sensor.h:9,
                 from src/esphome.h:3,
                 from src/main.cpp:3:
/data/cache/platformio/packages/framework-espidf/components/esp_adc/deprecated/include/esp_adc_cal.h:17:2: warning: #warning "legacy adc calibration driver is deprecated, please migrate to use esp_adc/adc_cali.h and esp_adc/adc_cali_scheme.h" [-Wcpp]
   17 | #warning "legacy adc calibration driver is deprecated, please migrate to use esp_adc/adc_cali.h and esp_adc/adc_cali_scheme.h"
      |  ^~~~~~~
In file included from src/esphome/components/adc/adc_sensor.h:10:
/data/cache/platformio/packages/framework-espidf/components/driver/deprecated/driver/adc.h:19:2: warning: #warning "legacy adc driver is deprecated, please migrate to use esp_adc/adc_oneshot.h and esp_adc/adc_continuous.h for oneshot mode and continuous mode drivers respectively" [-Wcpp]
   19 | #warning "legacy adc driver is deprecated, please migrate to use esp_adc/adc_oneshot.h and esp_adc/adc_continuous.h for oneshot mode and continuous mode drivers respectively"
      |  ^~~~~~~
In file included from src/esphome/components/pulse_counter/pulse_counter_sensor.h:10,
                 from src/esphome/components/pulse_counter/automation.h:5,
                 from src/esphome.h:57:
/data/cache/platformio/packages/framework-espidf/components/driver/deprecated/driver/pcnt.h:15:2: warning: #warning "legacy pcnt driver is deprecated, please migrate to use driver/pulse_cnt.h" [-Wcpp]
   15 | #warning "legacy pcnt driver is deprecated, please migrate to use driver/pulse_cnt.h"
      |  ^~~~~~~
Linking .pioenvs/esphome-web-8281ec/firmware.elf
RAM:   [=         ]  10.1% (used 32988 bytes from 327680 bytes)
Flash: [=====     ]  53.3% (used 978257 bytes from 1835008 bytes)

Try a clean build first. In the ESPHome builder, there’s an ellipsis menu bottom right of the device. Select that and choose “Clean Build Files” and see if the warnings go away next time you compile.

If that doesn’t work - look for open issues on Github and maybe log a new one if it’s not already done.

So, the clean build did not make a difference. I assumed that new build files were downloaded with every update to ESPHome that is why this is driving me nuts. Will poke around on GitHub and see if I can find anything.

Post your yaml file.

These are warnings, not errors, i have them, too. And they appear for quite a while now if you use adc component. Obviously, some library in adc component is still being used in esphome but it’s deprecated, old… thus warning. For now, all still works fine, but the question is how long…
And, to be honest, i didn’t explore if someone already reported this.

My full yaml, including the pull for adc is posted in this thread regarding pulse count doing the same thing.