bug-make
[Top][All Lists]
Advanced

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

long prerequisite inside eval(call()) => vm exhausted


From: David Copp
Subject: long prerequisite inside eval(call()) => vm exhausted
Date: 10 Mar 2003 17:20:59 -0500

The new eval() function is *way* cool. Thanks!! In trying to use it, I ran into a little problem, which I've tried to express succinctly in the Makefile below. It results in a "virtual memory exhausted" error. If you delete "prerequisite13" from the tool_PREREQUISITES, no error occurs.

BTW eval() example in the online make documentation uses a similar construct, but the prerequisite list in its rule is much shorter and doesn't cause the error.


tool = SomeToolFileName

tool_PREREQUISITES = prerequisite1 prerequisite2 prerequisite3 prerequisite4 prerequisite5 prerequisite6 prerequisite7 prerequisite8 prerequisite9 prerequisite10 prerequisite11 prerequisite12 prerequisite13

define MAKE_TARGETS

# this chokes with a "virtual memory exhausted" message unless you
# chop off prerequisite13 from tool_PREREQUISITES
$$($(1)): $$($(1)_PREREQUISITES)
	echo "didn't choke"

endef

$(eval $(call MAKE_TARGETS,tool))



And my make version is...

GNU Make 3.80
Copyright (C) 2002  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.

David

reply via email to

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