Re: [OMPI users] OMPI users] Compiling Open MPI for Cross-Compilation

2017-12-17 Thread Benjamin Brock
Yeah, I just noticed that Open MPI was giving me all x86_64 binaries with the configuration flags ./configure --host=riscv64-unknown-linux --enable-static --disable-shared --disable-dlopen --enable-mca-no-build=patcher-overwrite --prefix=/home/ubuntu/src/ben-build/openmpi and was very confused.

Re: [OMPI users] OMPI users] Compiling Open MPI for Cross-Compilation

2017-12-17 Thread gilles
Benjamin, i noticed you build Open MPI with plain gcc. is gcc a cross compiler ? if not, you have to tell configure to use the cross compilers (and cross assembler and linker too) for example configure CC=crosscompiler ... you might be able to achieve this with standard gcc and the right

Re: [OMPI users] OMPI users] Compiling Open MPI for Cross-Compilation

2017-12-16 Thread Gilles Gouaillardet
There is something odd here. From the configure.m4 of patcher/overwrite #if !defined(__i386__) && !defined(__x86_64__) && !defined(__PPC__) #error "platform not supported" #endif My guess is that should fail on your arch. Can you please compress and post your config.log ? Meanwhile, you can