Re: Strange new error in make

[email protected] Thu, 14 Oct 2021 16:50:29 +1030
Newsgroups gmane.comp.hardware.avr.gcc
Message-ID <9053c9d88c25d568b773812a1864accc61a99539@webmail.internode.on.net>
--=_dce9bffb067bb78894e5b0a8c64b3506
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

=0A On 13.10.21 17:31, Royce Pereira wrote:=0A=C2=A0=C2=A0 > Today I sta=
rted getting this error when i run make:=0A=C2=A0=C2=A0 >=0A=C2=A0=C2=A0=
 > make: *** No rule to make target `c:avr-gccavrincludeavrio.h',=0Aneed=
ed=0A=C2=A0=C2=A0 > by `Timer-5D-DD-0715.o'.=C2=A0 Stop.=0A=0AWhile I'm=
 rusty on make these days, ISTM that there is something wrong=0Awith the=
 makefile, as io.h should not be a target. Headers are=0Aincluded=0Ain s=
ource files for targets (xx.o), not built separately. It is then=0Aunsur=
prising that there is no rule for no build.=0A=0AListing io.h as a depen=
dency, either on the target line, or as a=0Aseparate dependency:=0A=0ATi=
mer-5D-DD-0715.o: io.h=0A=0Awill tell make to rebuild the target if io.h=
 has changed, but only an=0Aerroneous placement of io.h as a target ough=
t to create your current=0Aproblem ... in theory.=0A=0AEven if you use s=
uffix rules, .h should only appear on the right of=0Athe =0Acolon.=0AIf=
 you would post the makefile, it may be possible to spot the=0Aproblem.=
=0A=0A> The offending part is the slash after c (C:)=0A=0AThat may be ju=
st a display artifact, escaping perhaps.=0A=0A> I checked for typos in m=
y makefile, but it's happening with all my=0Aprojects.=0A=0AIs there rea=
lly only one makefile?=0A=0A> Note:=0A>=C2=A0 I'm using windows 10 and m=
ake.exe is in :=0A>=0A> C:MinGWmsys1.0binmake.exe=0A>=0A> Which is defin=
ed in my path.=0A=0AAn instance of make is being run - it announced itse=
lf in the error=0Amessage. For completeness, is it gnu make or some less=
er imitation?=0AHas that been upgraded recently? (With a buggy version.)=
=0AErik=0A=0AP.S. CCing as last two posts to other lists didn't make it=
 to list.=0A=0A--=0AThe difference between theory and practice is much s=
maller in theory=0Athan in practice.=0A

--=_dce9bffb067bb78894e5b0a8c64b3506
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<html><body><br />=0A=09=09=09=09On 13.10.21 17:31, Royce Pereira wrote:=
<br />=C2=A0=C2=A0 &gt; Today I started getting this error when i run ma=
ke:<br />=C2=A0=C2=A0 &gt;<br />=C2=A0=C2=A0 &gt; make: *** No rule to m=
ake target `c\:\avr-gcc\avr\include\avr\io.h', needed<br />=C2=A0=C2=A0=
 &gt; by `Timer-5D-DD-0715.o'.=C2=A0 Stop.<br /><br />While I'm rusty on=
 make these days, ISTM that there is something wrong<br />with the makef=
ile, as io.h should not be a target. Headers are included<br />in source=
 files for targets (xx.o), not built separately. It is then<br />unsurpr=
ising that there is no rule for no build.<br /><br />Listing io.h as a d=
ependency, either on the target line, or as a<br />separate dependency:<=
br /><br />Timer-5D-DD-0715.o: io.h<br /><br />will tell make to rebuild=
 the target if io.h has changed, but only an<br />erroneous placement of=
 io.h as a target ought to create your current<br />problem ... in theor=
y.<br /><br /><div>Even if you use suffix rules, .h should only appear o=
n the right of the <br /></div><div>colon.</div><br />If you would post=
 the makefile, it may be possible to spot the problem.<br /><br />&gt; T=
he offending part is the slash after c (C\:\)<br /><br />That may be jus=
t a display artifact, escaping perhaps.<br /><br />&gt; I checked for ty=
pos in my makefile, but it's happening with all my projects.<br /><br />=
Is there really only one makefile?<br /><br />&gt; Note:<br />&gt;=C2=A0=
 I'm using windows 10 and make.exe is in :<br />&gt;<br />&gt; C:\MinGW\=
msys\1.0\bin\make.exe<br />&gt;<br />&gt; Which is defined in my path.<b=
r /><br />An instance of make is being run - it announced itself in the=
 error<br />message. For completeness, is it gnu make or some lesser imi=
tation?<br /><div>Has that been upgraded recently? (With a buggy version=
)</div><div><br /></div>Erik<br /><div><br /></div><div>P.S. CCing as l=
ast two posts to other lists didn't make it to list.<br /></div><div><br=
 /></div>--<br />The difference between theory and practice is much smal=
ler in theory<br />than in practice.<br /></body></html>

--=_dce9bffb067bb78894e5b0a8c64b3506--