-
Notifications
You must be signed in to change notification settings - Fork 2.4k
spack develop doesn't re-execute cmake stage after fixing a CMake issue from clean build. #48770
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't workingtriageThe issue needs to be prioritizedThe issue needs to be prioritized
Description
Steps to reproduce
- Set up an environment to develop the
CMakePackageof your choice with suitablespack env create,spack add, andspack developcommands (and others if appropriate). - After the source is checked out, introduce a syntax error into the top level
CMakeLists.txtfile (e.g.project()->pproject()). - Attempt to
spack install --no-addyour package. - After the expected failure, fix the error introduced in step 2.
- Re-try step 3.
Error message
...
scratch/greenc/art-develop-2025-01-14/spack_env/lib/spack/spack/installer.py:2349 ==> [2025-01-29-09:13:13.755390] cetlib: Building cetlib-develop-mbzdq4obgudz2fal3qteqhlpvmsnsnsn [CMakePackage]
scratch/greenc/art-develop-2025-01-14/spack_env/lib/spack/spack/installer.py:2451 ==> [2025-01-29-09:13:13.779965] cetlib: Executing phase: 'cmake'
scratch/greenc/art-develop-2025-01-14/spack_env/lib/spack/spack/installer.py:2451 ==> [2025-01-29-09:13:13.786559] cetlib: Executing phase: 'build'
scratch/greenc/art-develop-2025-01-14/spack_env/lib/spack/spack/error.py:58 ==> [2025-01-29-09:13:13.801067] Error: ProcessError: Command exited with status 1:
'/usr/bin/ninja' '-j16' '-v'
1 error found in build log:
2 scratch/greenc/art-develop-2025-01-14/spack_env/lib/spack/spack/installer.py:2451 ==> [2025-01-29-09:13:13.786559] cetlib: Executing phase: 'build'
3 scratch/greenc/art-develop-2025-01-14/spack_env/lib/spack/spack/util/executable.py:262 ==> [2025-01-29-09:13:13.788500] '/usr/bin/ninja' '-j16' '-v'
>> 4 ninja: error: loading 'build.ninja': No such file or directory
...Information on your system
- Spack: 0.24.0.dev0 (71604c0)
- Python: 3.9.21
- Platform: linux-almalinux9-cascadelake
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingtriageThe issue needs to be prioritizedThe issue needs to be prioritized