[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Sv: [avr-gcc-list] Makefile problem and solution

From: address@hidden
Subject: Sv: [avr-gcc-list] Makefile problem and solution
Date: Tue, 26 Sep 2006 11:58:36 +0200 (MEST)

this is probably because of a bug!? in cygwin make. i stumbled on it 
myself a few weeks ago. if you have recently updated cygwin go back to 
the earlier version. the bug is due to that make can't handle paths 
with spaces in it.

----Ursprungligt meddelande----
Från: address@hidden
Datum: Sep 26, 2006 8:30:08 AM
Till: address@hidden
Ärende: [avr-gcc-list] Makefile problem and solution


in the middle of a running project I received from make the "very
expressive" error message:
.dep/blcd.o.d:1: *** multiple target patterns.  Stop.

I'm using WinAVR + Cygwin together. My "Unix tools" are from Cygwin
while the avr-gcc comes from WinAVR. That works fine except for avr-
which I'm not using. I did some updates Path, Cygwin,... so I could 
say why a formerly running makefile did run any longer.

I found a newly make extension called remake. remake is a make +
debugging interface. Very usefull but it did not help. With gdb and 
make sources I found out that the under cygwin generated dependency 
contain colons that are confusing the makefile parser! 

Exapmle from blcd.o.d:
blcd.o: blcd.c C:/WinAVR_20060421/avr/include/stdint.h \
  C:/WinAVR_20060421/avr/include/string.h \
  c:\WinAVR\bin\../lib/gcc/avr/3.4.6/include/stddef.h studio/global.h 
  studio/defines.h studio/types.h studio/blcd.h studio/lcd.h
studio/lcd.h ....

The Solution is simple:
There is a define "HAS_DOS_PATHS" that need to be set. With this 
set the parser is running properly. 

It seem to be a wrong compiling for the current Make.exe (version 3.81-
as defined by Cygwin Setup). 

But additionally all projects that are moved from Cygwin to Unix will
show the same message. For these project the dependency directory need
to be removed manually while the next rebuild  solves the problem.



AVR-GCC-list mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]