Total confusion over toolchain/xdev behavior
Warner Losh
imp at bsdimp.com
Tue Jul 8 15:10:22 UTC 2014
On Jul 8, 2014, at 6:35 AM, Sean Bruno <sbruno at ignoranthack.me> wrote:
> On Mon, 2014-07-07 at 21:19 -0600, Warner Losh wrote:
>> On Jul 7, 2014, at 8:59 PM, Tim Kientzle <tim at kientzle.com> wrote:
>>
>>>
>>> On Jul 6, 2014, at 4:07 PM, Sean Bruno <sbruno at ignoranthack.me> wrote:
>>>
>>>> Objective: install an xcompile toolchain into a jail for use by
>>>> poudriere during arm/mips/sparc/power ports pkgs builds. The build
>>>> should be possible from a non-root user.
>>
>> I just re-read this…
>>
>> So why doesn’t the following work:
>>
>> make buildworld TARGET=foo
>> make installworld TARGET=foo DESTDIR=root-of-jail WITH_INSTALL_AS_USER=t
>>
>> to generate a jail that you can use? Or are you trying to get a native cross compiler
>> into the jail? neither toolchain nor xdev will fit your needs, I fear...
>>
>> Or, in gcc terms, you’d like to build host == build == arch-of-the-silicon-of-the-mahine, target == mips or something?
>>
>> Warner
>>
>
> I am trying to speed up xcompile build of ports. Right now, qemu
> bsd-user is handling the builds via a native gcc/clang which is super
> slow as everything is emulated.
Yea, we got nothing that’s for that use case. toolchain is for the weird world that we build /usr/src in. xdev is for building mips on x86 when the rest of the tree is x86. You’re wanting native binaries when the rest of the world is mips but that behave like the world is mips so that when invoked in the typical ports way, it just works. I don’t think xdev will do that because the paths are messed up and you’ll need two copies of libraries, includes, etc. It expects to be installed in /usr/$ARCH-freebsd/<mumble> and if it isn’t, it gets cranky.
Having said that, it sounds like a third way to build these may be needed. One that expects to be installed in /usr/bin, is amd64 executable, but produces mips binaries from /usr/lib, /lib, etc.
Warner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-arch/attachments/20140708/da116c2e/attachment.sig>
More information about the freebsd-arch
mailing list