Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Mar 2012 14:23:17 +0100
From:      Dimitry Andric <dim@FreeBSD.org>
To:        Ivan Klymenko <fidaj@ukr.net>
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:  <4F5B55C5.5010802@FreeBSD.org>
In-Reply-To: <20120310113910.3f097c13@nonamehost.>
References:  <4F5A991F.4080502@mail.zedat.fu-berlin.de> <20120310113910.3f097c13@nonamehost.>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F5B55C5.5010802>