<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 23, 2016 at 10:54 AM, Rick Troth <span dir="ltr"><<a href="mailto:rmt@casita.net" target="_blank">rmt@casita.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><font face="Courier New, Courier, monospace">Linux-i386 (for all variants of "i486", "i586", and "i686")<br>
FreeBSD-i386 (is this compatible with next two?)<br>
OpenBSD-i386 (is this compatible with previous and next?)<br>
NetBSD-i386 (is this compatible with previous two?)<br>
Minix-i386<br>
Solaris-i386<br>
CYGWIN-i386 (is this compatible with next?)<br>
MinGW-i386 (is this compatible with previous?)</font></blockquote></div><br>I googled "freebsd netbsd abi" and this was the top hit: NetBSD Binary Emulation (<a href="http://www.netbsd.org/docs/compat.html">http://www.netbsd.org/docs/compat.html</a> ). According to that page (under <a href="http://www.netbsd.org/docs/compat.html#ports">http://www.netbsd.org/docs/compat.html#ports</a> -- "Which OSs can I emulate on my machine?") on i386 NetBSD you can run:</div><div class="gmail_extra"><div class="gmail-sect4"><div class="gmail-itemizedlist"><ul class="gmail-itemizedlist" style="color:rgb(0,0,0);font-family:tahoma,sans-serif"><li class="gmail-listitem">BSDI (up to BSDI 3.x binaries)</li><li class="gmail-listitem">FreeBSD(x86) (a.out and ELF binaries)</li><li class="gmail-listitem">IBCS2 systems<div class="gmail-itemizedlist"><ul class="gmail-itemizedlist"><li class="gmail-listitem">Interactive Unix</li><li class="gmail-listitem">SCO Unix</li><li class="gmail-listitem">SCO Xenix</li></ul></div></li><li class="gmail-listitem">Linux(x86)</li><li class="gmail-listitem">Solaris(x86)</li></ul><div style="color:rgb(0,0,0);font-family:tahoma,sans-serif">So that leaves OpenBSD, Minix, CYGWIN, and MinGW.</div><div style="color:rgb(0,0,0);font-family:tahoma,sans-serif"><br></div><div style="color:rgb(0,0,0);font-family:tahoma,sans-serif">This article (<a href="http://www.informit.com/articles/article.aspx?p=439601">http://www.informit.com/articles/article.aspx?p=439601</a>) says "<span style="font-family:'lucida grande',arial,helvetica,sans-serif;font-size:12.800000190734863px">NetBSD even includes a rudimentary Darwin ABI that allows some OS X applications to run."</span></div><div style="color:rgb(0,0,0);font-family:tahoma,sans-serif"><span style="font-family:'lucida grande',arial,helvetica,sans-serif;font-size:12.800000190734863px"><br></span></div><div><span style="color:rgb(0,0,0);font-family:'lucida grande',arial,helvetica,sans-serif;font-size:12.800000190734863px">This (</span><a href="https://news.ycombinator.com/item?id=9198084">https://news.ycombinator.com/item?id=9198084</a> ) suggests that cygwin binaries aren't even compatible between different versions of cygwin, so I wouldn't look for compatibility elsewhere.</div><div><br></div>This (<a href="http://www.mingw.org/wiki/mingw">http://www.mingw.org/wiki/mingw</a> ) says "Unlike Cygwin, MinGW doesn't provide Linux or Unix system calls or a POSIX emulation layer. " so if they don't even provide source-level compatibility, I can't see how MinGW will run anyone else's binaries. But this guy (<a href="http://www.jonshouse.co.uk/linuxmingw.cgi">http://www.jonshouse.co.uk/linuxmingw.cgi</a> ) installed mingw under wine</div><div class="gmail-itemizedlist"><br></div><div class="gmail-itemizedlist"><br></div><div class="gmail-itemizedlist">But, really, what is the problem you're trying to solve? Do you want to just build something or do you want to actually test it as well? For build-only, you could set up cross-compilation/build environments that are radically different from the hosted environment (GNU's SDK obviously supports this -- that's how the virus spreads ;-). But to actually test/certify that something runs in another environment (even just a different version of the same environment), you really need to have that target environment running (if only in a virtual machine).</div><div class="gmail-itemizedlist"><br></div><div class="gmail-itemizedlist">Maybe it's that you want the fewest number of packages?</div><div class="gmail-itemizedlist"><br></div><div class="gmail-itemizedlist"><br></div><div class="gmail-itemizedlist">Jeff</div><div class="gmail-itemizedlist"><br></div></div></div></div>