<p dir="ltr">So to actually follow through on something I've suggested on this list and because after going back through the thread I noticed the Linux emulation layer was already mentioned, I went ahead and tried to compile Toybox under Ubuntu 14.04 under Docker under FreeBSD, and was successful with:</p>
<p dir="ltr">make defconfig<br>
make<br>
make install</p>
<p dir="ltr">However 'make test' had perhaps a 30% failure rate and I'm not sure if this was due to Ubuntu, Docker, or FreeBSD. Here's some sample error messages:</p>
<p dir="ltr">....<br>
FAIL: Hostname - Set, Get and then Reset<br>
ifconfig: ioctl 8913: Invalid argument<br>
ifconfig: ioctl 8913: Invalid argument<br>
FAIL: ifconfig dummy0 down and if config /-only<br>
ifconfig: ioctl 8913: Invalid argument<br>
FAIL: ifconfig dummy0 up<br>
ifconfig: ioctl 8916: Invalid argument<br>
FAIL: ifconfig dummy0 10.240.240.240<br>
ifconfig: ioctl 891c: Invalid argument<br>
FAIL: ifconfig dummy0 netmask 255.255.240.0<br>
ifconfig: ioctl 891a: Invalid argument<br>
FAIL: ifconfig dummy0 broadcast 10.240.240.255<br>
ifconfig: ioctl 8916: Invalid argument<br>
FAIL: ifconfig dummy0 default<br>
ifconfig: ioctl 8922: Invalid argument<br>
FAIL: ifconfig dummy0 mtu 1269<br>
FAIL: ifconfig dummy0 add ::2 -- too small mtu<br>
ifconfig: ioctl 8922: Invalid argument<br>
FAIL: ifconfig dummy0 mtu 2000<br>
ifconfig: socket 2 0: Protocol not supported<br>
FAIL: ifconfig dummy0 add ::2<br>
ifconfig: socket 2 0: Protocol not supported<br>
FAIL: ifconfig dummy0 del ::2<br>
ifconfig: ioctl 8913: Invalid argument<br>
FAIL: Hostname - Set, Get and then Reset<br>
ifconfig: ioctl 8913: Invalid argument<br>
...</p>
<p dir="ltr">If there's any interest in continuing to test on this, I'd be glad to investigate further. Perhaps by trying with a different Linux implementation under emulation to start.</p>
<p dir="ltr">- Zack<br></p>
<p dir="ltr">> On Mar 29, 2016 7:01 PM, "Zack Breckenridge" <<a href="mailto:zbrdge@gmail.com">zbrdge@gmail.com</a>> wrote:<br>
>><br>
>> One interesting development to note, which I've been meaning to attempt to test Toybox against for some time, is the recent updates in FreeBSD 11-CURRENT to support more Linux syscalls in the Linux amd64 binary emulation layer (<a href="https://svnweb.freebsd.org/base?view=revision&revision=283424">https://svnweb.freebsd.org/base?view=revision&revision=283424</a>), seemingly for supporting a Docker port to FreeBSD.<br>
>><br>
>> Of course this is not nearly the same thing as porting Toybox to BSD, but may be at the least a "new" platform on which Toybox will Just Work?<br>
>><br>
>> - Zack</p>