I have been trying to troubleshoot an extremely odd compilation error for the ESP32, specifically the Adafruit Feather ESP32-S3 2MB PSRAM. I attempted to compile an empty project. The error code is below, and didn’t provide many details.
*** [.pio\build\adafruit_feather_esp32s3\FrameworkArduinoVariant\variant.cpp.o] Error 1
*** [.pio\build\adafruit_feather_esp32s3\src\main.cpp.o] Error 1
After reinstalling VSCode, PlatformIO, Arduino, and even Python multiple times (clean installs, completely removing all traces of all 4), I tried to compile an empty project on a different computer. Interestingly, it worked the first time. I thus decided to compare the differences between the two systems. While the other computer successfully populated the .pio/build/adafruit_feather_esp32s3
folder with FrameworkArduinoVariant, FrameworkArduino, and src, the first computer did not. In fact, after transferring the entire project folder to the first computer, the first computer deleted everything in .pio/build/adafruit_feather_esp32s3
when I tried building the project. I am at a loss as to what might cause this. I have my antivirus off and have already reinstalled it multiple times.