Re: make xdev broken
On Nov 17, 2013, at 2:45 PM, Dimitry Andric wrote: > On 17 Nov 2013, at 20:37, Warner Losh 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. But it builds clang stuff! Even though it isn't building clang. I added WITHOUT_CLANG=t... > 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. That makes sense. > 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. Yes. I realized that. I should fix this by adding that to the makefile. It isn't clear to me if xdev should evolve clang support or not. It was done the way it was to be as compatible as possible with normal cross development... I'm honestly not sure how to do that with clang.. The clang guys just blew off (or were ignorant of) xdev, so it isn't surprising it doesn't work. Annoying, but not surprising. Warner ___ freebsd-toolchain@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-toolchain To unsubscribe, send any mail to "freebsd-toolchain-unsubscr...@freebsd.org"
Re: make xdev broken
On 17 Nov 2013, at 20:37, Warner Losh 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
make xdev broken
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? Warner ___ freebsd-toolchain@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-toolchain To unsubscribe, send any mail to "freebsd-toolchain-unsubscr...@freebsd.org"