Gilles Gouaillardet
2016-10-18 10:36:52 UTC
mpicc is a symlink pointing to ompi_wrapper_script
I guess we do not correctly support the --target option, unless you changed your configure options meanwhile, so you have to manually update the broken symlinks so they point to arm-openwrt-linux-muslgnueabi-ompi_wrapper_script
Cheers,
Gilles
I guess we do not correctly support the --target option, unless you changed your configure options meanwhile, so you have to manually update the broken symlinks so they point to arm-openwrt-linux-muslgnueabi-ompi_wrapper_script
Cheers,
Gilles
Hi Gilles,
Thanks for responding me.....
i did as mention previous mail ,but am getting below error as mpicc  not found...........
bash: /home/nmahesh/Workspace/ARM_MPI/openmpi/bin/mpicc: No such file or directory
but i cheak in folder as follow
total 35460
drwxrwxr-x 2 nmahesh nmahesh   4096 Oct 18 15:34 ./
drwxrwxr-x 7 nmahesh nmahesh   4096 Oct 18 15:34 ../
-rwxr-xr-x 1 nmahesh nmahesh  22961 Oct 18 15:34 arm-openwrt-linux-muslgnueabi-ompi_info*
-rwxr-xr-x 1 nmahesh nmahesh   5661 Oct 18 15:34 arm-openwrt-linux-muslgnueabi-ompi_wrapper_script*
-rwxr-xr-x 1 nmahesh nmahesh  14699 Oct 18 15:34 arm-openwrt-linux-muslgnueabi-orte-clean*
-rwxr-xr-x 1 nmahesh nmahesh   8770 Oct 18 15:34 arm-openwrt-linux-muslgnueabi-orted*
-rwxr-xr-x 1 nmahesh nmahesh  56800 Oct 18 15:34 arm-openwrt-linux-muslgnueabi-orte-dvm*
-rwxr-xr-x 1 nmahesh nmahesh  35191 Oct 18 15:34 arm-openwrt-linux-muslgnueabi-orte-info*
-rwxr-xr-x 1 nmahesh nmahesh  23939 Oct 18 15:34 arm-openwrt-linux-muslgnueabi-orte-ps*
-rwxr-xr-x 1 nmahesh nmahesh  124520 Oct 18 15:34 arm-openwrt-linux-muslgnueabi-orterun*
-rwxr-xr-x 1 nmahesh nmahesh  15429 Oct 18 15:34 arm-openwrt-linux-muslgnueabi-orte-server*
-rwxr-xr-x 1 nmahesh nmahesh  79807 Oct 18 15:34 arm-openwrt-linux-muslgnueabi-orte-submit*
-rwxr-xr-x 1 nmahesh nmahesh  30514 Oct 18 15:34 arm-openwrt-linux-muslgnueabi-orte-top*
-rwxr-xr-x 1 nmahesh nmahesh  23032 Oct 18 15:34 arm-openwrt-linux-muslgnueabi-oshmem_info*
-rwxr-xr-x 1 nmahesh nmahesh  980414 Oct 18 15:34 arm-openwrt-linux-muslgnueabi-otfaux*
-rwxr-xr-x 1 nmahesh nmahesh  40607 Oct 18 15:34 arm-openwrt-linux-muslgnueabi-otfcompress*
-rwxr-xr-x 1 nmahesh nmahesh  20915 Oct 18 15:34 arm-openwrt-linux-muslgnueabi-otfconfig*
-rwxr-xr-x 1 nmahesh nmahesh  94717 Oct 18 15:34 arm-openwrt-linux-muslgnueabi-otfinfo*
-rwxr-xr-x 1 nmahesh nmahesh  115276 Oct 18 15:34 arm-openwrt-linux-muslgnueabi-otfmerge*
-rwxr-xr-x 1 nmahesh nmahesh  122985 Oct 18 15:34 arm-openwrt-linux-muslgnueabi-otfmerge-mpi*
-rwxr-xr-x 1 nmahesh nmahesh  231420 Oct 18 15:34 arm-openwrt-linux-muslgnueabi-otfprint*
-rwxr-xr-x 1 nmahesh nmahesh 6356996 Oct 18 15:34 arm-openwrt-linux-muslgnueabi-otfprofile*
-rwxr-xr-x 1 nmahesh nmahesh 7037080 Oct 18 15:34 arm-openwrt-linux-muslgnueabi-otfprofile-mpi*
-rwxr-xr-x 1 nmahesh nmahesh  417971 Oct 18 15:34 arm-openwrt-linux-muslgnueabi-otfshrink*
lrwxrwxrwx 1 nmahesh nmahesh    19 Oct 18 15:34 mpic++ -> ompi_wrapper_script
lrwxrwxrwx 1 nmahesh nmahesh    19 Oct 18 15:34 mpicc -> ompi_wrapper_script
lrwxrwxrwx 1 nmahesh nmahesh    19 Oct 18 15:34 mpiCC -> ompi_wrapper_script
lrwxrwxrwx 1 nmahesh nmahesh    19 Oct 18 15:34 mpicxx -> ompi_wrapper_script
lrwxrwxrwx 1 nmahesh nmahesh    7 Oct 18 15:34 mpiexec -> orterun
lrwxrwxrwx 1 nmahesh nmahesh    19 Oct 18 15:34 mpif77 -> ompi_wrapper_script
lrwxrwxrwx 1 nmahesh nmahesh    19 Oct 18 15:34 mpif90 -> ompi_wrapper_script
lrwxrwxrwx 1 nmahesh nmahesh    19 Oct 18 15:34 mpifort -> ompi_wrapper_script
lrwxrwxrwx 1 nmahesh nmahesh    7 Oct 18 15:34 mpirun -> orterun
lrwxrwxrwx 1 nmahesh nmahesh    10 Oct 18 15:34 ompi-clean -> orte-clean
lrwxrwxrwx 1 nmahesh nmahesh    7 Oct 18 15:34 ompi-ps -> orte-ps
lrwxrwxrwx 1 nmahesh nmahesh    11 Oct 18 15:34 ompi-server -> orte-server
lrwxrwxrwx 1 nmahesh nmahesh    8 Oct 18 15:34 ompi-top -> orte-top
-rwxr-xr-x 1 nmahesh nmahesh 1766460 Oct 18 15:34 opari*
lrwxrwxrwx 1 nmahesh nmahesh    5 Oct 18 15:34 oshcc -> mpicc
lrwxrwxrwx 1 nmahesh nmahesh    7 Oct 18 15:34 oshfort -> mpifort
lrwxrwxrwx 1 nmahesh nmahesh    6 Oct 18 15:34 oshrun -> mpirun
lrwxrwxrwx 1 nmahesh nmahesh    11 Oct 18 15:34 otfdecompress -> otfcompress
lrwxrwxrwx 1 nmahesh nmahesh    5 Oct 18 15:34 shmemcc -> mpicc
lrwxrwxrwx 1 nmahesh nmahesh    7 Oct 18 15:34 shmemfort -> mpifort
lrwxrwxrwx 1 nmahesh nmahesh    6 Oct 18 15:34 shmemrun -> mpirun
lrwxrwxrwx 1 nmahesh nmahesh    9 Oct 18 15:34 vtc++ -> vtwrapper*
lrwxrwxrwx 1 nmahesh nmahesh    9 Oct 18 15:34 vtcc -> vtwrapper*
lrwxrwxrwx 1 nmahesh nmahesh    9 Oct 18 15:34 vtCC -> vtwrapper*
lrwxrwxrwx 1 nmahesh nmahesh    9 Oct 18 15:34 vtcxx -> vtwrapper*
lrwxrwxrwx 1 nmahesh nmahesh    9 Oct 18 15:34 vtf77 -> vtwrapper*
lrwxrwxrwx 1 nmahesh nmahesh    9 Oct 18 15:34 vtf90 -> vtwrapper*
-rwxr-xr-x 1 nmahesh nmahesh 2928026 Oct 18 15:34 vtfilter*
lrwxrwxrwx 1 nmahesh nmahesh    8 Oct 18 15:34 vtfiltergen -> vtfilter*
lrwxrwxrwx 1 nmahesh nmahesh    12 Oct 18 15:34 vtfiltergen-mpi -> vtfilter-mpi*
-rwxr-xr-x 1 nmahesh nmahesh 3100359 Oct 18 15:34 vtfilter-mpi*
lrwxrwxrwx 1 nmahesh nmahesh    9 Oct 18 15:34 vtfort -> vtwrapper*
-rwxr-xr-x 1 nmahesh nmahesh   9031 Oct 18 15:34 vtrun*
-rwxr-xr-x 1 nmahesh nmahesh 5623609 Oct 18 15:34 vtunify*
-rwxr-xr-x 1 nmahesh nmahesh 6177733 Oct 18 15:34 vtunify-mpi*
-rwxr-xr-x 1 nmahesh nmahesh  774064 Oct 18 15:34 vtwrapper*
kindly Respond me.
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@";
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Â
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
https://rfd.newmexicoconsortium.org/mailman/listinfo/users
Thanks for responding me.....
i did as mention previous mail ,but am getting below error as mpicc  not found...........
bash: /home/nmahesh/Workspace/ARM_MPI/openmpi/bin/mpicc: No such file or directory
but i cheak in folder as follow
total 35460
drwxrwxr-x 2 nmahesh nmahesh   4096 Oct 18 15:34 ./
drwxrwxr-x 7 nmahesh nmahesh   4096 Oct 18 15:34 ../
-rwxr-xr-x 1 nmahesh nmahesh  22961 Oct 18 15:34 arm-openwrt-linux-muslgnueabi-ompi_info*
-rwxr-xr-x 1 nmahesh nmahesh   5661 Oct 18 15:34 arm-openwrt-linux-muslgnueabi-ompi_wrapper_script*
-rwxr-xr-x 1 nmahesh nmahesh  14699 Oct 18 15:34 arm-openwrt-linux-muslgnueabi-orte-clean*
-rwxr-xr-x 1 nmahesh nmahesh   8770 Oct 18 15:34 arm-openwrt-linux-muslgnueabi-orted*
-rwxr-xr-x 1 nmahesh nmahesh  56800 Oct 18 15:34 arm-openwrt-linux-muslgnueabi-orte-dvm*
-rwxr-xr-x 1 nmahesh nmahesh  35191 Oct 18 15:34 arm-openwrt-linux-muslgnueabi-orte-info*
-rwxr-xr-x 1 nmahesh nmahesh  23939 Oct 18 15:34 arm-openwrt-linux-muslgnueabi-orte-ps*
-rwxr-xr-x 1 nmahesh nmahesh  124520 Oct 18 15:34 arm-openwrt-linux-muslgnueabi-orterun*
-rwxr-xr-x 1 nmahesh nmahesh  15429 Oct 18 15:34 arm-openwrt-linux-muslgnueabi-orte-server*
-rwxr-xr-x 1 nmahesh nmahesh  79807 Oct 18 15:34 arm-openwrt-linux-muslgnueabi-orte-submit*
-rwxr-xr-x 1 nmahesh nmahesh  30514 Oct 18 15:34 arm-openwrt-linux-muslgnueabi-orte-top*
-rwxr-xr-x 1 nmahesh nmahesh  23032 Oct 18 15:34 arm-openwrt-linux-muslgnueabi-oshmem_info*
-rwxr-xr-x 1 nmahesh nmahesh  980414 Oct 18 15:34 arm-openwrt-linux-muslgnueabi-otfaux*
-rwxr-xr-x 1 nmahesh nmahesh  40607 Oct 18 15:34 arm-openwrt-linux-muslgnueabi-otfcompress*
-rwxr-xr-x 1 nmahesh nmahesh  20915 Oct 18 15:34 arm-openwrt-linux-muslgnueabi-otfconfig*
-rwxr-xr-x 1 nmahesh nmahesh  94717 Oct 18 15:34 arm-openwrt-linux-muslgnueabi-otfinfo*
-rwxr-xr-x 1 nmahesh nmahesh  115276 Oct 18 15:34 arm-openwrt-linux-muslgnueabi-otfmerge*
-rwxr-xr-x 1 nmahesh nmahesh  122985 Oct 18 15:34 arm-openwrt-linux-muslgnueabi-otfmerge-mpi*
-rwxr-xr-x 1 nmahesh nmahesh  231420 Oct 18 15:34 arm-openwrt-linux-muslgnueabi-otfprint*
-rwxr-xr-x 1 nmahesh nmahesh 6356996 Oct 18 15:34 arm-openwrt-linux-muslgnueabi-otfprofile*
-rwxr-xr-x 1 nmahesh nmahesh 7037080 Oct 18 15:34 arm-openwrt-linux-muslgnueabi-otfprofile-mpi*
-rwxr-xr-x 1 nmahesh nmahesh  417971 Oct 18 15:34 arm-openwrt-linux-muslgnueabi-otfshrink*
lrwxrwxrwx 1 nmahesh nmahesh    19 Oct 18 15:34 mpic++ -> ompi_wrapper_script
lrwxrwxrwx 1 nmahesh nmahesh    19 Oct 18 15:34 mpicc -> ompi_wrapper_script
lrwxrwxrwx 1 nmahesh nmahesh    19 Oct 18 15:34 mpiCC -> ompi_wrapper_script
lrwxrwxrwx 1 nmahesh nmahesh    19 Oct 18 15:34 mpicxx -> ompi_wrapper_script
lrwxrwxrwx 1 nmahesh nmahesh    7 Oct 18 15:34 mpiexec -> orterun
lrwxrwxrwx 1 nmahesh nmahesh    19 Oct 18 15:34 mpif77 -> ompi_wrapper_script
lrwxrwxrwx 1 nmahesh nmahesh    19 Oct 18 15:34 mpif90 -> ompi_wrapper_script
lrwxrwxrwx 1 nmahesh nmahesh    19 Oct 18 15:34 mpifort -> ompi_wrapper_script
lrwxrwxrwx 1 nmahesh nmahesh    7 Oct 18 15:34 mpirun -> orterun
lrwxrwxrwx 1 nmahesh nmahesh    10 Oct 18 15:34 ompi-clean -> orte-clean
lrwxrwxrwx 1 nmahesh nmahesh    7 Oct 18 15:34 ompi-ps -> orte-ps
lrwxrwxrwx 1 nmahesh nmahesh    11 Oct 18 15:34 ompi-server -> orte-server
lrwxrwxrwx 1 nmahesh nmahesh    8 Oct 18 15:34 ompi-top -> orte-top
-rwxr-xr-x 1 nmahesh nmahesh 1766460 Oct 18 15:34 opari*
lrwxrwxrwx 1 nmahesh nmahesh    5 Oct 18 15:34 oshcc -> mpicc
lrwxrwxrwx 1 nmahesh nmahesh    7 Oct 18 15:34 oshfort -> mpifort
lrwxrwxrwx 1 nmahesh nmahesh    6 Oct 18 15:34 oshrun -> mpirun
lrwxrwxrwx 1 nmahesh nmahesh    11 Oct 18 15:34 otfdecompress -> otfcompress
lrwxrwxrwx 1 nmahesh nmahesh    5 Oct 18 15:34 shmemcc -> mpicc
lrwxrwxrwx 1 nmahesh nmahesh    7 Oct 18 15:34 shmemfort -> mpifort
lrwxrwxrwx 1 nmahesh nmahesh    6 Oct 18 15:34 shmemrun -> mpirun
lrwxrwxrwx 1 nmahesh nmahesh    9 Oct 18 15:34 vtc++ -> vtwrapper*
lrwxrwxrwx 1 nmahesh nmahesh    9 Oct 18 15:34 vtcc -> vtwrapper*
lrwxrwxrwx 1 nmahesh nmahesh    9 Oct 18 15:34 vtCC -> vtwrapper*
lrwxrwxrwx 1 nmahesh nmahesh    9 Oct 18 15:34 vtcxx -> vtwrapper*
lrwxrwxrwx 1 nmahesh nmahesh    9 Oct 18 15:34 vtf77 -> vtwrapper*
lrwxrwxrwx 1 nmahesh nmahesh    9 Oct 18 15:34 vtf90 -> vtwrapper*
-rwxr-xr-x 1 nmahesh nmahesh 2928026 Oct 18 15:34 vtfilter*
lrwxrwxrwx 1 nmahesh nmahesh    8 Oct 18 15:34 vtfiltergen -> vtfilter*
lrwxrwxrwx 1 nmahesh nmahesh    12 Oct 18 15:34 vtfiltergen-mpi -> vtfilter-mpi*
-rwxr-xr-x 1 nmahesh nmahesh 3100359 Oct 18 15:34 vtfilter-mpi*
lrwxrwxrwx 1 nmahesh nmahesh    9 Oct 18 15:34 vtfort -> vtwrapper*
-rwxr-xr-x 1 nmahesh nmahesh   9031 Oct 18 15:34 vtrun*
-rwxr-xr-x 1 nmahesh nmahesh 5623609 Oct 18 15:34 vtunify*
-rwxr-xr-x 1 nmahesh nmahesh 6177733 Oct 18 15:34 vtunify-mpi*
-rwxr-xr-x 1 nmahesh nmahesh  774064 Oct 18 15:34 vtwrapper*
kindly Respond me.
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@";
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Â
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
https://rfd.newmexicoconsortium.org/mailman/listinfo/users