carlodefalco / octave-mpi

Octave bindings for basic Message Passing Interface (MPI) functions for parallel computing.
GNU General Public License v3.0
4 stars 1 forks source link

Cannot build mpi-3.1.0 on Octave 8.2 #7

Open jbingram opened 1 year ago

jbingram commented 1 year ago

here the log:

pkg install 'https://github.com/carlodefalco/octave-mpi/releases/download/v3.1.0/mpi-3.1.0.tar.gz' /bin/sh: line 1: mpicxx: command not found /bin/sh: line 1: mpicxx: command not found MPI_Init.cc:19:10: fatal error: mpi.h: No such file or directory 19 | #include | ^~~ compilation terminated. MPI_Initialized.cc:25:10: fatal error: mpi.h: No such file or directory 25 | #include "mpi.h" | ^~~ compilation terminated. In file included from MPI_Comm_rank.cc:21: octave_mpi_communicator.h:17:10: fatal error: mpi.h: No such file or directory 17 | #include "mpi.h" | ^~~ compilation terminated. make: [Makefile:19: MPI_Init.o] Error 1 make: Waiting for unfinished jobs.... MPI_Finalized.cc:23:10: fatal error: mpi.h: No such file or directory 23 | #include "mpi.h" | ^~~ compilation terminated. make: [Makefile:19: MPI_Comm_rank.o] Error 1 MPI_Finalize.cc:26:10: fatal error: mpi.h: No such file or directory 26 | #include "mpi.h" | ^~~ compilation terminated. make: [Makefile:19: MPI_Initialized.o] Error 1 make: [Makefile:19: MPI_Finalized.o] Error 1 make: [Makefile:19: MPI_Finalize.o] Error 1 In file included from MPI_Comm_size.cc:19: octave_mpi_communicator.h:17:10: fatal error: mpi.h: No such file or directory 17 | #include "mpi.h" | ^~~ compilation terminated. make: *** [Makefile:19: MPI_Comm_size.o] Error 1 make: Entering directory '/tmp/oct-kcD9JU/mpi/src' /app/bin/mkoctfile-8.2.0 -c MPI_Init.cc /app/bin/mkoctfile-8.2.0 -c MPI_Initialized.cc /app/bin/mkoctfile-8.2.0 -c MPI_Comm_rank.cc /app/bin/mkoctfile-8.2.0 -c MPI_Comm_size.cc /app/bin/mkoctfile-8.2.0 -c MPI_Finalize.cc /app/bin/mkoctfile-8.2.0 -c MPI_Finalized.cc make: Leaving directory '/tmp/oct-kcD9JU/mpi/src'

error: pkg: error running 'make' for the mpi package error: called from configure_make at line 117 column 9 install at line 202 column 7 pkg at line 619 column 9

carlodefalco commented 1 year ago

Hi,

The errors you mentikn can be easily fixed by setting the environment variable MPICC to the full path of the mpicxx compiler on your system.

I am afraid, though, that you will meet other issues after you fix this, it'd be helpful of you try and report back.

Thanks c.

Il 14 giu 2023 08:58, JB Ingram @.***> ha scritto:

here the log:

pkg install 'https://github.com/carlodefalco/octave-mpi/releases/download/v3.1.0/mpi-3.1.0.tar.gz' /bin/sh: line 1: mpicxx: command not found /bin/sh: line 1: mpicxx: command not found MPI_Init.cc:19:10: fatal error: mpi.h: No such file or directory 19 | #include | ^~~ compilation terminated. MPI_Initialized.cc:25:10: fatal error: mpi.h: No such file or directory 25 | #include "mpi.h" | ^~~ compilation terminated. In file included from MPI_Comm_rank.cc:21: octave_mpi_communicator.h:17:10: fatal error: mpi.h: No such file or directory 17 | #include "mpi.h" | ^~~ compilation terminated. make: [Makefile:19: MPI_Init.o] Error 1 make: Waiting for unfinished jobs.... MPI_Finalized.cc:23:10: fatal error: mpi.h: No such file or directory 23 | #include "mpi.h" | ^~~ compilation terminated. make: [Makefile:19: MPI_Comm_rank.o] Error 1 MPI_Finalize.cc:26:10: fatal error: mpi.h: No such file or directory 26 | #include "mpi.h" | ^~~ compilation terminated. make: [Makefile:19: MPI_Initialized.o] Error 1 make: [Makefile:19: MPI_Finalized.o] Error 1 make: [Makefile:19: MPI_Finalize.o] Error 1 In file included from MPI_Comm_size.cc:19: octave_mpi_communicator.h:17:10: fatal error: mpi.h: No such file or directory 17 | #include "mpi.h" | ^~~ compilation terminated. make: *** [Makefile:19: MPI_Comm_size.o] Error 1 make: Entering directory '/tmp/oct-kcD9JU/mpi/src' /app/bin/mkoctfile-8.2.0 -c MPI_Init.cc /app/bin/mkoctfile-8.2.0 -c MPI_Initialized.cc /app/bin/mkoctfile-8.2.0 -c MPI_Comm_rank.cc /app/bin/mkoctfile-8.2.0 -c MPI_Comm_size.cc /app/bin/mkoctfile-8.2.0 -c MPI_Finalize.cc /app/bin/mkoctfile-8.2.0 -c MPI_Finalized.cc make: Leaving directory '/tmp/oct-kcD9JU/mpi/src'

error: pkg: error running 'make' for the mpi package error: called from configure_make at line 117 column 9 install at line 202 column 7 pkg at line 619 column 9

— Reply to this email directly, view it on GitHubhttps://github.com/carlodefalco/octave-mpi/issues/7, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAZELERSD65ZL6OCCRLTO63XLFOH5ANCNFSM6AAAAAAZF4KN4A. You are receiving this because you are subscribed to this thread.Message ID: @.***>