Mbed Build Failing. Error 127. exception code 0

I had an mbed build that was working, then my computer accidentally shut down in the middle of a build and my environment has been broken since.

I uninstalled and did a Fresh install but still errors persist.

Anyone can decipher these errors.

platformio.ini

[env:nucleo_f103rb]
platform = ststm32
board = nucleo_f103rb
framework = mbed
monitor_speed = 115200

Verbose Build Log

CONFIGURATION: https://docs.platformio.org/page/boards/ststm32/nucleo_f103rb.html
PLATFORM: ST STM32 5.6.0 > ST Nucleo F103RB
HARDWARE: STM32F103RBT6 72MHz, 20KB RAM, 128KB Flash
DEBUG: Current (stlink) On-board (stlink) External (blackmagic, jlink)
PACKAGES: framework-mbed 5.51304.190826 (5.13.4), toolchain-gccarmnoneeabi 1.70201.0 (7.2.1)
Collecting mbed sources...
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 9 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <LCD> (c:\Users\User\Code\Jobs\Novek\cooking-oil\lib\LCD)
arm-none-eabi-g++ -o .pio\build\nucleo_f103rb\FrameworkMbed\drivers\AnalogIn.o -c -std=gnu++14 -fno-rtti -Wvla -c -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -fmessage-length=0 -fno-exceptions -ffunction-sections -fdata-sections -funsigned-char -MMD -fno-delete-null-pointer-checks -fomit-frame-pointer -Os -g -DMBED_TRAP_ERRORS_ENABLED=1 -mcpu=cortex-m3 -mthumb -DMBED_ROM_START=0x8000000 -DMBED_ROM_SIZE=0x20000 -DMBED_RAM_START=0x20000000 -DMBED_RAM_SIZE=0x5000 -include mbed_config.h -DPLATFORMIO=40003 -DSTM32F103xB -DARM_MATH_CM3 -DCOMPONENT_NSPE=1 -DCOMPONENT_PSA_SRV_EMUL=1 -DCOMPONENT_PSA_SRV_IMPL=1 -DDEVICE_ANALOGIN=1 -DDEVICE_CAN=1 -DDEVICE_FLASH=1 -DDEVICE_I2C=1 -DDEVICE_I2CSLAVE=1 -DDEVICE_I2C_ASYNCH=1 -DDEVICE_INTERRUPTIN=1 -DDEVICE_PORTIN=1 -DDEVICE_PORTINOUT=1 -DDEVICE_PORTOUT=1 -DDEVICE_PWMOUT=1 -DDEVICE_RESET_REASON=1 -DDEVICE_RTC=1 -DDEVICE_SERIAL=1 -DDEVICE_SERIAL_ASYNCH=1 -DDEVICE_SERIAL_FC=1 -DDEVICE_SLEEP=1 -DDEVICE_SPI=1 -DDEVICE_SPISLAVE=1 -DDEVICE_SPI_ASYNCH=1 -DDEVICE_STDIO_MESSAGES=1 -DDEVICE_USTICKER=1 -DDEVICE_WATCHDOG=1 -DTARGET_CORTEX -DTARGET_CORTEX_M -DTARGET_FAMILY_STM32 -DTARGET_FF_ARDUINO -DTARGET_FF_MORPHO -DTARGET_LIKE_CORTEX_M3 -DTARGET_LIKE_MBED -DTARGET_M3 -DTARGET_NAME=NUCLEO_F103RB -DTARGET_NUCLEO_F103RB -DTARGET_RELEASE -DTARGET_STM -DTARGET_STM32F1 -DTARGET_STM32F103RB -DTOOLCHAIN_GCC -DTOOLCHAIN_GCC_ARM -DTRANSACTION_QUEUE_SIZE_SPI=2 -DUSE_FULL_LL_DRIVER -DUSE_HAL_DRIVER -D__CMSIS_RTOS -D__CORTEX_M3 -D__MBED_CMSIS_RTOS_CM -D__MBED__=1 -IC:\Users\User\.platformio\packages\framework-mbed\cmsis\TARGET_CORTEX_M -IC:\Users\User\.platformio\packages\framework-mbed -I.pio\build\nucleo_f103rb -Isrc -IC:\Users\User\PLATFO~1\packages\FRAMEW~1 -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\drivers -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\events -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\events\equeue -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\hal -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\hal\STORAG~1 -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\platform -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\platform\TARGET~1 -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\platform\internal -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\targets\TAE5D3~1 -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\targets\TAE5D3~1\TA6EE1~1 -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\targets\TAE5D3~1\TA6EE1~1\TARGET~1 -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\targets\TAE5D3~1\TA6EE1~1\TARGET~1\device -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\targets\TAE5D3~1\TA6EE1~1\device C:\Users\User\.platformio\packages\framework-mbed\drivers\AnalogIn.cpp
arm-none-eabi-g++ -o .pio\build\nucleo_f103rb\FrameworkMbed\drivers\BusIn.o -c -std=gnu++14 -fno-rtti -Wvla -c -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -fmessage-length=0 -fno-exceptions -ffunction-sections -fdata-sections -funsigned-char -MMD -fno-delete-null-pointer-checks -fomit-frame-pointer -Os -g -DMBED_TRAP_ERRORS_ENABLED=1 -mcpu=cortex-m3 -mthumb -DMBED_ROM_START=0x8000000 -DMBED_ROM_SIZE=0x20000 -DMBED_RAM_START=0x20000000 -DMBED_RAM_SIZE=0x5000 -include mbed_config.h -DPLATFORMIO=40003 -DSTM32F103xB -DARM_MATH_CM3 -DCOMPONENT_NSPE=1 -DCOMPONENT_PSA_SRV_EMUL=1 -DCOMPONENT_PSA_SRV_IMPL=1 -DDEVICE_ANALOGIN=1 -DDEVICE_CAN=1 -DDEVICE_FLASH=1 -DDEVICE_I2C=1 -DDEVICE_I2CSLAVE=1 -DDEVICE_I2C_ASYNCH=1 -DDEVICE_INTERRUPTIN=1 -DDEVICE_PORTIN=1 -DDEVICE_PORTINOUT=1 -DDEVICE_PORTOUT=1 -DDEVICE_PWMOUT=1 -DDEVICE_RESET_REASON=1 -DDEVICE_RTC=1 -DDEVICE_SERIAL=1 -DDEVICE_SERIAL_ASYNCH=1 -DDEVICE_SERIAL_FC=1 -DDEVICE_SLEEP=1 -DDEVICE_SPI=1 -DDEVICE_SPISLAVE=1 -DDEVICE_SPI_ASYNCH=1 -DDEVICE_STDIO_MESSAGES=1 -DDEVICE_USTICKER=1 -DDEVICE_WATCHDOG=1 -DTARGET_CORTEX -DTARGET_CORTEX_M -DTARGET_FAMILY_STM32 -DTARGET_FF_ARDUINO -DTARGET_FF_MORPHO -DTARGET_LIKE_CORTEX_M3 -DTARGET_LIKE_MBED -DTARGET_M3 -DTARGET_NAME=NUCLEO_F103RB -DTARGET_NUCLEO_F103RB -DTARGET_RELEASE -DTARGET_STM -DTARGET_STM32F1 -DTARGET_STM32F103RB -DTOOLCHAIN_GCC -DTOOLCHAIN_GCC_ARM -DTRANSACTION_QUEUE_SIZE_SPI=2 -DUSE_FULL_LL_DRIVER -DUSE_HAL_DRIVER -D__CMSIS_RTOS -D__CORTEX_M3 -D__MBED_CMSIS_RTOS_CM -D__MBED__=1 -IC:\Users\User\.platformio\packages\framework-mbed\cmsis\TARGET_CORTEX_M -IC:\Users\User\.platformio\packages\framework-mbed -I.pio\build\nucleo_f103rb -Isrc -IC:\Users\User\PLATFO~1\packages\FRAMEW~1 -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\drivers -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\events -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\events\equeue -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\hal -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\hal\STORAG~1 -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\platform -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\platform\TARGET~1 -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\platform\internal -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\targets\TAE5D3~1 -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\targets\TAE5D3~1\TA6EE1~1 -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\targets\TAE5D3~1\TA6EE1~1\TARGET~1 -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\targets\TAE5D3~1\TA6EE1~1\TARGET~1\device -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\targets\TAE5D3~1\TA6EE1~1\device C:\Users\User\.platformio\packages\framework-mbed\drivers\BusIn.cpp
arm-none-eabi-g++ -o .pio\build\nucleo_f103rb\FrameworkMbed\drivers\BusInOut.o -c -std=gnu++14 -fno-rtti -Wvla -c -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -fmessage-length=0 -fno-exceptions -ffunction-sections -fdata-sections -funsigned-char -MMD -fno-delete-null-pointer-checks -fomit-frame-pointer -Os -g -DMBED_TRAP_ERRORS_ENABLED=1 -mcpu=cortex-m3 -mthumb -DMBED_ROM_START=0x8000000 -DMBED_ROM_SIZE=0x20000 -DMBED_RAM_START=0x20000000 -DMBED_RAM_SIZE=0x5000 -include mbed_config.h -DPLATFORMIO=40003 -DSTM32F103xB -DARM_MATH_CM3 -DCOMPONENT_NSPE=1 -DCOMPONENT_PSA_SRV_EMUL=1 -DCOMPONENT_PSA_SRV_IMPL=1 -DDEVICE_ANALOGIN=1 -DDEVICE_CAN=1 -DDEVICE_FLASH=1 -DDEVICE_I2C=1 -DDEVICE_I2CSLAVE=1 -DDEVICE_I2C_ASYNCH=1 -DDEVICE_INTERRUPTIN=1 -DDEVICE_PORTIN=1 -DDEVICE_PORTINOUT=1 -DDEVICE_PORTOUT=1 -DDEVICE_PWMOUT=1 -DDEVICE_RESET_REASON=1 -DDEVICE_RTC=1 -DDEVICE_SERIAL=1 -DDEVICE_SERIAL_ASYNCH=1 -DDEVICE_SERIAL_FC=1 -DDEVICE_SLEEP=1 -DDEVICE_SPI=1 -DDEVICE_SPISLAVE=1 -DDEVICE_SPI_ASYNCH=1 -DDEVICE_STDIO_MESSAGES=1 -DDEVICE_USTICKER=1 -DDEVICE_WATCHDOG=1 -DTARGET_CORTEX -DTARGET_CORTEX_M -DTARGET_FAMILY_STM32 -DTARGET_FF_ARDUINO -DTARGET_FF_MORPHO -DTARGET_LIKE_CORTEX_M3 -DTARGET_LIKE_MBED -DTARGET_M3 -DTARGET_NAME=NUCLEO_F103RB -DTARGET_NUCLEO_F103RB -DTARGET_RELEASE -DTARGET_STM -DTARGET_STM32F1 -DTARGET_STM32F103RB -DTOOLCHAIN_GCC -DTOOLCHAIN_GCC_ARM -DTRANSACTION_QUEUE_SIZE_SPI=2 -DUSE_FULL_LL_DRIVER -DUSE_HAL_DRIVER -D__CMSIS_RTOS -D__CORTEX_M3 -D__MBED_CMSIS_RTOS_CM -D__MBED__=1 -IC:\Users\User\.platformio\packages\framework-mbed\cmsis\TARGET_CORTEX_M -IC:\Users\User\.platformio\packages\framework-mbed -I.pio\build\nucleo_f103rb -Isrc -IC:\Users\User\PLATFO~1\packages\FRAMEW~1 -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\drivers -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\events -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\events\equeue -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\hal -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\hal\STORAG~1 -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\platform -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\platform\TARGET~1 -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\platform\internal -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\targets\TAE5D3~1 -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\targets\TAE5D3~1\TA6EE1~1 -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\targets\TAE5D3~1\TA6EE1~1\TARGET~1 -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\targets\TAE5D3~1\TA6EE1~1\TARGET~1\device -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\targets\TAE5D3~1\TA6EE1~1\device C:\Users\User\.platformio\packages\framework-mbed\drivers\BusInOut.cpp
arm-none-eabi-g++ -o .pio\build\nucleo_f103rb\FrameworkMbed\drivers\BusOut.o -c -std=gnu++14 -fno-rtti -Wvla -c -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -fmessage-length=0 -fno-exceptions -ffunction-sections -fdata-sections -funsigned-char -MMD -fno-delete-null-pointer-checks -fomit-frame-pointer -Os -g -DMBED_TRAP_ERRORS_ENABLED=1 -mcpu=cortex-m3 -mthumb -DMBED_ROM_START=0x8000000 -DMBED_ROM_SIZE=0x20000 -DMBED_RAM_START=0x20000000 -DMBED_RAM_SIZE=0x5000 -include mbed_config.h -DPLATFORMIO=40003 -DSTM32F103xB -DARM_MATH_CM3 -DCOMPONENT_NSPE=1 -DCOMPONENT_PSA_SRV_EMUL=1 -DCOMPONENT_PSA_SRV_IMPL=1 -DDEVICE_ANALOGIN=1 -DDEVICE_CAN=1 -DDEVICE_FLASH=1 -DDEVICE_I2C=1 -DDEVICE_I2CSLAVE=1 -DDEVICE_I2C_ASYNCH=1 -DDEVICE_INTERRUPTIN=1 -DDEVICE_PORTIN=1 -DDEVICE_PORTINOUT=1 -DDEVICE_PORTOUT=1 -DDEVICE_PWMOUT=1 -DDEVICE_RESET_REASON=1 -DDEVICE_RTC=1 -DDEVICE_SERIAL=1 -DDEVICE_SERIAL_ASYNCH=1 -DDEVICE_SERIAL_FC=1 -DDEVICE_SLEEP=1 -DDEVICE_SPI=1 -DDEVICE_SPISLAVE=1 -DDEVICE_SPI_ASYNCH=1 -DDEVICE_STDIO_MESSAGES=1 -DDEVICE_USTICKER=1 -DDEVICE_WATCHDOG=1 -DTARGET_CORTEX -DTARGET_CORTEX_M -DTARGET_FAMILY_STM32 -DTARGET_FF_ARDUINO -DTARGET_FF_MORPHO -DTARGET_LIKE_CORTEX_M3 -DTARGET_LIKE_MBED -DTARGET_M3 -DTARGET_NAME=NUCLEO_F103RB -DTARGET_NUCLEO_F103RB -DTARGET_RELEASE -DTARGET_STM -DTARGET_STM32F1 -DTARGET_STM32F103RB -DTOOLCHAIN_GCC -DTOOLCHAIN_GCC_ARM -DTRANSACTION_QUEUE_SIZE_SPI=2 -DUSE_FULL_LL_DRIVER -DUSE_HAL_DRIVER -D__CMSIS_RTOS -D__CORTEX_M3 -D__MBED_CMSIS_RTOS_CM -D__MBED__=1 -IC:\Users\User\.platformio\packages\framework-mbed\cmsis\TARGET_CORTEX_M -IC:\Users\User\.platformio\packages\framework-mbed -I.pio\build\nucleo_f103rb -Isrc -IC:\Users\User\PLATFO~1\packages\FRAMEW~1 -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\drivers -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\events -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\events\equeue -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\hal -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\hal\STORAG~1 -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\platform -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\platform\TARGET~1 -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\platform\internal -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\targets\TAE5D3~1 -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\targets\TAE5D3~1\TA6EE1~1 -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\targets\TAE5D3~1\TA6EE1~1\TARGET~1 -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\targets\TAE5D3~1\TA6EE1~1\TARGET~1\device -ICunknown OSError exception code 0 - 'C:\WINDOWS\System32\cmd.exe': Error
:\Us*** [.pio\build\nucleo_f103rb\FrameworkMbed\drivers\AnalogIn.o] Error 127
ers\User\PLATFO~1\packages\FRAMEW~1\targets\TAE5D3~1\TA6EE1~1\device C:\Users\User\.platformio\packages\framework-mbed\drivers\BusOut.cpp
arm-none-eabi-g++ -o .pio\build\nucleo_f103rb\FrameworkMbed\drivers\CAN.o -c -std=gnu++14 -fno-rtti -Wvla -c -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -fmessage-length=0 -fno-exceptions -ffunction-sections -fdata-sections -funsigned-char -MMD -fno-delete-null-pointer-checks -fomit-frame-pointer -Os -g -DMBED_TRAP_ERRORS_ENABLED=1 -mcpu=cortex-m3 -mthumb -DMBED_ROM_START=0x8000000 -DMBED_ROM_SIZE=0x20000 -DMBED_RAM_START=0x20000000 -DMBED_RAM_SIZE=0x5000 -include mbed_config.h -DPLATFORMIO=40003 -DSTM32F103xB -DARM_MATH_CM3 -DCOMPONENT_NSPE=1 -DCOMPONENT_PSA_SRV_EMUL=1 -DCOMPONENT_PSA_SRV_IMPL=1 -DDEVICE_ANALOGIN=1 -DDEVICE_CAN=1 -DDEVICE_FLASH=1 -DDEVICE_I2C=1 -DDEVICE_I2CSLAVE=1 -DDEVICE_I2C_ASYNCH=1 -DDEVICE_INTERRUPTunknown OSError exception code 0 - 'C:\WINDOWS\System32\cmd.exe': Error
IN=1*** [.pio\build\nucleo_f103rb\FrameworkMbed\drivers\BusIn.o] Error 127
 -DDEVICE_PORTIN=1 -DDEVICE_PORTINOUT=1 -DDEVICE_PORTOUT=1 -DDEVICE_PWMOUT=1 -DDEVICE_RESET_REASON=1 -DDEVICE_RTC=1 -DDEVICE_SERIAL=1 -DDEVICE_SERIAL_ASYNCH=1 -DDEVICE_SERIAL_FC=1 -DDEVICE_SLEEP=1 -DDEVICE_SPI=1 -DDEVICE_SPISLAVE=1 -DDEVICE_SPI_ASYNCH=1 -DDEVICE_STDIO_MESSAGES=1 -DDEVICE_USTICKER=1 -DDEVICE_WATCHDOG=1 -DTARGET_CORTEX -DTARGET_CORTEX_M -DTARGET_FAMILY_STM32 -DTARGET_FF_ARDUINO -DTARGET_FF_MORPHO -DTARGET_LIKE_CORTEX_M3 -DTARGET_LIKE_MBED -DTARGET_M3 -DTARGET_NAME=NUCLEO_F103RB -DTARGET_NUCLEO_F103RB -DTARGET_RELEASE -DTARGET_STM -DTARGET_STM32F1 -DTARGET_STM32F103RB -DTOOLCHAIN_GCC -DTOOLCHAIN_GCC_ARM -DTRANSACTION_QUEUE_SIZE_SPI=2 -DUSE_FULL_LL_DRIVER -DUSE_HAL_DRIVER -D__CMSIS_RTOS -D__CORTEX_M3 -D__MBED_CMSIS_RTOS_CM -D__MBED__=1 -IC:\Users\User\.platformio\packages\framework-mbed\cmsis\TARGET_CORTEX_M -IC:\Users\User\.platformio\packages\framework-mbed -I.pio\build\nucleo_f103rb -Isrc -IC:\Users\User\PLATFO~1\packages\FRAMEW~1 -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\drivers -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\events -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\events\equeue -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\hal -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\hal\STORAG~1 -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\platform -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\platform\TARGET~1 -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\platform\internal -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\targets\TAE5D3~1 -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\targets\TAE5D3~1\TA6EE1~1 -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\targets\TAE5D3~1\TA6EE1~1\TARGET~1 -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\targets\TAE5D3~1\TA6EE1~1\TARGET~1\device -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\targets\TAE5D3~1\TA6EE1~1\device C:\Users\User\.platformio\packages\framework-mbed\drivers\CAN.cpp
arm-none-eabi-g++ -o .pio\build\nucleo_f103rb\FrameworkMbed\drivers\Ethernet.o -c -std=gnu++14 -fno-rtti -Wvla -c -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -fmessage-length=0 -fno-exceptions -ffunction-sections -fdata-sections -funsigned-char -MMD -fno-delete-null-pointer-checks -fomit-frame-pointer -Os -g -DMBED_TRAP_ERRORS_ENABLED=1 -mcpu=cortex-m3 -mthumb -DMBED_ROM_START=0x8000000 -DMBED_ROM_SIZE=0x20000 -DMBED_RAM_START=0x20000000 -DMBED_RAM_SIZE=0x5000 -include mbed_config.h -DPLATFORMIO=40003 -DSTM32F103xB -DARM_MATH_CM3 -DCOMPONENT_NSPE=1 -DCOMPONENT_PSA_SRV_EMUL=1 -DCOMPONENT_PSA_SRV_IMPL=1 -DDEVICE_ANALOGIN=1 -DDEVICE_CAN=1 -DDEVICE_FLASH=1 -DDEVICE_I2C=1 -DDEVICE_I2CSLAVE=1 -DDEVICE_I2C_ASYNCH=1 -DDEVICE_INTERRUPTIN=1 -DDEVICE_PORTunknown OSError exception code 0 - 'C:\WINDOWS\System32\cmd.exe': Error
IN*** [.pio\build\nucleo_f103rb\FrameworkMbed\drivers\BusOut.o] Error 127
=1unknown OSError exception code 0 - 'C:\WINDOWS\System32\cmd.exe': Error
 -*** [.pio\build\nucleo_f103rb\FrameworkMbed\drivers\BusInOut.o] Error 127
DDEVICE_PORTINOUT=1 -DDEVICE_PORTOUT=1 -DDEVICE_PWMOUT=1 -DDEVICE_RESET_REASON=1 -DDEVICE_RTC=1 -DDEVICE_SERIAL=1 -DDEVICE_SERIAL_ASYNCH=1 -DDEVICE_SERIAL_FC=1 -DDEVICE_SLEEP=1 -DDEVICE_SPI=1 -DDEVICE_SPISLAVE=1 -DDEVICE_SPI_ASYNCH=1 -DDEVICE_STDIO_MESSAGES=1 -DDEVICE_USTICKER=1 -DDEVICE_WATCHDOG=1 -DTARGET_CORTEX -DTARGET_CORTEX_M -DTARGET_FAMILY_STM32 -DTARGET_FF_ARDUINO -DTARGET_FF_MORPHO -DTARGET_LIKE_CORTEX_M3 -DTARGET_LIKE_MBED -DTARGET_M3 -DTARGET_NAME=NUCLEO_F103RB -DTARGET_NUCLEO_F103RB -DTARGET_RELEASE -DTARGET_STM -DTARGET_STM32F1 -DTARGET_STM32F103RB -DTOOLCHAIN_GCC -DTOOLCHAIN_GCC_ARM -DTRANSACTION_QUEUE_SIZE_SPI=2 -DUSE_FULL_LL_DRIVER -DUSE_HAL_DRIVER -D__CMSIS_RTOS -D__CORTEX_M3 -D__MBED_CMSIS_RTOS_CM -D__MBED__=1 -IC:\Users\User\.platformio\packages\framework-mbed\cmsis\TARGET_CORTEX_M -IC:\Users\User\.platformio\packages\framework-mbed -I.pio\build\nucleo_f103rb -Isrc -IC:\Users\User\PLATFO~1\packages\FRAMEW~1 -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\drivers -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\events -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\events\equeue -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\hal -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\hal\STORAG~1 -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\platform -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\platform\TARGET~1 -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\platform\internal -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\targets\TAE5D3~1 -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\targets\TAE5D3~1\TA6EE1~1 -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\targets\TAE5D3~1\TA6EE1~1\TARGET~1 -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\targets\TAE5D3~1\TA6EE1~1\TARGET~1\device -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\targets\TAE5D3~1\TA6EE1~1\device C:\Users\User\.platformio\packages\framework-mbed\drivers\Ethernet.cpp
arm-none-eabi-g++ -o .pio\build\nucleo_f103rb\FrameworkMbed\drivers\FlashIAP.o -c -std=gnu++14 -fno-rtti -Wvla -c -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -fmessage-length=0 -fno-exceptions -ffunction-sections -fdata-sections -funsigned-char -MMD -fno-delete-null-pointer-checks -fomit-frame-pointer -Os -g -DMBED_TRAP_ERRORS_ENABLED=1 -mcpu=cortex-m3 -mthumb -DMBED_ROM_START=0x8000000 -DMBED_ROM_SIZE=0x20000 -DMBED_RAM_START=0x20000000 -DMBED_RAM_SIZE=0x5000 -include mbed_config.h -DPLATFORMIO=40003 -DSTM32F103xB -DARM_MATH_CM3 -DCOMPONENT_NSPE=1 -DCOMPONENT_PSA_SRV_EMUL=1 -DCOMPONENT_PSA_SRV_IMPL=1 -DDEVICE_ANALOGIN=1 -DDEVICE_CAN=1 -DDEVICE_FLASH=1 -DDEVICE_I2C=1 -DDEVICE_I2CSLAVE=1 -DDEVICE_I2C_ASYNCH=1 -DDEVICE_INTERRUPTIN=1 -DDEVICE_PORTIN=1 -DDEVICE_PORTINOUT=1 -DDEVICE_PORTOUT=1 -DDEVICE_PWMOUT=1 -DDEVICE_RESET_REASON=1 -DDEVICE_RTC=1 -DDEVICE_SERIAL=1 -DDEVICE_SERIAL_ASYNCH=1 -DDEVICE_SERIAL_FC=1 -DDEVICE_SLEEP=1 -DDEVICE_SPI=1 -DDEVICE_SPISLAVE=1 -DDEVICE_SPI_ASYNCH=1 -DDEVICE_STDIO_MESSAGES=1 -DDEVICE_USTICKER=1 -DDEVICE_WATCHDOG=1 -DTARGET_CORTEX -DTARGET_CORTEX_M -DTARGET_FAMILY_STM32 -DTARGET_FF_ARDUINO -DTARGET_FF_MORPHO -DTARGET_LIKE_CORTEX_M3 -DTARGET_LIKE_MBED -DTARGET_M3 -DTARGET_NAME=NUCLEO_F103RB -DTARGET_NUCLEO_F103RB -DTARGET_RELEASE -DTARGET_STM -DTARGET_STM32F1 -DTARGET_STM32F103RB -DTOOLCHAIN_GCC -DTOOLCHAIN_GCC_ARM -DTRANSACTION_QUEUE_SIZE_SPI=2 -DUSE_FULL_LL_DRIVER -DUSE_HAL_DRIVER -D__CMSIS_RTOS -D__CORTEX_M3 -D__MBED_CMSIS_RTOS_CM -D__MBED__=1 -IC:\Users\User\.platformio\packages\framework-mbed\cmsis\TARGET_CORTEX_M -IC:\Users\User\.platformio\packages\framework-mbed -I.pio\build\nucleo_f103rb -Isrc -IC:\Users\User\PLATFO~1\packages\FRAMEW~1 -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\drivers -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\events -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\events\equeue -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\hal -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\hal\STORAG~1 -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\platform -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\platform\TARGET~1 -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\platform\internal -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\targets\TAE5D3~1 -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\targets\TAE5D3~1\TA6EE1~1 -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\targets\TAE5D3~1\TA6EE1~1\TARGET~1 -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\targets\TAE5D3~1\TA6EE1~1\TARGET~1\device -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\targets\TAE5D3~1\TA6EE1~1\device C:\Users\User\.platformio\packages\framework-mbed\drivers\FlashIAP.cpp
arm-none-eabi-g++ -o .pio\build\nucleo_f103rb\FrameworkMbed\drivers\I2C.o -c -std=gnu++14 -fno-rtti -Wvla -c -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -fmessage-length=0 -fno-exceptions -ffunction-sections -fdata-sections -funsigned-char -MMD -fno-delete-null-pointer-checks -fomit-frame-pointer -Os -g -DMBED_TRAP_ERRORS_ENABLED=1 -mcpu=cortex-m3 -mthumb -DMBED_ROM_START=0x8000000 -DMBED_ROM_SIZE=0x20000 -DMBED_RAM_START=0x20000000 -DMBED_RAM_SIZE=0x5000 -include mbed_config.h -DPLATFORMIO=40003 -DSTM32F103xB -DARM_MATH_CM3 -DCOMPONENT_NSPE=1 -DCOMPONENT_PSA_SRV_EMUL=1 -DCOMPONENT_PSA_SRV_IMPL=1 -DDEVICE_ANALOGIN=1 -DDEVICE_CAN=1 -DDEVICE_FLASH=1 -DDEVICE_I2C=1 -DDEVICE_I2CSLAVE=1 -DDEVICE_I2C_ASYNCH=1 -DDEVICE_INTERRUPTIN=1 -DDEVICE_PORTIN=1 -DDEVICE_PORTINOUT=1 -DDEVICE_PORTOUT=1 -DDEVICE_PWMOUT=1 -DDEVICE_RESET_REASON=1 -DDEVICE_RTC=1 -DDEVICE_SERIAL=1 -DDEVICE_SERIAL_ASYNCH=1 -DDEVICE_SERIAL_FC=1 -DDEVICE_SLEEP=1 -DDEVICE_SPI=1 -DDEVICE_SPISLAVE=1 -DDEVICE_SPI_ASYNCH=1 -DDEVICE_STDIO_MESSAGES=1 -DDEVICE_USTICKER=1 -DDEVICE_WATCHDOG=1 -DTARGET_CORTEX -DTARGET_CORTEX_M -DTARGET_FAMILY_STM32 -DTARGET_FF_ARDUINO -DTARGET_FF_MORPHO -DTARGET_LIKE_CORTEX_M3 -DTARGET_LIKE_MBED -DTARGET_M3 -DTARGET_NAME=NUCLEO_F103RB -DTARGET_NUCLEO_F103RB -DTARGET_RELEASE -DTARGET_STM -DTARGET_STM32F1 -DTARGET_STM32F103RB -DTOOLCHAIN_GCC -DTOOLCHAIN_GCC_ARM -DTRANSACTION_QUEUE_SIZE_SPI=2 -DUSE_FULL_LL_DRIVER -DUSE_HAL_DRIVER -D__CMSIS_RTOS -D__CORTEX_M3 -D__MBED_CMSIS_RTOS_CM -D__MBED__=1 -IC:\Users\User\.platformio\packages\framework-mbed\cmsis\TARGET_CORTEX_M -IC:\Users\User\.platformio\packages\framework-mbed -I.pio\build\nucleo_f103rb -Isrc -IC:\Users\User\PLATFO~1\packages\FRAMEW~1 -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\drivers -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\events -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\events\equeue -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\hal -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\hal\STORAG~1 -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\platform -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\platform\TARGET~1 -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\platform\internal -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\targets\TAE5D3~1 -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\targets\TAE5D3~1\TA6EE1~1 -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\targets\TAE5D3~1\TA6EE1~1\TARGET~1 -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\targets\TAE5D3~1\TA6EE1~1\TARGET~1\device -IC:\Users\User\PLATFO~1\packages\FRAMEW~1\targets\TAE5D3~1\TA6unknown OSError exception code 0 - 'C:\WINDOWS\System32\cmd.exe': Error
EE1*** [.pio\build\nucleo_f103rb\FrameworkMbed\drivers\Ethernet.o] Error 127
~1\device C:\Users\User\.platformio\packages\framework-mbed\drivers\I2C.cpp
unknown OSError exception code 0 - 'C:\WINDOWS\System32\cmd.exe': Error
*** [.pio\build\nucleo_f103rb\FrameworkMbed\drivers\CAN.o] Error 127
unknown OSError exception code 0 - 'C:\WINDOWS\System32\cmd.exe': Error
*** [.pio\build\nucleo_f103rb\FrameworkMbed\drivers\FlashIAP.o] Error 127
unknown OSError exception code 0 - 'C:\WINDOWS\System32\cmd.exe': Error
*** [.pio\build\nucleo_f103rb\FrameworkMbed\drivers\I2C.o] Error 127

As a countermeasure, could you remove the (hidden) folder c:\Users\User\Code\Jobs\Novek\cooking-oil\.pio, and then the folders c:\Users\User\.platformio\packages\framework-mbed and c:\Users\User\.platformio\packages\toolchain-gccarmnoneeabi. PIO should redownload the compiler and the mbed-os framework upon the next recompile and with no build artefacts from the last build left, hopefully it should work.

Did that twice. Didn’t work :frowning:
Uninstalled platformio from vs code and deleted the .platformio folder before reinstall. Same error.
Reinstalled VS Code, and platformio.

Still fails

Can you open a shell / cmd.exe, execute cd C:\Users\User\.platformio\packages\toolchain-gccarmnoneeabi\bin and then arm-none-eabi-gcc.exe --version. If the file is there and works it should output something like

arm-none-eabi-gcc.exe (GNU MCU Eclipse ARM Embedded GCC, 32-bit) 8.2.1 20181213 (release) [gcc-8-branch revision 267074]

This is the response

arm-none-eabi-gcc.exe (GNU Tools for Arm Embedded Processors 7-2017-q4-major) 7.2.1 20170904 (release) [ARM/embedded-7-branch revision 255204]
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Hm the file is there and it’s executable. I’m kind of at a loss on why the error is still there.

Can you create a new Windows user (no spaces in the user name), get a portable version of VSCode, install PIO again in it and retry compilation?

Also are you running a 64-bit or 32-bit operating system, and which version of Windows exactly? And what’s your CPU?

System Info

Trying the new user method

Installed new user. Build succeeded.

Must be some weird thing happening with Python or GCC-ARM. Too bad I cant see any logs so I can know what’s going on. Even with verbose build, no logs. No Platformio text logs.