[bug #30463] cannot make include makefile .INTERMEDIATE

2010-07-16 Thread anonymous

URL:
  http://savannah.gnu.org/bugs/?30463

 Summary: cannot make include makefile .INTERMEDIATE
 Project: make
Submitted by: None
Submitted on: Fri 16 Jul 2010 03:42:34 PM UTC
Severity: 3 - Normal
  Item Group: Bug
  Status: None
 Privacy: Public
 Assigned to: None
 Open/Closed: Open
 Discussion Lock: Any
   Component Version: 3.80
Operating System: None
   Fixed Release: None
   Triage Status: None

___

Details:

The following little makefile never terminates:

.INTERMEDIATE: x.mk
include x.mk
x.mk:
echo all:; echo ok  x.mk

I would like it to remove x.mk after the make process is done.
Same behavior in 3.81

The following is a trace of make -rd

This program built for x86_64-unknown-linux-gnu
Reading makefiles...
Reading makefile `oops.mk'...
Reading makefile `x.mk' (search path) (no ~ expansion)...
oops.mk:2: x.mk: No such file or directory
Updating makefiles
 Considering target file `x.mk'.
  File `x.mk' does not exist.
  Finished prerequisites of target file `x.mk'.
 Must remake target `x.mk'.
echo all:; echo ok  x.mk
Putting child 0x00537980 (x.mk) PID 14120 on the chain.
Live child 0x00537980 (x.mk) PID 14120 
Reaping winning child 0x00537980 PID 14120 
Removing child 0x00537980 PID 14120 from chain.
 Successfully remade target file `x.mk'.
 Considering target file `oops.mk'.
  Looking for an implicit rule for `oops.mk'.
  No implicit rule found for `oops.mk'.
  Finished prerequisites of target file `oops.mk'.
 No need to remake target `oops.mk'.
Removing intermediate files...
rm x.mk
Re-executing[2]: gmake -f oops.mk -rd
GNU Make 3.81
Copyright (C) 2006  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.





___

Reply to this item at:

  http://savannah.gnu.org/bugs/?30463

___
  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


Re: Setting RLIMIT_STACK

2010-07-16 Thread Paul Smith
On Sat, 2010-07-17 at 02:22 -0300, Alberto Bertogli wrote:
 So I was wondering what was the reason for that rlimit, and if perhaps
 it could be avoided to prevent this behaviour change.

It was added a number of years ago by Paul Eggert, because make makes
extensive use of alloca() and some larger, more complex makefiles might
run into problems.

Probably there should be an effort to switch to heap for anything that
might get large and reserve alloca() usage just for things we know for a
fact will not get too large, but that hasn't been done.

-- 
---
 Paul D. Smith psm...@gnu.org  Find some GNU make tips at:
 http://www.gnu.org  http://make.mad-scientist.net
 Please remain calm...I may be mad, but I am a professional. --Mad Scientist


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