From owner-freebsd-hackers@FreeBSD.ORG Tue May 19 16:53:40 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 574A2A5E; Tue, 19 May 2015 16:53:40 +0000 (UTC) Received: from spindle.one-eyed-alien.net (spindle.one-eyed-alien.net [199.48.129.229]) by mx1.freebsd.org (Postfix) with ESMTP id 3519C1726; Tue, 19 May 2015 16:53:39 +0000 (UTC) Received: by spindle.one-eyed-alien.net (Postfix, from userid 3001) id DE6C05A9F25; Tue, 19 May 2015 16:53:32 +0000 (UTC) Date: Tue, 19 May 2015 16:53:32 +0000 From: Brooks Davis To: sbruno@freebsd.org Cc: "freebsd-hackers@freebsd.org" Subject: Re: Trying to use clang/head and XCC Message-ID: <20150519165332.GA36377@spindle.one-eyed-alien.net> References: <555B638E.4020405@ignoranthack.me> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="AqsLC8rIMeq19msA" Content-Disposition: inline In-Reply-To: <555B638E.4020405@ignoranthack.me> User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 May 2015 16:53:40 -0000 --AqsLC8rIMeq19msA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, May 19, 2015 at 09:23:42AM -0700, Sean Bruno wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA512 >=20 > Following the External Tool Chain instructions on the wiki seem to not > work: > https://wiki.freebsd.org/ExternalToolchain >=20 > I've gotten about this far: > https://people.freebsd.org/~sbruno/clang_head_build_log.txt You need to delete /home/sbruno/bsd/clang/build/bin/../lib/clang/3.7.0/include/std* and possibly also limits.h (it's broken for libstand on mips). If you use the ports/pkgs they do this. > Two items of note. > -- The bootstrap bits *completely* ignore XCC and build with the host > cc/c++ That's expected. In principle clang could be used as the cross compiler since it's multi-target, but gcc could never work unless the host and target are the same. > -- No documentation of what CFLAGS are required to build and ignore > warnings. It will change with every clang/gcc release. In practice you will need to either fix the warnings wack-a-mole style or set NO_WERROR in the environment. -- Brooks >=20 > Anyone out there have success doing this? >=20 > sean > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v2 >=20 > iQF8BAEBCgBmBQJVW2OLXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w > ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRCQUFENDYzMkU3MTIxREU4RDIwOTk3REQx > MjAxRUZDQTFFNzI3RTY0AAoJEBIB78oecn5k3mQIAKuOxH8h1AdG19pVCks2N91i > u50m/EWqyhOqJtW9PzHgFhmph8dtzZQVXbh3JG2Ac8bQjHdvuFP4yG5PJKISK3ZQ > 2JhD+8B2qrJlv6kocE39WiSEXZRf6nQkbrh/DNzRN0tDHPtxsJ6vfN7j5oWap32j > ZKVMq4I61zmACN/trb/8Ns2bmwRKd003F5vmytx4FG1vA3Q14l/URvcBmFstPGDq > nmcvMf2oU190R2XQEwuqmkTGouaIkJ1j28x4/I4lH+tLKPKkErklpZxxm+jf+QQd > j++8+zoiEQVYrEPKEoc5xd1V393vvt5+kc7Kqo2kqJrK4+EjsLpSQMuQ9tDgQRU=3D > =3DwYq7 > -----END PGP SIGNATURE----- > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" >=20 --AqsLC8rIMeq19msA Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJVW2qLAAoJEKzQXbSebgfAxbMH/jI7ia+dO/b4uaxHmVe1rZLf uPXkv8N4gG8ShJL262F9SOmyqPFOCEl0+VwN+3ICthKCOFhv5RXcOEdpEoLKO//B H/SN2xAFVhYPb7qhI0I4ORJ+z43CejD0vHcloawz3QeTSpMQY4bgFZy2ZZYbOoat 0L4mHzNbQLlPnsHiCvd7CH9KeHHdwn3+WqJO1c/DU59ZCuwkDzS2urAWzRuHeUA5 cpRtS4TMBp5RnCZsznziaEQzYPHwjKApUXzh5vE8Gk1rYgDMIA5p2jxY1ksND1S4 M5mmd5HpT4VLxuVthMNFJiTqF6SptS3mwsXAxfGUK5acvXiFMQyTDjOfu6pstVU= =0GjU -----END PGP SIGNATURE----- --AqsLC8rIMeq19msA--