First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 48765
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo's Team for Core System packages <base-system@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Natanael Copa <natanael.copa@gmail.com>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
make-3.80-virt-mem-exhausted.patch patch to fix 'virtual memory exchausted' patch Natanael Copa 2004-04-23 01:04 0000 2.20 KB Details | Diff
make-3.80-r1.ebuild.diff patch for the ebuild patch Natanael Copa 2004-04-23 01:13 0000 363 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 48765 depends on: Show dependency tree
Show dependency graph
Bug 48765 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)







View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2004-04-23 01:00 0000
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 From Natanael Copa 2004-04-23 01:04:00 0000 -------
Created an attachment (id=29875) [edit]
patch to fix 'virtual memory exchausted'

found at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=197886

------- Comment #2 From Natanael Copa 2004-04-23 01:13:41 0000 -------
Created an attachment (id=29876) [edit]
patch for the ebuild

------- Comment #3 From Jordi Vilalta 2004-07-03 16:15:38 0000 -------
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 From SpanKY 2004-10-09 20:57:30 0000 -------
3.80-r1 resolves this, sorry for the delay

First Last Prev Next    No search results available      Search page      Enter new bug