Hi Khem et al.,<div><br></div><div>Thanks for your thoughts.</div><div><br></div><div>I believe I already have gfortran working, but as I say that, I fear that I may be inadvertently using the host compiler rather than the cross-compiler.</div>
<div><br></div><div>The suggestion to figure out how to override CC and LD in Scipy's setup.py is good; I'll see if I can figure that out.</div><div><br></div><div>Best regards,</div><div>Brandon<br><br><div class="gmail_quote">
On Sat, Sep 8, 2012 at 3:46 AM, Khem Raj <span dir="ltr"><<a href="mailto:raj.khem@gmail.com" target="_blank">raj.khem@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 class="HOEnZb"><div class="h5">On (06/09/12 12:36), Brandon Stafford wrote:<br>
> Hi all,<br>
><br>
> I'm working on a recipe for Scipy, which is a Python library for<br>
> scientific computation. It contains chunks of code in C and Fortran.<br>
><br>
> I have seen this recent message from Phil Blundell (about an entirely<br>
> different recipe) that suggests that the problem may be the use of the<br>
> host's cc and ld, rather than the correct ARM cross-compilers:<br>
> <a href="http://www.mail-archive.com/openembedded-devel@lists.openembedded.org/msg27120.html" target="_blank">http://www.mail-archive.com/openembedded-devel@lists.openembedded.org/msg27120.html</a><br>
><br>
> This looks like the problem to me, but I'm not sure how to tell the<br>
> Python build script that it should be cross-compiling. Based on Phil's<br>
> message, I'd expect it involves setting ${CC} and ${LD} and somehow<br>
> passing them to Python, but I'm not sure how.<br>
><br>
> Full error message: <a href="http://pastebin.com/pMvaLpcz" target="_blank">http://pastebin.com/pMvaLpcz</a><br>
> Recipe in broken state: <a href="http://pastebin.com/a5jm45vB" target="_blank">http://pastebin.com/a5jm45vB</a><br>
><br>
> (The line export LDFLAGS = "-L${STAGING_LIBDIR}" is just there because<br>
> another mailing list suggestion:<br>
> <a href="http://www.mail-archive.com/openembedded-devel@lists.openembedded.org/msg24196.html" target="_blank">http://www.mail-archive.com/openembedded-devel@lists.openembedded.org/msg24196.html</a>.<br>
> It does not appear to affect the errors produced.)<br>
><br>
> Any suggestions?<br>
<br>
</div></div>FIrst you need fortran language frontends and support libraries<br>
compiled with gcc cross compiler. By default we only build c/c++<br>
<br>
the you need to take a look at scipy build system and see how<br>
its deriving its CC and LD variables and then override them with<br>
CC LD that recipe gets from environment when building<br>
<div class="im"><br>
><br>
> Brandon<br>
><br>
> --<br>
> Brandon Stafford<br>
> Rascal Micro: small computers for art and science<br>
> Somerville, MA, USA<br>
><br>
</div>> _______________________________________________<br>
> Openembedded-core mailing list<br>
> <a href="mailto:Openembedded-core@lists.openembedded.org">Openembedded-core@lists.openembedded.org</a><br>
> <a href="http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core" target="_blank">http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core</a><br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
-Khem<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div>Brandon Stafford</div><div>Rascal Micro: small computers for art and science</div><div>Somerville, MA, USA</div><br>
</div>