Problem compiling gcctest1.c

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

I use AVR studio 3.53 and gccavr 3.0.2.

Compiling gcctest2.c and furter is no problem. However, when compiling gcctest1.c I get the following message in the project-output-window:

Errors detected during link stage,
Stopped

No files are generated. I've got the same problem with some (not all) other c-files.

Does anyone have a hint what the problem could be: avrgccc, makefile or avrstudio?

I think avrstudio doesn't even start the gcc_cmp.bat file, since I don't even get the message -----begin---- in the output window.

But why do I have this problem only with some files and not all. This makes me think it's something with the makefile????????

admin's test signature
 

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

What platform are you running on? Win 98, ME.....?

admin's test signature
 

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

Win 98.

Somehow I got this problem solved with the file gcctest1.c, but I'm not sure how.

With some other files I still have this problem.

Maybe It has something to do with pathnames!?
Maybe avrgcc doesn't want the pathnames to be to long or maybe there are no spaces allowed?

admin's test signature
 

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

I had similar problems when setting up on Win98. When I scrolled to the top of the output window I noticed that sometimes it would say out of environment space.
I finally went to the windows directory and checked the properties of the _default.pif. The environment was set to Auto. I changed it to 1024 and all has been okay.

Maybe it would help your problem?

Mike H.

admin's test signature
 

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

I might have found the (another part) of the problem:

AVR-Studio somehow expects to get the message "Errors none" from avrgcc.
There are some lines in the makefile which generate this message, for instance:
%ok:
$(SIZE) $(TRG).elf
@echo "Errors: none"

The makefiles I was using did'nt generate this message for AVR-Studio, so AVR-Studio concludes that something has gone wrong.

admin's test signature