Skip to content

Commit

Permalink
Fix application of patch for MPICH 3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
zbeekman committed May 2, 2017
1 parent 8a1ac56 commit 8ff03c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion prerequisites/build-functions/build_and_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ build_and_install()
if [[ "${package_to_build}" == "mpich" && "${version_to_build}" == "3.2" ]]; then
info "Patching MPICH 3.2 on Mac OS due to segfault bug (see http://lists.mpich.org/pipermail/discuss/2016-May/004764.html)."
sed 's/} MPID_Request ATTRIBUTE((__aligned__(32)));/} ATTRIBUTE((__aligned__(32))) MPID_Request;/g' \
"${download_path}/${package_source_directory}/src/include/mpiimpl.h"
"${download_path}/${package_source_directory}/src/include/mpiimpl.h" > "${download_path}/${package_source_directory}/src/include/mpiimpl.h.patched"
cp "${download_path}/${package_source_directory}/src/include/mpiimpl.h.patched" "${download_path}/${package_source_directory}/src/include/mpiimpl.h"
fi

info "Configuring ${package_to_build} ${version_to_build} with the following command:"
Expand Down

0 comments on commit 8ff03c8

Please sign in to comment.