hipcc package install but cannot be used due to several missing environment variables
Open
Nobody has claimed this yet.
bug
triage
- Dominant language
- Python
- Stars
- 5.1k
- Forks
- 2.5k
- Avg merge
- 3d 4h
- Merged PRs (30d)
- 82
Description
Steps to reproduce
spack install hipcc
spack load hipcc
hipcc -v
Error message
Use of uninitialized value $HIP_CLANG_PATH in concatenation (.) or string at /home/niromero/root/spack/opt/spack/linux-ubuntu22.04-zen3/gcc-11.4.0/hipcc-6.1.1-qxytnzsmuz645znzjsgdbros3rnjfhou/bin//hipcc.pl line 165.
Use of uninitialized value $HIP_CLANG_PATH in concatenation (.) or string at /home/niromero/root/spack/opt/spack/linux-ubuntu22.04-zen3/gcc-11.4.0/hipcc-6.1.1-qxytnzsmuz645znzjsgdbros3rnjfhou/bin//hipcc.pl line 169.
Can't exec "/clang": No such file or directory at /home/niromero/root/spack/opt/spack/linux-ubuntu22.04-zen3/gcc-11.4.0/hipcc-6.1.1-qxytnzsmuz645znzjsgdbros3rnjfhou/bin//hipcc.pl line 179.
Use of uninitialized value $HIP_CLANG_RT_LIB in scalar chomp at /home/niromero/root/spack/opt/spack/linux-ubuntu22.04-zen3/gcc-11.4.0/hipcc-6.1.1-qxytnzsmuz645znzjsgdbros3rnjfhou/bin//hipcc.pl line 180.
Use of uninitialized value $ROCMINFO_PATH in concatenation (.) or string at /home/niromero/root/spack/opt/spack/linux-ubuntu22.04-zen3/gcc-11.4.0/hipcc-6.1.1-qxytnzsmuz645znzjsgdbros3rnjfhou/bin//hipcc.pl line 490.
Can't exec "/clang": No such file or directory at /home/niromero/root/spack/opt/spack/linux-ubuntu22.04-zen3/gcc-11.4.0/hipcc-6.1.1-qxytnzsmuz645znzjsgdbros3rnjfhou/bin//hipcc.pl line 634.
failed to execute: No such file or directory
Information on your system
- Spack: 0.23.0.dev0 (9ba90e322eb4ce16c543e9ac27058188d5471654)
- Python: 3.10.14
- Platform: linux-ubuntu22.04-zen3
- Concretizer: clingo
General information
- I have run
spack debug reportand reported the version of Spack/Python/Platform - I have searched the issues of this repo and believe this is not a duplicate
- I have run the failing commands in debug mode and reported the output
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure with spack install hipcc, spack load hipcc, and hipcc -v. Inspect the installed bin/hipcc.pl locations cited in the error, especially lines 165-180, 490, and 634, and trace how the missing environment variables are expected to be provided. Done means the loaded package can run hipcc -v without missing-variable warnings or execution errors.
Written by the indexing model from the issue text.
Assessment
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100