go away spammer

Author Topic: AVR Studio Error - $50 Robut  (Read 9153 times)

0 Members and 1 Guest are viewing this topic.

Offline StragenTopic starter

  • Jr. Member
  • **
  • Posts: 12
  • Helpful? 0
AVR Studio Error - $50 Robut
« on: November 01, 2008, 04:36:55 PM »
Well, I've done a little C programming, but I'm unfamiliar with the error I'm getting:

Quote
Compiling: Photovore_v1.c
avr-gcc -c -mmcu=atmega8 -I. -gstabs   -O0 -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=Photovore_v1.lst  -std=gnu99 -Wp,-M,-MP,-MT,Photovore_v1.o,-MF,.dep/Photovore_v1.o.d Photovore_v1.c -o Photovo
re_v1.o

Photovore_v1.c:108: fatal error: opening dependency file .dep/Photovore_v1.o.d: No such file or directory
compilation terminated.
make: *** [Photovore_v1.o] Error 1
Build failed with 1 errors and 0 warnings...




I followed Adman's instructions to the letter. Still getting the error.

I'd appreciate any help...
Stragen
« Last Edit: November 01, 2008, 08:28:38 PM by Stragen »
"Consistency is the last refuge of the unimaginative."

Offline StragenTopic starter

  • Jr. Member
  • **
  • Posts: 12
  • Helpful? 0
Re: AVR Studio Error - $50 Robut
« Reply #1 on: November 01, 2008, 05:59:49 PM »
After reading through http://www.societyofrobots.com/step_by_step_robot_step4.shtml for about the 19th time, I've noticed that there is an inconsistency in the naming convention. The steps say to name the project "Photovore_v1,' but then:
Quote
"Empty the contents into the proper folder. For example, for Photovore v1, empty all files into C:\My_Robots\Photovore_1 "

And at least one screenshot's title is Photovore_1.

Also, "If you see the below error when you compile, it is because you didn't follow the directions carefully enough. Make sure you name your files and folders properly. "

Well, I think I have. Project name Photovore_v1, folder name Photovore_v1, Photovore_v1.c, Photovore_v1.aps.

I could be stupid, but if someone knows what I'm doing wrong, I'd appreciate a tip.
"Consistency is the last refuge of the unimaginative."

Offline StragenTopic starter

  • Jr. Member
  • **
  • Posts: 12
  • Helpful? 0
Re: AVR Studio Error - $50 Robut
« Reply #2 on: November 01, 2008, 07:47:36 PM »
Well... Here's an image of my AVR Studio window... the file-names are correct...
http://i305.photobucket.com/albums/nn231/stragenism/AVRStudio.jpg
I am at an impasse.
"Consistency is the last refuge of the unimaginative."

Offline pomprocker

  • Supreme Robot
  • *****
  • Posts: 1,431
  • Helpful? 16
  • Sorry miss, I was giving myself an oil-job.
    • Nerdcore - Programming, Electronics, Mechanics
Re: AVR Studio Error - $50 Robut
« Reply #3 on: November 02, 2008, 11:02:02 AM »
Whats on line 108 of your photovore c file?

Offline StragenTopic starter

  • Jr. Member
  • **
  • Posts: 12
  • Helpful? 0
Re: AVR Studio Error - $50 Robut
« Reply #4 on: November 02, 2008, 11:31:52 AM »
On line 108? It's the close bracket for the main function... I haven't altered the file in any way.

I'm pretty much convinced now that it's a problem with Vista 64, since a google search yields a whole array of problems with PATH variables and referencing stuff that doesn't exist with AVR Studio. Atmel says their very latest build works with Vista 64, so I'm downloading that now... I'll see what happens.

Troubleshooting this is proving to be really frustrating, since there doesn't seem to be a nice solution anywhere.
"Consistency is the last refuge of the unimaginative."

Offline StragenTopic starter

  • Jr. Member
  • **
  • Posts: 12
  • Helpful? 0
Re: AVR Studio Error - $50 Robut
« Reply #5 on: November 02, 2008, 11:44:06 AM »
I believe I have a solution now for people getting this ridiculous error with Vista 64.

Using the latest build of AVR Studio (v4.14 build 589), I went into the makefile and found/replaced all ".dep" with "dep" and created a subfolder: "C:\My_Robots\Photovore_v1\dep" . Now there is somewhere for the dependency files to go. It built, but I got a new interesting error after it finished:
Quote
Creating Extended Listing: Photovore_v1.lss
avr-objdump -h -S Photovore_v1.elf > Photovore_v1.lss
      0 [main] sh 4124 sync_with_child: child 5636(0x1C0) died before initialization with status code 0x0
  91129 [main] sh 4124 sync_with_child: *** child state waiting for longjmp
/usr/bin/sh: fork: Resource temporarily unavailable
make: *** [Photovore_v1.lss] Error 128
Build succeeded with 0 Warnings...
This error looks a lot like the one I get when it's initializing:
Quote
Build started 2.11.2008 at 12:37:42
      0 [main] sh 5824 sync_with_child: child 5992(0x1C8) died before initialization with status code 0x0
  52352 [main] sh 5824 sync_with_child: *** child state waiting for longjmp
/usr/bin/sh: fork: Resource temporarily unavailable
There might still be a pathing issue... but the code compiled and built.

Not sure what to make of that. But hopefully I can proceed with the deployment, now.
"Consistency is the last refuge of the unimaginative."

 


Get Your Ad Here

data_list