From owner-freebsd-stable@FreeBSD.ORG Fri Sep 6 12:29:53 2013 Return-Path: Delivered-To: freebsd-stable@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 ESMTP id 81DF986F; Fri, 6 Sep 2013 12:29:53 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [IPv6:2001:7b8:3a7:1:2d0:b7ff:fea0:8c26]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 41FC926F2; Fri, 6 Sep 2013 12:29:53 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7::7c61:722b:7bc8:5bde] (unknown [IPv6:2001:7b8:3a7:0:7c61:722b:7bc8:5bde]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 07B815C44; Fri, 6 Sep 2013 14:29:48 +0200 (CEST) Content-Type: multipart/signed; boundary="Apple-Mail=_4984B11F-8E79-4CB6-A183-DCAAD94697CF"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Subject: Re: devel/llvm33: failed to compile due to CLOCK_PROCESS_CPUTIME_ID issue From: Dimitry Andric In-Reply-To: <3A76D5BA-4A37-4747-9DF8-B12C32015672@FreeBSD.org> Date: Fri, 6 Sep 2013 14:29:38 +0200 Message-Id: References: <20130905233725.05106d2a@munin.geoinf.fu-berlin.de> <3A76D5BA-4A37-4747-9DF8-B12C32015672@FreeBSD.org> To: Oliver Pinter X-Mailer: Apple Mail (2.1508) Cc: "O. Hartmann" , freebsd-stable@freebsd.org, Brooks Davis X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Sep 2013 12:29:53 -0000 --Apple-Mail=_4984B11F-8E79-4CB6-A183-DCAAD94697CF Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On Sep 6, 2013, at 13:16, Dimitry Andric wrote: > On Sep 5, 2013, at 23:46, Oliver Pinter wrote: >> On 9/5/13, O. Hartmann wrote: >>> On a laptop, running FreeBSD 9.2-PRERELEASE #0 r255170: Tue Sep 3 >>> 11:54:29 CEST 2013 amd64, compiling/updating port devel/llvm33 fails >>> with the error shown below. >>>=20 >>> The port is at llvm-3.3_2 and is supposed to be updated to >>> llvm-3.3_4. >>>=20 >>> On FreeBSD 10.0-CURRENT there is no problem compiling the port. >>>=20 >>> [...] >>> llvm[1]: Compiling Signals.cpp for Release build >>> In file included from Process.cpp:85: >>> = /usr/ports/devel/llvm33/work/llvm-3.3.src/lib/Support/Unix/Process.inc:75:= 23: >>> error: use of undeclared identifier 'CLOCK_PROCESS_CPUTIME_ID' if >>> (::clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &TS) =3D=3D 0) ^ >>> 1 error generated. >>> gmake[1]: *** >>> = [/usr/ports/devel/llvm33/work/llvm-3.3.src/lib/Support/Release/Process.o] >>> Error 1 gmake[1]: *** Waiting for unfinished jobs.... gmake[1]: = Leaving >>> directory `/usr/ports/devel/llvm33/work/llvm-3.3.src/lib/Support' >>> gmake: *** [all] Error 1 >>=20 >> http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dports/181817 >=20 > This is because David Xu MFC'd his time.h changes to stable/9, but did = not merge r245428, for some reason. There was quite a large window = where -current was broken in this respect. >=20 > I will merge the fix to stable/9 tonight, but I don't think it will = make it into 9.2-RELEASE, so we will still need a workaround for the = port, for the life of 9.2. :-( Note: the workaround I've used in head is = http://svnweb.freebsd.org/changeset/base/250616 . This simply does = -DCLOCK_PROCESS_CPUTIME_ID=3D15 on the command line of = lib/Support/Process.cpp, which is ugly, but works fine, unless somebody = changes the define again. :-) -Dimitry --Apple-Mail=_4984B11F-8E79-4CB6-A183-DCAAD94697CF 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.20 (Darwin) iEYEARECAAYFAlIpyroACgkQsF6jCi4glqOgGwCg+t8XFBv+GmdYEIaklQhanuAF p+EAoL313jBNO7zXfSSKgjoy70wM/FbI =hkij -----END PGP SIGNATURE----- --Apple-Mail=_4984B11F-8E79-4CB6-A183-DCAAD94697CF--