Solved: Arduino Due syscalls_sam3.c.o error

Hi Folks,

I installed the Due board yesterday (SAM package version 1.6.5) and had following error when compiling:

arm-none-eabi-gcc: error: C:\Users[user name]\AppData\Local\Temp\build9100607786597507022.tmp/core/syscalls_sam3.c.o: No such file or directory
Error compiling.

I believe that I found a fix (at least it seems to work for me as it compiles). As I couldn't find any real solution out there despite the fact that the problem seems to be recurring, I decided to share it.

This problem seems to be most frequent with some simulink package from mathworks. The common fix is running and/or installing matlab as administrator, but I am not using matlab. Just the regular Arduino.exe. Running it as an Administrator and reinstalling the SAM package did not help.

Now to the solution which worked for me:

Go to the folder C:\Users[User]\AppData\Roaming\Arduino15\packages\arduino\hardware\sam\1.6.5

Then open platform.txt

Press Ctrl+F and search for core/syscalls_sam3.c.o

Delete "core/". You should end up with something like: --start-group "{build.path}/syscalls_sam3.c.o"

Save the file. Restart arduino.exe. Make sure you selected the arduino due board and you're good to compile.

Why delete "core/" ?
Well, the compiler tries to build a sub folder named core in the temp file. But for some reason it fails. The file syscalls_sam3.c.o can however be found in the temp file... but not in a sub folder core. I am assuming that as it failed generating a sub folder, it still dumps the syscalls_sam3.c.o object into the temp file... just not in the sub folder core. Now, when the compiler then tries to locate the syscalls_sam3.c.o file in the sub folder core, it fails. By modifying the platform.txt, you avoid creating a sub folder and the compiler doesn't loose the location of the file syscalls_sam3.c.o

There is certainly a cleaner way to do this and if you have one, please share!

I had the same problem with the 1.6.5 SAM files for the Due board. I upgraded to 1.6.6 and it has the same error. I went back to 1.6.4 and all is working again.

Hi,

It worked for me too for version 1.6.5.r2.
Many thanks.

I, too, experienced the same error with version 1.6.5 and 1.6.6, and went back to the 1.6.4 version of the Arduino SAM Boards (32-bits ARM Cortex-M3) using Studio Tools->Boards Manager and all is working again.

It's good to see that I wasn't the only one with the issue! Thanks for the replies!

Going back to 1.6.4 really works.
Thanks guys.

I couldn't get this to work for Mac. Is there a work around?

Any luck on Mac guys?

In regards to Mac,

Was using 1.6.5 with the due and was having issues as above. I used another version on my mac 1.5.6 r2 and everything worked fine.

Okay. I'll give that version a try. Thanks desertwalker66

I confirm that deleting "core/" from platform.txt allowed my 1.6.5 installation to compile basics/bareminimum for Arduino Due.

Thank You so much!

RED_

Good catch. This fix worked for me.
Upgraded to IDE 1.6.7, installed DUE drivers. Got error when I tried to compile.

Down graded to 1.6.5r2 installed Due drivers, put your fix in.

Problem gone.

Thanks.

Steve

it worked great.
Thank you a lot my friend...

I change 1.6.4, also cannot work. how to solved?

ARDUINO IDE Version 1.6.13
The same problem
no such file or directory
C:\Users[user]\AppData\Local\Temp\arduino_build_xxxxxx/core\core.a

I Can't find a file to change:
C:\Users\sida\AppData\Roaming\Arduino\preferences.txt (the only file in the folder)

Still happening for me. Occasionally. I haven't figured out the cause/pattern yet.
When I shutdown and restart the IDE it usually works again.

ARDUINO IDE Version 1.8.5
OS ubuntu 14.04 LTS