Hi Gilles,

Thanks for responding me.....
i did as mention previous mail ,but am getting below error as mpicc  not
found...........

*nmahesh@nmahesh-H81MLV3:~/Workspace/ARM_MPI/mpi$
/home/nmahesh/Workspace/ARM_MPI/openmpi/bin/mpicc
-L/home/nmahesh/Workspace/ARM_MPI/openmpi/lib helloworld.c *
*bash: /home/nmahesh/Workspace/ARM_MPI/openmpi/bin/mpicc: No such file or
directory*


but i cheak in folder as follow

*nmahesh@nmahesh-H81MLV3:~/Workspace/ARM_MPI/openmpi/bin$ lltotal
35460drwxrwxr-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_scriptlrwxrwxrwx 1 nmahesh nmahesh      19 Oct 18 15:34 mpicc
-> ompi_wrapper_scriptlrwxrwxrwx 1 nmahesh nmahesh      19 Oct 18 15:34
mpiCC -> ompi_wrapper_scriptlrwxrwxrwx 1 nmahesh nmahesh      19 Oct 18
15:34 mpicxx -> ompi_wrapper_scriptlrwxrwxrwx 1 nmahesh nmahesh       7 Oct
18 15:34 mpiexec -> orterunlrwxrwxrwx 1 nmahesh nmahesh      19 Oct 18
15:34 mpif77 -> ompi_wrapper_scriptlrwxrwxrwx 1 nmahesh nmahesh      19 Oct
18 15:34 mpif90 -> ompi_wrapper_scriptlrwxrwxrwx 1 nmahesh nmahesh      19
Oct 18 15:34 mpifort -> ompi_wrapper_scriptlrwxrwxrwx 1 nmahesh nmahesh
  7 Oct 18 15:34 mpirun -> orterunlrwxrwxrwx 1 nmahesh nmahesh      10 Oct
18 15:34 ompi-clean -> orte-cleanlrwxrwxrwx 1 nmahesh nmahesh       7 Oct
18 15:34 ompi-ps -> orte-pslrwxrwxrwx 1 nmahesh nmahesh      11 Oct 18
15:34 ompi-server -> orte-serverlrwxrwxrwx 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 ->
mpicclrwxrwxrwx 1 nmahesh nmahesh       7 Oct 18 15:34 oshfort ->
mpifortlrwxrwxrwx 1 nmahesh nmahesh       6 Oct 18 15:34 oshrun ->
mpirunlrwxrwxrwx 1 nmahesh nmahesh      11 Oct 18 15:34 otfdecompress ->
otfcompresslrwxrwxrwx 1 nmahesh nmahesh       5 Oct 18 15:34 shmemcc ->
mpicclrwxrwxrwx 1 nmahesh nmahesh       7 Oct 18 15:34 shmemfort ->
mpifortlrwxrwxrwx 1 nmahesh nmahesh       6 Oct 18 15:34 shmemrun ->
mpirunlrwxrwxrwx 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.*


On Tue, Oct 18, 2016 at 1:37 PM, Gilles Gouaillardet <gil...@rist.or.jp>
wrote:

> 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 
> listus...@lists.open-mpi.orghttps://rfd.newmexicoconsortium.org/mailman/listinfo/users
>
>
>
> _______________________________________________
> 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