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
Hot Topic (More than 8 Replies) Core archive (core.a) was locked by the virus checker. (Read 3792 times)
RichardK
Junior Member
**
Offline


Posts: 65
Joined: Jul 11th, 2023
Core archive (core.a) was locked by the virus checker.
Sep 4th, 2023 at 3:02pm
Print Post  
I get this 

INFO: Core archive (core.a) was locked by the virus checker.

when I want to upload a STM32 Nucleo Project. Clicking 'Build>Clean Solution' did not resolve the issue. Projects for other Boards (ESP32, Raspi Pico) do not have this problem.

Thanks
Richard


  

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Core archive (core.a) was locked by the virus checker.
Reply #1 - Sep 4th, 2023 at 3:06pm
Print Post  
Which virus checker are you using? Visual Micro (apps) don't have any control over this and that error message is produced by windows or the virus checker.

One option might be to exclude the core builld folder from virus checking.
C:\Users\RK_2\AppData\Local\Temp\VMBCore\arduino20x

  
Back to top
IP Logged
 
RichardK
Junior Member
**
Offline


Posts: 65
Joined: Jul 11th, 2023
Re: Core archive (core.a) was locked by the virus checker.
Reply #2 - Sep 4th, 2023 at 4:05pm
Print Post  
I tried to exclude this folder

C:\\Users\\RK_2\\AppData\\Local\\Temp\\VMBCore\\

but there is no such folder. I tried   

C:\Users\RK_2\AppData\Local\Temp\arduino

but this didn't help.

Thanks
Richard


  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Core archive (core.a) was locked by the virus checker.
Reply #3 - Sep 4th, 2023 at 4:58pm
Print Post  
You can see the folder in your build output. neither of the two examples you tried matched the example I proved

C:\Users\RK_2\AppData\Local\Temp\VMBCore\arduino20x
  
Back to top
IP Logged
 
RichardK
Junior Member
**
Offline


Posts: 65
Joined: Jul 11th, 2023
Re: Core archive (core.a) was locked by the virus checker.
Reply #4 - Sep 4th, 2023 at 5:57pm
Print Post  
The directory of core.a is 

57339eccdd9a\\core.a

Therefore I excluded both folders

dd9a\
dd9a\core\


but the error remains:

\\xpack-arm-none-eabi-gcc\\12.2.1-1.2/bin/arm-none-eabi-gcc-ar" rcs c57339eccdd9a\\core.a" c57339eccdd9a\\core\\abi.cpp.o"
ar.exe: 57339eccdd9a\\core\\abi.cpp.o: No such file or directory
INFO: Core archive (core.a) was locked by the virus checker. Retry 3.
\\xpack-arm-none-eabi-gcc\\12.2.1-1.2/bin/arm-none-eabi-gcc-ar" rcs c57339eccdd9a\\core.a" c57339eccdd9a\\core\\abi.cpp.o"
ar.exe: 57339eccdd9a\\core\\abi.cpp.o: No such file or directory
Error creating archive. This is usually caused by a virus checker locking the archive file (core.a)
    note: The core.a file will now be invalid. Please click 'Build>Clean Solution' to reolve the issue.
          Please report this issue to https://www.visualmicro.com/forums. Let us know which virus checker and board you are using.
Debug build failed for project 'STM32-Nucleo-C0'


What did I confuse?

Thanks
Richard 

  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Core archive (core.a) was locked by the virus checker.
Reply #5 - Sep 4th, 2023 at 6:21pm
Print Post  
It might be a permissions error or lack of disk space. We don't have other reports of this and the same folder is used by all users, has been for years. The error message from the compiler states the virus checked is causing the issue.

The specific folder below arduino20x should not be specified. It will change based on your board settings.

You also have wrong paths. the core you are using is in 9e02eb6cce54b1c4308c57339eccdd9a

You need to look in the build output for the paths. Don't use \\, only single \.
« Last Edit: Sep 4th, 2023 at 6:29pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Core archive (core.a) was locked by the virus checker.
Reply #6 - Sep 21st, 2023 at 4:18pm
Print Post  
We made some changes in recent releases that should have resolved this.
  
Back to top
IP Logged
 
RichardK
Junior Member
**
Offline


Posts: 65
Joined: Jul 11th, 2023
Re: Core archive (core.a) was locked by the virus checker.
Reply #7 - Sep 21st, 2023 at 5:47pm
Print Post  
Thanks for trying to fix that problem.

But now I get this error message:
Code
Select All
cmsis_gcc.h: In function __get_CONTROL
cmsis_gcc.h:219: sorry, unimplemented  Thumb-1 hard-float VFP ABI
   219 | {
   | ^
Error compiling variant
Build failed for project 'STM32-C031C6'
 



I never got this message before. Can you fix it too?

Thanks 
Richard
  
Back to top
 
IP Logged
 
RichardK
Junior Member
**
Offline


Posts: 65
Joined: Jul 11th, 2023
Re: Core archive (core.a) was locked by the virus checker.
Reply #8 - Sep 21st, 2023 at 5:48pm
Print Post  
Sorry, but I forgot to mention that I installed the update.

Richard
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Core archive (core.a) was locked by the virus checker.
Reply #9 - Sep 21st, 2023 at 5:50pm
Print Post  
We need to see the build info. Please attach a build output as per yellow box above.
  
Back to top
IP Logged
 
RichardK
Junior Member
**
Offline


Posts: 65
Joined: Jul 11th, 2023
Re: Core archive (core.a) was locked by the virus checker.
Reply #10 - Sep 21st, 2023 at 5:56pm
Print Post  
Here it is.
Richard
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
RichardK
Junior Member
**
Offline


Posts: 65
Joined: Jul 11th, 2023
Re: Core archive (core.a) was locked by the virus checker.
Reply #11 - Sep 23rd, 2023 at 12:44pm
Print Post  
Concerning my reply #7:

Strange! I created a new project and now it works.

Thanks
Richard
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Core archive (core.a) was locked by the virus checker.
Reply #12 - Sep 23rd, 2023 at 1:49pm
Print Post  
Thanks, it was an issue building the core. Potentially down to board options.

It would be useful to see a full output from the project that works.

Click "Build>Clean Solution" then build. That will make a full build so that we can compare with the failed one.

  
Back to top
IP Logged
 
RichardK
Junior Member
**
Offline


Posts: 65
Joined: Jul 11th, 2023
Re: Core archive (core.a) was locked by the virus checker.
Reply #13 - Sep 24th, 2023 at 6:25pm
Print Post  
Here it is.

Richard
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
RichardK
Junior Member
**
Offline


Posts: 65
Joined: Jul 11th, 2023
Re: Core archive (core.a) was locked by the virus checker.
Reply #14 - Sep 24th, 2023 at 6:29pm
Print Post  
I forgot to clean the project before my last post.

Here it is now after cleaning the project.

Richard
  

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Core archive (core.a) was locked by the virus checker.
Reply #15 - Sep 24th, 2023 at 8:16pm
Print Post  
Thanks, we need to do some testing but it looks like you switched briefly to another nucleo using the board selection options. Some of the boards listed in the options set the -mfloat-abi=hard compiler flag and that was being set for your build even though you weren't using a board that specified it.

Should not be in the build ...

build.fpu=-mfpu=fpv4-sp-d16
build.float-abi=-mfloat-abi=hard


We will do some testing. Out of interest, when you hit the problem did an ide restart resolve the issue?
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint