Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 48765 - make 3.80 known bug - "*** virtual memory exhausted"
Summary: make 3.80 known bug - "*** virtual memory exhausted"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL: http://bugs.debian.org/cgi-bin/bugrep...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-23 01:00 UTC by Natanael Copa
Modified: 2004-10-09 20:57 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to fix 'virtual memory exchausted' (make-3.80-virt-mem-exhausted.patch,2.20 KB, patch)
2004-04-23 01:04 UTC, Natanael Copa
Details | Diff
patch for the ebuild (make-3.80-r1.ebuild.diff,363 bytes, patch)
2004-04-23 01:13 UTC, Natanael Copa
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Natanael Copa 2004-04-23 01:00:57 UTC
Make 3.80 has a bug casuing a "virtual memory exhausted" message and make abortion.

strace show that make tries to allocate some negative amount of memory (~4Gbytes)


Reproducible: Always
Steps to Reproduce:
Try the following shellscript:
============== 8< ===============
for a in `seq 1 5`; do touch 0123456789012345678901234567890123$a.c; done

cat > Makefile <<'DELIM'
define BUG
SRC := $$(wildcard *.c)
#OBJ := $$(SRC:.c=.o)
OBJ := $$(patsubst %.c,%.o,$$(SRC))

$$(OBJ):%.o:%.c
endef

$(eval $(call BUG))
DELIM

make
============== 8< ===============

Actual Results:  
make: *** virtual memory exhausted.  Stop.

Expected Results:  
gcc    -c -o 01234567890123456789012345678901231.o
01234567890123456789012345678901231.c


This is a known bug that is fixed in the cvs version of make.
The patch is taken directly from debian.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=197886
Comment 1 Natanael Copa 2004-04-23 01:04:00 UTC
Created attachment 29875 [details, diff]
patch to fix 'virtual memory exchausted'

found at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=197886
Comment 2 Natanael Copa 2004-04-23 01:13:41 UTC
Created attachment 29876 [details, diff]
patch for the ebuild
Comment 3 Jordi Vilalta 2004-07-03 16:15:38 UTC
This also worked for me. This was very annoying (make didn't work with a makefile I made, and I didn't find why). This should be put in portage soon.
Comment 4 SpanKY gentoo-dev 2004-10-09 20:57:30 UTC
3.80-r1 resolves this, sorry for the delay