Re: Does anyone regularly build HEAD with clang?

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Mon, 13 Feb 2012 14:59:01 +0100
On 2012-02-13 06:42, Jordan K. Hubbard wrote:
> I've noticed that it's been broken for about a week as a result of:
> 
> --- /usr/src/lib/libc/../../include/rpc/rpcb_clnt.h.orig	2012-02-12 22:42:29.000000000 -0800
> +++ /usr/src/lib/libc/../../include/rpc/rpcb_clnt.h	2012-02-12 22:41:27.000000000 -0800
> _at__at_ -66,7 +66,7 _at__at_
>  		       const struct netconfig  *, const struct netbuf *);
>  extern bool_t rpcb_unset(const rpcprog_t, const rpcvers_t,
>  			 const struct netconfig *);
> -extern rpcblist	*rpcb_getmaps(const struct netconfig *, const char *);
> +extern struct rpcblist	*rpcb_getmaps(const struct netconfig *, const char *);
>  extern enum clnt_stat rpcb_rmtcall(const struct netconfig *,
>  				   const char *, const rpcprog_t,
>  				   const rpcvers_t, const rpcproc_t,
> 
> Easy fix (I don't have a commit bit anymore or I'd just check it in), but it makes me wonder if anyone is building with clang on a regular basis or they'd have caught this one quickly.

I build it very regularly, and there are several buildbots that also
build it continously (though they currently don't spam the mailing
lists).  For me, and the buildbots, head builds just fine with clang,
though.  What was the exact error you got during buildworld?

In any case, it is likely your problem is caused by my recent fixes to
rpcgen, which make it use the C preprocessor built during buildworld,
instead of always using /usr/bin/cpp.

What are your CC, CXX and CPP settings in make.conf?  And can you please
post the file:

  /usr/obj/usr/src/tmp/usr/include/rpc/rpcb_prot.h

which should have been generated by rpcgen during build.  It is probably
missing the line:

  typedef struct rp__list rpcblist; 
Received on Mon Feb 13 2012 - 12:59:02 UTC

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