[mvapich-discuss] Bug in mvapich2-1.6-0 make file.

Mike Heinz michael.heinz at qlogic.com
Mon Feb 28 12:40:03 EST 2011


When trying to build a variant RPM of mvapich2, I ran into this error:

Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.70358
+ umask 022
+ cd /var/tmp/QLogic-mvapich2/OFEDRPMS/BUILD
+ cd mvapich2-r4431
+ rm -rf /var/tmp/QLogic-mvapich2/build
+ make install DESTDIR=/var/tmp/QLogic-mvapich2/build
Remove /usr/mpi/gcc/mvapich2-1.6/lib/libfmpich.so and rerun make install
Remove /usr/mpi/gcc/mvapich2-1.6/lib/libmpich.so and rerun make install
make: *** [install-preamble] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.70358 (%install)

Reviewing the makefile it appears the error is in install-preamble:

--- Makefile.bak        2011-02-28 12:32:06.000000000 -0500
+++ Makefile    2011-02-28 12:32:18.000000000 -0500
@@ -485,7 +485,7 @@
 install-preamble:
        @if [ "none" = none ] ; then\
              found=no ; \
-            for file in ${libdir}/lib*${MPILIBNAME}.so ; do \
+            for file in ${DESTDIR}/${libdir}/lib*${MPILIBNAME}.so ; do \
                  if [ -f $$file ] ; then \
                     echo "Remove $$file and rerun ${MAKE} install" ; \
                     found=yes ; \

Adding the reference to DESTDIR allows the RPM to be rebuilt correctly.


This message and any attached documents contain information from QLogic Corporation or its wholly-owned subsidiaries that may be confidential. If you are not the intended recipient, you may not read, copy, distribute, or use this information. If you have received this transmission in error, please notify the sender immediately by reply e-mail and then delete this message.




More information about the mvapich-discuss mailing list