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

2017-12-19 Thread Gilles Gouaillardet
Benjamin, unfortunatly, the compiler wrappers (mpicc and friends) will be riscv64 binaries. fwiw, they will (try to) use the cross compilers on the riscv64 machines (!) but you can configure with the '--enable-script-wrapper-compilers' option in order to generate scripts that can be invo

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 tr

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

2017-12-16 Thread Benjamin Brock
I have the same error with ./configure --host=riscv64-unknown-linux --build=x86_64-linux-gnu --enable-static --disable-shared --prefix=/home/ubuntu/src/ben-build/openmpi Ben On Sat, Dec 16, 2017 at 4:50 PM, Benjamin Brock wrote: > > try removing the --target option. > > With the configure lin

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

2017-12-16 Thread Benjamin Brock
> try removing the --target option. With the configure line ./configure --host=riscv64-unknown-linux --enable-static --disable-shared --prefix=/home/ubuntu/src/ben-build/openmpi It successfully configures, but I now get the error /home/xiii/Downloads/openmpi-3.0.0/opal/.libs/libopen-pal.a(patch

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

2017-12-15 Thread gilles
Benjamin, try removing the --target option. if it still does not work, then try replacing --target with --build you can refer to http://jingfenghanmax.blogspot.jp/2010/09/configure-with-host-target-and-build.html for the details As far as Open MPI is concerned, note you cannot cross build Fo

[OMPI users] Compiling Open MPI for Cross-Compilation

2017-12-15 Thread Benjamin Brock
I'd like to run Open MPI on a cluster of RISC-V machines. These machines are pretty weak cores and so I need to cross-compile. I'd like to do this: Machine 1, which is x86_64-linux-gnu, compiles programs for machine 2. Machine 2, which is riscv64-unknown-linux, will run these programs. It seem