bug-make
[Top][All Lists]
Advanced

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

RE: Bug in make-3.81: variable_buffer moves out from under buffer


From: Martin Dorey
Subject: RE: Bug in make-3.81: variable_buffer moves out from under buffer
Date: Tue, 20 Jan 2009 19:07:02 -0800

Thanks.  I was hoping it'd be something like that.  Even with that clue,
though, I'm not having any luck making the buffer need reallocating at
the appropriate point.  How frustrating.

-----Original Message-----
From: address@hidden
[mailto:address@hidden On Behalf Of David
Wuertele
Sent: Tuesday, January 20, 2009 15:07
To: address@hidden
Subject: Re: Bug in make-3.81: variable_buffer moves out from under
buffer

Martin Dorey <mdorey <at> bluearc.com> writes:

> In the original makefile, does
> the long rule really not contain any variables or involve any $(eval)
trickery?

Not sure what you mean by trickery, but it definitely involves eval and
variables.

The rule is created with an eval:

$(eval $(call somemacro,many,different,arguments,many,many,many))

somemacro calls other macros:

define somemacro

  $(foreach thing,$(filter-out unwanted-stuff,$(wildcard $1/*)),$(call
othermacro,$1,$(thing),$2,$3,and,more,stuff))

endef

othermacro calls yet more functions:

define othermacro

  $(patsubst $1/%.x,$3/.y-%,$2): $3/.y-%: $1/%.x; echo blah blah blah

endef

When I unwind these calls and write the expansion out manually, I
invariably
change the order that stuff gets evaluated, which results in
variable_buffer
being large enough to avoid triggering the bug.

Dave



_______________________________________________
Bug-make mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/bug-make




reply via email to

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