From owner-freebsd-current@FreeBSD.ORG Tue May 7 14:01:29 2013 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id E6B79A02 for ; Tue, 7 May 2013 14:01:29 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from mail-we0-x233.google.com (mail-we0-x233.google.com [IPv6:2a00:1450:400c:c03::233]) by mx1.freebsd.org (Postfix) with ESMTP id 83FE89CA for ; Tue, 7 May 2013 14:01:29 +0000 (UTC) Received: by mail-we0-f179.google.com with SMTP id t59so548285wes.10 for ; Tue, 07 May 2013 07:01:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:content-transfer-encoding; bh=kksQ3cXRF1/TyXU12oY9RwYg6wd3kufhggatF/iz+Ow=; b=qJ7f4rLIvNJluyVFbg+F1ePMHQHuwLq5KfLnL19Ld1TzJgK1vr8Wqff3iVhoOaJmei jdr8VILvB0Cykv7HH3Vc4jO4l8JInMY5ua1WXjnhwgw+1woWLAkrs1ry3ZWUauAHJgfC U7Vc+gNmY0fGDNnuj1gQ3FTIRsdsnDP4/U40WD92UpI77+ly73xoq4vYk0TkCf5NJcRU LOhMkYFdZg90zP0CrD4T93mCRbGtBtUJgnEIIMQKhcGmTRGmb5ZSIIYX0X+fnPriF14H CbfpOZmMRUNjUQfs18w3/vVJSjp0RjqkpNAMesJD6n2ytPhnh3Tgeexz3eFqBpcbFx1k hp4w== MIME-Version: 1.0 X-Received: by 10.180.183.50 with SMTP id ej18mr3643892wic.4.1367935288620; Tue, 07 May 2013 07:01:28 -0700 (PDT) Received: by 10.194.29.199 with HTTP; Tue, 7 May 2013 07:01:28 -0700 (PDT) In-Reply-To: <20130507132122.GA83633@bewilderbeast.blackhelicopters.org> References: <20130507132122.GA83633@bewilderbeast.blackhelicopters.org> Date: Tue, 7 May 2013 18:01:28 +0400 Message-ID: Subject: Re: problem building -current From: Sergey Kandaurov To: "Michael W. Lucas" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 May 2013 14:01:30 -0000 On 7 May 2013 17:21, Michael W. Lucas wrote: > > Hi, > > I'm running an older -current: > > bewilderbeast/usr/src;uname -a > FreeBSD bewilderbeast.blackhelicopters.org 10.0-CURRENT FreeBSD 10.0-CURR= ENT #15: Thu Nov 8 14:02:45 EST 2012 mwlucas@bewilderbeast.blackhelico= pters.org:/usr/obj/usr/src/sys/G > > Trying to build new, and get: > > ... > c++ -O2 -pipe -I/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/= include -I/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/tools/cla= ng/include -I/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Su= pport -I. -I/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/../../l= ib/clang/include -DLLVM_ON_UNIX -DLLVM_ON_FREEBSD -D__STDC_LIMIT_MACROS -D_= _STDC_CONSTANT_MACROS -fno-strict-aliasing -DLLVM_DEFAULT_TARGET_TRIPLE=3D\= "x86_64-unknown-freebsd10.0\" -DLLVM_HOSTTRIPLE=3D\"x86_64-unknown-freebsd1= 0.0\" -DDEFAULT_SYSROOT=3D\"\" -I/usr/obj/usr/src/tmp/legacy/usr/include -f= no-exceptions -fno-rtti -c /usr/src/lib/clang/libllvmsupport/../../../contr= ib/llvm/lib/Support/Process.cpp -o Process.o > In file included from /usr/src/lib/clang/libllvmsupport/../../../contrib/= llvm/lib/Support/Process.cpp:85: > /usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/Unix/= Process.inc: In member function 'virtual llvm::sys::TimeValue llvm::sys::se= lf_process::get_user_time() const': > /usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/Unix/= Process.inc:75: error: 'CLOCK_PROCESS_CPUTIME_ID' was not declared in this = scope > *** [Process.o] Error code 1 You can try to install this change into your /usr/include/time.h and try ag= ain. http://svnweb.freebsd.org/base?view=3Drevision&revision=3D245428 --- head/include/time.h 2013/01/14 17:41:04 245427 +++ head/include/time.h 2013/01/14 18:01:19 245428 @@ -112,6 +112,7 @@ #define CLOCK_MONOTONIC_FAST 12 /* FreeBSD-specific. */ #define CLOCK_SECOND 13 /* FreeBSD-specific. */ #define CLOCK_THREAD_CPUTIME_ID 14 +#define CLOCK_PROCESS_CPUTIME_ID 15 #endif /* !defined(CLOCK_REALTIME) && __POSIX_VISIBLE >=3D 200112 */ #if !defined(TIMER_ABSTIME) && __POSIX_VISIBLE >=3D 200112 --=20 wbr, pluknet