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
== FAILED: Installation ended unsuccessfully: shell command'make ...' failed with exit code 2 in build step for bzip2-1.0.8.eb (took 2 secs)
35
+
== Results of the build can be found in the log file(s) /tmp/eb-lm7cwh0o/easybuild-bzip2-1.0.8-20250811.134024.IRIIQ.log
36
+
== Summary:
37
+
* [FAILED] bzip2/1.0.8
38
+
39
+
ERROR: Installation of bzip2-1.0.8.eb failed: "shell command 'make ...' failed with exit code 2 in build step for bzip2-1.0.8.eb
40
+
```
41
+
42
+
In the output of the failed build we see:
43
+
44
+
* We see the full command being run when the failure occurred: `full command -> make -j 12 CC=gcc CFLAGS='-Wall -Winline -O3 -fPIC -g $(BIGFILES)'`
45
+
* A link to a file containing the output of just the command being run: `output (stdout + stderr) -> /tmp/eb-lm7cwh0o/run-shell-cmd-output/make-f4_mwpk1/out.txt`
46
+
* A link to the file that allows access to the interactive shell environment to debug the failure: `interactive shell script -> /tmp/eb-lm7cwh0o/run-shell-cmd-output/make-f4_mwpk1/cmd.sh`
47
+
48
+
The interactive shell can be entered by running the script mentioned.
49
+
This will place you in an environment where you can debug the failed build:
50
+
51
+
* The previous commandin the shell history (e.g. via arrow-up key) should be the failing command.
52
+
* You can also explore the environment, such as checking environment variables or loaded modules.
53
+
* You can repeat the last command to see the failure.
# Shell for the command: 'make -j 12 CC=gcc CFLAGS='-Wall -Winline -O3 -fPIC -g $(BIGFILES)''
58
+
# Use command history, exit to stop
59
+
eb-shell>
60
+
```
61
+
62
+
Once you have finished debugging then exiting the shell will return you to your previous environment.
63
+
64
+
### `env.sh`
65
+
66
+
This file will contain the details of your environment:
67
+
68
+
1. Environment variables that were set.
69
+
1. `bash` functions that were available.
70
+
71
+
This file will also contain the commands required to change to the working directory for the failed command and set the history and `PS1`for the session.
72
+
73
+
### `cmd.sh`
74
+
75
+
This file is run to enter the interactive environment.
76
+
This will use the `env.sh` file to setup the environment.
0 commit comments