Skip to content

nvidia-compiler symlinks cause NVHPC installation to fail in make_module_step #4192

Description

@craig-grosch

I am trying to install NVHPC/25.1 which requires nvidia-compilers/25.1 as a dependency. I am have used both EasyBuild 5.2.0 and EasyBuild 5.3.1.

The installation of nvidia-compilers succeeds (mostly, see below), as does the installation of NVHPC. However, when generating the module file for NVHPC, EasyBuild fails with the following error:

== 2026-08-04 19:01:14,734 build_log.py:233 ERROR EasyBuild encountered an error: Expansion of search path glob pattern
'Linux_x86_64/25.1/compilers/extras/qd/lib/' resulted in a relative path pointing outside of parent directory:
../../nvidia-compilers/25.1/Linux_x86_64/25.1/compilers/extras/qd/lib (at easybuild/tools/modules.py:315 in expand_paths)
Callstack:
        easybuild/tools/modules.py:315 in expand_paths
        easybuild/framework/easyblock.py:1756 in make_module_req
        easybuild/framework/easyblock.py:4525 in make_module_step
        easybuild/framework/easyblock.py:4763 in run_step
        easybuild/framework/easyblock.py:4922 in run_all_steps
        easybuild/framework/easyblock.py:5109 in build_and_install_one
        easybuild/main.py:178 in build_and_install_software
        easybuild/main.py:611 in process_eb_args
        easybuild/main.py:795 in main
        easybuild/main.py:844 in main_with_hooks
        easybuild/main.py:859 in <module>

As far as I can tell, this is due to the symlinking in the nvidiabase.py EasyBlock. This step removes the installed compiler components from NVHPC, and instead, symlinks them to the nvidia-compiler module.

I don't see a way around the "relative path pointing outside of parent directory" error above while still maintaining the symlinks.

I experimented with a couple of solutions, and just removing the symlink commands and any dependency on nvidia-compilers when installing NVHPC works. But this defeats the purpose of separating out nvidia-compilers and causes problems downstream for EasyConfigs using NVHPC as the toolchain.

One other potentially complicating factor: I am installing on Ubuntu 22.04 and simultaneously trying to dodge this issue. As far as I can tell, the fixes there have no impact on the above problem. In a clean install attempt where I ignore all of those fixes and the sanity check step (to ensure that the nvidia-compilers installation succeeds), I still get the same problem.

I'm happy to provide detailed logs or any other reproducibility information that would be helpful.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions