[bug #16088] make -r causes virtual memory exhausted error in make on AIX only

2006-03-14 Thread anonymous

URL:
  http://savannah.gnu.org/bugs/?func=detailitemitem_id=16088

 Summary: make -r causes virtual memory exhausted error
in make on AIX only
 Project: make
Submitted by: None
Submitted on: Tue 03/14/06 at 10:21
Severity: 3 - Normal
  Item Group: Bug
  Status: None
 Privacy: Public
 Assigned to: None
 Open/Closed: Open
   Component Version: 3.80
Platform Version: UNIX
   Fixed Release: None

___

Details:

This bug causes make to fail on AIX only.

To recreate:

Create 2 makefiles, Makefile, and sub.mk...

Makefile contents:

___
default:
make -r sub.mk
___


sub.mk contents:

___
default:
___


Place both makefiles in the same directory, and then run, make. You'll see
an error like this:

___
running sub.mk
make -r sub.mk
make[1]: Entering directory `/tmp'
make[1]: *** virtual memory exhausted.  Stop.
make[1]: Leaving directory `/tmp'
make: *** [default] Error 2
___

It appears that the problem is that 'make' allocates space for structures to
hold the built-in rules. However, when you run make with the -r flag to
disable these built-in implicit rules, make _still_ attempts to allocate
space for them. Since the space required to hold zero built-in rules is zero
bytes, it calls:

  malloc(0)

AIX doesn't like such a request, and the malloc fails. Other Unix and Linux
platforms seemingly handle this abnormal condition more gracefully.

A temporary work-around is to add a rule such that 'make' mallocs 0 bytes.
For example, by changing Makefile to that shown below, the problem is masked
and the make continues:

___
%.x: %.y

default:
make -r sub.mk
___











___

Reply to this item at:

  http://savannah.gnu.org/bugs/?func=detailitemitem_id=16088

___
  Message sent via/by Savannah
  http://savannah.gnu.org/



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


[bug #16088] make -r causes virtual memory exhausted error in make on AIX only

2006-03-14 Thread Paul D. Smith

Update of bug #16088 (project make):

  Status:None = Duplicate  
 Open/Closed:Open = Closed 

___

Follow-up Comment #1:

This is a duplicate of bug #2888.  If you like you can try the latest release
candidate; currently ftp://alpha.gnu.org/gnu/make/make-3.81rc1.tar.gz

___

Reply to this item at:

  http://savannah.gnu.org/bugs/?func=detailitemitem_id=16088

___
  Message sent via/by Savannah
  http://savannah.gnu.org/



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


[bug #15913] Target-specific immediate append operator not working as expected

2006-03-14 Thread Paul D. Smith

Update of bug #15913 (project make):

  Status:None = Fixed  
 Open/Closed:Open = Closed 
   Fixed Release:None = CVS

___

Follow-up Comment #2:

OK, I've fixed this for the next release of GNU make.

___

Reply to this item at:

  http://savannah.gnu.org/bugs/?func=detailitemitem_id=15913

___
  Message sent via/by Savannah
  http://savannah.gnu.org/



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