bugmake - Bugs: bug #13006, Make has trouble with long target...

 
 

bug #13006: Make has trouble with long target lists in rules defined from within $(eval)

Submitted by:  None
Submitted on:  Sat 07 May 2005 12:33:15 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.

 

Sat 07 May 2005 02:11:02 AM UTC, comment #2:

This is an instance of bug #1517. You can get a copy of the beta for 3.81; it's fixed there:
http://make.paulandlesley.org/make-3.81beta2.tar.gz

Paul D. Smith <psmith>
Project Administrator
Sat 07 May 2005 12:45:00 AM UTC, comment #1:

Err, I meant prerequisite lists, not target lists.

Also, it's worth noting that the problem appears to be with the length of the text, after initial variable expansion, of the line in question, rather than anything more semantic: If you reduce the line length to about 394 by simply reducing the lengths of prerequisite names, then it will start failing with a bus error instead of what I originally noted. (I know it's after variable expansion because you can change the length of the value for $(1) in the example and watch the behavior change accordingly.)

If you reduce the length of the line to 192, it seems to no longer fail.

-dan (danfuzz@milk.com)

Anonymous
Sat 07 May 2005 12:33:15 AM UTC, original submission:

Trying to make using the following Makefile will result in the error "*** virtual memory exhausted".

##########

STUFF := one two

define EXPAND_ME
$(1): foo bar baz biff zip squooch foo bar baz biff zip squooch foo bar baz biff zip squooch foo bar baz biff zip squooch foo bar baz biff zip squooch foo bar baz biff zip squooch foo bar baz biff zip squooch foo bar baz biff zip squooch foo bar baz biff zip squooch foo bar baz biff zip squooch foo bar baz biff zip squooch foo bar baz biff zip squooch foo bar baz biff zip squooch foo bar baz biff zip squooch foo bar baz biff zip squooch foo bar baz biff zip squooch foo bar baz biff zip squooch foo bar baz biff zip squooch foo bar baz biff zip squooch
echo $(1)

endef

$(foreach x,$(STUFF),$(eval $(call EXPAND_ME,$(x))))

Anonymous

 

(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
Sat 07 May 2005 02:11:02 AM UTCpsmithStatusNone=>Duplicate
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1