From owner-freebsd-stable@FreeBSD.ORG Fri Sep 6 13:54:10 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 2EC7410C; Fri, 6 Sep 2013 13:54:10 +0000 (UTC) (envelope-from oliver.pntr@gmail.com) Received: from mail-oa0-x235.google.com (mail-oa0-x235.google.com [IPv6:2607:f8b0:4003:c02::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D47692C34; Fri, 6 Sep 2013 13:54:09 +0000 (UTC) Received: by mail-oa0-f53.google.com with SMTP id k18so3852460oag.26 for ; Fri, 06 Sep 2013 06:54:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=noSLOC0WcKFIjfVmThfmAunY3tRoMBe6hKkT10rXaBs=; b=bqa5cz4afjChWbiOXWKVGAvARAsPM0uRdyYz79Z4p1RYuYo0IywlCH5xXh+KH+1xGP o87Tf4sdBvDtfCNyvww6/Pw3yhlwBo95drm34dmEtCjIOGuG/lCiasqHwdzMuoMz+naJ h/Fwv/D7bWOYhdQPoV4htoXMVYORLWZhBfu///EXmMOeLBB8VOwLJyDbnFUQqv4gxxcl Tee7yvHBYe19PCXoLFY6b0ePANvkkuQ6CQnN9jsfrvreSPze0qempglgKL2PfF6LZWXA 8SdiDu4x3qZhtMdT3iXOq/gsr99O/dS8lkYa438wxTZUZ3UVQGKhh0OTwJvTek/wbOmd 7s2A== MIME-Version: 1.0 X-Received: by 10.182.48.194 with SMTP id o2mr1936689obn.90.1378475649198; Fri, 06 Sep 2013 06:54:09 -0700 (PDT) Received: by 10.182.22.161 with HTTP; Fri, 6 Sep 2013 06:54:09 -0700 (PDT) In-Reply-To: References: <20130905233725.05106d2a@munin.geoinf.fu-berlin.de> <3A76D5BA-4A37-4747-9DF8-B12C32015672@FreeBSD.org> Date: Fri, 6 Sep 2013 15:54:09 +0200 Message-ID: Subject: Re: devel/llvm33: failed to compile due to CLOCK_PROCESS_CPUTIME_ID issue From: Oliver Pinter To: Dimitry Andric Content-Type: text/plain; charset=ISO-8859-1 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 13:54:10 -0000 On 9/6/13, Dimitry Andric wrote: > 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. >>>> >>>> The port is at llvm-3.3_2 and is supposed to be updated to >>>> llvm-3.3_4. >>>> >>>> On FreeBSD 10.0-CURRENT there is no problem compiling the port. >>>> >>>> [...] >>>> 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) == 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 >>> >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/181817 >> >> 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. >> >> 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=15 on the command line of > lib/Support/Process.cpp, which is ugly, but works fine, unless somebody > changes the define again. :-) thanks! ;) > > -Dimitry > >