我在 spack 安装阶段安装 openmpi 软件包时遇到问题,该如何继续?

发布于 2025-01-10 08:38:24 字数 5349 浏览 0 评论 0原文

我在从命令开始的 openmpi 配置和安装阶段遇到问题: spack安装hdf5 用于安装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 [email protected] %[email protected]
==> Error: No compilers with spec [email protected] 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 [email protected] %[email protected]
==> Error: No compilers with spec [email protected] 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 ---------------------------------
[email protected]

-- clang monterey-aarch64 ---------------------------------------
[email protected]

我的目标实际上是安装 FEniCS (DOLFINx),从我在网上找到的内容中我看到首先要这样做需要安装spack,所以我尝试了。 在我安装的各种软件包中,我发现了 openmpi 中指出的问题。如果我需要下载其他内容或通过其他程序解决问题,我不知道如何继续。

I have problems regarding the configuration and installation phase of openmpi starting from the command:
spack install hdf5
for the installation of spack.

Keep getting the following output:

[...]
 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 [email protected] %[email protected]
==> Error: No compilers with spec [email protected] 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 [email protected] %[email protected]
==> Error: No compilers with spec [email protected] found
Run 'spack compiler find' to add compilers or 'spack compilers' to see which compilers are already recognized by spack.

(I'm working with mac with m1 processor)

From the spack compilers I get this output:

spack compilers
==> Available compilers
-- apple-clang monterey-aarch64 ---------------------------------
[email protected]

-- clang monterey-aarch64 ---------------------------------------
[email protected]

My goal is actually to install FEniCS (DOLFINx) and from what I found online I saw that to do this you first need to install spack and so I tried.
Among the various packages I was installing I found the problem indicated in openmpi. I don't know how to proceed if I need to download something else or get around the problem with another procedure.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文