From owner-freebsd-current@FreeBSD.ORG Sat Mar 10 13:23:11 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2E361106564A for ; Sat, 10 Mar 2012 13:23:11 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (cl-327.ede-01.nl.sixxs.net [IPv6:2001:7b8:2ff:146::2]) by mx1.freebsd.org (Postfix) with ESMTP id DAB2F8FC0A for ; Sat, 10 Mar 2012 13:23:10 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7:0:9cb1:feea:2bf1:b827] (unknown [IPv6:2001:7b8:3a7:0:9cb1:feea:2bf1:b827]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 123AC5C37; Sat, 10 Mar 2012 14:23:10 +0100 (CET) Message-ID: <4F5B55C5.5010802@FreeBSD.org> Date: Sat, 10 Mar 2012 14:23:17 +0100 From: Dimitry Andric Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20120229 Thunderbird/11.0 MIME-Version: 1.0 To: Ivan Klymenko References: <4F5A991F.4080502@mail.zedat.fu-berlin.de> <20120310113910.3f097c13@nonamehost.> In-Reply-To: <20120310113910.3f097c13@nonamehost.> X-Enigmail-Version: 1.4a1pre Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: "O. Hartmann" , Current FreeBSD Subject: Re: FreeBSD 10.0-CURRENT #0 r232730: buildworld broken with CLANG? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Sat, 10 Mar 2012 13:23:11 -0000 On 2012-03-10 10:39, Ivan Klymenko wrote: ... > I have a similar problem, but with a different result. > > I noticed this only with the svn revision r232253 > > FreeBSD 10.0-CURRENT #0 r232717M > > make.conf: > ... > #For ccache > .if (!empty(.CURDIR:M/usr/src*) || !empty(.CURDIR:M/usr/obj*)) && !defined(NOCCACHE) > CC:=${CC:C,^cc,/usr/local/libexec/ccache/world/clang,1} > CXX:=${CXX:C,^c\+\+,/usr/local/libexec/ccache/world/clang++,1} > .endif > > .if empty(.CURDIR:M/usr/ports/*) > .if !defined(CC) || ${CC} == "cc" > CC=/usr/local/libexec/ccache/clang > .endif > .if !defined(CXX) || ${CXX} == "c++" > CXX=/usr/local/libexec/ccache/clang++ > .endif > .if !defined(CPP) || ${CPP} == "cpp" > CPP=/usr/local/libexec/ccache/clang -E There is your problem. Don't use "clang -E", use "clang-cpp". Unfortunately, due to compatibility reasons with gcc, "clang -E" behaves differently than invoking it as "clang-cpp". ... > In file included from /usr/src/lib/libc/../../include/rpc/rpc.h:76: > /usr/src/lib/libc/../../include/rpc/rpcb_clnt.h:69:8: error: unknown type name 'rpcblist' > extern rpcblist *rpcb_getmaps(const struct netconfig *, const char *); > ^ And this is the result of it.