我从以下命令开始对 openmpi 的配置和安装阶段有疑问:
spack install hdf5
for the installation of spack.
继续得到以下输出:
[...]
No patches needed for openmpi
==> openmpi: Executing phase: 'autoreconf'
==> openmpi: Executing phase: 'configure'
==> Error: ProcessError: Command exited with status 1:
'/var/folders/8_/wztdc3v56hg9j4qj_fv9b6vm0000gp/T/lorenzomarta/spack-stage/spack-stage-openmpi-4.1.2-dt7kysg3arqzxcey3isivwhq2gjrpwiq/spack-src/configure' '--prefix=/Users/lorenzomarta/spack/opt/spack/darwin-monterey-m1/apple-clang-13.0.0/openmpi-4.1.2-dt7kysg3arqzxcey3isivwhq2gjrpwiq' '--enable-shared' '--disable-silent-rules' '--disable-builtin-atomics' '--enable-static' '--without-pmi' '--with-zlib=/Users/lorenzomarta/spack/opt/spack/darwin-monterey-m1/apple-clang-13.0.0/zlib-1.2.11-geghxlnypciim4i5a3v2kk6xlnt7coym' '--enable-mpi1-compatibility' '--without-psm' '--without-mxm' '--without-ucx' '--without-xpmem' '--without-fca' '--without-knem' '--without-psm2' '--without-cma' '--without-verbs' '--without-ofi' '--without-hcoll' '--without-cray-xpmem' '--without-tm' '--without-loadleveler' '--without-alps' '--without-lsf' '--without-sge' '--without-slurm' '--disable-memchecker' '--with-libevent=/Users/lorenzomarta/spack/opt/spack/darwin-monterey-m1/apple-clang-13.0.0/libevent-2.1.12-73xjwogw6nqpuldlylbmoigwmr226opr' '--with-hwloc=/Users/lorenzomarta/spack/opt/spack/darwin-monterey-m1/apple-clang-13.0.0/hwloc-2.7.0-ozodgqskus55yycodml6yamfm3zlp7bp' '--disable-java' '--disable-mpi-java' '--with-gpfs=no' '--without-cuda' '--enable-wrapper-rpath' '--disable-wrapper-runpath' '--disable-mpi-cxx' '--disable-cxx-exceptions'
2 errors found in build log:
358 checking the name lister (/usr/bin/nm -B) interface... BSD nm
359 checking for fgrep... /usr/bin/grep -F
360 checking if .proc/endp is needed... no
361 checking directive for setting text section... .text
362 checking directive for exporting symbols... .globl
363 checking for objdump... objdump
>> 364 checking if .note.GNU-stack is needed... /Library/Developer/CommandLineTools/usr/bin/objdump: error: 'conftest.o': Invalid/
Unsupported object file format
365 no
366 checking suffix for labels... :
367 checking prefix for global symbol labels... _
368 checking prefix for lsym labels... L
369 checking prefix for function in .type...
370 checking if .size is needed... no
...
386 * execute. Note that this is likely not a problem with Open MPI,
387 * but a problem with the local compiler installation. More
388 * information (including exactly what command was given to the
389 * compiler and what error resulted when the command was executed) is
390 * available in the config.log file in the Open MPI build directory.
391 **********************************************************************
>> 392 configure: error: Could not run a simple Fortran program. Aborting.
See build log for details:
/var/folders/8_/wztdc3v56hg9j4qj_fv9b6vm0000gp/T/lorenzomarta/spack-stage/spack-stage-openmpi-4.1.2-dt7kysg3arqzxcey3isivwhq2gjrpwiq/spack-build-out.txt
==> Warning: Skipping build of hdf5-1.12.1-76nex7zsw662gm5rjdkxmnspagvnzjrd since openmpi-4.1.2-dt7kysg3arqzxcey3isivwhq2gjrpwiq failed
==> Error: hdf5-1.12.1-76nex7zsw662gm5rjdkxmnspagvnzjrd: Package was not installed
==> Error: Installation request failed. Refer to reported errors for failing package(s).
(base) Mac:~ lorenzomarta$ spack install -v openmpi@4.0.0 %gcc@5.5
==> Error: No compilers with spec gcc@5.5 found
Run 'spack compiler find' to add compilers or 'spack compilers' to see which compilers are already recognized by spack.
(base) Mac:~ lorenzomarta$ spack install -v openmpi@4.0.0 %gcc@5.5
==> Error: No compilers with spec gcc@5.5 found
Run 'spack compiler find' to add compilers or 'spack compilers' to see which compilers are already recognized by spack.
(我正在使用带有 m1 处理器的 mac)
从 spack 编译器我得到这个输出:
spack compilers
==> Available compilers
-- apple-clang monterey-aarch64 ---------------------------------
apple-clang@13.0.0
-- clang monterey-aarch64 ---------------------------------------
clang@6.0.0
我的目标实际上是安装 FEniCS (DOLFINx),从我在网上找到的内容中,我看到要做到这一点,你首先需要安装 spack,所以我尝试了。在我安装的各种软件包中,我发现了 openmpi 中指出的问题。如果我需要下载其他内容或通过其他程序解决问题,我不知道如何继续。