make xdev broken

Dimitry Andric dim at FreeBSD.org
Sun Nov 17 21:45:47 UTC 2013


On 17 Nov 2013, at 20:37, Warner Losh <imp at bsdimp.com> wrote:
> In 9.2 stable on amd64, make xdev is broken.
> 
> sudo make xdev XDEV=i386 XDEV_ARCH=i386
> 
> terminates with
> 
> In file included from /imp/svn/stable/9/lib/clang/libclanganalysis/../../../contrib/llvm/tools/clang/lib/Analysis/CFG.cpp:17:
> /imp/svn/stable/9/lib/clang/libclanganalysis/../../../contrib/llvm/tools/clang/include/clang/AST/Attr.h: In static member function 'static bool clang::MSInheritanceAttr::classof(const clang::Attr*)':
> /imp/svn/stable/9/lib/clang/libclanganalysis/../../../contrib/llvm/tools/clang/include/clang/AST/Attr.h:148: error: 'LAST_MS_INHERITABLE' is not a member of 'clang::attr'
> 
> what's up with that? Any ideas on how to fix this?

Was it ever supposed to work?  As far as I can see in Makefile.inc1, it
is only supposed to build binutils and gcc, but nothing clang-related.

In any case, to build clang, you also need to build tblgen and
clang-tblgen as bootstrap tools, otherwise you might end up with
incorrectly generated .inc files.  This is most likely the cause of the
errors you list above.

If the only purpose of xdev is to build binutils and gcc, the easiest
solution is probably to exclude the clang libraries from the
_xi-libraries target, for example by setting WITHOUT_CLANG to a
non-empty value.

-Dimitry

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 203 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-toolchain/attachments/20131117/54b6585d/attachment.sig>


More information about the freebsd-toolchain mailing list