bugmake - Bugs: bug #9364, eval - virtual memory exhausted

 
 

bug #9364: eval - virtual memory exhausted

Submitted by:  Alon Blayer-Gat <alonbg>
Submitted on:  Thu 17 Jun 2004 10:50:30 AM UTC  
 
Severity: 3 - NormalItem Group: Bug
Status: DuplicatePrivacy: Public
Assigned to: NoneOpen/Closed: Closed
Component Version: 3.80Operating System: Any
Fixed Release: NoneTriage Status: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 17 Jun 2004 06:51:34 PM UTC, comment #3:

This is an instance of bug # 1517. Attached to that report is a patch that will fix the problem.

If that turns out to not fix it, please send me email and I'll re-open the case (due to a bug in Savannah, just posting a new comment to this bug doesn't help as I won't see it :-/).

Paul D. Smith <psmith>
Project Administrator
Thu 17 Jun 2004 03:40:26 PM UTC, comment #2:

The workaround does not seem to work with complex make files

Yet stranger workarounds:

define generate_target
$1: $(value $2)
@echo $2
endef

OR

define generate_target
$1: $(worldlist 1,1,$2)
@echo $2
ended

In this second workaround 'wordlist' parameters n,m are ignored, value of '2' is being used entirely

Alon Blayer-Gat <alonbg>
Thu 17 Jun 2004 12:48:42 PM UTC, comment #1:

In a more complex makefile issue occurs in list longer than 10 elements

Alon Blayer-Gat <alonbg>
Thu 17 Jun 2004 10:50:30 AM UTC, original submission:

A prerequisite list longer than 12 items causes memory exhaustion.
Example:

file_list = $(wordlist 1,13,$(wildcard *.cc))

define generate_target
$1: $2
@echo $2
endef

$(eval $(call generate_target,virtual_memory,$(file_list)))

---------------
make virtual_memory

make: *** virtual memory exhausted. Stop.

Strange workaround:
Add an assignment to the prerequisite list before 'eval'. Use either the new variable or the original in 'eval'

dummy = $(file_list)
$(eval $(call generate_target,virtual_memory,$(file_list)))

Alon Blayer-Gat <alonbg>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Thu 17 Jun 2004 06:51:34 PM UTCpsmithStatusNone=>Duplicate
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1