On 17 Nov 2013, at 20:37, Warner Losh <i...@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
signature.asc
Description: Message signed with OpenPGP using GPGMail