Your message dated Mon, 30 Jan 2006 21:13:58 -0600
with message-id <[EMAIL PROTECTED]>
and subject line Bug#349948: Make cannot find `%' rule
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--------------------------------------
Received: (at submit) by bugs.debian.org; 26 Jan 2006 04:57:57 +0000
>From [EMAIL PROTECTED] Wed Jan 25 20:57:57 2006
Return-path: <[EMAIL PROTECTED]>
Received: from carbon.deepthought.org ([66.180.175.50])
by spohr.debian.org with esmtp (Exim 4.50)
id 1F1zCn-0005tR-FI
for [EMAIL PROTECTED]; Wed, 25 Jan 2006 20:57:57 -0800
Received: by carbon.deepthought.org (Postfix, from userid 1117)
id C88D4210E30; Wed, 25 Jan 2006 23:57:54 -0500 (EST)
Received: from localhost (localhost [127.0.0.1])
by carbon.deepthought.org (Postfix) with ESMTP id C70FCBEE3
for <[EMAIL PROTECTED]>; Wed, 25 Jan 2006 22:57:54 -0600 (CST)
Date: Wed, 25 Jan 2006 22:57:54 -0600 (CST)
From: Nathan Gallaher <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Make cannot find `%' rule
Message-ID: <[EMAIL PROTECTED]>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level:
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE
autolearn=no version=2.60-bugs.debian.org_2005_01_02
Package: make
Version: 3.80+3.81b4-1 (testing)
When using make to compile, this version fails to find rules that use the
'%' operator in the rule name. (Secondary interpretation might be that
targets with the % operator are being dereferenced improperly). Error
output as follows:
[EMAIL PROTECTED]:~/eecs473/opt/u-boot$ make
....<output ommitted for brevity>....
make[1]: Entering directory `/home/ngallahe/eecs473/opt/u-boot/examples'
arm-linux-ar crv libstubs.a stubs.o
r - stubs.o
make[1]: *** No rule to make target `%', needed by `hello_world.srec'.
Stop.
make[1]: Leaving directory `/home/ngallahe/eecs473/opt/u-boot/examples'
make: *** [examples] Error 2
[EMAIL PROTECTED]:~/eecs473/opt/u-boot$
The relevant snippets of the Makefile are as follows:
>>>>>>> Makefile
hello_world.srec: %
$(OBJCOPY) -O srec $< $@ 2>/dev/null
% : %.o $(LIB)
$(LD) -g $(EX_LDFLAGS) -Ttext $(LOAD_ADDR) \
-o $@ -e $(<:.o=) $< $(LIB) \
-L$(gcclibdir) -lgcc
<<<<<<< Makefile
This ran without error using make package ver 3.80, thus this is a new
bug. Feel free to contact me for more information and/or forward this
email.
~Nathan
---------------------------------------
Received: (at 349948-done) by bugs.debian.org; 31 Jan 2006 03:22:00 +0000
>From [EMAIL PROTECTED] Mon Jan 30 19:21:59 2006
Return-path: <[EMAIL PROTECTED]>
Received: from host-12-107-230-171.dtccom.net ([12.107.230.171]
helo=glaurung.internal.golden-gryphon.com)
by spohr.debian.org with esmtp (Exim 4.50)
id 1F3m5f-00049J-Jw
for [EMAIL PROTECTED]; Mon, 30 Jan 2006 19:21:59 -0800
Received: from glaurung.internal.golden-gryphon.com ([EMAIL PROTECTED]
[127.0.0.1])
by glaurung.internal.golden-gryphon.com (8.13.5/8.13.5/Debian-3) with
ESMTP id k0V3E4hT020986
(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT);
Mon, 30 Jan 2006 21:14:04 -0600
Received: (from [EMAIL PROTECTED])
by glaurung.internal.golden-gryphon.com (8.13.5/8.13.5/Submit) id
k0V3DwGn020984;
Mon, 30 Jan 2006 21:13:58 -0600
X-Authentication-Warning: glaurung.internal.golden-gryphon.com: srivasta set
sender to [EMAIL PROTECTED] using -f
From: Manoj Srivastava <[EMAIL PROTECTED]>
To: Nathan Gallaher <[EMAIL PROTECTED]>
Cc: [EMAIL PROTECTED]
Subject: Re: Bug#349948: Make cannot find `%' rule
Organization: The Debian Project
References: <[EMAIL PROTECTED]>
User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)
(i686-pc-linux-gnu)
Face: iVBORw0KGgoAAAANSUhEUgAAACYAAAAwCAMAAABKbPgaAAAAM1BMVEUAAADIjH/0rp1KPz79
0b+ic2nlpJc2Ly2AY17VlYb4uqi2gHQXFBN2WVXgno5iT02Xa2Nx+jaIAAACVElEQVQ4jeWU23bj
IAxFLUAggQX6/6+dI9LGTpo+9mlYiXNhc3TnOP50naZE0tqvgEk+soutnNfQ8yPTWMTENhNrjI+Y
+N7POVt8tAzpn2vJlsmttbyfrdkP7hx5iezteGzsbOts7xT+tC1mcG+LtRP2X/16bEQExuyx1uZW
vscrAWUT8aE0aDBeBuw8nS5u4WgWyDCllOZUBeyWgbWbGrBsTDpTx0qpphlcYPcgJLvBXFClPMg5
6WH2JidLIAaDF5aAed7uPTH4bjw0bZvfajp2tHc1F+cBm+Vr9YomGSwNhbmcczYEWUu5MBpYvCLV
F+ZIKwQfYB+CBXnIRQFvIRhK6l96PemsFLEPFxi+MPxiTYH0Ave1InPsIYes3NJb42ytBSmmysyj
lIQYHJm6Im1WbQ0kWMesKFRFPKTDzJ3GhWUn2KWKEkWlKthoACLm2eWJQQh2qKbAUgQxa+8TVjn1
aySm8656ookCfCc5TRzvnZ6YOu3NpHg+uR5YuRkNF/b5IHq5Y7Ve6c2+sR4hqIZ3+5DCt3ukh8Eo
vFIXVJxqfMdbkd/BF3YaQkB/2RIUHPMS7RLVAHefrYzWZVQ/ei4peBsROFLi90ltQyvF5I05t4Zs
L4C9DODJ2AZCUf8UitGjCIdfx15QQkfZibTOGT3edxns5fY6F2rstKcTwiiaJnQwvYkdzTlaTqNH
IkSmGdLrON45tGsMNDoSYr4bxH5emHEFaoFjKBahHXFXfLx9cR9p6ejJXihuxPz57gWHZkWovbPl
9gsU8eImtBi++3D+f+sfT/Mg79fyEz8AAAAASUVORK5CYII=
X-URL: http://www.debian.org/%7Esrivasta/
Mail-Copies-To: nobody
X-Hashcash: 1:25:060131:[EMAIL
PROTECTED]::N9GdMc5T4lW5UEmE:00000000000000000000000000000000000390Ix
X-Hashcash: 1:25:060131:[EMAIL
PROTECTED]::NutA2n4Hm+Sui6dA:000000000000000000000000000000000000006s5LS
X-Face: [EMAIL PROTECTED]/;Y^gTjR\T^"B'fbeuVGiyKrvbfKJl!^e|e:iu(kJ6c|QYB57LP*|t
&YlP~HF/=h:[EMAIL PROTECTED]:6Cj0kd#4]>*D,|0djf'CVlXkI,>aV4\}?d_KEqsN{Nnt7
78"OsbQ["56/!nisvyB/uA5Q.{)gm6?q.j71ww.>b9b]-sG8zNt%KkIa>xWg&1VcjZk[hBQ>]j~`Wq
Xl,y1a!(>6`UM{~'X[Y_,Bv+}=L\SS*mA8=s;!=O`ja|@PEzb&i0}Qp,`Z\:6:OmRi*
X-Hashcash: 1:25:060131:[EMAIL
PROTECTED]::cfaxkfs+wuoHpbNM:0000000000000000000000000000000000YHfS
Date: Mon, 30 Jan 2006 21:13:58 -0600
In-Reply-To: <[EMAIL PROTECTED]>
(Nathan Gallaher's message of "Wed, 25 Jan 2006 22:57:54 -0600 (CST)")
Message-ID: <[EMAIL PROTECTED]>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-CRM114-Score: -32.2234
X-CRM114-Status: Good ( pR: -32.2234 )
X-SA-Orig: -8.399, -32.2234
X-Spam-Value: -14.6336333333333
X-Grey: White
X-SA-Rep: -14.6336333333333 ALL_TRUSTED,BAYES_00,HASHCASH_25
X-Scanned-By: MIMEDefang version 2.53 (www . roaringpenguin . com / mimedefang)
on 192.168.1.10
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level:
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER
autolearn=no version=2.60-bugs.debian.org_2005_01_02
Hi,
,----
| hello_world.srec: %
| $(OBJCOPY) -O srec $< $@ 2>/dev/null
|
| % : %.o $(LIB)
| $(LD) -g $(EX_LDFLAGS) -Ttext $(LOAD_ADDR) \
| -o $@ -e $(<:.o=) $< $(LIB) \
| -L$(gcclibdir) -lgcc
`----
What exactly are you trying to accomplish?
The pattern rule has a pattern of just `%', so it matches any target
whatever. It is not a supposed to match a target of "%"; it is a
_pattern_ rule.
I am surprised that it worked with older makes; I am not sure
what the prerequisite for hello_world.srec is supposed to match.
So, while the following does not work,
,----
| all: %
| @echo running all
| %: %.txt
| @echo running rule for %
| a.txt:
| @echo running rule for a.txt
`----
This does indeed do the job.
,----
| all: a
| @echo running all
| %: %.txt
| @echo running rule for %
| a.txt:
| @echo running rule for a.txt
`----
I suggest you fix the rule for hello_world.srec.
manoj
--
Gummidge's Law: The amount of expertise varies in inverse proportion
to the number of statements understood by the general public.
Manoj Srivastava <[EMAIL PROTECTED]> <http://www.debian.org/%7Esrivasta/>
1024D/BF24424C print 4966 F272 D093 B493 410B 924B 21BA DABB BF24 424C
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]