From owner-freebsd-ports@FreeBSD.ORG Thu Dec 18 14:27:00 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5BA2290F for ; Thu, 18 Dec 2014 14:27:00 +0000 (UTC) Received: from mail-pd0-f176.google.com (mail-pd0-f176.google.com [209.85.192.176]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 274A52054 for ; Thu, 18 Dec 2014 14:26:59 +0000 (UTC) Received: by mail-pd0-f176.google.com with SMTP id r10so1501227pdi.35 for ; Thu, 18 Dec 2014 06:26:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:message-id:references:to; bh=EgDqQl03gMfOfJkt+SJDNNEnUtEbl7yXAiOI0do0zD0=; b=c1QvB4OUrG9cY8EUoGsB2Ul2Qo69Y/tK2VQSCYdQu7sNfL+x64B8iOxXQZhfJChDDi boHOH+TDJ7jLGqDIJi5x6Ov7YvRou+nJYn83TLYmQaQhHTE7SMtbvxbyDIzwMyjURa1n +S8mWSRQ6g2kp2qsmnDN8homuhYzE6dAuuhbY0Ryk0/YAl8EO4RBhfLOgRQYi/V0HYTX LXXS9O6CGH9Kc0WzGEZrV7W63z8BFjRZhxF+ofmOISMiAJnVoaRAIbsgMB4UiG72pBj+ E20UwSK4hdN1FQwjqFLONLhGJNl+CGL3lWgLLt3Fwq/oag26BuJVpH80fdTf5NmKGcg6 mjIw== X-Gm-Message-State: ALoCoQl6WCcetFRxDY5S6SgpdTNXwcDlkj1vETHJiCRPO9zQtVETnTF6xV7tyWAnpBvuLmWLmuZp X-Received: by 10.70.44.66 with SMTP id c2mr3772673pdm.51.1418912505431; Thu, 18 Dec 2014 06:21:45 -0800 (PST) Received: from [10.64.27.55] ([69.53.236.236]) by mx.google.com with ESMTPSA id i11sm6997479pbq.23.2014.12.18.06.21.43 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 18 Dec 2014 06:21:44 -0800 (PST) Sender: Warner Losh Subject: Re: RFT: Please help testing the llvm/clang 3.5.0 import Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) Content-Type: multipart/signed; boundary="Apple-Mail=_EDB854E8-CC35-4A03-9A15-80A65063E49F"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Pgp-Agent: GPGMail 2.5b3 From: Warner Losh In-Reply-To: Date: Thu, 18 Dec 2014 07:21:41 -0700 Message-Id: References: <8598B1D4-5485-426F-B6D6-22BF26AC5FE1@FreeBSD.org> To: Dimitry Andric X-Mailer: Apple Mail (2.1993) Cc: FreeBSD ARM , FreeBSD-Current , FreeBSD ports , NGie Cooper X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Dec 2014 14:27:00 -0000 --Apple-Mail=_EDB854E8-CC35-4A03-9A15-80A65063E49F Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Dec 18, 2014, at 6:02 AM, Dimitry Andric wrote: >=20 > On 18 Dec 2014, at 02:17, NGie Cooper wrote: >>=20 >> On Fri, Nov 28, 2014 at 1:03 PM, Dimitry Andric = wrote: > ... >> As a request to speed up the build process further, >> - Would it be [easily] possible in the clang35 branch to bootstrap >> the compiler for a specific architecture? The bootstrap / cross >> compiler for instance always builds N targets instead of building = just >> the desired TARGET/TARGET_ARCH combo. >=20 > It's not very easy, at least not without breaking various parts of our > fragile build system, but I surely want to put something like this on > the TODO list for *after* the import has completed. >=20 > The branch is making progress right now, and I would not want to > complicate matters further by introducing yet another tricky feature. = :) The build system isn=E2=80=99t so much the issue, but you wind up with files that refer to all the architectures. But this is a request for a new feature, not quite in scope for a = compiler upgrade. >> - Could a "MK_CLANG_ALL_TARGETS" or something similar option be >> added to src.opts.mk to fine tune this process for those of us who >> don't want to build a cross-compile toolchain every iteration for our >> target MACHINE/MACHINE_ARCH? >=20 > I would be fine with something like this, as long as it is turned off = by > default, or if it is only used for the bootstrap stages. It is = actually > an extremely useful feature of clang that you can target multiple > architectures with one compiler binary. This is a new feature. Various people have tried in the past to = implement it and compiling just the mips files on mips is straight forward. = However, convincing clang to not reference the other architectures requires more sophistication than we currently have in the clang build process. > A more interesting case would be to remodel the build system so it can > use one toolchain (external, or pkg-ng'd, maybe?) for building an = entire > universe. With clang, that should be relatively easy to do. Another useful new feature. The hard part with this is getting all the = fiddly bits in the tree that depend on default CC producing proper binaries to cooperate.. Doable, but that=E2=80=99s a lot of universe builds. And = today it isn=E2=80=99t very practical because sparc64 and mips are broken... Warner --Apple-Mail=_EDB854E8-CC35-4A03-9A15-80A65063E49F 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----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJUkuL1AAoJEGwc0Sh9sBEAjZ8QAI6iBNKPSQmhd9pG/LFGfztN cnlt5SdJgHCYuVqncB0/R7yIQiU2xm+kjXemXbd08lUqiXhcxdUQAeusNgVkw3pF BR0kviv0qmWjbtdBkWRjVKbGdfGkk7lJZhKrFzSxEJNrL4/7cm3pvf4jGgX0UNl0 JiL7CQNl5tmeQMsKcy09SzI9MNXFxbhHiKD5majqgx4sFsguqNzZRwnh78Cez8GM CMgVkRfGEY0FG49a+2iUDbq1/J7+tMTew8HpE5wgMsXlnYwi4jjTeZnpnoaq4IEa u4kIedMMbNoGyUTuM5wWN7XUe4RtOWqbye6ZEdtIn7LIPQFkWXU0Wj2nCxjsiMYt Kn+HJRhM2IaJA3RkYJW9o49Ek7841ZbG0zkUBFsRIM0UZstItZnUbUmHBqXG1pcB JSOj+k/Obrn1aXa7va4XQidNwtGi03EHuDJTTk7KqpAwiHb4aqFmPTXzKpKNR37G DZLQKZ32OWAqyr80pKrn33jj9mzq7CYAU8c6SvOWUkL2+W5dn5b5P7evvzmrglsX noRNiiHmRJiDdn1HJemUVWyLlTyHbgm1DtMu/Dc/k40a3pRAv2kAYVNcZ0HpcyP3 sPKI3zeariL5x+bssleP0lUyJNKZcsyr1F9BlLhO2u+hOFbmjHucQgqekuQ/UOpv /teGdffq8+qwuBVpJCFO =7moE -----END PGP SIGNATURE----- --Apple-Mail=_EDB854E8-CC35-4A03-9A15-80A65063E49F--