From owner-freebsd-current@freebsd.org Sat Dec 9 13:40:21 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 83AF8E8B96D for ; Sat, 9 Dec 2017 13:40:21 +0000 (UTC) (envelope-from imb@protected-networks.net) Received: from mail.protected-networks.net (mail.protected-networks.net [202.12.127.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protected-networks.net", Issuer "Protected Networks CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4E1A96597E for ; Sat, 9 Dec 2017 13:40:20 +0000 (UTC) (envelope-from imb@protected-networks.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d= protected-networks.net; h=content-transfer-encoding :content-language:content-type:content-type:in-reply-to :mime-version:user-agent:date:date:message-id:from:from :references:subject:subject; s=201508; t=1512826818; bh=1yk4iW0f APk0hO7YS6xZA5/15t+8vOdd/xpEgVYJzAY=; b=SjPdfB4IGh7orDqFoGFFRXA9 yxkJDj5OdrsRFwKME5DX2JrhU1X0IonZ3ccM3p7yQinkvKaBKxjUqrUiYddANZ5s EYbpzP6egeJvjZNhAO8928Cq+lZRDcunweyI3z2EEzEpkLwwxbbJ9e5SzSujeIeu 8xcg4ELSTlzNh7/85Q8= Received: from toshi.auburn.protected-networks.net (toshi.auburn.protected-networks.net [192.168.1.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: imb@mail.protected-networks.net) by mail.protected-networks.net (Postfix) with ESMTPSA id D44CB9D64; Sat, 9 Dec 2017 08:40:18 -0500 (EST) Subject: Re: reducing build times; selecting specific clang targets To: Ed Schouten Cc: FreeBSD Current References: <4ff42e67-c045-4255-a96a-bcd3fb8d116c@protected-networks.net> From: Michael Butler Message-ID: <8a3b8f49-5e10-09df-3682-b411a481f001@protected-networks.net> Date: Sat, 9 Dec 2017 08:40:17 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Dec 2017 13:40:21 -0000 On 12/09/17 02:50, Ed Schouten wrote: > Hi Michael, > > 2017-12-09 4:57 GMT+01:00 Michael Butler : >> As clang builds for multiple targets unconditionally, it takes *days* to >> build on one of my devices (700MHz Pentium-3). >> >> Is there a way to restrict the build targets to i386 only? If not, can we >> implement one? > > Regardless of the discussion of how and whether this may be > implemented, do take into consideration that the target specific bits > in Clang only account for a minority of the build time. It is not as > if Clang is literally built multiple times, once for every > architecture. The build will likely still take several days, even if > this got fixed. > > Have you considered doing builds on some other system and copying the > results over? According to Wikipedia, they stopped producing Pentium > III CPUs 14 years ago. Using these systems to do actual builds sounds > like a waste of electricity. > Far less than the electricity consumed by an entire planet's worth of BSD systems building for targets they'll never use. The target system is in a remote data-center to which I have limited access and is the only remaining one of its type in my network. The old installer used to be able to select a set of source archives from which to update but I don't see that functionality in any of the current tools. What did I miss? imb