pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: PR/42899 CVS commit: pkgsrc/emulators/qemu
The following reply was made to PR pkg/42899; it has been noted by GNATS.
From: Robert Elz <kre%munnari.OZ.AU@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: PR/42899 CVS commit: pkgsrc/emulators/qemu
Date: Tue, 05 Apr 2011 04:30:54 +0700
Date: Sun, 3 Apr 2011 10:00:11 +0000 (UTC)
From: "Sergey Svishchev" <shattered%NetBSD.org@localhost>
Message-ID: <20110403100011.5055563C134%www.NetBSD.org@localhost>
| PR/44325 PR/42899 -- fix build on netbsd-4
Almost, thanks.
With that in place, I now (repeatably) get (on NetBSD 4.0) ...
CC x86_64-softmmu/translate.o
cc1: out of memory allocating 20394588 bytes after a total of 257320720 bytes
gmake[1]: *** [translate.o] Error 1
gmake: *** [subdir-x86_64-softmmu] Error 2
*** Error code 2
Stop.
make: stopped in /usr/pkgsrc/emulators/qemu
*** Error code 1
Stop.
After applying this (obvious) patch to the pkgsrc Makefile ...
Index: Makefile
===================================================================
RCS file: /cvsroot/NetBSD/pkgsrc/emulators/qemu/Makefile,v
retrieving revision 1.78
diff -u -r1.78 Makefile
--- Makefile 28 Feb 2011 17:49:30 -0000 1.78
+++ Makefile 4 Apr 2011 20:58:19 -0000
@@ -16,6 +16,7 @@
NOT_FOR_PLATFORM= NetBSD-1.[0-6]*-*
USE_TOOLS+= gmake makeinfo perl:build
+UNLIMIT_RESOURCES= datasize
HAS_CONFIGURE= yes
BUILD_DEPENDS+= texi2html-[0-9]*:../../textproc/texi2html
qemu-0.13.0nb1 then builds correctly on NetBSD 4.0. The UNLIMIT isn't
needed on NetBSD 5.0, so I assume that gcc was made less hungry between
the versions used for NetBSD 4.0 and NetBSD 5.0 - which suggests that an
alternative fix might be to require use of a pkgsrc version of gcc on
NetBSD 4, or that the UNLIMIT could be made conditional. Personally,
I don't see the need for either of those, and would just unconditionally
include the UNLIMIT in pkgsrs's Makefile.
kre
Home |
Main Index |
Thread Index |
Old Index