WINAVR & AVR-GCC problem on vista

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

Hi all,

I have just installed WINAVR and avr-gcc on a PC with the Vista operating system. The install went well but when I try to compile a simple test program the compiler reports:

"fatal error: opening dependency file dep/test.o.d: No such file or directory compilation terminated"

I know I am missing something in the configuration or my setup. Any ideas on where to look?

Thanks,

A

AVR Studio 4 Ver. 4.18 684
avr-gcc Ver. 4.3.0
ISIS 7
ELECTRA

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

The makefile is looking for a subdirectory to your project directory where the automatically generated dependency files should be placed.

What happends if you try to create an empty "dep" directory before you attempt the build?
Have you been messing around with the makefile (eg. so that the dependency files are not generated)?

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

Maybe just try a "clean" and the "build" or even easier "build all"

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

Johan,
Looks like avrfreaks.net is up again.

I have not made any changes to the makefile or to the
directory structure but the compiler still gives the
same complaint.

I thought that the creation of a "new project" would
setup the directories required. Am I wrong?

Thanks,

A

AVR Studio 4 Ver. 4.18 684
avr-gcc Ver. 4.3.0
ISIS 7
ELECTRA

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

Maybe check your read/write permissions for any subdirectories below your project directory? You will need to be able to read and write to anything below your project directory. IIRC, Vista gets overly pedantic (and annoying) about permissions.

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

I've found the 'no such directory' error can come when folks do not accept the default directories when they install WinAVR and AVRStudio. You can follow Johan's advice and look at the makefile to see if it is using the directory path that you think it should be using, if not then either reinstall the programs and accept the defaults or modify the makefiles each time you run AVRStudio.

Smiley

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

Guys,
I think EW has nailed it. After following Johan's advice and inserting the "dep" directory the error
goes away and is replaced by some other directory missing errors. I will try and track those down and
report what I find.

Thank you Bill Gates and Co.

A

AVR Studio 4 Ver. 4.18 684
avr-gcc Ver. 4.3.0
ISIS 7
ELECTRA