Program Compile error

Hello everyone. When I try to compile any sketch (even a blank one) I get this error:

Arduino: 1.6.5 (Windows 8.1), TD: 1.24, Board: "Arduino Due (Programming Port)"

arm-none-eabi-gcc: error: C:\Users\MasoudPC\AppData\Local\Temp\build7181928014065470538.tmp/core/syscalls_sam3.c.o: No such file or directory
arm-none-eabi-gcc: error: C:\Users\MasoudPC\AppData\Local\Temp\build7181928014065470538.tmp/core.a: No such file or directory
Error compiling.

I'll be so thank full if you help me compile my first program within Arduino Due 8)

I fixed this error by modifying platform.txt. Now the blink program compiles and runs.

Arduino IDE: 1.6.5
SAM board package: 1.6.5

The full path to the file on Linux: ~/.arduino15/packages/arduino/hardware/sam/1.6.5/platform.txt

Find the following string in platform.txt

"{build.path}/core/syscalls_sam3.c.o"

and replace it with

"{build.path}/syscalls_sam3.c.o"

In other words, remove "core/".

Or use the attached platform.txt.

platform.txt (4.97 KB)