From owner-freebsd-toolchain@FreeBSD.ORG Sun Nov 17 21:45:47 2013 Return-Path: Delivered-To: toolchain@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D4BFC4CE for ; Sun, 17 Nov 2013 21:45:47 +0000 (UTC) Received: from tensor.andric.com (tensor.andric.com [IPv6:2001:7b8:3a7:1:2d0:b7ff:fea0:8c26]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 97A1826C6 for ; Sun, 17 Nov 2013 21:45:44 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7::982f:fa33:8d62:45e6] (unknown [IPv6:2001:7b8:3a7:0:982f:fa33:8d62:45e6]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 4C85B5C43; Sun, 17 Nov 2013 22:45:39 +0100 (CET) Content-Type: multipart/signed; boundary="Apple-Mail=_DCA9D479-6E3B-4580-8B49-FDF8FA42169F"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1822\)) Subject: Re: make xdev broken From: Dimitry Andric In-Reply-To: Date: Sun, 17 Nov 2013 22:45:26 +0100 Message-Id: References: To: Warner Losh X-Mailer: Apple Mail (2.1822) Cc: "toolchain@freebsd.org" X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Nov 2013 21:45:47 -0000 --Apple-Mail=_DCA9D479-6E3B-4580-8B49-FDF8FA42169F Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 17 Nov 2013, at 20:37, Warner Losh wrote: > In 9.2 stable on amd64, make xdev is broken. >=20 > sudo make xdev XDEV=3Di386 XDEV_ARCH=3Di386 >=20 > terminates with >=20 > In file included from = /imp/svn/stable/9/lib/clang/libclanganalysis/../../../contrib/llvm/tools/c= lang/lib/Analysis/CFG.cpp:17: > = /imp/svn/stable/9/lib/clang/libclanganalysis/../../../contrib/llvm/tools/c= lang/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/c= lang/include/clang/AST/Attr.h:148: error: 'LAST_MS_INHERITABLE' is not a = member of 'clang::attr' >=20 > 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 --Apple-Mail=_DCA9D479-6E3B-4580-8B49-FDF8FA42169F Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iEYEARECAAYFAlKJOP8ACgkQsF6jCi4glqMNlACdHvUNBKHLj7sJZ0xTdEw4dUMx /4sAoMscvAPd+UyEh7powdx1CGWJSUPY =0RGa -----END PGP SIGNATURE----- --Apple-Mail=_DCA9D479-6E3B-4580-8B49-FDF8FA42169F--