Re: FreeBSD 10.0-CURRENT #0 r232730: buildworld broken with CLANG?

From: Ivan Klymenko <fidaj_at_ukr.net>
Date: Sat, 10 Mar 2012 15:37:28 +0200
В Sat, 10 Mar 2012 14:23:17 +0100
Dimitry Andric <dim_at_FreeBSD.org> пишет:

> 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".

Thank you!

> 
> 
> ...
> > 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.
Received on Sat Mar 10 2012 - 12:37:37 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:24 UTC