<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr"><div><div><div>Yes, I knew that mpicc isn't building its own compiler from the ground up. I reckoned though that maybe since the --target option in normal builds came closest to expressing the result I'm trying to achieve, maybe that's what you needed to do. I'd tried the --host option as well before but that errored when I tried to run mpicc. <br><br></div>What steps are needed to configure for Fortran? I tried setting several CROSS_F77_xxx flags but then ended up with the uninformative error during configure:<br><br></div>configure: error: '' is empty.<br><br></div>C cross-compilers would be adequate for early testing but the platform we are building is going to amongst other things going to be compiling and linking source files provided by external users, many of whom will undoubtely be using Fortran so in the long run it's going to be essential to have that cross-compiler available as well. <br><div><div><div><div><br><br></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 2, 2017 at 4:15 PM, Kenneth Raffenetti <span dir="ltr"><<a href="mailto:raffenet@mcs.anl.gov" target="_blank">raffenet@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Alex,<br>
<br>
One thing to understand is that MPICH does not actually build compiler tools, so the --target option is not used. mpicc and friends are only wrapper scripts. Here is how I was able to configure/build MPICH on my laptop (Ubuntu 16.10) to cross-compile binaries arm-linux-gnueabi. Fortran is disabled since it requires additional steps.<br>
<br>
./configure --build=x86_64-linux-gnu --host=arm-linux-gnueabi CC=/usr/bin/arm-linux-gnueabi-<wbr>gcc-6 CXX=/usr/bin/arm-linux-gnueabi<wbr>-g++-6 --disable-fortran<br>
<br>
Ken<span class=""><br>
<br>
On 06/01/2017 10:22 AM, Alexander Rast wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
I assume you mean from the build intended for the ARM targets. In any case here they are.<br>
<br></span><div><div class="h5">
On Thu, Jun 1, 2017 at 4:04 PM, Kenneth Raffenetti <<a href="mailto:raffenet@mcs.anl.gov" target="_blank">raffenet@mcs.anl.gov</a> <mailto:<a href="mailto:raffenet@mcs.anl.gov" target="_blank">raffenet@mcs.anl.gov</a>>> wrote:<br>
<br>
Hi Alex,<br>
<br>
I don't have experience with this type of build, but I can try to<br>
replicate it on a system here internally. Can you provide a couple<br>
of artifacts first?<br>
<br>
1. the config.log file from the top-level build directory<br>
2. the output of 'mpicc -show' from the installed build<br>
<br>
Thanks,<br>
Ken<br>
<br>
On 06/01/2017 10:00 AM, Alexander Rast wrote:<br>
<br>
All,<br>
<br>
I'm trying to build MPICH so that I can cross-compile MPI<br>
applications on my x86_64-linux system to run on an arm-linux<br>
machine. I want to emphasise that this is different from<br>
building a native ARM MPICH install that runs on ARM itself; the<br>
intent is that an x86-linux 'root' process compiles ARM MPI<br>
application binaries and distributes them to the ARM cores. I<br>
have a separate build for compiling the MPI binaries that lie on<br>
the root x86 system. I tried running configure with<br>
--build=x86_64-linux-gnu --host=x86_64-linux-gnu<br>
--target=arm-linux-gnueabi, but that didn't give me what I need.<br>
If, meanwhile, I try to run mpicc off the native x86 build (the<br>
MPICH installation used for running MPI applications on the root<br>
x86 system) it complains that the target type specified in the<br>
makefile (CFLAGS = -march=armv8-a -mtune=cortex-a53) isn't<br>
supported. It's not clear how one creates this sort of 'hybrid'<br>
build, running on one platform, compiling MPI applications for<br>
another.<br>
<br>
<br>
______________________________<wbr>_________________<br></div></div>
discuss mailing list <a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a> <mailto:<a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a>><span class=""><br>
To manage subscription options or unsubscribe:<br>
<a href="https://lists.mpich.org/mailman/listinfo/discuss" rel="noreferrer" target="_blank">https://lists.mpich.org/mailma<wbr>n/listinfo/discuss</a><br></span>
<<a href="https://lists.mpich.org/mailman/listinfo/discuss" rel="noreferrer" target="_blank">https://lists.mpich.org/mailm<wbr>an/listinfo/discuss</a>><br>
<br>
<br>
</blockquote>
</blockquote></div><br></div>