From owner-freebsd-ports@FreeBSD.ORG Thu Nov 27 01:18:07 2008 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5B890106567E for ; Thu, 27 Nov 2008 01:18:07 +0000 (UTC) (envelope-from maho.nakata@gmail.com) Received: from mail-qy0-f18.google.com (mail-qy0-f18.google.com [209.85.221.18]) by mx1.freebsd.org (Postfix) with ESMTP id E6F5A8FC16 for ; Thu, 27 Nov 2008 01:18:06 +0000 (UTC) (envelope-from maho.nakata@gmail.com) Received: by qyk11 with SMTP id 11so1047259qyk.19 for ; Wed, 26 Nov 2008 17:18:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:message-id:to:cc:subject :from:in-reply-to:references:x-mailer:mime-version:content-type :content-transfer-encoding:sender; bh=jfo9lSL2Ir23EWlw1/8jCEUggeA8glONA85oxTXWIoY=; b=NF5bJvFHC1ub0ur+EV2cB3GtgJttBeeMlTmsINeyl8DhPR9vRFRE31A/BUVmIdy0xj Tu879NKWz/5MbZdQGmtT3WDCY3a25juk0AgVvztqM0IAHt3JKoZlOcvdxNkYbpVicopY 6uhFFcm/g14MPshgXgB7Wp6BIIXDTQBZcD9DI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:message-id:to:cc:subject:from:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding:sender; b=k06ds61T1tO2LJ64wX20TgfYz+79HsRrClr6GJ+e26obOc6p2zYUrFub5kdKSL06Vs HnP+/O08ybQEEXnvGR4cM+KaX74B28T6MyznaYE3c9x+LEinjn2jxxcYTrbe/xB/kZNp sops8+F2LxDERRJANiInDHZntOg54KqRQXt5E= Received: by 10.214.44.2 with SMTP id r2mr6231500qar.146.1227748681477; Wed, 26 Nov 2008 17:18:01 -0800 (PST) Received: from localhost (rikad85.riken.jp [134.160.214.85]) by mx.google.com with ESMTPS id 34sm2246409yxl.8.2008.11.26.17.17.59 (version=SSLv3 cipher=RC4-MD5); Wed, 26 Nov 2008 17:18:00 -0800 (PST) Date: Thu, 27 Nov 2008 10:17:58 +0900 (JST) Message-Id: <20081127.101758.61189161.chat95@mac.com> To: rizzo@iet.unipi.it From: Maho NAKATA In-Reply-To: <20081102.112043.59664300.chat95@mac.com> References: <20081019145234.GA67034@onelab2.iet.unipi.it> <20081102.112043.59664300.chat95@mac.com> X-Mailer: Mew version 6.1 on Emacs 22.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="--Next_Part(Thu_Nov_27_10_17_58_2008_103)--" Content-Transfer-Encoding: 7bit Sender: Maho NAKATA Cc: ports@freebsd.org, openoffice@FreeBSD.org Subject: Re: unreasonable amount of memory used in openoffice build X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Nov 2008 01:18:07 -0000 ----Next_Part(Thu_Nov_27_10_17_58_2008_103)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi Luigi Sorry for delay. Please try attached patch. If it works for you, I'll commit it. Best, From: Maho NAKATA Subject: Re: unreasonable amount of memory used in openoffice build Date: Sun, 02 Nov 2008 11:20:43 +0900 (JST) > Hi Luigi > > I think it is okay. I'll remove this conditional so that > applicable to i386. I think I must rewrite the patch to > effective on i386 as well. > > Note, please do not send me a patch other than Makefile. > There is a SCA or JCA issue... > > I'm very busy these days and I'll attend OpenOffice.org conference > 2008 very soon, please be patient. > > thanks, > > From: Luigi Rizzo > Subject: unreasonable amount of memory used in openoffice build > Date: Sun, 19 Oct 2008 16:52:34 +0200 > > > hi, > > i noticed on my laptop (Dell X1 w/ 512MB ram - i386, RELENG_7 that > > openoffice3 is using an unreasonable amount of memory to build one > > of its components (during the build of resourcemodel, the offending > > file is unxfbsdi.pro/misc/qnametostr.cxx) which causes the build > > machine to spend a huge amount of time swapping. > > > > It seems to be a known issue > > > > http://bugs.gentoo.org/show_bug.cgi?format=multiple&id=215291 > > > > and our port includes a workaround that is applied only on amd64 > > with the following section in the port's Makefile: > > > > .if ${ARCH} == amd64 > > WITHOUT_MOZILLA= yes > > LIB_DEPENDS+= boost_regex:${PORTSDIR}/devel/boost > > CONFIGURE_ARGS+= --with-system-boost=yes #i58343# > > .if (${OSVERSION} >= 700042) > > EXTRA_PATCHES+= ${FILESDIR}/amd64-gcc42-workaround > > .endif > > .endif > > > > I would suggest to apply the fix unconditionally (at least by default, > > possibly override it with some build option if needed). > > On amd64 according to the above URL the problem is particularly bad > > as it requires more than 4GB of memory (RAM/SWAP) but even on i386 > > the compiler process grows well above 1GB of memory and together > > with other stuff (browser, X and more) easily consuming 2-300MB > > each, it is not unlikely to hit the swap on many boxes. > > > > Makes sense ? > > > > cheers > > luigi > > _______________________________________________ > > freebsd-openoffice@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-openoffice > > To unsubscribe, send any mail to "freebsd-openoffice-unsubscribe@freebsd.org" > > > _______________________________________________ > freebsd-openoffice@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-openoffice > To unsubscribe, send any mail to "freebsd-openoffice-unsubscribe@freebsd.org" > ----Next_Part(Thu_Nov_27_10_17_58_2008_103)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename=diff ? diff ? work ? work_ ? files/patch-iXXXXX Index: Makefile =================================================================== RCS file: /home/pcvs/ports/editors/openoffice.org-3/Makefile,v retrieving revision 1.312 diff -u -r1.312 Makefile --- Makefile 16 Oct 2008 12:30:24 -0000 1.312 +++ Makefile 27 Nov 2008 01:16:40 -0000 @@ -149,9 +149,6 @@ WITHOUT_MOZILLA= yes LIB_DEPENDS+= boost_regex:${PORTSDIR}/devel/boost CONFIGURE_ARGS+= --with-system-boost=yes #i58343# -.if (${OSVERSION} >= 700042) -EXTRA_PATCHES+= ${FILESDIR}/amd64-gcc42-workaround -.endif .endif .if (${OSVERSION} <= 602102) EXTRA_PATCHES+= ${FILESDIR}/rtld-workaround-i66667 --- /dev/null 2008-11-27 10:17:03.000000000 +0900 +++ files/patch-iXXXXX 2008-11-27 10:04:41.000000000 +0900 @@ -0,0 +1,13 @@ +--- writerfilter/source/resourcemodel/makefile.mk.orig 2008-07-22 08:53:57.000000000 -0400 ++++ writerfilter/source/resourcemodel/makefile.mk 2008-09-03 12:26:09.000000000 -0400 +@@ -56,8 +56,8 @@ + $(SLO)$/TagLogger.obj \ + $(SLO)$/WW8Analyzer.obj + +-# linux 64 bit: compiler (gcc 4.2.3) fails with 'out of memory' +-.IF "$(OUTPATH)"=="unxlngx6" ++# FreeBSD/Linux 64-bit: compiler (gcc 4.2.x) fails with 'out of memory' ++.IF "$(OUTPATH)"=="unxfbsdx" || "$(OUTPATH)"=="unxfbsdi" || "$(OUTPATH)"=="unxlngx6" + NOOPTFILES= \ + $(SLO)$/qnametostr.obj + .ENDIF ----Next_Part(Thu_Nov_27_10_17_58_2008_103)----