Sunday, February 21, 2010

WinAVR vs Vista 64bit

Hi Friends,
I faced some problem in compiling a c code that i wanted to dump into the Atmel Atmega8 MCU.
When i ran the basic simple code in my Vista 64 bit lappy.
It throws an error as below

"make.exe" all
0 [main] sh 3792 sync_with_child: child 1880(0x11C) died before initialization with status code 0x0
38726 [main] sh 3792 sync_with_child: *** child state waiting for longjmp
/usr/bin/sh: fork: Resource temporarily unavailable
0 [main] sh 6668 sync_with_child: child 5760(0x120) died before initialization with status code 0x0
34379 [main] sh 6668 sync_with_child: *** child state waiting for longjmp
/usr/bin/sh: fork: Resource temporarily unavailable

-------- begin --------
avr-gcc (WinAVR 20100110) 4.3.3
Copyright (C) 2008 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.


Compiling C: main.c
avr-gcc -c -mmcu=atmega8 -I. -gstabs -DF_CPU=8000000UL -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=./main.lst -std=gnu99 -MMD -MP -MF .dep/main.o.d main.c -o main.o
main.c:13: fatal error: opening dependency file .dep/main.o.d: No such file or directory
compilation terminated.
make.exe: *** [main.o] Error 1

> Process Exit Code: 2
> Time Taken: 00:01

I posted this in forums and searched in google and found the solution.
There is a .dll file in \utils\bin folder of your WinAVR install folder with name "msys-1.0.dll"
which we have to replace with the file in the following path

There ends the problem. :) :) :)

No comments:

Post a Comment