Date: Sat, 10 Mar 2012 15:37:28 +0200 From: Ivan Klymenko <fidaj@ukr.net> To: Dimitry Andric <dim@FreeBSD.org> Cc: "O. Hartmann" <ohartman@mail.zedat.fu-berlin.de>, Current FreeBSD <freebsd-current@freebsd.org> Subject: Re: FreeBSD 10.0-CURRENT #0 r232730: buildworld broken with CLANG? Message-ID: <20120310153728.4f9d81d8@nonamehost.> In-Reply-To: <4F5B55C5.5010802@FreeBSD.org> References: <4F5A991F.4080502@mail.zedat.fu-berlin.de> <20120310113910.3f097c13@nonamehost.> <4F5B55C5.5010802@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
=D0=92 Sat, 10 Mar 2012 14:23:17 +0100 Dimitry Andric <dim@FreeBSD.org> =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > On 2012-03-10 10:39, Ivan Klymenko wrote: > ... > > I have a similar problem, but with a different result. > >=20 > > I noticed this only with the svn revision r232253 > >=20 > > FreeBSD 10.0-CURRENT #0 r232717M > >=20 > > make.conf: > > ... > > #For ccache > > .if (!empty(.CURDIR:M/usr/src*) || !empty(.CURDIR:M/usr/obj*)) > > && !defined(NOCCACHE) > > CC:=3D${CC:C,^cc,/usr/local/libexec/ccache/world/clang,1} > > CXX:=3D${CXX:C,^c\+\+,/usr/local/libexec/ccache/world/clang++,1} .endif > >=20 > > .if empty(.CURDIR:M/usr/ports/*) > > .if !defined(CC) || ${CC} =3D=3D "cc" > > CC=3D/usr/local/libexec/ccache/clang > > .endif > > .if !defined(CXX) || ${CXX} =3D=3D "c++" > > CXX=3D/usr/local/libexec/ccache/clang++ > > .endif > > .if !defined(CPP) || ${CPP} =3D=3D "cpp" > > CPP=3D/usr/local/libexec/ccache/clang -E >=20 > 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". Thank you! >=20 >=20 > ... > > 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 *); ^ >=20 > And this is the result of it.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120310153728.4f9d81d8>