Mpi autoconf因“错误:m4\u defn:未定义宏:\u m4\u divert\u diversion”而停止

Mpi autoconf因“错误:m4\u defn:未定义宏:\u m4\u divert\u diversion”而停止,mpi,autoconf,automake,m4,Mpi,Autoconf,Automake,M4,我正在构建OpenMPI-1.6.5。运行autogen.sh后,出现以下错误: ... patching file opal/libltdl/loaders/preopen.c ++ patching for ifort (LT 2.2.0-4) -- your libltdl doesn't need this! yay! [Running] aclocal -I config -I opal/config -I orte/config -I ompi/config conf

我正在构建OpenMPI-1.6.5。运行autogen.sh后,出现以下错误:

...
patching file opal/libltdl/loaders/preopen.c
   ++ patching for ifort (LT 2.2.0-4)
     -- your libltdl doesn't need this! yay!
[Running] aclocal -I config -I opal/config -I orte/config -I ompi/config
configure.ac:35: error: m4_defn: undefined macro: _m4_divert_diversion
configure.ac:35: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
aclocal: autom4te failed with exit status: 1
有什么问题吗

我有工具:automake 1.10.1,autoconf 2.63,m4 1.4.12

任何帮助都将不胜感激

最好的,
Alex

为什么运行autogen.sh只是为了构建一个包?除非您正在维护openMPI并构建tarball,否则无需运行自动工具。下载tarball并运行配置脚本。非常感谢。我确实知道,常规构建不需要autogen.sh。