Unable to compile with Arduino

krunal2411
Thu Feb 09, 2017 9:34 am
I am getting following error msg when I try to compile any sketch. I am using Arduino IDE 1.6.5. I have reinstalled Arduino to C:/Arduino, still not working. I have also installed SAMD board Arduin Zero.
Please help.

`
Arduino: 1.6.5 (Windows 7), Board: “Generic STM32F103C series, STM32F103C8 (20k RAM. 64k Flash), Serial”

arm-none-eabi-g++: error: C:\Users\KRUNAL~1\AppData\Local\Temp\build5813785701785279306.tmp/core.a: No such file or directory
Error compiling.
`


stevestrong
Thu Feb 09, 2017 9:39 am
Have you gone through all the steps indicated here: https://github.com/rogerclarkmelbourne/ … stallation ?
You need Arduino IDE 1.6.9 at least.

krunal2411
Thu Feb 09, 2017 9:43 am
Hi, Thanks for the quick reply.

I have followed all the steps in the wiki.
I can get the boards and the sample sketches for STM in the Arduino IDE.

But the only problem is I can not compile any of them.


krunal2411
Thu Feb 09, 2017 9:44 am
Can it not work with Arduino 1.6.5.
Actually I have other codes which only work when compiled with 1.6.5.
So I am reluctant to changing it to the latest.

stevestrong
Thu Feb 09, 2017 9:54 am
Try to install Arduino SAM boards from the Board manager, this should install the needed gcc compiler.

krunal2411
Thu Feb 09, 2017 10:13 am
Hi,
I already had Arduino Zero installed, now I installed for Arduino DUE also.
But the same problem exists.

It says “core.a” no such file.

Error:
arm-none-eabi-g++: error: C:\Users\KRUNAL~1\AppData\Local\Temp\build9200305924142195495.tmp/core.a: No such file or directory
Error compiling.

The path has a space as “KRUNAL BHONGADE”, can it be a problem. I am working with admin rights.


krunal2411
Thu Feb 09, 2017 10:16 am
Oh,
I checked for this path, the actual path is:
C:\Users\KRUNAL BHONGADE\AppData\Local\Temp\build9200305924142195495.tmp

whereas the error shows:
C:\Users\KRUNAL~1\AppData\Local\Temp\build9200305924142195495.tmp

But, the actual path also does not contain the file core.a

Please suggest.


stevestrong
Thu Feb 09, 2017 2:12 pm
Which board type have you selected from the Arduino menu?

krunal2411
Fri Feb 10, 2017 1:23 pm
Hi,
I have selected Generic STM32F103C series, STM32F103C8(20K RAM, 64K FLASH)

stevestrong
Fri Feb 10, 2017 2:20 pm
Can you access the path
C:\Users\KRUNAL~1\AppData\Local\Temp\build9200305924142195495.tmp

krunal2411
Sat Feb 11, 2017 2:42 pm
Hi.
Yes, I can see many compiled files in the folder. Their are total 142 items in the folder. Please see the attached photo.

I observed that both the paths take me to the same folder.


krunal2411
Sat Feb 11, 2017 2:48 pm
Hello.

I just downloaded the latest Arduino IDE 1.8.1 and tried to compile it and it compiled successfully.
It seems that it was Arduino IDE problem. Now I am using latest Arduino without installation so I can have both the IDEs.

Thanks for all your help and time.


Leave a Reply

Your email address will not be published. Required fields are marked *