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
Copy file name to clipboardExpand all lines: tutorial_developer_workflows.rst
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -140,7 +140,7 @@ Development iteration cycles
140
140
141
141
Let's assume that ``scr`` has a bug, and we'd like to patch ``scr`` to find out what the problem is.
142
142
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:
144
144
145
145
.. literalinclude:: outputs/dev/develop-1.out
146
146
:language: spec
@@ -191,8 +191,11 @@ If the file times are newer, it will rebuild ``scr`` and any other package that
191
191
:language: console
192
192
193
193
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.
0 commit comments