<div dir="ltr">It seems I spoke too soon - Yes I can build programs and copy/run them on the BBB target but I can't debug using Eclipse:<br><br>=======================<br>$1 = 0xff<br><br>The target endianness is set automatically (currently little endian)<br><br>warning: .dynamic section for "/usr/local/willtm/arm-willtm-linux-gnueabi/sysroot/lib/libstdc++.so.6" is not at the expected address (wrong library or version mismatch?)<br><br>Traceback (most recent call last):<br><br>  File "/usr/local/willtm/arm-willtm-linux-gnueabi/sysroot/lib/libstdc++.<a href="http://so.6.0.18-gdb.py">so.6.0.18-gdb.py</a>", line 59, in <module><br><br>    from libstdcxx.v6.printers import register_libstdcxx_printers<br><br>ImportError: No module named libstdcxx.v6.printers<br><br>warning: .dynamic section for "/usr/local/willtm/arm-willtm-linux-gnueabi/sysroot/lib/libgcc_s.so.1" is not at the expected address (wrong library or version mismatch?)<div>=======================<br><br>Then of course my debugger says "No source available for "main() at 0x8738"". I'm thinking the toolchains/libraries are different between what's on my Mac and what's on my BBB.<br></div><div><br></div><div>Is there any way around this aside from installing the same Linux distro in a VM and on the BBB?</div><div><br></div><div>=o</div></div><div class="gmail_extra"><br clear="all"><div>--<br>Anders Nelson<br><br>+1 (517) 775-6129<br><br><a href="http://www.erogear.com">www.erogear.com</a></div>
<br><div class="gmail_quote">On Tue, Sep 16, 2014 at 1:52 PM, Anders Nelson <span dir="ltr"><<a href="mailto:anders.k.nelson@gmail.com" target="_blank">anders.k.nelson@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Firstly, thanks so much for your responses - I seemed to have solved the problem by just using the toolchain below.</div><div><br></div>UPDATE:<div><br></div><div>I found a toolchain that works well, though it's limited to the armv6 ISA here:</div><div><br></div><div><a href="http://will-tm.com/cross-compiling-mac-os-x-mavericks/" target="_blank">http://will-tm.com/cross-compiling-mac-os-x-mavericks/</a><br></div><div><br></div><div>Using armv6, this compiler also works for Raspberry Pi which was smart of Will IMHO. I sent a request for an OSX build to Linaro - they host a ton of different arm toolchains, none of which work on OSX! Wah waah, first-world problems:</div><div><br></div><div><a href="http://releases.linaro.org/latest/components/toolchain/binaries/" target="_blank">http://releases.linaro.org/latest/components/toolchain/binaries/</a><br></div><div><br></div><div>So I'm up and running now but I imagine the armv7 ISA contains a lot of good stuff...</div><div><br></div><div>I'm putting the stuff I referenced to get up and running in a blog post here:</div><div><br></div><a href="http://andersknelson.com/blog/?p=155" target="_blank">http://andersknelson.com/blog/?p=155</a><div><br></div><div>Hope this helps someone!</div><div><br></div><div>=]</div></div><div class="gmail_extra"><span class=""><br clear="all"><div>--<br>Anders Nelson<br><br>+1 (517) 775-6129<br><br><a href="http://www.erogear.com" target="_blank">www.erogear.com</a></div>
<br></span><div><div class="h5"><div class="gmail_quote">On Mon, Sep 15, 2014 at 1:40 PM, Fiid Williams <span dir="ltr"><<a href="mailto:fiid@fiid.net" target="_blank">fiid@fiid.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>No specific experience with your setup, but from hacking other unixes....</div><div><br></div>Looks like you dynamically linked against a library that isn't on the BBB.<div><div><br></div><div>Options to think about....</div><div>1) Statically link - should get you a binary that includes all it's dependencies, but it will be larger and won't share the library memory with other apps.</div><div><br></div><div>2) AFAIK, the version number on the file (libraryx.so.5 << the number 5) isn't necessarily the same as the actual library version (3.12.7 or whatever); it's determined by the distribution and compatability levels.  You might have the correct library, but not have the symlink in place to the numbered version you need.  If it's prototype-grade code, you might be able to win by symlinking libraryx.so to libraryx.so.5 (change for your specific needs).  Of course, if the version you're linking against isn't the same, this might not go well, but it might be worth looking at and/or investigating further.</div><div><br></div><div>Your mileage may vary :)</div><div><br></div><div>Cheers,</div><div><br></div><div>Fiid.</div><div><br></div><div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div>On Mon, Sep 15, 2014 at 1:22 PM, Torrie Fischer <span dir="ltr"><<a href="mailto:tdfischer@hackerbots.net" target="_blank">tdfischer@hackerbots.net</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><span>On Monday, September 15, 2014 12:43:41 PM Anders Nelson wrote:<br>
> Good morfternoon!<br>
><br>
> So I finally got my BBB and I'm turbo-jazzed to start working with it. I<br>
> want to use Eclipse and an ARM toolchain on OSX, and so far I have it<br>
</span>> building swell with my *arm-none-linux-gnueabi* toolchain. "make -j7 all"<br>
<span>> goes by like a bolt of lightning.<br>
><br>
> However, my executables won't run on the BBB, stating thus:<br>
><br>
> "error while loading shared libraries: libstdc++.so.6: cannot open shared<br>
> object file: No such file or directory"<br>
<br>
</span>You've got libstdc++6 installed on the BBB, right?<br>
<span><br>
><br>
> Yes, I've used apt-get and everything therein looks Kosher. From what I've<br>
</span>> read, I need a *arm-linux-gnueabihf *toolchain built to run on OSX because<br>
<span>> the version of Debian running on the BBB makes use of the hardware FPU<br>
> (awesome). I found one here:<br>
><br>
> <a href="http://will-tm.com/cross-compiling-mac-os-x-mavericks/" target="_blank">http://will-tm.com/cross-compiling-mac-os-x-mavericks/</a><br>
><br>
> but of course, it's not perfect - it is using the "armv6j" instruction set<br>
> instead of what I believe should be "armv7" or "armv8" or some such. I see<br>
> the name Linaro everywhere but they only have toolchains built for Linux<br>
> and Windows.<br>
><br>
> Yes, I could install Virtualbox and do everything in a Linux VM but that<br>
> seems like terrific overkill (disk space, computing efficiency, smoothness,<br>
> etc.).<br>
><br>
</span>> *Has anyone built an ARM toolchain for OSX before? If so, can you help me?*<br>
<span>> I promise to post it to my blog or somewhere useful so others can use it,<br>
> too!<br>
><br>
> =]<br>
><br>
> --<br>
> Anders Nelson<br>
><br>
> <a href="tel:%2B1%20%28517%29%20775-6129" value="+15177756129" target="_blank">+1 (517) 775-6129</a><br>
><br>
> <a href="http://www.erogear.com" target="_blank">www.erogear.com</a><br>
<br>
</span></div></div>----------<br>
<br>
dorkbot: people doing strange things with electricity<br>
<a href="http://dorkbot.org/dorkbotsf/" target="_blank">http://dorkbot.org/dorkbotsf/</a><br>
<br>
SUBSCRIPTION AND UNSUBSCRIBE OPTIONS HERE:<br>
<a href="http://dorkbot.org/mailman/listinfo/dorkbotsf-blabber" target="_blank">http://dorkbot.org/mailman/listinfo/dorkbotsf-blabber</a><br>
<br>
----------<br>
</blockquote></div><br></div>
</blockquote></div><br></div></div></div>
</blockquote></div><br></div>