[mpich-discuss] How to configure MPICH build to create linux x86 cross-compiler for ARM?

Alexander Rast alex.rast.technical at gmail.com
Thu Jun 1 10:22:45 CDT 2017


I assume you mean from the build intended for the ARM targets. In any case
here they are.

On Thu, Jun 1, 2017 at 4:04 PM, Kenneth Raffenetti <raffenet at mcs.anl.gov>
wrote:

> Hi Alex,
>
> I don't have experience with this type of build, but I can try to
> replicate it on a system here internally. Can you provide a couple of
> artifacts first?
>
> 1. the config.log file from the top-level build directory
> 2. the output of 'mpicc -show' from the installed build
>
> Thanks,
> Ken
>
> On 06/01/2017 10:00 AM, Alexander Rast wrote:
>
>> All,
>>
>> I'm trying to build MPICH so that I can cross-compile MPI applications on
>> my x86_64-linux system to run on an arm-linux machine. I want to emphasise
>> that this is different from building a native ARM MPICH install that runs
>> on ARM itself; the intent is that an x86-linux 'root' process compiles ARM
>> MPI application binaries and distributes them to the ARM cores. I have a
>> separate build for compiling the MPI binaries that lie on the root x86
>> system. I tried running configure with --build=x86_64-linux-gnu
>> --host=x86_64-linux-gnu --target=arm-linux-gnueabi, but that didn't give me
>> what I need. If, meanwhile, I try to run mpicc off the native x86 build
>> (the MPICH installation used for running MPI applications on the root x86
>> system) it complains that the target type specified in the makefile (CFLAGS
>> = -march=armv8-a -mtune=cortex-a53) isn't supported. It's not clear how one
>> creates this sort of 'hybrid' build, running on one platform, compiling MPI
>> applications for another.
>>
>>
>> _______________________________________________
>> discuss mailing list     discuss at mpich.org
>> To manage subscription options or unsubscribe:
>> https://lists.mpich.org/mailman/listinfo/discuss
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20170601/d0eadaab/attachment.html>
-------------- next part --------------
gcc -I/usr/include -L/usr/lib -Wl,-rpath -Wl,/usr/lib -Wl,--enable-new-dtags -lmpi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log
Type: text/x-log
Size: 505083 bytes
Desc: not available
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20170601/d0eadaab/attachment.bin>


More information about the discuss mailing list