From owner-freebsd-hackers@FreeBSD.ORG Tue May 19 19:06:18 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 84E85C24; Tue, 19 May 2015 19:06:18 +0000 (UTC) Received: from mail-pd0-x231.google.com (mail-pd0-x231.google.com [IPv6:2607:f8b0:400e:c02::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 552B81793; Tue, 19 May 2015 19:06:18 +0000 (UTC) Received: by pdbnk13 with SMTP id nk13so37115666pdb.1; Tue, 19 May 2015 12:06:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:content-transfer-encoding:subject:references:from :mime-version:in-reply-to:message-id:date:cc:to; bh=yGbyuNZZcnf+WqeDSNoKEuU5clC7x6WaNZ61xKbdgOw=; b=k9d4AQhPYANksJpEFysbc9VgWRSfAG0IzPbShGRCgO0w23k9DL8j8BfA9L2+fu+seL Ct1MfDEGPaQ6W5C+k/empuDVRUrV/a+qAmovcvhNyi/x+AWalXGJ6xbvqEZP8iwJNxl1 dbIEjU4nHd73X74EdeBe0wYwmFWl2SuoFLJ6PGtFpRp9/w8aytvJ/1rDD9pgJfG23eGo rXcc9GzZou8c1nqd5CKBpI6l4k2rPzJ3GoSKn8JVSNBcnYTXrUt+YJ+Jt4xG5b/0r5Vh UVDSVDzIdFJCDc5fFuUkuQk1izoJZdCVILJAEAe6Bh9ypiVPwdaDfW6Mn0/1gPqiYGj5 duGw== X-Received: by 10.69.17.68 with SMTP id gc4mr56108098pbd.7.1432062377847; Tue, 19 May 2015 12:06:17 -0700 (PDT) Received: from [192.168.242.55] (c-67-182-131-225.hsd1.wa.comcast.net. [67.182.131.225]) by mx.google.com with ESMTPSA id nl16sm13812775pdb.56.2015.05.19.12.06.16 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 19 May 2015 12:06:17 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: Re: Trying to use clang/head and XCC References: <555B638E.4020405@ignoranthack.me> <20150519165332.GA36377@spindle.one-eyed-alien.net> From: Garrett Cooper Mime-Version: 1.0 (1.0) In-Reply-To: <20150519165332.GA36377@spindle.one-eyed-alien.net> Message-Id: <168384B2-A313-4D10-8E5C-2A7A7FC807B7@gmail.com> Date: Tue, 19 May 2015 11:55:08 -0700 Cc: "sbruno@freebsd.org" , "freebsd-hackers@freebsd.org" To: Brooks Davis X-Mailer: iPhone Mail (12F70) 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 19:06:18 -0000 > On May 19, 2015, at 09:53, Brooks Davis wrote: >=20 >> 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 >=20 > 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. >=20 >> Two items of note. >> -- The bootstrap bits *completely* ignore XCC and build with the host >> cc/c++ >=20 > 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. >=20 >> -- No documentation of what CFLAGS are required to build and ignore >> warnings. >=20 > 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. >=20 > -- Brooks >=20 >>=20 >> Anyone out there have success doing this? It'd be really nice if FreeBSD had HOST_CC, etc or something like that. It's= unfortunate that I can't build 10.x on hosts with clang 3.6 installed becau= se it fails to make bootstrap-tools (which needs to be built with the host c= ompiler) because of -Werror ;(... Thanks, -NGie=