[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: make: *** virtual memory exhausted. Stop.
From: |
Mathieu Lacage |
Subject: |
Re: make: *** virtual memory exhausted. Stop. |
Date: |
Wed, 08 Mar 2006 15:25:15 +0100 |
hi,
The workaround I came up with was to dump into a .P file the dependency
generated in my function and add this new .P file to the list of files
to -include outside of the function.
i.e.:
ALL_DEP+=$(TOP_BUILD_DIR)/$$($(1)_OUTPUT).P
$(TOP_BUILD_DIR)/$$($(1)_OUTPUT).P: $$(call
enumerate-dep-dirs,$(TOP_BUILD_DIR)/$$($(1)_OUTPUT).P)
@echo $(TOP_BUILD_DIR)/$$($(1)_OUTPUT): $$($(1)_OBJ) > $$@
$(TOP_BUILD_DIR)/$$($(1)_OUTPUT):
@$(call display-compile,$$(CXX) $$($(1)_LDFLAGS) -o $$@ $$(filter
%.o,$$^))
regards,
Mathieu
On Tue, 2006-03-07 at 22:03 -0500, Paul D. Smith wrote:
> %% Ted Stern <address@hidden> writes:
>
> ts> Nevertheless, I wonder if there might be an alloca-type memory
> ts> leak going on here.
>
> Nope. Sorry, Ted, but you're alone in this :-).
>
> All the other environments, including Windows IIRC, have a real alloca()
> implementation. This allocates memory on the stack, and so alloca(0) is
> completely unnecessary: as soon as the function returns all info on the
> stack is freed. On these systems, in fact, alloca(0) is a no-op.
>
>
> The OP's issue is clearly an instance of bug #1517:
>
> https://savannah.gnu.org/bugs/index.php?func=detailitem&item_id=1517
>
--
Re: make: *** virtual memory exhausted. Stop., Jason Lunz, 2006/03/09