An error appear when I just initilize a Arduino DUE project and compiling it

This is the Command Line output:

[01/12/17 21:33:40] Processing due (platform: atmelsam, board: due, framework: arduino)
Verbose mode can be enabled via -v, --verbose option
Collected 22 compatible libraries
Looking for dependencies…
Project does not have dependencies
Compiling .pioenvs\due\src\due.o
Compiling .pioenvs\due\FrameworkArduinoVariant\variant.o
arm-none-eabi-g++: error: CreateProcess: No such file or directory
Compiling .pioenvs\due\FrameworkArduino\IPAddress.o
*** [.pioenvs\due\src\due.o] Error 1
Compiling .pioenvs\due\FrameworkArduino\Print.o
arm-none-eabi-g++: error: CreateProcess: No such file or directory
*** [.pioenvs\due\FrameworkArduinoVariant\variant.o] Error 1
arm-none-eabi-g++: error: CreateProcess: No such file or directory
*** [.pioenvs\due\FrameworkArduino\IPAddress.o] Error 1
arm-none-eabi-g++: error: CreateProcess: No such file or directory
*** [.pioenvs\due\FrameworkArduino\Print.o] Error 1
[ERROR] Took 3.71 seconds

Then I checked my pio update and is output as follow:

PS Y:\ArduinoWorkSpace\test> pio update
Platform Manager

Platform atmelavr


Updating atmelavr @ 1.4.0: [Up-to-date]
Updating toolchain-atmelavr @ 1.40902.0: [Up-to-date]
Updating framework-arduinoavr @ 1.10612.1: [Up-to-date]
Updating tool-avrdude @ 1.60300.0: [Up-to-date]

Platform atmelsam

Updating atmelsam @ 1.4.0: [Up-to-date]
Updating framework-arduinosam @ 1.10608.3: [Up-to-date]
Updating tool-avrdude @ 1.60300.0: [Up-to-date]
Updating toolchain-gccarmnoneeabi @ 1.40804.0: [Up-to-date]
Updating tool-bossac @ 1.10601.0: [Up-to-date]

Library Manager

Why?How can I fix it.

Could you try to remove manually ~/.platformio/ folder and try again? Maybe installation is broken.

I do it as you say. But it still an error as i say before.

arm-none-eabi-g++: error: CreateProcess: No such file or directory
*** [.pioenvs\due\src\due.o] Error 1
arm-none-eabi-g++: error: CreateProcess: No such file or directory
*** [.pioenvs\due\FrameworkArduinoVariant\variant.o] Error 1
arm-none-eabi-g++: error: CreateProcess: No such file or directory
*** [.pioenvs\due\FrameworkArduino\IPAddress.o] Error 1
arm-none-eabi-g++: error: CreateProcess: No such file or directory
*** [.pioenvs\due\FrameworkArduino\Print.o] Error 1
The error appear when Compiling .pioenvs\due\FrameworkArduinoVariant\variant.o is my variant.h and variant.cpp miss?

Very strange issue, I don’t know how to reproduce it. Do you use *.cpp file in src directory?

Ohh!
I just solve that error, The installation is broken, I didn’t remove the ~/.platformio/ thoroughly.
Thx very much. (๑>◡<๑) (๑>◡<๑) (๑>◡<๑) (๑>◡<๑)