Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Oct 2016 11:15:00 -0700
From:      Oleksandr Tymoshenko <gonzo@bluezbox.com>
To:        freebsd-arch@freebsd.org
Subject:   Recycling xdev to be cross-toolchain?
Message-ID:  <20161005181500.GA40468@bluezbox.com>

next in thread | raw e-mail | index | archive | help

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20161005181500.GA40468>