Using VSCode/Platform IO: collect2.exe: error: ld returned 1 exit status

Hello, not sure if this is the correct place for this but I am trying to use platformIO through VS Code for my arduino as Arduino's IDE is not letting me install the board.

I am using an ESP32-S3 TFT from adafruit and I am receiving this error from the terminal:

.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: cannot find  Inc\Documents\Laser Bucket Alignment Fixture\Laser Bucket Tool\Laser Bucket Tool\.pio\build\adafruit_feather_esp32s3_tft\firmware.map: No such file or directory
collect2.exe: error: ld returned 1 exit status
*** [.pio\build\adafruit_feather_esp32s3_tft\firmware.elf] Error 1

Here's the whole log:

Processing adafruit_feather_esp32s3_tft (platform: espressif32; board: adafruit_feather_esp32s3_tft; framework: arduino)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/adafruit_feather_esp32s3_tft.html
PLATFORM: Espressif 32 (6.1.0) > Adafruit Feather ESP32-S3 TFT
HARDWARE: ESP32S3 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-builtin, 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.20007.0 (2.0.7)
 - tool-esptoolpy @ 1.40500.0 (4.5.0)
 - tool-mkfatfs @ 2.0.1
 - tool-mklittlefs @ 1.203.210628 (2.3)
 - tool-mkspiffs @ 2.230.0 (2.30)
 - toolchain-riscv32-esp @ 8.4.0+2021r2-patch5
 - toolchain-xtensa-esp32s3 @ 8.4.0+2021r2-patch5
Warning! An extra UF2 bootloader image is already added!
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 34 compatible libraries
Scanning dependencies...
Dependency Graph
|-- STM32duino VL53L4CD @ 1.0.2
|-- Wire @ 2.0.0
Building in release mode
Compiling .pio\build\adafruit_feather_esp32s3_tft\src\main.cpp.o
Linking .pio\build\adafruit_feather_esp32s3_tft\firmware.elf
c:/users/nhoong/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: cannot find  Inc\Documents\Laser Bucket Alignment Fixture\Laser Bucket Tool\Laser Bucket Tool\.pio\build\adafruit_feather_esp32s3_tft\firmware.map: No such file or directory
collect2.exe: error: ld returned 1 exit status
*** [.pio\build\adafruit_feather_esp32s3_tft\firmware.elf] Error 1
========================================================================================== [FAILED] Took 8.09 seconds ==========================================================================================
 *  The terminal process "C:\Users\nhoong\.platformio\penv\Scripts\platformio.exe 'run', '--target', 'upload'" terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close it.

The code that I am trying to compile is

/* Includes ------------------------------------------------------------------*/
#include <Arduino.h>
#include "Wire.h"

/* Setup ---------------------------------------------------------------------*/
void setup()
{
  Serial.begin(9600);
  Serial.println("Hello World");
}

void loop()
{
  
}

If I don't include Wire.h it gives me this error.
Very new to Arduinos, does anyone understand what's going on?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.