From owner-freebsd-arch@freebsd.org Wed Oct 5 18:15:09 2016 Return-Path: Delivered-To: freebsd-arch@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 98587AF69E6 for ; Wed, 5 Oct 2016 18:15:09 +0000 (UTC) (envelope-from gonzo@bluezbox.com) Received: from id.bluezbox.com (id.bluezbox.com [45.55.20.155]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 804932A5 for ; Wed, 5 Oct 2016 18:15:09 +0000 (UTC) (envelope-from gonzo@bluezbox.com) Received: from [127.0.0.1] (helo=id.bluezbox.com) by id.bluezbox.com with esmtp (Exim 4.86_2 (FreeBSD)) (envelope-from ) id 1brqib-000AZs-7U for freebsd-arch@freebsd.org; Wed, 05 Oct 2016 11:15:01 -0700 Received: (from gonzo@localhost) by id.bluezbox.com (8.15.2/8.15.2/Submit) id u95IF0iq040663 for freebsd-arch@freebsd.org; Wed, 5 Oct 2016 11:15:00 -0700 (PDT) (envelope-from gonzo@bluezbox.com) X-Authentication-Warning: id.bluezbox.com: gonzo set sender to gonzo@bluezbox.com using -f Date: Wed, 5 Oct 2016 11:15:00 -0700 From: Oleksandr Tymoshenko To: freebsd-arch@freebsd.org Subject: Recycling xdev to be cross-toolchain? Message-ID: <20161005181500.GA40468@bluezbox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Operating-System: FreeBSD/10.3-RELEASE-p3 (amd64) User-Agent: Mutt/1.6.1 (2016-04-27) X-Spam-Level: -- X-Spam-Report: Spam detection software, running on the system "id.bluezbox.com", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see The administrator of that system for details. Content preview: Hello arch@, xdev was added to base a while ago by Warner Losh as a sysroot + cross-toolchains for cross-compiling ports. It grew less relevant with introduction of qemu-userland support and lately got bitrotten and at the moment is broken due to the reasons outlined by dim@ in this issue: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=213217 [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Oct 2016 18:15:09 -0000 Hello arch@, xdev was added to base a while ago by Warner Losh as a sysroot + cross-toolchains for cross-compiling ports. It grew less relevant with introduction of qemu-userland support and lately got bitrotten and at the moment is broken due to the reasons outlined by dim@ in this issue: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=213217 Though sysroot part of xdev environment is probably of no use to anyone I find toolchain part of it extremely useful. I do routine cross-builds of Qt git repo and having all the tools in one place is very convenient. I use NFS root for my ARM devices as a sysroot in this case. So what I suggest is to cut off sysroot bits and keep clang+binutils part. Later when base is going to be package-based it may be shipped as a ready-to-use cross-compilation package. I created preliminary patch[1] for this, it still requires some work and I am not sure about mtree part of it but if consensus will be to go this way - I'll clean it up and submit for formal review On the other hadn if there are other cross-toolchain efforts going on I am not aware of, it might be easier to just kill xdev altogether. [1] https://people.freebsd.org/~gonzo/patches/xdev-as-toolchain.diff -- gonzo