problem: make: *** Waiting for unfinished jobs....

Go To Last Post
115 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi everyone!
I have a proble with avr studio 5.1 . When i build solution a project, avrstudio don't execute with message:

    Invoking: AVR/GNU C Compiler make: *** Access is denied.
    . Stop.
    make: *** Waiting for unfinished jobs....
Any one know the solution?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

un/reinstall

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Now I have same problem, and I am using AS6 (version 6.0.1882) on windows 7, and run as administrator.

each time, "make" maybe stops at different file.

Do you guys have any solutions?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
I am using AS6 (version 6.0.1882)
Just in case it does help you may want to install SP1 which takes you to "6.0.1938 Service pack 1"

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Atmel installs data files in a highly protected area. Namely "Program Files (x86)". This might somehow be causing your problem. Hopefully there is an option to install it somewhere else. I would consider that the next time I install. One of the things I would suspect is your anti-virus. You might try a quick test by temporarily disabling the anti-virus while doing a build.

It's interesting that the errors mention "make". Apparently Atmel Studio constructs a makefile and then runs make. Maybe there is something wrong with the make program. Maybe Atmel Studio is finding another make program you have laying around.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I also use AS6 (6.0.1882) on windows 7. I installed in the default directory, and the Microsoft Security Essentials antivirus is running.

No problems so far.

Sid

Life... is a state of mind

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I am running AS6/SP1 on Windows 7 as administrator. I intermittently have this issue. I haven't looked into the problem, but hitting the cancel button (to right of build button) followed by a clean then a build seems to work.

Gamu The Killer Narwhal
Portland, OR, US
_________________
Atmel Studio 6.2
Windows 8.1 Pro
Xplained boards mostly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You may have to tick /View/Toolbars/Build to see the Cancel button.

For some reason, they didn't include that command in the Build menu so the toolbar is the only option unless you add it to the menu yourself.

Ctrl+Break should work as well.

Sid

Life... is a state of mind

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

It is a freeRTOS project. Maybe it is because there are too many files in project. It won't happen if it is a standalone project.

There is one way to solve it. press "cancle build" when get this error, and then build again (do not clean project. it will start compile from last stop position). I also set "32" in build and run option.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

make: *** Waiting for unfinished jobs....

Go to sysinternals.com and get procexp.exe then use that to observe what's running when you get this message. AS6 simply spawns a command prompt session to run make then asynchronously awaits completion. Similarly make spawns the compiler/linker and awaits completion. The message "waiting for unfinished jobs" would appear to suggest that something is still running in the background.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

It seems that some program can't access some file.

Quote:
Invoking: AVR/GNU C Compiler
make: *** Access is denied.
. Stop.

When I fix up the iox....h files, I have a hard time getting access. I'm surprised that any builds work, but they do.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

nvhop2010 wrote:
Hi everyone!
I have a problem with avr studio 5.1 . When i build solution a project, avrstudio don't execute with message:
    Invoking: AVR/GNU C Compiler make: *** Access is denied.
    . Stop.
    make: *** Waiting for unfinished jobs....
Any one know the solution?

I have exactly the same problem with rev 6.0.1996 (SP2) while building a project with about 30 source files. The file at which it says "make: *** Access is denied." is random, suggesting that it's a timing problem.
Does anyone have a fix?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I've noticed it a couple times. For some reason, files in the \bin folder are getting set to read only. Change them back to R/W with windoze exploder and the compiler will begin functioning normally again.

Oh yes. Studio 5 was a bad nightmare. Get rid of it and install 6.

If you don't know my whole story, keep your mouth shut.

If you know my whole story, you're an accomplice. Keep your mouth shut. 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Torby wrote:
I've noticed it a couple times. For some reason, files in the \bin folder are getting set to read only.

I looked at the user permissions of the files in the make folder, they were all RWE, as to be expected.
Submitted an error report to Atmel, it's ticket 708246

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I have been getting the same a few times today.

I simply deleted everything in the Default folder of the project, including the Makefile, did a "Clean solution" and rebuilt the project.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I have not seen this problem in AS6. However, yesterday I saw it in VS2010. In there, /Build/Cancel stopped the build but that didn't help subsequent builds - a file was locked, preventing the toolchain from updating it...

Sid

Life... is a state of mind

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Just to note that a useful tool when trying to diagnose this kind of thing is process explorer (procexp.exe) from www.sysinternals.com. It will show you what files a process has locked that can help. You can also use the Find menu to find which process has a file locked.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

clawson wrote:
Just to note that a useful tool when trying to diagnose this kind of thing is process explorer (procexp.exe) from www.sysinternals.com. It will show you what files a process has locked that can help. You can also use the Find menu to find which process has a file locked.
I got a quick response to the ticket, asking for further information, including the procexp.exe findings.
While investigating the problem I found a probable fix. Clean the solution, rename the file Makefile and rebuild the solution. Afterwards I couldn't reproduce the problem any more.
Thanks to clawson and Atmel support for the quick responses

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
Clean the solution, rename the file Makefile and rebuild the solution
Pretty much what I said above. :-)

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

One of my friend Jobin, suggested this. seems like a typical anti virus fix. Can give it a try ... https://groups.google.com/forum/...

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I still see this:

Somehow, whenever I start a NEW project, there's a readonly .elf file. Once I set it to R/W, it makes fine. I made 3 tiny programs the other day.

If you don't know my whole story, keep your mouth shut.

If you know my whole story, you're an accomplice. Keep your mouth shut. 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Can you try building project from command line ?

Project_configuration_directory>> make all

We can isolate the issue Make/Studio?

:D

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Barely used the command line since DOS days. Well, maybe CP/M days.

Can you give me a pointer HOW to build a project from command line?

If you don't know my whole story, keep your mouth shut.

If you know my whole story, you're an accomplice. Keep your mouth shut. 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

Can you give me a pointer HOW to build a project from command line?

He did:
Quote:
Project_configuration_directory>> make all

E.g.

C:\Yourname\Documents\Atmel Studio\Yoursolution\Yourproject\Debug> make all

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The few times I have had that problem appear I only had to "cancel" the build, "clean" the project and the next time it works.

The first time I did more work than seem necessary.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Oh. You mean like this!

If you don't know my whole story, keep your mouth shut.

If you know my whole story, you're an accomplice. Keep your mouth shut. 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Back to the future by 25 years!.. :?

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

There should be a make program here:
C:\Program Files (x86)\Atmel\Atmel Studio 6.0\make\make.exe

The question is "what will you do with that?". Maybe the easiest solution is to use Windows Explorer to make a copy of that make.exe and put it in the folder where the makefile is.

It might be a good idea after you are done with it, to move it or delete it. The reason is the unlikely chance that Atmel will change their make.exe through an update and unbeknownst ( is that a real word?) to anyone, you will still be using the old one.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

Back to the future by 25 years!

Rubbish. There are still several good uses for command prompts, just like there are for GUIs.

Quote:
Oh. You mean like this!

I tested my advice on my system, but I of-course have WinAVR also and WinAVR adds it executable directories to the PATH. Atmel Studio does not.

So CMD needs to know where to look for make.exe. For repeated uses, I would recommend adding the directory to the PATH variable (And I strongly recommend against steve17s advice on copying the executable!). For a one time test you could simply give the compete path on a command line:

C:\Yourname\Documents\Atmel Studio\Yoursolution\Yourproject\Debug> "C:\Program Files (x86)\Atmel\Atmel Studio 6.0\make\make.exe" all

Verify the actual path since it varies with e.g. 32/64-bit systems.

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

hehe

With the full path to make.exe, it now says "Nothing to be done for 'all'."

Odd that something keeps setting the debug folder, or sometimes a file within to read only. Haven't seen it with Visual Studio yet, but then, I don't use VS very often.

Attachment(s): 

If you don't know my whole story, keep your mouth shut.

If you know my whole story, you're an accomplice. Keep your mouth shut. 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You are almost there, just you need to add clean command, it will delete all the previously generated files. It is equivalent to rebuild.

>>make clean all

:D

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Ok. Now I've succeeded in doing a make from the command line. What were we hoping to find out by doing this again?

If you don't know my whole story, keep your mouth shut.

If you know my whole story, you're an accomplice. Keep your mouth shut. 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
What were we hoping to find out by doing this again?

I've re-read the thread for you :wink:
mailtosarathy wrote:
Can you try building project from command line ?
[..]
We can isolate the issue Make/Studio?

So, it seems we are down to a matter of how Studio runs GNU Make - a problem with GNU Make itself is ruled out. I guess you'll have to wait until mailtosarathy returns to see what he thinks of this.

Apart from that, you now have a workaround.

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Poor Thorby, do your fingers hurt after typing such a long command? :mrgreen:

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks Torby,
Just to make sure, did you try to build several time from the command line ? (as said earlier in the thread the issue is not consistent)

If there are no issue with GNU Make then there could be issue in the synchronization with Atmel Studio. My guess is in the solution explorer where Output File, Dependency information is populated.
Created internal bug for this (AVRSV-4347).

:D

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

js wrote:
Poor Thorby, do your fingers hurt after typing such a long command? :mrgreen:
No need to do much typing. I avoid that at all costs.

If you don't want to put make.exe in the current folder, you can use a batch file. A batch file is a simple text file that contains one or more commands. The name of the file must have the .bat file name extension.

You can create a file called something like make.bat and put something like this in it.

"C:\Program Files (x86)\Atmel\Atmel Studio 6.0"\make\make.exe all

Then just type make.bat
The quotes are necessary because cmd shell can't handle file names containing spaces unless you use the quotes.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hardest part was getting all the silly spaces in the folder names right. At least I didn't have to include the path to the .net framework. Have you SEEN those silly folder names?

If you don't know my whole story, keep your mouth shut.

If you know my whole story, you're an accomplice. Keep your mouth shut. 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You do know that all versions of Windows from XP onwards have supported [Tab] completion at the Command Prompt? So if you need to type:

CD C:\Users\Tom\Documents\Atmel Studio\Mars2Led\Mars2Led\Debug

actually type

CD C:\Us[Tab]\T[Tab]\D[Tab]\At[Tab]\Ma[Tab]\Ma[Tab]\D[Tab]

You can probably type less than 2 characters for most of those and if the thing you are looking for doesn't appear immediately just type [Tab] again to cycle through the other names in the directory that match what you have typed so far. So you might be able to type:

CD C:\U[Tab]\T[Tab]\D[Tab]\A[Tab]\[Tab]\[Tab]\D[Tab]

Similarly to type the command to invoke Make use something like:

C:\Users\Tom\Documents\Atmel Studio\Mars2Led\Mars2Led\Debug>\P[Tab]\at[Tab]\[Tab]\ma[Tab]\m[Tab]

As soon as you get to "\Program Files" you'll see MS-DOS automatically adds "" around it to encompass the space before Files.

Unix has had [Tab] completion since pussy was a kitten so this is just another case of Microsoft finally catching up with a superior operating system. ;-)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

In Windows, drag-and-drop of a folder into a command window pastes the full path within quotation marks. Type cd , drop folder, hit return.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I just realized that I was to make more or less the same post as Clawson above..

So instead of re-iterating the TAB key functionality in a CMD window, I'll vent my thoughts:

I'm not anal re command prompt. I love a good GUI IDE just as much as I love the command prompt. It's not one or the other - its both! They are complementing each other. Some stuff is best/safest/fasters/whatever done on a command line, others in a GUI. If you've ever dragged something and accidentaly dropped in some unknon place you know what I'm taling about..

Now, I am puzzled that people that are advanced enough to program such close-to-hardware and intricate devices as microcontrollers do not know the basics about using a command line. Not in derogatory sense, but thinking of the levereage lost. You are really missing out on some powerful stuff!

For those of you using command lines, here are two tips:

- When on a command line and you want a Windows explorer for the current directory/folder: just type

start .

- Going the other way depends on Windows version: Windows versions up to XP: Get Windows Powertoys, and install the "Command prompt here" toy. For Vista and beyond: Hold down shift while right-clicking a folder and you will get an alternative context menu where you can start a command prompt with that folder/directory as default.

Small stuff, but makes woring with Windoze sooo much better!

I didn't know the trick that dak644 posted. Now I do! Thank you!

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

 start .


Interesting. I've always used:

explorer .

AFAICT they have exactly the same effect.

If we're comparing DOS tips I get an awful lot more mileage from

xcopy * dest /cher

than I ever get from trying to drag/drop folders to be copied.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Cliff!

start 

starts whatever application that is associated with the files type. E.g.

start sometext.doc

usually starts MS Word and opens that document.

As I understand it, directories are associated with Windows Explorer.

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

It's all very well discussing the merits of the command line, but it doesn't get us anywhere nearer to the solution of the original problem, access denied and or waiting for unfinished jobs.
I see this problem in the GUI and command line on a Win7 notebook, but not on my PC, also with WIn7. Both use the same input files on Dropbox.
Jerry

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
I see this problem in the GUI and command line on [...] input files on Dropbox.

There is too much going on here, too many symptoms, ways to test/workaround etc.

IMO, one thing to be done now is to collect the different symptoms, environments etc from the different reporters of the problem in this thread. I quickly browsed it but realized that for me this needs to be an evening activity - anyone up for it right now?

I'd like to see a tabular overview. For each problem reporter:
Windows version.
Version (incl SP) of Studio.
Is it a "hang" or is it "access denied"?
"Deterministacally repeatable" or intermittent?
Studio un as Administrator? (N.B.: It is nort enough to be logged in as an Adm, you must "Run as..")
Works on comand line?
Files on local drive, network drive, cloud drive (I assume Dropbox is in the cloud..)?
..and maybe more..

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I think we're barking up the wrong tree and the coon is long gone. By the time the make process runs, the file or folder is already set to R/O. If somehow we can manage to catch this getting set, we might be onto something.

BDOS ERROR ON B: R/O

If you don't know my whole story, keep your mouth shut.

If you know my whole story, you're an accomplice. Keep your mouth shut. 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

JohanEkdahl wrote:
Quote:
I see this problem in the GUI and command line on [...] input files on Dropbox.

There is too much going on here, too many symptoms, ways to test/workaround etc.

I'd like to see a tabular overview. For each problem reporter:
Windows version.
Version (incl SP) of Studio.
Is it a "hang" or is it "access denied"?
"Deterministacally repeatable" or intermittent?
Studio un as Administrator? (N.B.: It is nort enough to be logged in as an Adm, you must "Run as..")
Works on comand line?
Files on local drive, network drive, cloud drive (I assume Dropbox is in the cloud..)?
..and maybe more..

Here's a bit of information. The first part is for the working system, the second for the failing system.
Windows version: Win 7 Ultimate English on a PC, Win 7 Home Premium German on a notebook. Both with latest SP and patches.
Studio version: 6.0.1996 (SP2) on both
On "Build solution" (F7) with the failing system it usually says "access denied", then "Waiting for unfinished job", but less often just "Access denied". When waiting for an unfinished job the make.exe uses 50% CPU (with Task Manager, 2 CPU notebook). Continue the build with Cancel then F7 after "Waiting...", or just F7 after "Access denied". It eventually completes the build.
The behaviour is the same whether AS is run as administrator or not (I have admin rights).
Same behaviour when run on the command line or in the IDE.
Again the same when run on a directory copy residing on the local drive, rather than on Dropbox (cloud drive).
After Clean/Build solution or Rebuild solution the error disappeared!!! Tried this several times without the error appearing again. Common behaviour, if you try to investigate a bug it disappears.
Will try some more, and report if the bug reappears.
Jerry

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
After Clean/Build solution or Rebuild solution the error disappeared
That's pretty much what I have done the last few times it happened. (Win7 64 bit home premium)

The first time I tried several things until I stumbled on the clean and rebuild fix.

Well at least I didn't lose my dignity and self respect by going down to the command line level. :mrgreen:

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Seem I found the cause of this problem.
Using process monitor, last error make.exe gets is :

16:43:49,5810198	make.exe	5780	IRP_MJ_CREATE	C:\Users\ledvinap\AppData\Local\Temp\make5780-1.bat	DELETE PENDING	Desired Access: Generic Read/Write, Disposition: Create, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: NT, ShareMode: None, AllocationSize: 0
16:43:49,5811396	make.exe	5780	IRP_MJ_CREATE	C:\prace\sw\avr\ahr\ahr\Debug\make5780-1.bat	DELETE PENDING	Desired Access: Generic Read/Write, Disposition: Create, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: NT, ShareMode: None, AllocationSize: 0

So it seems that make.exe is trying to recreate make-1.bat file before operating system finished deleting old version and file creation fails.

This is race condition, some antivirus software (or windows indexing service) is probably necessary to trigger it.

Here is some info on this problem, but no workaround: http://stackoverflow.com/questio...

Fixing make.exe should be quite easy:
1: try again after short delay when .bat file creation fails
2: use different names for each .bat file

variant 2 will create problem with some application firewalls - if you approve each file manually, you can't tick 'remember' option (this is already a problem, but there are only few confirmations during each compilation now. Using different names will trigger onfigmation for EACH file compiled)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Got it a couple days ago and just used windoze exploder to mark it all R/W.

Today, made a new project, and DIDN'T have it happen. Hmm. So much for my theory on what caused it.

If you don't know my whole story, keep your mouth shut.

If you know my whole story, you're an accomplice. Keep your mouth shut. 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Two observations:

1. It still happens in Studio 6.1 beta.
2. It's not any FILES that are set to R/O, but the debug folder itself.

If you don't know my whole story, keep your mouth shut.

If you know my whole story, you're an accomplice. Keep your mouth shut. 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Setting Debug folder as ReadOnly causes Makefile creation failure.
I am unable to reproduce the issue.

------ Build started: Project: AVR32MakeTemplate, Configuration: Debug AVR ------
Build started.
Project "AVR32MakeTemplate.cproj" (default targets):
Target "PreBuildEvent" skipped, due to false condition; ('$(PreBuildEvent)'!='') was evaluated as (''!='').
Target "CoreBuild" in file "C:\Program Files (x86)\Atmel\Atmel Studio 6.1\Vs\Compiler.targets" from project "C:\Users\---\documents\atmel studio\6.1\AVR32MakeTemplate\AVR32MakeTemplate\AVR32MakeTemplate.cproj" (target "Build" depends on it):
Task "RunCompilerTask"
C:\Program Files (x86)\Atmel\Atmel Studio 6.1\Vs\Compiler.targets(5,5): MakeFileGenFailureException captured - Access to the path 'C:\Users\---\documents\atmel studio\6.1\AVR32MakeTemplate\AVR32MakeTemplate\Debug\Makefile' is denied.
AVR32MakeTemplate(0,0): Error in generating MakeFile
Done executing task "RunCompilerTask" -- FAILED.
Done building target "CoreBuild" in project "AVR32MakeTemplate.cproj" -- FAILED.
Done building project "AVR32MakeTemplate.cproj" -- FAILED.

Build FAILED.
========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ==========

:D

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

@ledvinap

Quote:
2: use different names for each .bat file

In my PC each time make generates with a random numbered file name in the temp folder.
like make3680-1.bat, make2940-1.bat

@Torby:
Do you have any Antivirus installed in your PC ?

:D

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I use AVG.

If you don't know my whole story, keep your mouth shut.

If you know my whole story, you're an accomplice. Keep your mouth shut. 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Ok, I got tired with this problem.
Pach for http://gnuwin32.sourceforge.net/... is attached.
Build it with minGW, from msys shell:
./configure --enable-case-insensitive-file-system
make

Then copy make.exe to shellUtils in Atmel Studio 6.1 instalation directory (or other version)

My version is http://home.zcu.cz/~ledvinap/mak..., it may work. Some dll (msys-1.0.dll) may be needed in shellUtils directory. No guarantee that my system and thus the exe is virus free.

Bug http://savannah.gnu.org/bugs/ind...
After this is confirmed, other affected projects should be probably notified...

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

mailtosarathy wrote:
@ledvinap
Quote:
2: use different names for each .bat file

In my PC each time make generates with a random numbered file name in the temp folder.
like make3680-1.bat, make2940-1.bat

:D


The number is pid of make.exe process, attached -1 is incremented as long as there is name collision.

Last Edited: Fri. Mar 29, 2013 - 09:34 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Your patch takes care of whatever is setting the folder to readonly?

If you don't know my whole story, keep your mouth shut.

If you know my whole story, you're an accomplice. Keep your mouth shut. 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Torby wrote:
Your patch takes care of whatever is setting the folder to readonly?

At least my problem is not caused by readonly folder. There is bug in make for windows that causes 'permission denied' error for me and this patch (in most cases) fixes this bug. If there is another bug with same symptoms, I'am not bitten by it.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I've never had this problem. I've only created a few projects and they went without any problems.

If I remember correctly, Atmel's default location for projects is in user/documents/.... I don't put them there. I put them in another folder completely outside any Microsoft stuff. I use a different partition. Could that be the difference?

I don't use AVG. On that computer I use Microsoft Security Essentials.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I am fed up with this. My AS6.0 has started this lark.
So I downloaded AS6.1 and find exactly the same feature.

It takes about 50 cancel/build steps to ever get a finished application.

Where should I look for locked files?
Is it a corrupted make.exe ?

I never had this problem with AS4, CodeVision, Rowley. In fact AS6.0 used to work fine for me.

David.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I haven't seen it for a while now. Probably will tomorrow now that I said something.

When you get it, first click the cancel button. It looks like a stack of papers with an x. This stops the hung make operation. Then use windoze exploder to navigate to your folder. Right click the folder and select properties. You'll see that ReadOnly is on. Click to turn it off and click apply. It will ask if you want to apply it to sub folders. Yes, apply it to sub folders. After that, make will work for you. Not guaranteed to stop working tomorrow.

If you don't know my whole story, keep your mouth shut.

If you know my whole story, you're an accomplice. Keep your mouth shut. 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

Where should I look for locked files?

There are several utilities that can reveal "who" has locks on files. PRocess Monitor from Sysinternals is one, IIRC. I have also used a utility called Unlocker at times.

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

This laptop runs on Vista-32. So Microsoft ensured that CHM files don't work.

I installed ProcessExplorer but it is a bit useless if I can't read its Help files.

It appears that several people have encountered this special feature of AS6 Make. So presumably, someone knows what file of what directory is causing the problem.

David.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

but it is a bit useless

The key function is the Find menu. Just type the whole or even just part of the name of a file you want to know about and it'll tell you which process has it locked.

If you ever get that error when you try to rename or delete a file that "can't do it, another process has this locked" then the Find command in ProcExp is the way to do it.

Other than that it's just very similar to Task Manager though I like things like the hierarchical display. In the main display area click the "Process" column heading to alternate between views - I like the one with the indent.

As for reading help. For some reason my XP VM has stopped reading .CHM files but what I can do on my machine because I really have everything on top of Linux is make sure the .chm is in a place both Windows and Linux can see then use kchmviewer which is an excellent Linux utility for reading .CHM files.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Ok. I run AS6.1 and it stops with a "make: *** Access is denied." message.

I use Process_Explorer's "Search make" and it reports:
atmelstudio.exe: PID=1304
make.exe: PID=6044

It tells you 2*DLL / 1*File / 2*Process / 1*Thread
If I click on any of these lines, I get another window open up with hundreds of entries.

So I have no idea what to do next.
Is there a file that is locked, or a directory without read permission?

I just want to run either AS6.0 or AS6.1 without enormous grief.

I use native Windows. It seems a bit complicated to run Linux so that I can read CHM files in a Virtual machine. If Microsoft want to ban CHM files, surely they should invent an alternative?

David.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Before you go any further I have read a post here with at least an explanation if not a solution to this problem. It might even be in this thread (I haven't read it all yet) but someone who seemed to know what they were talking about said it actually occurs because of some kind of race condition. I would find that post first before doing any more.

I'll see if I can find it...

EDIT: that was easy - it was in this thread:

https://www.avrfreaks.net/index.p...
and from there to:
http://stackoverflow.com/questio...

If that investigation on stackoverflow is what's happening then I cannot see that any end user could do much to change things - It'd be up to Atmel to change the create/delete/create nature of what the IDE is doing.

In the meantime what happens if you add a button to the toolbar that does nothing more that "make -f somemakefile" to do the building instead?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

It does seem to be affected by my "Kaspersky Anti-Virus".
If I disable KAV, I can build ok.

If I just add atmelstudio.exe to the KAV exclusions, I still get failure.

I really don't want to go disabling KAV every time I want to run AS6.1 (or AS6.0)

Or is the problem down to Make trying to be too clever?
e.g. trying to run several tasks at once.

I am quite happy for anti-virus software to slow things down. I don't want the result to be a complete STOP.

I have used Kaspersky for years. It can sometimes slow things to a crawl, but never STOPPED me using Studio.

David.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hmh... Tried adding make.exe to the KAV exception list? It should be available under the shellUtils folder in the Studio installation directory...

:: Morten

 

(yes, I work for Atmel, yes, I do this in my spare time, now stop sending PMs)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yes. That was the first thing that I tried.
I have added both atmelstudio.exe and make.exe to the exclusions.

I have also tried with/without scanning Files or Network traffic.

It seems that I have an unusable AS6.0 and AS6.1

David.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

I have an unusable

I agree - just because some AV might delay a file access the thing doing the file accesses shouldn't be so sensitive that it's completely stymied.

At the very least put in a bit of a back off strategy so if you get an "access denied" error back off 10ms then try again, then 100ms then try again and so on. Give in if you can't do it after say 20 seconds or something like that.

The post I linked to in this thread identifies the .bat file that it's having a problem with.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

david.prentice wrote:
This laptop runs on Vista-32. So Microsoft ensured that CHM files don't work.
Have you tried this?
http://blog.crowe.co.nz/archive/...

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

No, I haven't tried it. Until now:

Quote:
The page cannot be displayed because an internal server error has occurred.

I have always understood that CHM is just "compiled HTML". So I really don't understand why it should be banned by Microsoft.

Ah-ha. You can't read CHM from Explorer or command line, but you can from within ProcessExplorer.

It is still not too much good. I don't want to mangle the generated Makefile(s). I don't want to change anti-virus software unless it is a problem with KAV.

From other reports, it seems to be a special feature of AS6.x. After all, other IDEs don't behave like this. Most of them are effectively doing the same build operation. i.e. running gnu-make

David.

Edit. I have just installed AS6.1 on a Win7 64bit Desktop PC. I get exactly the same behaviour. Likewise with the existing AS6.0 installation.

So I have come to the conclusion that it is due to my Kaspersky Anti-Virus (on both PCs)

Since KAV is a common program, I presume that there are several AS6.x users out there with KAV. Is it me? Or do you have problems too?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I installed 6.1 today and also had the same issue trying to build the default AVR project. The issue was indeed my Kaspersky AV! I clicked on "Pause Protection" and I was able to build it with no issue. Re-enabled it and back to the old permission denied, blah blah issue. That is the fix for me!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

So this is a KAV problem.
Either Kaspersky will solve this or other AV vendors will introduce the same 'feature'.

I don't seem to have this problem with Rowley (ARM). So somehow I wonder if it is Atmel's responsibility.

David.

Quote:
I clicked on "Pause Protection"

I don't see this 'option' in AS6.1. Where did you find it?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

david.prentice wrote:
So this is a KAV problem.
Either Kaspersky will solve this or other AV vendors will introduce the same 'feature'.

I don't seem to have this problem with Rowley (ARM). So somehow I wonder if it is Atmel's responsibility.

David.

Quote:
I clicked on "Pause Protection"

I don't see this 'option' in AS6.1. Where did you find it?

This is on the Kaspersky tool button in your tray...

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

david.prentice wrote:
So this is a KAV problem.
Well, it's not isolated to KAV. I have this problem also and I'm using AVG.

Don

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

If you guys with the anti-virus problem aren't using the latest release of your A/V you might try updating that.

In the past I've had a couple of problems somewhat similar to this when running NOD32. Updating eliminating the problem. NOD32 updates the virus database daily but doesn't update the antivirus program automatically.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

KAV updates its databases and program automatically.
I presume that most AV programs do the same.

If other IDEs can manage to operate with AV programs, I don't see why AS6.1 (or AS6.0) should not be able to do the same.

It appears that I have two choices:
1. Disable AV whenever I want to run AS6.1
2. Convert the AS6 project back to AS4.

I tried (1) via "Pause Protection for 15 min" --- thans to budude

I then tried (2). You certainly notice the advantages of a (working) AS6 when you go back to AS4.

In fact, I concluded that developing an Xmega C++ project on AS4 was my best choice. I was not happy with the idea of introducing viruses via (1). Using a Dragon JTAG with an Xmega is certainly a SLOW procedure on AS4.

I will wait until the AS6.1 "feature" resolves itself. I dread to think what AS6 would be like with the SAM chips. At least I can use Crossworks ARM with no pain.

David.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Just bumping this topic.

I presume that there must be thousands of AS6.x users running on real Windoze PCs.

I presume that most of these users will have an Anti-Virus program of some kind.

Kaspersky used to work fine with AS6.0 until a few weeks ago. (without even adding atmelstudio.exe or make.exe to the exclusions)

Now AS6.0 and AS6.1 don't work with KAV. (and AVG too)
Yes, I have explicitly excluded atmelstudio.exe and make.exe

Which Anti-Virus programs does AS6.1 actually work with ?

Why do other IDEs function correctly ?

David.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The inherent complexity of anti-viral programs, combined with the modular complexity of Atmel Studio, makes this a nightmare case IMO.

Some, likely minute, change in AS6 hasmade it incompatible with some anti-viral software. It might be a matter of timing. It might be a matter of AS6 now doing something that makes the anti-viral software think it is suspicious and in need of a closer look. It might be a case of anti-virus definitions having been updated and producing this false positive. Or any combination of these..

These things are a nightmare for application programmers. They will most likely not get any help from the anti-vuris software makers. Chances are they are using undocumented, or even "unknown" APIs and similar to get their work done.

I do not envy the AS6 developers in this matter..

----------

I see nothing above that positively establishes that it is make.exe that runs into the lock. It might be something that make.exe runs (e.g. avr-gcc) but that make reports with its prefix.

Is the problem known to exist in all Kaspersky/AtmelStudio combos out there or are there only a few?

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Johan,

Do you run native Windoze or Linux with Windoze in a Virtual Machine?

I agree that it must be a nightmare for the AS6.1 developers. But AS6.1 is probably less complicated than Eclipse and most ARM development IDEs.

Yes I agree that "make.exe" is the most likely culprit. If I open a command window in my AS6.x project folder, make fails here too. i.e. executing the AS6.x generated Makefile.

David.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

Yes I agree that "make.exe" is the most likely culprit.

My point was that it might not be make at all, but something that make in turn runs.

What happens if you tinker together e.g. a .bat file that do the build process. (Should not be very hard - essentially you pick up the build output, clean it up a bit and place it in a .bat file) Does that fail too?

My point with the "nightmare" is
1) that even a minute difference might or might not trigger something in the anti-viral software
2) different anti-viral sotware are ... different. So what triggers one will not trigger another
3) I would suspect that anti-viral software are the most likely to use un-documented, or non-public APIs
4) The new version of AS6 might use some new APIs (or newer versions of previously used ones that are somewhat different in their implementation).

All this makes the fault-seeking for an AS6 developer a nightmare. As I said - I do not envy them in this case..

Also, this might not have anything to do with viruses proper. It might just be a problem with timing or some such - e.g. the anti-viral software keeping a lock a wee bit too long on something that e.g. avr-gcc wants to write to. Or something like that...

----------

As for me, my setup is not at all involved in this - I was merely trying to put my perspetives on this (having eveloped on Windoze for 20+ years). I use Windows Vista (non-virtual) for my AS6 machine(s). I do not use Kasperksy, but rather Microsoft Security Essentials. (Nothing of this is a statement of something being better than the other - just making the lay of the land clear.)

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yup.

make -n > tit.bat
tit.bat

This works just fine. Obviously without any error checking.

Yes, perhaps this would be an effective workaround. i.e. I just build a BAT file and execute it myself (handling the error return values) .

Presumably MSE works ok with AS6.1
But then again, KAV used to work ok with AS6.0

David.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

Yes, perhaps this would be an effective workaround

I was thinking of it as a way to determine the cause of the problems.

It might be interesting to see the output of a build both from a run of Make, and a run of the corresponding .bat file..

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Microsoft Security Essentials seems to work okay with Studio 6.1.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Well, I just made a quick kludge.
I compiled this and then added it to my External Tools menu, asking it to run in the $(TargetDir)

This seems to work fairly painlessly. I may even have another attempt at AS6.1 now !!!

#include 
#include 
#include 

void main(int argc, char **argv)
{
	FILE *fp;
	char buf[1024], *line, *arg;
	int ret, verbose = 0, clean = 0;
	volatile long delay = 10000000;
	while (--argc) {
		arg = *++argv;
		if (strcmp(arg, "-v") == 0) verbose = 1;
		if (strcmp(arg, "clean") == 0) clean = 1;
	}
	if (clean) {
		ret = system("make clean");
		while (delay--);
	}
	ret = system("make -n >batchcmd.bat");
	fp = fopen("batchcmd.bat", "r");
	ret = 0;
	strcpy(buf, "if 1==1 ");
	line = buf + strlen(buf);
	while (ret == 0 && fgets(line, 1000, fp) != NULL) {
		if (verbose) printf("%s\n", line);
		ret = system(buf);
	}
	fclose(fp);
	if (ret != 0) {
		fprintf(stderr,  "command \"%s\" returned %d\n", line, ret);
	}
	exit(ret);
}

David.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I run AVG full version on all 5 computers I have including the laptop with AS6.1 (win7 64 bits).

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Again,

Quote:
It might be interesting to see the output of a build both from a run of Make

If the circustances points to Make as the culprit then it might have something to do with how Make is invoked, if it forks several compiler processes in parallell etc..

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Johan,

I don't really care. Redirecting "make -n" into a list of commands works ok.

If I just run make from a command line, it fails with a "Waiting for unfinished jobs". I can only recover by using Taskmgr.exe to kill the make.exe

This happens whether I start the command line myself or via the AS6 Tools menu. One gives me WinAvr-2010 at the head of my PATH, the other gives me Studio 6.1 at the head of my PATH.

If I just type "make -v", I get "GNU Make 3.81 ... (C) 2006 ... built for i386-pc-mingw32"

I have verified that this is the make.exe found in Studio 6.1/shellUtils

David.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

This problem is getting a bit old, and we're getting nowhere nearer to a fix.
It appears at every Build on a notebook with German Win7 Home Edition, but never on another PC with English Win7 Ultimate. Both have AS6.1
It is not fixed by clean, deleting Makefile, rebuild
Jerry
PS Also no nearer to a fix

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

Also no nearer to a fix

So, re read the recent traffic in this thread. Gather evidence as to why this happens and where. Present that information in a structured and orderly fashion here.

I believe that no AS6 developer will be able to nail down and fix this (if it is even AS6 that needs to be fixed..) based on the information available given above.

It is sad that David Prentice "don't really care". He has the skills and other things needed to start gathering real evidence as to what goes wrong. It is extra-sad since he has already taken it to a point where AS6 proper is ruled out, but GNU Make is ruled in. The next step might be to do a test running the same makefile but based on e.g. the EinAVR2010 version of the tool chain.

Almost all fault seeking relies on
- having access to a system that displays the fault, and
- dividing the problem space into smaller and smaller pieces - putting up new hypothesis and accepting or rejecting them along the way.

David has the former, and was well on the way with the latter.

If Atmel does not have the former then they will have a hard time hunting this down, methinks.

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

As far as I can see, GNU-make v3.81 should be perfectly robust. i.e. it is not "new".

There are four copies of "make.exe" in my "/Program Files" folder. They have the same size but different timestamps. I have cmp-ed them and they are identical. The Toolchain version is timestamped 2006 !

OTOH, I bet that they end up using a DLL somewhere along the line.

To be honest, I am a little stuck. What should I try? I am on a Vista-32 laptop at the moment. I get the same behaviour with a Win-7 64-bit PC.

At least I can use the AS6.1 now. The simple batchcmd.exe means I can BUILD or REBUILD a project from the Tools menu.

If any other IDE behaved like AS6.x I would be very upset. OTOH, I don't expect much support from Kaspersky or Atmel. Without offering either company an accurate bug report and solution, I doubt if they would be interested.

It appears that some AVG users (donblake) have problems. Others are ok.

@jerryr,
Which AV program are your machines using?

David.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

There are four copies of "make.exe" in my "/Program Files" folder. They have the same size but different timestamps. I have cmp-ed them and they are identical. The Toolchain version is timestamped 2006 !

However note this:

E:\WinAVR-20100110\utils\bin>dir make.exe
 Volume in drive E is VBOX_windows
 Volume Serial Number is 0000-0801

 Directory of E:\WinAVR-20100110\utils\bin

19/01/2010  19:10           166,400 make.exe
               1 File(s)        166,400 bytes
               0 Dir(s)  379,093,434,368 bytes free

E:\WinAVR-20100110\utils\bin>make -v
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i386-pc-mingw32

that's also a 3.81 make.exe and yet it is different in almost every conceivable way to the one shipped by Atmel!

Personally I don't see the point of putting a "3.81" version number on something if it says nothing about what the software contains or how it behaves!

This whole thing appears to be some timing sensitive race condition so it could be triggered not just by AV software but how much RAM your PC has for caching, how fast your HDD is and other things like that. I imagine that without being able to reliably recreate it (and determine if it really is make.exe at the cause) then it will be close to impossible for Atmel to fix it.

This might even involve them borrowing a laptop or something or at least sending someone who's afflicted modified version of make (or whatever) to try out.

if it is a timing/race thing then adding logging to find out more about what's going on will be a bit like poisoning cats in boxes!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

david.prentice wrote:
You asked which AS version is being used

Dear David,
I'm using AS 6.1.2562, the latest and greatest
At least I have two systems to compare, and will see what differences there are, apart from the Win7 revs and languages. I'll also look for more error messages.
Jerry

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I wanted to know the AV (anti-virus) program you were using.

Yes, I could disable Kaspersky Anti Virus and solve all the "make" problems. But this seems a very unsafe way to operate Windoze.

David.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I'm still running into this problem even with the latest Atmel Studio update.

Use to be if I did a "cancel" & "clean" I could recover. Not anymore.

What seems to work now is "cancel", "clean" then delete the Debug folder (it's now empty after "clean").

Don

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
What seems to work now is "cancel", "clean" then delete the Debug folder (it's now empty after "clean").

I'm afraid to say that your suggestion didn't work for me.
When it's waiting for unfinished jobs the Debug directory is write protected, but not the files within it. I cancelled the make, removed the write protection, and continued with the build. After a few files it waited again, and the Debug directory was write protected anew...

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

How very odd. Today, my normally docile and cooperative pixie is setting the folder to read/only as fast as I can set it to read/write.

If you don't know my whole story, keep your mouth shut.

If you know my whole story, you're an accomplice. Keep your mouth shut. 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Uninstalling AVG free antivirus has had no effect.

No. Now, I am able to make again.

If you don't know my whole story, keep your mouth shut.

If you know my whole story, you're an accomplice. Keep your mouth shut. 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

david.prentice wrote:
Yes, I could disable Kaspersky Anti Virus and solve all the "make" problems. But this seems a very unsafe way to operate Windoze.
David.

My setup: Atmel Studio 6.1 on Windows 7, Kaspersky anti-virus.
I got the same error when building my project.

i ran make from command line, using the project/debug folder as path:
"C:\Program Files (x86)\Atmel\Atmel Studio 6.1\shellUtils\make.exe" all

Examine of building log shows make got stuck after "Invoking: AVR8/GNU Linker"

Invoking: AVR8/GNU Linker : 3.4.2
"C:\Program Files (x86)\Atmel\Atmel Toolchain\AVR8 GCC\Native\3.4.2.1002\avr8-gn
u-toolchain\bin\avr-g++.exe" -o project_0101.elf project_0101.o -Wl,-Map="project_0101.map" -Wl,--start-group -Wl,-lm -Wl,-lcore -Wl,--end-group -Wl,-L"C:\sanguino_core" -Wl,--gc-sections -mmcu=atmega644
Finished building target: project_0101.elf
make: *** Access is denied.
. Stop.
make: *** Waiting for unfinished jobs....

Solution: add the following programs to the antivirus trusted application list:

C:\Program Files (x86)\Atmel\Atmel Studio 6.1\shellUtils\make.exe

C:\Program Files (x86)\Atmel\Atmel Toolchain\AVR8 GCC\Native\3.4.2.1002\avr8-gnu-toolchain\bin\avr-g++.exe

C:\Program Files (x86)\Atmel\Atmel Toolchain\AVR8 GCC\Native\3.4.2.1002\avr8-gnu-toolchain\bin\avr-objcopy.exe

clean project & rebuild, now build is working as it should.

Last Edited: Wed. Jul 17, 2013 - 11:22 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I have AS6.1 on a Win7 64bit PC with KAV
I can assure you that this does NOT work for me.

I suspect that you will still have problems. Please let us know how you get on.

If you have solved it, perhaps we could compare notes.

David.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

david.prentice wrote:

I suspect that you will still have problems. Please let us know how you get on.

hi david.
you where right. i still got errors after restart of atmel studio.

I've set KAV to exclude all programs for the bin directory:
C:\Program Files (x86)\Atmel\Atmel Toolchain\AVR8 GCC\Native\3.4.2.1002\avr8-gnu-toolchain\bin\*

now it seems to work...
can you check if it's working for you as well?

EDIT: i spoke too soon. still got build errors but less frequent.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The solution that worked for me, and one that avoids modifying AV settings, is to replace AS6.1's version of Make with the latest (v4 at time of writing).

Either grab the attached file and copy into INSTALL_PATH\Atmel\Atmel Studio 6.1\shellUtils, or follow the instructions below to build it manually.

Grab the latest tar.gz from: http://git.savannah.gnu.org/cgit/make.git. Follow the instructions in README.W32.template, and build a release version using Visual C++ express (I used 2010) or similar. Copy the final binary to INSTALL_PATH\Atmel\Atmel Studio 6.1\shellUtils.

Edit: The zip is getting corrupted each time I upload it. Recommend using the skydrive version posted by steve17, or building it manually using the steps above.

Attachment(s): 

Last Edited: Sun. Dec 29, 2013 - 08:36 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Your ZIP file is invalid in Windoze.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

david.prentice wrote:
Your ZIP file is invalid in Windoze.
It opens in my Windows. Open and 7-zip Open Archive both opened it and extracted make.exe. Both extracted make.exe files seem identical and both ran okay.

Maybe you got a bad download. I take no chances. I download everything with Free Download Manager.

The bad news is I don't have a use for it. ;) My Studio works okay. I guess I'm using GNU Make 3.81. At least that is what is in Studio's shellUtils folder.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Well, it does not open with Windoze or 7-Zip on my Vista32 laptop.

I build a .BAT file and execute it myself.
I would dearly like to use AS6 as nature intended.

Since every other IDE works, I don't see why AS6 should fail with KAV with both Vista-32 laptop and a Win7-64 desktop PC.

David.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Agree with Mr. Prentice

Attachment(s): 

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I downloaded this 142 kB file from 5 posts above this one. It is a good zip file. I use FreeDownloadManager.

The Win7 Windows Explorer will open it after I download it. I just click on it. Also 7-Zip opens it.

If I just click on the post's Download button while using I.E.10, that corrupts it.

I could put it up on the internet on SkyDrive. Hopefully you can download it from there.

Last Edited: Sun. Dec 29, 2013 - 02:16 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

steve17 wrote:
I downloaded this 142 kB file from 5 posts above this one. It is a good zip file.

Show it open! :wink:

I tried Windows Explorer on Win 7 and 8, WinRAR, 7-Zip, PeaZip, and WinZip. No dice. Maybe it is an AVRfreaks server problem.

Please PM me the downloaded file. Better yet make a new zip and post it here.

"I may make you feel but I can't make you think" - Jethro Tull - Thick As A Brick

"void transmigratus(void) {transmigratus();} // recursio infinitus" - larryvc

"It's much more practical to rely on the processing powers of the real debugger, i.e. the one between the keyboard and chair." - JW wek3

"When you arise in the morning think of what a privilege it is to be alive: to breathe, to think, to enjoy, to love." -  Marcus Aurelius

Last Edited: Sun. Dec 29, 2013 - 02:30 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I put it on the internet. Both makev4.zip and make.exe. I tried downloading them to my computer and they both work. make.exe shows up on skydrive as make. makev4.zip shows up as a folder named makev4.

You are probably better off downloading the zip. Windows gets nervous downloading .exe files.

https://skydrive.live.com/?cid=b...

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

That .zip works fine. The original will still not open even if downloaded again.

Thanks

"I may make you feel but I can't make you think" - Jethro Tull - Thick As A Brick

"void transmigratus(void) {transmigratus();} // recursio infinitus" - larryvc

"It's much more practical to rely on the processing powers of the real debugger, i.e. the one between the keyboard and chair." - JW wek3

"When you arise in the morning think of what a privilege it is to be alive: to breathe, to think, to enjoy, to love." -  Marcus Aurelius

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yes, if I download from here by clicking on the download button I.E.10 corrupts it.

Like I said, I normally download with FDM. For some reason I can use I.E.10 to download from SkyDrive without using FDM and get a good download. Maybe SkyDrive uses a different protocol.

When I used XP, I could go to the internet with Windows Explorer and do a drag and drop. Apparently Microsoft disabled that for security reasons. Back then, Windows Explorer and Internet Explorer used the same favorites. Now things have changed and I'm never sure just how SkyDrive works, but usually it does work.

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

No, I don't think it's an IE problem. I have had no problems at all with other .zip files here on the forums. Even Chrome does not download the original .zip as a valid .zip file. IMO there is still something wrong with the file, perhaps a security issue.

I was able to download and open it with FDM as you did. If this is a security issue, the fact that FDM opened it is a worry to me.

WARNING: As the OP only has 1 post here, I will not be running the .exe any time soon. I suggest that others do not either.

"I may make you feel but I can't make you think" - Jethro Tull - Thick As A Brick

"void transmigratus(void) {transmigratus();} // recursio infinitus" - larryvc

"It's much more practical to rely on the processing powers of the real debugger, i.e. the one between the keyboard and chair." - JW wek3

"When you arise in the morning think of what a privilege it is to be alive: to breathe, to think, to enjoy, to love." -  Marcus Aurelius

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
I.E.10 corrupts it.
I'm using Firefox at the moment.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Strange. Very strange.

@js, I did try to use Firefox (version 22) but the attachment didn't show up in the post.

P.S. Captcha fun: My IE is now offering suggestions for captcha.

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

OP here. Even I can't extract it. Tried using 7zip to create a new archive based on a local copy, and it still doesn't work. I've edited the original post to recommend steve17's skydrive copy.

As an aside, I agree with larryvc's comment:

Quote:

WARNING: As the OP only has 1 post here, I will not be running the .exe any time soon. I suggest that others do not either.

Safest thing to do is follow the instructions and create a binary yourself. The compiler is free, and AFAIK, comes with everything needed to build it.