[.pio/build/esp32dev/firmware.elf] Implicit dependency `/Users/user/.platformio/platforms/espressif32/builder/=' not found, needed by target `.pio/build/esp32dev/firmware.elf'

Good Afternoon

Trying to build my code, there appears a final failure message like this:

*** [.pio/build/esp32dev/firmware.elf] Implicit dependency `/Users/cirobruno/.platformio/platforms/espressif32/builder/=' not found, needed by target `.pio/build/esp32dev/firmware.elf'.

Please, would any one suggest where to start from?

The complete message is:

Processing esp32dev (platform: espressif32; board: esp32dev; framework: arduino)
-----------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html
PLATFORM: Espressif 32 (6.5.0) > Espressif ESP32 Dev Module
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES: 
 - framework-arduinoespressif32 @ 3.20014.231204 (2.0.14) 
 - tool-esptoolpy @ 1.40501.0 (4.5.1) 
 - toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 38 compatible libraries
Scanning dependencies...
Dependency Graph
|-- Adafruit GFX Library @ 1.11.9
|-- Adafruit BusIO @ 1.15.0
|-- TFT_eSPI @ 2.5.41
|-- Hardware
|-- SPI @ 2.0.0
|-- Wire @ 2.0.0
Building in release mode
*** [.pio/build/esp32dev/firmware.elf] Implicit dependency `/Users/cirobruno/.platformio/platforms/espressif32/builder/=' not found, needed by target `.pio/build/esp32dev/firmware.elf'.
=================================================== [FAILED] Took 10.13 seconds ===================================================

Thank you.
Regards,
Ciro

Problem found!

I’ve found a post with this solution. But unfortunately I lost it and I won’t be able to give credits to the author. I’d like to share it here for the record. Someone might face the same problem.

The matter regards the space characters before and/or after the equal (“=”) sign in platformio.ini file, among the build_flags options.

Example of wrong way to write your statements:

build_flags=
	-DTFT_RGB_ORDER = TFT_RGB
	-DTFT_WIDTH = 320
	-DTFT_HEIGHT = 480
(...)

And the right way:

build_flags=
	-DTFT_RGB_ORDER=TFT_RGB
	-DTFT_WIDTH=320
	-DTFT_HEIGHT=480
(...)

Thank you, whomever has tried to think a solution for my problem.
Best regards,
Ciro Bruno.