Hi,

can you please give the patch below a try ?

Cheers,

Gilles

diff --git a/ompi/tools/wrappers/ompi_wrapper_script.in b/ompi/tools/wrappers/ompi_wrapper_script.in
index d87649f..b66fec3 100644
--- a/ompi/tools/wrappers/ompi_wrapper_script.in
+++ b/ompi/tools/wrappers/ompi_wrapper_script.in
@@ -35,12 +35,12 @@ my $FC = "@FC@";
 my $extra_includes = "@OMPI_WRAPPER_EXTRA_INCLUDES@";
 my $extra_cppflags = "@OMPI_WRAPPER_EXTRA_CPPFLAGS@";
 my $extra_cflags = "@OMPI_WRAPPER_EXTRA_CFLAGS@";
-my $extra_cflags_prefix = "@ORTE_WRAPPER_EXTRA_CFLAGS_PREFIX@";
+my $extra_cflags_prefix = "@OMPI_WRAPPER_EXTRA_CFLAGS_PREFIX@";
 my $extra_cxxflags = "@OMPI_WRAPPER_EXTRA_CXXFLAGS@";
-my $extra_cxxflags_prefix = "@ORTE_WRAPPER_EXTRA_CXXFLAGS_PREFIX@";
+my $extra_cxxflags_prefix = "@OMPI_WRAPPER_EXTRA_CXXFLAGS_PREFIX@";
 my $extra_fcflags = "@OMPI_WRAPPER_EXTRA_FCFLAGS@";
 my $extra_fcflags_prefix = "@OMPI_WRAPPER_EXTRA_FCFLAGS_PREFIX@";
-my $extra_ldflags = "@OMPI_WRAPPER_EXTRA_LDFLAGS@";
+my $extra_ldflags = "@OMPI_PKG_CONFIG_LDFLAGS@";
 my $extra_libs = "@OMPI_WRAPPER_EXTRA_LIBS@";
 my $cxx_lib = "@OMPI_WRAPPER_CXX_LIB@";
 my $fc_module_flag = "@OMPI_FC_MODULE_FLAG@";

On 10/18/2016 1:48 PM, Mahesh Nanavalla wrote:
Hi everyone,

I'm trying to cross compile openmpi-1.10.3 for arm-openwrt-linux-muslgnueabi on x86_64-linux-gnu with below configure options...


./configure --enable-orterun-prefix-by-default
--prefix="/home/nmahesh/Workspace/ARM_MPI/openmpi"
 --build=x86_64-linux-gnu
--host=x86_64-linux-gnu
--target=arm-openwrt-linux-muslgnueabi
--enable-script-wrapper-compilers
--disable-mpi-fortran
--enable-shared
--disable-mmap-shmem
--disable-posix-shmem
--disable-sysv-shmem
--disable-dlopen
configuring,make &make install successfully.
I added
$export PATH="$PATH:/home/$USER/Workspace/ARM_MPI/openmpi/bin/"
$export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/home/$USER/Workspace/ARM_MPI/openmpi/lib/"

$export PATH="$PATH:/home/$USER/Workspace/ARM_MPI/openmpi/bin/" >> /home/$USER/.bashrc $export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/home/$USER/Workspace/ARM_MPI/openmpi/lib/" >> /home/$USER/.bashrc

But while compiling as below i'am getting error

*$ /home/nmahesh/Workspace/ARM_MPI/openmpi/bin/mpicc -L/home/nmahesh/Workspace/ARM_MPI/openmpi/lib helloworld.c * Possible unintended interpolation of @ORTE_WRAPPER_EXTRA_CXXFLAGS_PREFIX in string at /home/nmahesh/Workspace/ARM_MPI/openmpi/bin/mpicc line 40. Possible unintended interpolation of @libdir in string at /home/nmahesh/Workspace/ARM_MPI/openmpi/bin/mpicc line 43. Name "main::ORTE_WRAPPER_EXTRA_CXXFLAGS_PREFIX" used only once: possible typo at /home/nmahesh/Workspace/ARM_MPI/openmpi/bin/mpicc line 40. Name "main::libdir" used only once: possible typo at /home/nmahesh/Workspace/ARM_MPI/openmpi/bin/mpicc line 43. /home/nmahesh/Workspace/ARM_MPI/openmpi/lib/libmpi.so: file not recognized: File format not recognized
collect2: error: ld returned 1 exit status

*can anybody help..*


_______________________________________________
users mailing list
users@lists.open-mpi.org
https://rfd.newmexicoconsortium.org/mailman/listinfo/users

_______________________________________________
users mailing list
users@lists.open-mpi.org
https://rfd.newmexicoconsortium.org/mailman/listinfo/users

Reply via email to