You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ spack spec -I <spec>Input spec-------------------------------- - gcc-runtimeConcretized--------------------------------[+] gcc-runtime@11.4.1%gcc@11.4.1 build_system=generic arch=linux-almalinux9-x86_64_v3[e] ^glibc@2.34%gcc@11.4.1 build_system=autotools arch=linux-almalinux9-x86_64_v3
$ spack install gcc-runtime # Or any package compiled with gcc[+] /usr (external glibc-2.34-xvxngcqmc33coucpn3qpxr2by2ruwxgi)==> Installing gcc-runtime-11.4.1-w3a63xayu37ralwmc6jxy2cb6mmmwgu3 [2/2]==> No binary for gcc-runtime-11.4.1-w3a63xayu37ralwmc6jxy2cb6mmmwgu3 found: installing from source==> No patches needed for gcc-runtime==> gcc-runtime: Executing phase: 'install'==> Error: TypeError: argument should be a str or an os.PathLike object where __fspath__ returns a str, not 'Executable'See build log for details: /tmp/root/spack-stage/spack-stage-gcc-runtime-11.4.1-w3a63xayu37ralwmc6jxy2cb6mmmwgu3/spack-build-out.txt
$ vim /cluster/spack/app/lib/spack/spack/hooks/absolutify_elf_sonames.pyAdd .path to line 152 resulting in `patchelf_path = spack.relocate._patchelf().path`
$ spack install gcc-runtime[+] /usr (external glibc-2.34-xvxngcqmc33coucpn3qpxr2by2ruwxgi)==> Installing gcc-runtime-11.4.1-w3a63xayu37ralwmc6jxy2cb6mmmwgu3 [2/2]==> No binary for gcc-runtime-11.4.1-w3a63xayu37ralwmc6jxy2cb6mmmwgu3 found: installing from source==> No patches needed for gcc-runtime==> gcc-runtime: Executing phase: 'install'==> gcc-runtime: Patched 6 sonames: lib/libatomic.so.1, lib/libgcc_s.so.1, lib/libgfortran.so.5, lib/libgomp.so.1, ..., lib/libstdc++.so.6==> gcc-runtime: Successfully installed gcc-runtime-11.4.1-w3a63xayu37ralwmc6jxy2cb6mmmwgu3 Stage: 0.00s. Install: 0.04s. Post-install: 0.24s. Total: 0.29s[+] /cluster/spack/packages/linux-almalinux9-x86_64_v3/gcc-11.4.1/gcc-runtime-11.4.1-w3a63xayu37ralwmc6jxy2cb6mmmwgu3
$ cat /etc/os-releaseNAME="AlmaLinux"VERSION="9.4 (Seafoam Ocelot)"ID="almalinux"ID_LIKE="rhel centos fedora"VERSION_ID="9.4"PLATFORM_ID="platform:el9"PRETTY_NAME="AlmaLinux 9.4 (Seafoam Ocelot)"ANSI_COLOR="0;34"LOGO="fedora-logo-icon"CPE_NAME="cpe:/o:almalinux:almalinux:9::baseos"HOME_URL="https://almalinux.org/"DOCUMENTATION_URL="https://wiki.almalinux.org/"BUG_REPORT_URL="https://bugs.almalinux.org/"ALMALINUX_MANTISBT_PROJECT="AlmaLinux-9"ALMALINUX_MANTISBT_PROJECT_VERSION="9.4"REDHAT_SUPPORT_PRODUCT="AlmaLinux"REDHAT_SUPPORT_PRODUCT_VERSION="9.4"SUPPORT_END=2032-06-01
Error message
Error message
==> [2024-05-23-12:45:05.723837] Adding env modifications for patchelf
==> [2024-05-23-12:45:05.741491] Error: TypeError: argument should be a str or an os.PathLike object where __fspath__ returns a str, not 'Executable'
See build log for details:
/tmp/root/spack-stage/spack-stage-gcc-runtime-11.4.1-w3a63xayu37ralwmc6jxy2cb6mmmwgu3/spack-build-out.txt
Traceback (most recent call last):
File "/cluster/spack/app/lib/spack/spack/build_environment.py", line 1151, in _setup_pkg_and_run
return_value = function(pkg, kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/cluster/spack/app/lib/spack/spack/installer.py", line 2482, in build_process
return installer.run()
^^^^^^^^^^^^^^^
File "/cluster/spack/app/lib/spack/spack/installer.py", line 2359, in run
spack.hooks.post_install(self.pkg.spec, self.explicit)
File "/cluster/spack/app/lib/spack/spack/hooks/__init__.py", line 67, in __call__
hook(*args, **kwargs)
File "/cluster/spack/app/lib/spack/spack/hooks/absolutify_elf_sonames.py", line 155, in post_install
patchelf = Executable(patchelf_path)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/cluster/spack/app/lib/spack/spack/util/executable.py", line 23, in __init__
file_path = str(Path(name))
^^^^^^^^^^
File "/usr/lib64/python3.12/pathlib.py", line 1162, in __init__
super().__init__(*args)
File "/usr/lib64/python3.12/pathlib.py", line 373, in __init__
raise TypeError(
TypeError: argument should be a str or an os.PathLike object where __fspath__ returns a str, not 'Executable'
==> [2024-05-23-12:45:05.741797] Flagging gcc-runtime-11.4.1-w3a63xayu37ralwmc6jxy2cb6mmmwgu3 as failed: TypeError: argument should be a str or an os.PathLike object where __fspath__ returns a str, not 'Executable'
==> [2024-05-23-12:45:05.744836] ChildError: TypeError: argument should be a str or an os.PathLike object where __fspath__ returns a str, not 'Executable'
Some packages have maintainers who have volunteered to debug build failures. Run spack maintainers <name-of-the-package> and mention them here if they exist.
I'm able to fix the problem by adding .path to line 152 in lib/spack/spack/hooks/absolutify_elf_sonames.py. But I'm not sure, if this could break other setups.
General information
I have run spack debug report and reported the version of Spack/Python/Platform
I have run spack maintainers <name-of-the-package> and @mentioned any maintainers
I have uploaded the build log and environment files
I have searched the issues of this repo and believe this is not a duplicate
The text was updated successfully, but these errors were encountered:
Steps to reproduce the issue
Turn this non-default option on:
$ spack config add config:shared_linking:bind:true
Then try to install anything:
Error message
Error message
Information on your system
Additional information
spack-build-out.txt
spack-build-env.txt
@haampie
Note:
I'm able to fix the problem by adding
.path
to line 152 inlib/spack/spack/hooks/absolutify_elf_sonames.py
. But I'm not sure, if this could break other setups.General information
spack debug report
and reported the version of Spack/Python/Platformspack maintainers <name-of-the-package>
and @mentioned any maintainersThe text was updated successfully, but these errors were encountered: