General compile error in Atmel Studio 7

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

I restart my computer (for it has not been off for months). Then, I found an only error message for every program when compiling in Atmel Studio 7, even if only a loop inside.

For example:

/*
 * 1.c
 *
 * Created: 2017/8/3 11:56:41
 * Author : Frank
 */ 

#include <avr32/io.h>

int main(void)
{
    /* Replace with your application code */
    while (1)
    {
    }
}

,which generates:

Severity Code|	Description	                        |Project	|File	                                                        |Line
Error		 |  recipe for target 'main.o' failed	|1	        |c:\users\frank\Documents\Atmel Studio\7.0\1\1\Debug\Makefile	|79

However, before being restarted, the compile processes are successful. I have tried to restart the software several times, but no use.

What should I do to resolve that problem?

Last Edited: Thu. Aug 3, 2017 - 11:17 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 2

First, show us the complete build output:

 

  1. Do a Rebuild
  2. Switch to the Output tab
  3. Mark/select everything
  4. Copy (ctrl-C)
  5. Paste (ctrl-V) in a post here

 

There will be more info in the complete build output than in the single error meessage you poste4d above. This extra info will help us diagnose your problem.

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: 2

Is the "Error List" the most serious barrier to AVR development that exists or what? It is quite hopeless. I just wish Studio would leave the Build Output tab in context when a failing build ends!

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

Thanks for your help. I found a keyword:"Access is denied" so I know that it should be started as administrator. Then, I set the 'advanced' settings for 'general' of the property of the AS ico and tick "run as administrator".

Finally, it compiles successfully.

 

This is the output log: (only part of the log, cannot find the log file)

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

The thing is that you should not need to be Admin to run AS7 so there's something else wrong here - like it's configured to create files in the wrong place or something.

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

MrAn wrote:
This is the output log: (only part of the log, cannot find the log file)

Incredible.. How was my detailed instructions misunderstood...?

 

The Output window I was talking about is prominent in the last screen shot you posted. To make it clear I bhave marked it with a red frame below. Mark everything in it (with ctrl-A so you get all  that is scrolled out also). Copy and paste in a post here.

 

 

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]

Last Edited: Fri. Aug 4, 2017 - 01:38 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

However, as he said, the picture is enough to show the root cause of the error here (unlike the excrable "Error List"). The key thing is the "Access denied" - so a permissions issue it seems.

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

I see that now, Cliff.

 

So, is the active user, when trying to build, actually "Frank"?

Or is this about another user trying to build a project that is under Franks home directory?

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

We see a lot of threads about permission errors when AS7 tries to build but it's never very clear what the root(! groan) cause of this may be. I would have thought that everything runs in the context of the logged in user and in areas of the drive where they would be expected to have the right permissions. Wonder if it is anti-virus or something getting in the way and saying "oh no, you can't write there, dodgy area" or something?

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

So being an Administrator incapacitates the anti-virus software? That would be somewhat weird..

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 have to say that there is only one error shown on the error list. This kind of matter has happened before for Arduino, Visual Studio, etc. I installed it and was able to use it without root permission but root permission was needed after rebooting. The anti-virus software that I use is Avast! that has never set the limit of the programming software.

And, here is the error picture.

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

MrAn wrote:
I have to say that there is only one error shown on the error list.

Are you always this stubborn? What is stopping you from copying the build output and show it to us? The immensely tiring effort of it? The possible misconception that we do not know what we're doing?

 

If you think you know better, then why come here to ask?

 

This has to be one of the most stupid things this year (I'm definitively talking about this thread, absolutely not the person).

 

I'm out.

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]

Last Edited: Sat. Aug 5, 2017 - 08:53 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

clawson wrote:
We see a lot of threads about permission errors when AS7 tries to build

 

Perhaps the OP has put some/all of his/her project files in the Studio installation location - under 'Program Files' (or whatever) ?

 

That might work as Administrator, but Windows will certainly complain for other users.

 

Also, some apps offer the option to 'install for all users, or current user only' when installing - can't remember if that applies to AS ... ?

 

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...