On 14 March 2012 at 21:32, Julien Cristau wrote:
| Source: rmpi
| Version: 0.5-9-2
| Severity: serious
| Justification: fails to build from source (but built successfully in the past)
| 
| See the build logs at
| https://buildd.debian.org/status/package.php?p=rmpi

The issue was that MPICH2 support was lacking upstream. In the past we only
bui;t under OpenMPI, but Debian's mpi-default-dev package now leads to MPICH2
on s390/s390x/armel/armhf. [ Coincidentally, on armel/armhf this still fails
like other r-cran-* packages. ]

And I fixed this today with a somewhat hackish fix to upstream's configure.ac
which I will also just submitted upstream:


--- rmpi-0.5-9.orig/configure.ac
+++ rmpi-0.5-9/configure.ac
@@ -132,6 +132,12 @@
       MPITYPE="MPICH"

       MPI_INCLUDE_PATH=$d/mpich/include

       break

+    elif test -f $d/include/mpich2/mpi.h; then

+      echo "I am here $d/include/mpich2 and it is MPICH2"

+      MPI_ROOT=$d/include/mpich2

+      MPITYPE="MPICH"

+      MPI_INCLUDE_PATH=$d/include/mpich2

+      break

     elif test -f $d/mpi/include/mpi.h; then

       echo "I am here $d/mpi"

       MPI_ROOT=$d/mpi

@@ -176,6 +182,9 @@
     elif test -f ${MPI_ROOT}/include/lam/mpi.h; then

          echo "Found in ${MPI_ROOT}/include/lam"

          MPI_INCLUDE_PATH="${MPI_ROOT}/include/lam"

+    elif test -f ${MPI_ROOT}/mpi.h; then

+         echo "Found in ${MPI_ROOT}"

+         MPI_INCLUDE_PATH="${MPI_ROOT}"

     else 

          echo "Cannot find mpi.h header file"

          echo "Please use --with-mpi=/path/to/mpi or specify the environment 
variable MPI_ROOT"



Regards, Dirk

| 
| Cheers,
| Julien
| xapplication/pgp-signature [Click mouse-2 to save to a file]

-- 
Dirk Eddelbuettel | [email protected] | http://dirk.eddelbuettel.com  

Reply via email to