Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Locked Topic Re: Errors in VM not Arduino IDE for Feather M0 (Read 2771 times)
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Errors in VM not Arduino IDE for Feather M0
Jan 24th, 2020 at 12:18pm
 
Please follow the guide in yellow above
  
Back to top
WWW  
IP Logged
 
ThirdOrbit
Newbies
*
Offline


Posts: 8
Location: Maryland, USA
Joined: Dec 15th, 2016
Re: Errors in VM not Arduino IDE for Feather M0
Reply #1 - Jan 24th, 2020 at 1:44pm
 
The WiFi101 Library Example "WiFiSSLClient" compiles and runs without errors on the Arduino IDE for the Feather M0 board or Arduino Uno (compile only),  but gets this list of errors in Visual Micro in Visual Studio just for the Feather. Shown in "FirstCompileWiFiClient" file.

If I "clean solution" it errors out with messages in "CompileAfterCleanBuild" file.


It compiles cleanly in Visual Micro with "Arduino Uno" as the board.

Arduino IDE (1.8.10) Visual Micro (1912.28.2) and Visual Studio (16.4.3) are on the latest releases.

How do I fix this?  Thanks!!
« Last Edit: Jan 24th, 2020 at 1:54pm by ThirdOrbit »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
ThirdOrbit
Newbies
*
Offline


Posts: 8
Location: Maryland, USA
Joined: Dec 15th, 2016
Re: Errors in VM not Arduino IDE for Feather M0
Reply #2 - Jan 24th, 2020 at 2:10pm
 
Today I got a similar set of duplicate libraries error message under the Arduino IDE that compiled clean yesterday.

The log (attached) also shows multiple library messages for SPI and WiFi101 and Adafruit_ZeroDMA duplicates but compiles clean if I change the board to Arduino Uno.  It compiled clean for the Feather yesterday several times.  I am not making any library changes myself.
« Last Edit: Jan 24th, 2020 at 2:15pm by ThirdOrbit »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2142
Joined: Feb 13th, 2019
Re: Errors in VM not Arduino IDE for Feather M0
Reply #3 - Jan 24th, 2020 at 5:11pm
 
Could you enable the "vMicro > Compiler > Show Build Properties" as well and upload a new Clean Build log file?
  
Back to top
 
IP Logged
 
ThirdOrbit
Newbies
*
Offline


Posts: 8
Location: Maryland, USA
Joined: Dec 15th, 2016
Re: Errors in VM not Arduino IDE for Feather M0
Reply #4 - Jan 24th, 2020 at 6:39pm
 
My apologies for missing that!  Will send in email as no option to attach file seen.
  
Back to top
 
IP Logged
 
ThirdOrbit
Newbies
*
Offline


Posts: 8
Location: Maryland, USA
Joined: Dec 15th, 2016
Re: Errors in VM not Arduino IDE for Feather M0
Reply #5 - Jan 25th, 2020 at 4:46pm
 
Another example of compile error from a simple sketch.
After deleting the MAX31855 library I got several clean compiles then this problem recurred. recurred.

THIS ERROR ALSO OCCURS IN THE ARDUINO IDE.
« Last Edit: Jan 25th, 2020 at 5:15pm by ThirdOrbit »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Errors in VM not Arduino IDE for Feather M0
Reply #6 - Jan 25th, 2020 at 5:38pm
 
This is some sort of permissions issue. A standard part of all arduino builds is too append all compiled core files into an archive file (.a extension)

The error in our output says that gcc is unable to rename the .a file. The error appears when an attempt to add the 2nd core file is made. 

The two lines can be pasted into a cmd prompt. Visual Micro does not have any interaction with the running of the archive command. Both the following lines should run without error but on your pc they are not. 

Code
Select All
\7-2017q4/bin/arm-none-eabi-ar" rcs 769ed5\core.a" 769ed5\core\pulse_asm.S.o"
\7-2017q4/bin/arm-none-eabi-ar" rcs 769ed5\core.a" 769ed5\core\cortex_handlers.c.o" 




One solution might be to run vs as administrator, another might be to change the permissions for the VMBCore folder.

You could also switch off "vmicro>compiler>shared cache for cores". Switching off the shared cache will cause visual micro to build into the temp build folder that each project uses. 

Then, if needed, you can override the location of the temp build folder in vmicro>general>options. Pointing to a folder with higher permissions.

Lastly a thught to check your virus checker isn't blocking an disk operations such as file delete in the "C:\Users\nrcep\AppData\Local\Temp\VMBCore" folder.

  
Back to top
WWW  
IP Logged
 
ThirdOrbit
Newbies
*
Offline


Posts: 8
Location: Maryland, USA
Joined: Dec 15th, 2016
Re: Errors in VM not Arduino IDE for Feather M0
Reply #7 - Jan 25th, 2020 at 6:15pm
 
Thank you!  Will try all that.
  
Back to top
 
IP Logged
 
ThirdOrbit
Newbies
*
Offline


Posts: 8
Location: Maryland, USA
Joined: Dec 15th, 2016
Re: Errors in VM not Arduino IDE for Feather M0
Reply #8 - Jan 25th, 2020 at 6:33pm
 
Thank you!  Will try all that.

The permission changes and run as administrator did not help, but

"You could also switch off "vmicro>compiler>shared cache for cores". Switching off the shared cache will cause visual micro to build into the temp build folder that each project uses."

seems to have fixed it.  Have run 6 compiles with no problem.

Thank you so very much!!
« Last Edit: Jan 25th, 2020 at 6:33pm by ThirdOrbit »  
Back to top
 
IP Logged
 
ThirdOrbit
Newbies
*
Offline


Posts: 8
Location: Maryland, USA
Joined: Dec 15th, 2016
Re: Errors in VM not Arduino IDE for Feather M0
Reply #9 - Jan 26th, 2020 at 5:08am
 
I hate to bother you again with this, but after several hours of compiling perfectly, it suddenly developed the same problem for no obvious reason.

The only thing in the list of things to try that I did not figure out was this suggestion:
"Then, if needed, you can override the location of the temp build folder in vmicro>general>options. Pointing to a folder with higher permissions."

I did give all permissions to all folders I could find that deal with Visual Micro or Arduino.  That would not explain why between one clean compile and after a minor source code change, like I was doing all day, that it would suddenly stop working.

I see vmicro>general>global options but nowhere a reference to the temporary files location.  I will try that if you could be kind enough point me to the place to make the change.

Thanks again!  Especially since this might not be a VM issue, as you suggest.

  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Errors in VM not Arduino IDE for Feather M0
Reply #10 - Jan 26th, 2020 at 2:31pm
 
It's the same problem. Not a vmicro issue but a pc issue. The commands that fail are shown previously and can be validated by running the cmd suggested earlier.

As I said the commands are used in all arduino builds and are not a known issue. Therefore it does point to a problem with your pc. I mentioned the virus checker previously, I suggest you exclude the build folder(s) from the virus checker if you think it is causing the issue. something is stopping a file that has just been created from being overritten or deleted so that suggests virus or malware checkers.

Code
Select All
arm-none-eabi-ar*: unable to rename feather_m0\Release\core.a; reason: File exists
Error creating archive 

  
Back to top
WWW  
IP Logged
 
ThirdOrbit
Newbies
*
Offline


Posts: 8
Location: Maryland, USA
Joined: Dec 15th, 2016
Re: Errors in VM not Arduino IDE for Feather M0
Reply #11 - Jan 26th, 2020 at 3:01pm
 
Yes, and thanks again.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Errors in VM not Arduino IDE for Feather M0
Reply #12 - Feb 2nd, 2020 at 10:25pm
 
Thanks for emailing and update to this issue. You confirmed that it was a virus checker issue incorrectly causing the file to be locked.
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint