From owner-freebsd-ports@FreeBSD.ORG Sun Apr 20 18:40:22 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4DCC5F6; Sun, 20 Apr 2014 18:40:22 +0000 (UTC) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "tensor.andric.com", Issuer "CAcert Class 3 Root" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id C99E11893; Sun, 20 Apr 2014 18:40:21 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7::3851:9362:67d4:316d] (unknown [IPv6:2001:7b8:3a7:0:3851:9362:67d4:316d]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 4E0C15C43; Sun, 20 Apr 2014 20:40:12 +0200 (CEST) Content-Type: multipart/signed; boundary="Apple-Mail=_1A19FFD7-A2BB-4B9D-ABF5-D5A4B71C8240"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Subject: Re: [9.2-STABLE/CLANG 3.3|3.4] x11/kdelibs4 From: Dimitry Andric In-Reply-To: <20140420174725.199ec7af.ohartman@zedat.fu-berlin.de> Date: Sun, 20 Apr 2014 20:40:08 +0200 Message-Id: References: <20140418081014.2ac2536e@munin.walstatt.dyndns.org> <641C6CAA-C472-4359-9293-E65F16E84DC6@FreeBSD.org> <20140419103237.41962eff.ohartman@zedat.fu-berlin.de> <20140419193019.0ee792e6.ohartman@zedat.fu-berlin.de> <20140420174725.199ec7af.ohartman@zedat.fu-berlin.de> To: "O. Hartmann" X-Mailer: Apple Mail (2.1874) Cc: freebsd-stable@freebsd.org, FreeBSD Ports X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Apr 2014 18:40:22 -0000 --Apple-Mail=_1A19FFD7-A2BB-4B9D-ABF5-D5A4B71C8240 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 20 Apr 2014, at 17:47, O. Hartmann = wrote: > On Sat, 19 Apr 2014 20:25:51 +0200 > Dimitry Andric wrote: >> On 19 Apr 2014, at 19:30, O. Hartmann = wrote: >>> On Sat, 19 Apr 2014 18:44:51 +0200 >>> Dimitry Andric wrote: >> ... >>>>> Stop in /usr/ports/x11/kdelibs4/work/.build. >>>>> *** [khtml/CMakeFiles/khtml.dir/all] Error code 1 >>>>> >>>>=20 >>>> I cannot reproduce the problem on my copy of stable/9 r264647. = Using /usr/bin/time >>>> -l on it results in: >>>>=20 >>>> 3.36 real 1.01 user 0.59 sys >>>> 71684 maximum resident set size >>>> 30951 average shared memory size >>>> 3349 average unshared data size >>>> 126 average unshared stack size >>>> 13539 page reclaims >>>> 354 page faults >>>> 0 swaps >>>> 2 block input operations >>>> 3 block output operations >>>> 66 messages sent >>>> 0 messages received >>>> 0 signals received >>>> 370 voluntary context switches >>>> 10 involuntary context switches >>>>=20 >>>> So it compiles in 3 seconds, and uses approximately 70MB of memory. >>> what compiler does your copy use as default? I use CLANG 3.3/3.4 >>=20 >> Just the version of clang that comes with stable/9 r264647, e.g.: >>=20 >> FreeBSD clang version 3.4 (tags/RELEASE_34/final 197956) 20140216 >>=20 >> Are you using a port version of clang to build kdelibs4, by any = chance? >>=20 >> -Dimitry >>=20 >=20 > I successfully built, as a workaround, the port x11/kdelibs4 with gcc = 4.7 (port lang/gcc). So it didn't work with lang/clang34 or the base version of clang either? And with a similar type of error? > The box in question is a Dell Latitude E6510 notebook with only 4 GB = of RAM, could this > be the issue? The system very often starts swapping. Even my oldstyle = E8400 workstation > with only 8 GB (most recent 11.0-CURRENT) starts swapping very often = and recently, I saw > musterious compiler erros and stopping compiling processes never seen = bevor. Restarting > the failed portbuild most often finish successfully. There were some postings recently, about newer versions of FreeBSD being supposedly more "swappy", see e.g.: = http://lists.freebsd.org/pipermail/freebsd-stable/2014-April/thread.html#7= 8361 I have no idea if this is really substantiated with evidence, or just a feeling, though. :) In any case, when you are experiencing mysterious compiler errors, and your system is heavily exercising RAM and swap, it is always a good idea to do a full hardware diagnostics test. For your RAM, you can use memtest86+, and since you have a Dell, you can use their diagnostics program to test other parts of the machine. -Dimitry --Apple-Mail=_1A19FFD7-A2BB-4B9D-ABF5-D5A4B71C8240 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iEYEARECAAYFAlNUFJMACgkQsF6jCi4glqNQpACgkVjxlzG96DjJ737QHcC7J+h4 Br0AniP4XjnfTvOG7MqCpKQSGMSIwCoZ =Mw3X -----END PGP SIGNATURE----- --Apple-Mail=_1A19FFD7-A2BB-4B9D-ABF5-D5A4B71C8240--