<div dir="ltr">Hello<div><br></div><div>Thanks for your response.</div><div>I understand we need to add the proper CFLAGS for MPI, but I was anot able to do the cross-compilation using CFLAGS.</div><div>Do you have a Makefile example with the proper CFLAGS to cross-compile MPI?</div><div><br></div><div>Thanks</div><div>Marco</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-05-23 16:40 GMT-06:00 Arnout Vandecappelle <span dir="ltr"><<a href="mailto:arnout@mind.be" target="_blank">arnout@mind.be</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
<br>
On 19-05-18 18:44, Marco Espinoza wrote:<br>
> Hello<br>
> <br>
> I'm using buildroot to generate an image for a zedboard. And I'm trying to<br>
> add an application which require openmpi compilation.<br>
> However I'm having issues, because my compilation is failing.<br>
> The issue I'm having is because my program requires mpicc compilation, but,<br>
> despite I have installed openmpi in my buildroot image, the<br>
> cross-compilation is not working.<br>
> <br>
> Would you please help me telling what do I need in my *.mk file, to<br>
> cross-compile properly using buildroot  a program which requires mpicc?<br>
<br>
</span> I guess you need to have an mpicc built for the host, and it looks like the<br>
openmpi build system is not really cross-compile friendly. The easiest approach<br>
is to make a host-openmpi package. But some additional work will be needed, to<br>
make sure the opal_wrapper calls the target toolchain with the appropriate<br>
CFLAGS instead of the host toolchain...<br>
<br>
 Regards,<br>
 Arnout<br>
<br>
> <br>
> Thanks<br>
> Marco Espinoza<br>
> <br>
> <br>
> <br>
> ______________________________<wbr>_________________<br>
> buildroot mailing list<br>
> <a href="mailto:buildroot@busybox.net">buildroot@busybox.net</a><br>
> <a href="http://lists.busybox.net/mailman/listinfo/buildroot" rel="noreferrer" target="_blank">http://lists.busybox.net/<wbr>mailman/listinfo/buildroot</a><br>
> <br>
<span class="HOEnZb"><font color="#888888"><br>
-- <br>
Arnout Vandecappelle                          arnout at mind be<br>
Senior Embedded Software Architect            +32-16-286500<br>
Essensium/Mind                                <a href="http://www.mind.be" rel="noreferrer" target="_blank">http://www.mind.be</a><br>
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven<br>
LinkedIn profile: <a href="http://www.linkedin.com/in/arnoutvandecappelle" rel="noreferrer" target="_blank">http://www.linkedin.com/in/<wbr>arnoutvandecappelle</a><br>
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF<br>
</font></span></blockquote></div><br></div>