Skip to content

Commit ba280d1

Browse files
committed
Fixes when running the AMI image locally
Signed-off-by: psakiev <psakiev@sandia.gov>
1 parent db29012 commit ba280d1

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tutorial_developer_workflows.rst

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ Development iteration cycles
140140

141141
Let's assume that ``scr`` has a bug, and we'd like to patch ``scr`` to find out what the problem is.
142142
First, we tell Spack that we'd like to check out the version of ``scr`` in our environment.
143-
In this case, it will be the 3.1.0 release that we want to write a patch for:
143+
In this case, it will be the 2.0.0 release that we want to write a patch for:
144144

145145
.. literalinclude:: outputs/dev/develop-1.out
146146
:language: spec
@@ -191,8 +191,11 @@ If the file times are newer, it will rebuild ``scr`` and any other package that
191191
:language: console
192192

193193
Here, the build failed as expected.
194-
We can look at the output for the build in ``scr/spack-build-out.txt`` to find out why, or we can launch a shell directly with the appropriate environment variables to figure out what went wrong by using ``spack build-env scr -- bash``.
195-
If that's too much to remember, then sourcing ``scr/spack-build-env.txt`` will also set all the appropriate environment variables so we can diagnose the build ourselves.
194+
We can look at the output for the build in the stage directory ``scr/build-linux-*/spack-build-out.txt`` to find out why.
195+
The ``build-linux-*`` directory inside the source tree is a symlink to the spec's stage directory where all the logs are stored.
196+
The full name of this directory can be found with ``spack location --stage scr`` or quickly navigated to with ``spack cd --stage scr``.
197+
We can also launch a shell directly with the appropriate environment variables to figure out what went wrong by using ``spack build-env scr -- bash``.
198+
If that's too much to remember, then sourcing ``scr/build-linux-*/spack-build-env.txt`` will also set all the appropriate environment variables so we can diagnose the build ourselves.
196199
Now let's fix it and rebuild directly.
197200

198201
.. literalinclude:: outputs/dev/develop-4.out

0 commit comments

Comments
 (0)