diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b3c6739..2fefe77 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ jobs: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - - run: shellcheck -S warning eb-keep-logs tests/test_eb_keep_logs.sh + - run: shellcheck -S warning eb-keep-logs tests/test_eb_keep_logs.sh tests/corpus/run.sh tests/corpus/make-fixtures.sh - run: bash tests/test_eb_keep_logs.sh - name: no site names in the tree run: | @@ -35,6 +35,6 @@ jobs: with: version: 0.17.1 - run: zig fmt --check build.zig build.zig.zon src - - run: shellcheck -S warning tests/differential.sh + - run: shellcheck -S warning tests/differential.sh tests/test_why.sh - run: zig build test --summary all - run: zig build -Drelease=true -Dcommit=${{ github.sha }} && zig-out/bin/eb-keep-logs --version diff --git a/COMPAT.md b/COMPAT.md index 494cc74..d456497 100644 --- a/COMPAT.md +++ b/COMPAT.md @@ -26,6 +26,8 @@ on the same invocations. | case | shell script | Zig build | |---|---|---| | `--version` | `eb-keep-logs 0.1.0` | `eb-keep-logs 0.2.1 (TARGET, MODE, zig VERSION, COMMIT)`; the first two words are unchanged | +| `why` | refused with `eb-keep-logs: why is in the Zig build only`, exit 2 | says why the run's builds failed, from their kept logs, read through gzip when rotated | +| `history` | refused with `eb-keep-logs: history is in the Zig build only`, exit 2 | lists how each kept build of a package went, run by run | | `--compress-after` or `--delete-after` with no value after it | never returns | refused, exit 2 | | `EB_KEEP_LOGS_NOW` not empty and not an integer | evaluated as shell arithmetic | refused, exit 2 | | `rotate`'s lock file cannot be opened, or is a symbolic link or not a regular file | `eb-keep-logs: cannot lock PATH`, exit 2, from a look at the name just before it is opened | `eb-keep-logs: cannot lock PATH: ERROR`, exit 2, from the open itself | diff --git a/README.md b/README.md index af64596..d96eb41 100644 --- a/README.md +++ b/README.md @@ -97,6 +97,20 @@ cp -a /srv/build-logs /tmp/logs-preview EB_KEEP_LOGS_NOW=$(date -d 2027-09-20 +%s) eb-keep-logs rotate /tmp/logs-preview --compress-after 30 --delete-after 365 ``` +## Find why a build failed + +```bash +eb-keep-logs why --latest --root /srv/build-logs +eb-keep-logs why 20261117_040615 --root /srv/build-logs --target zen4 --json +eb-keep-logs history hello --root /srv/build-logs +``` + +`why` reads the logs a run kept, as `failed` kept them or `rotate` compressed them, and prints for each failed easyconfig its package and easyconfig, the EasyBuild step it failed in, EasyBuild's message, and the line of its log that shows the error, the first compiler or linker error or else EasyBuild's own error line, with the path, the line number and three lines either side. +For a failure class, feed the kept log to eb-stack. +`history` lists each kept build of a package, run by run, with its outcome and how long EasyBuild took. +`--json` prints either as one line of JSON with `schema_version` 1, for a pipeline's run summary. +Both are in the Zig build only. + ## Tests ```bash diff --git a/build.zig b/build.zig index 4cad483..5796347 100644 --- a/build.zig +++ b/build.zig @@ -55,9 +55,17 @@ pub fn build(b: *std.Build) void { diff.setCwd(b.path(".")); diff.expectExitCode(0); diff.has_side_effects = true; + // why, which the shell implementation does not have, on the kept logs + // of real EasyBuild failures. + const why = b.addSystemCommand(&.{ "bash", "-c", "TOOL_BIN=\"$0\" exec bash tests/test_why.sh" }); + why.addArtifactArg(exe); + why.setCwd(b.path(".")); + why.expectExitCode(0); + why.has_side_effects = true; - const test_step = b.step("test", "Run the unit tests, the command-line suite and the differential run"); + const test_step = b.step("test", "Run the unit tests, the command-line suites and the differential run"); test_step.dependOn(&b.addRunArtifact(unit).step); test_step.dependOn(&suite.step); test_step.dependOn(&diff.step); + test_step.dependOn(&why.step); } diff --git a/changelog.d/+history.feature.md b/changelog.d/+history.feature.md new file mode 100644 index 0000000..48f5868 --- /dev/null +++ b/changelog.d/+history.feature.md @@ -0,0 +1 @@ +`eb-keep-logs history PACKAGE [--target TARGET] [--root ROOT] [--json]` lists each kept build of a package, oldest run first, with its target, its outcome and how long EasyBuild took, from EasyBuild's output, plain or compressed; `PACKAGE` is an easyconfig's name, its start up to a dash, or a module name. `--json` prints one line with `schema_version` 1. Like `why`, it is in the Zig build only; the shell script refuses it. diff --git a/changelog.d/+log-corpus.misc.md b/changelog.d/+log-corpus.misc.md new file mode 100644 index 0000000..fa05d7d --- /dev/null +++ b/changelog.d/+log-corpus.misc.md @@ -0,0 +1 @@ +`tests/fixtures/build-logs/` holds the logs of real EasyBuild 5.4.2 builds on top of EESSI 2025.06 that fail at a checksum, a patch, a missing dependency, configure, a compile, a link, a test and a sanity check, laid out as eb-pipeline lays out its runs, with what `eb-keep-logs failed` kept and four runs compressed by `rotate`. `tests/corpus/` has the easyconfigs, the script that runs them and the one that trims the logs by dropping lines. diff --git a/changelog.d/+why-howto.doc.md b/changelog.d/+why-howto.doc.md new file mode 100644 index 0000000..27bd8e3 --- /dev/null +++ b/changelog.d/+why-howto.doc.md @@ -0,0 +1 @@ +A how-to, Find why a build failed, runs `why` and `history` on the kept logs of real failed builds, and reads `why --json` with `jq`; the front page and the pipeline how-to point to it. diff --git a/changelog.d/+why.feature.md b/changelog.d/+why.feature.md new file mode 100644 index 0000000..0703d19 --- /dev/null +++ b/changelog.d/+why.feature.md @@ -0,0 +1 @@ +`eb-keep-logs why [RUN | --latest] [--target TARGET] [--root ROOT] [--json]` says from a run's kept logs why its builds failed: for each failed easyconfig, the package and easyconfig, the EasyBuild step it failed in, EasyBuild's message, and the line of the log that shows the error, with three lines either side, its path and its line number. That line is the first compiler or linker error in the failed step, or else EasyBuild's own error line. It reads a log `rotate` compressed as it is, and a build that kept only its output from that, undoing EasyBuild's wrapping at 80 columns. `--json` prints the same as one line of JSON with `schema_version` 1, for a pipeline's run summary. The shell script refuses `why`, as COMPAT.md lists, and `tests/test_why.sh` checks it on the real failures in `tests/fixtures/build-logs/`. diff --git a/docs/orgmode/contributing.org b/docs/orgmode/contributing.org index a41d580..0a6e48b 100644 --- a/docs/orgmode/contributing.org +++ b/docs/orgmode/contributing.org @@ -35,6 +35,31 @@ This runs the unit tests, the command-line suite =tests/test_eb_keep_logs.sh= ag =bash tests/test_eb_keep_logs.sh= runs the suite against the shell script. A deliberate difference between the two has its row in =COMPAT.md=, which [[file:reference/compatibility.org][Compatibility]] shows, and its label in =tests/differential.sh=. +** The log corpus + +=tests/fixtures/build-logs/= is the log tree of real EasyBuild 5.4.2 builds on top of EESSI 2025.06, laid out as eb-pipeline lays out its runs, =RUN/TARGET/NAME.stdout.log=, with what =eb-keep-logs failed= kept beside each failed build. +The builds of GNU hello 2.12.1 in =tests/corpus/cases/= fail as builds do: a checksum of another release, a patch made for an older version, a dependency nobody packaged, a configure that finds no working compiler, a compile error, an undefined reference, a failing test and a sanity check path that is not there; the last run builds it. +=eb-keep-logs rotate= compressed the first four runs. + +The builds ran as =alice= on a host named =node1=, so the logs name no real user or host. +To make the tree again, mount EESSI's CernVM-FS repository, put =eb-keep-logs= on =PATH=, and run each case as a run of its own, in UTC as eb-pipeline names its runs: + +#+begin_src bash +export TZ=UTC +for c in checksum patch missing-dep configure; do tests/corpus/run.sh sapphirerapids "$c"; done +EB_KEEP_LOGS_NOW=$(($(date +%s) + 86400)) eb-keep-logs rotate ~/build-logs --compress-after 1 +for c in compile link; do tests/corpus/run.sh sapphirerapids "$c"; done +export STAMP=$(date +%Y%m%d_%H%M%S) +tests/corpus/run.sh sapphirerapids test sanity +tests/corpus/run.sh generic pass +unset STAMP +tests/corpus/run.sh sapphirerapids pass pass-13 +tests/corpus/make-fixtures.sh ~/build-logs tests/fixtures/build-logs "$(command -v eb-keep-logs)" +#+end_src + +=make-fixtures.sh= drops lines and never edits one. +Of each kept session log it keeps EasyBuild's warnings and errors and the records of its messages, steps and shell commands, without the output of the commands that succeeded or the middle of a failed command's output longer than 160 lines; EasyBuild's own copies of its logs stay out. + ** Build the documentation The documentation toolchain is pinned in =pixi.lock=: Emacs, Sphinx, lychee, and the tools that read the code. @@ -66,6 +91,8 @@ pixi run -e docs linkcheck | =docs/source/_ext/= | the Sphinx domain for Zig declarations | | =docs/tools/zig_api.zig= | writes the Zig API pages from the doc comments | | =docs/tools/check_site.py= | checks internal links, anchors and forbidden names | +| =tests/corpus/= | the builds the log corpus comes from | +| =tests/fixtures/= | the log corpus | The =.rst= files under =docs/source/= and everything under =docs/source/reference/api/= are generated and not committed. diff --git a/docs/orgmode/howto/call-from-a-pipeline.org b/docs/orgmode/howto/call-from-a-pipeline.org index 57aaa0a..9fa5d50 100644 --- a/docs/orgmode/howto/call-from-a-pipeline.org +++ b/docs/orgmode/howto/call-from-a-pipeline.org @@ -75,6 +75,7 @@ eb-keep-logs rotate: 0 files compressed, 0 runs deleted under /home/alice/build- #+end_example Each build has =NAME.stdout.log= and its =--tmp-logdir= under =easybuild-logs/=; a failed build also has =NAME.failed.ebout.log= and, when its last command failed, =NAME.failed.command-out.txt=. +=eb-keep-logs why "$LOGDIR"= says from these files why each failed build failed; [[file:find-why-a-build-failed.org][Find why a build failed]] shows how. ** If it fails @@ -88,6 +89,7 @@ Each build has =NAME.stdout.log= and its =--tmp-logdir= under =easybuild-logs/=; ** Related +- [[file:find-why-a-build-failed.org][Find why a build failed]] - [[file:rotate-a-log-tree.org][Rotate a log tree]] - [[file:../explanation/why-eb-last-log.org][Finding a failed build's log]] - [[file:../reference/cli.org][The eb-keep-logs command]] diff --git a/docs/orgmode/howto/find-why-a-build-failed.org b/docs/orgmode/howto/find-why-a-build-failed.org new file mode 100644 index 0000000..41d1cb8 --- /dev/null +++ b/docs/orgmode/howto/find-why-a-build-failed.org @@ -0,0 +1,118 @@ +#+TITLE: Find why a build failed +#+OPTIONS: toc:nil todo:nil num:nil author:nil title:nil +#+STARTUP: content + +* Find why a build failed + +Use this after a run in which builds failed, to see for each the EasyBuild step it failed in and the line of its log that shows the error without opening the logs, or to see how a package's builds went over the runs you keep. +=eb-keep-logs why= and =eb-keep-logs history= read the logs =eb-keep-logs failed= kept, as they are or as =rotate= compressed them, and change nothing. + +** Before you start + +- =eb-keep-logs= built with Zig, as =zig build -Drelease=true= in its repository builds it, on your =PATH=: the shell script has no =why= or =history=. +- A log tree, here =~/build-logs=, whose runs are named by their date and time, =YYYYMMDD_HHMMSS=, as [[file:call-from-a-pipeline.org][Call eb-keep-logs from a build pipeline]] makes them. + A run keeps each build's =NAME.stdout.log= and, for a failed build, =NAME.failed.ebout.log=, in its own directory or in a directory per target, as eb-pipeline keeps them. + +** Steps + +1. Ask about the newest run: + + #+begin_src bash + eb-keep-logs why --root ~/build-logs + #+end_src + + #+begin_example + /home/alice/build-logs/20261117_042207: 0 failed builds of 2 + #+end_example + + Without a run, =why= reads the newest, by the date and time in its name; here its two builds succeeded. +2. Name the run whose builds failed, as =ls ~/build-logs= lists it: + + #+begin_src bash + eb-keep-logs why 20261117_040615 --root ~/build-logs + #+end_src + + #+begin_example + /home/alice/build-logs/20261117_040615: 1 failed build of 1 + + sapphirerapids/hello-2.12.1-GCCcore-14.2.0 failed in the build step, after 3m06s + package: hello/2.12.1-GCCcore-14.2.0 + easyconfig: /home/alice/corpus/cases/compile/hello-2.12.1-GCCcore-14.2.0.eb + EasyBuild: shell command 'make ...' failed with exit code 2 in build step for hello-2.12.1-GCCcore-14.2.0.eb + log: /home/alice/build-logs/20261117_040615/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.failed.ebout.log:34142 + 34139 | gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/exitfail.o -MD -MP -MF $depbase.Tpo -c -o lib/exitfail.o lib/exitfail.c &&\ + 34140 | mv -f $depbase.Tpo $depbase.Po + 34141 | src/hello.c: In function 'main': + > 34142 | src/hello.c:149:18: error: 'site_greeting' undeclared (first use in this function); did you mean 'mb_greeting'? + 34143 | 149 | greeting_msg = site_greeting; + 34144 | | ^~~~~~~~~~~~~ + 34145 | | mb_greeting + #+end_example + + Each failed build gets its target and name, the EasyBuild step it failed in, and how long EasyBuild took; then its package, its easyconfig, EasyBuild's own message, and the line of its log that shows the error, with the line number and three lines either side. + That line is the first compiler or linker error in the failed step, here GCC's; a build that failed without one, such as on a wrong checksum, gets EasyBuild's own error line. + With =--target TARGET=, only the builds in the run's directory =TARGET= are read. + For a failure class, feed the kept log to [[https://eb-stack.rgoswami.me/][eb-stack]]; =why= gives none. +3. To read more of the log than the lines =why= shows, print the lines around the one it gives: + + #+begin_src bash + sed -n '34100,34150p' ~/build-logs/20261117_040615/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.failed.ebout.log + #+end_src + + A log =rotate= compressed ends in =.gz=; read it with =zcat FILE | sed -n '34100,34150p'=. +4. See how a package's builds went over the runs: + + #+begin_src bash + eb-keep-logs history hello --root ~/build-logs + #+end_src + + #+begin_example + hello: 11 builds under /home/alice/build-logs: 3 succeeded, 8 failed + + RUN TARGET OUTCOME DURATION NAME + 20261117_035825 sapphirerapids failed 48s hello-2.12.1-GCCcore-14.2.0 + 20261117_040032 sapphirerapids failed 41s hello-2.12.1-GCCcore-14.2.0 + 20261117_040119 sapphirerapids failed - hello-2.12.1-GCCcore-14.2.0 + 20261117_040311 sapphirerapids failed 2m24s hello-2.12.1-GCCcore-14.2.0 + 20261117_040615 sapphirerapids failed 3m06s hello-2.12.1-GCCcore-14.2.0 + 20261117_040928 sapphirerapids failed 2m30s hello-2.12.1-GCCcore-14.2.0 + 20261117_041222 generic success 2m50s hello-2.12.1-GCCcore-14.2.0 + 20261117_041222 sapphirerapids failed 2m54s hello-2.12.1-GCCcore-13.3.0 + 20261117_041222 sapphirerapids failed 2m33s hello-2.12.1-GCCcore-14.2.0 + 20261117_042207 sapphirerapids success 2m40s hello-2.12.1-GCCcore-13.3.0 + 20261117_042207 sapphirerapids success 2m52s hello-2.12.1-GCCcore-14.2.0 + #+end_example + + =hello= takes every easyconfig whose name starts with =hello-=; =hello-2.12.1-GCCcore-13.3.0= takes that one alone. + A duration of =-= is one EasyBuild did not print, as when it stopped before building; ask =why= about that run for the reason. +5. To put the reasons in a script's own summary, read the JSON =--json= prints: + + #+begin_src bash + eb-keep-logs why 20261117_041222 --root ~/build-logs --json \ + | jq -r '.failures[] | "\(.name): \(.step), \(.log):\(.error.line)"' + #+end_src + + #+begin_example + hello-2.12.1-GCCcore-13.3.0: sanitycheck, /home/alice/build-logs/20261117_041222/sapphirerapids/hello-2.12.1-GCCcore-13.3.0.failed.ebout.log:35357 + hello-2.12.1-GCCcore-14.2.0: test, /home/alice/build-logs/20261117_041222/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.failed.ebout.log:34323 + #+end_example + + Its keys keep their meaning while =schema_version= is 1; [[file:../reference/cli.org][The eb-keep-logs command]] lists them. + For an eb-pipeline run, give =--root= the site file's =log_root= and =--target= the target: eb-pipeline keeps each run's logs in =LOG_ROOT/STAMP/TARGET/=. + +** If it fails + +| Message | Cause | What to do | +|----------------------------------------------+-----------------------------------------------------------------------------------------------------------+------------------------------------------------------------------| +| =eb-keep-logs: why is in the Zig build only= | The =eb-keep-logs= on your =PATH= is the shell script. | Put the Zig build first on =PATH=. | +| =eb-keep-logs: ROOT PATH is not a directory= | =--root= names no directory. | Give =--root= the log tree. | +| =eb-keep-logs: no run under ROOT= | =ROOT= holds no directory named =YYYYMMDD_HHMMSS=. | Give =--root= the directory that holds the runs, not one run. | +| =RUN: 0 failed builds of 0= | The run holds no =NAME.stdout.log= or =NAME.failed.ebout.log=, in its own directory or one below it. | Check that the pipeline writes its logs where =why= reads them. | +| =failed before its first step= | EasyBuild stopped before its first step, as it does for a missing dependency. | Read the =EasyBuild:= line, which gives EasyBuild's message. | +| =log: PATH (no error recorded)= | The log records no failure, or could not be read, as a message on stderr then says. | Read the log itself. | + +** Related + +- [[file:../reference/cli.org][The eb-keep-logs command]] +- [[file:call-from-a-pipeline.org][Call eb-keep-logs from a build pipeline]] +- [[file:rotate-a-log-tree.org][Rotate a log tree]] diff --git a/docs/orgmode/howto/index.org b/docs/orgmode/howto/index.org index 1a99c99..694636e 100644 --- a/docs/orgmode/howto/index.org +++ b/docs/orgmode/howto/index.org @@ -12,6 +12,7 @@ The title names the task. :maxdepth: 1 call-from-a-pipeline + find-why-a-build-failed rotate-a-log-tree mark-licensed-logs #+end_export diff --git a/docs/orgmode/index.org b/docs/orgmode/index.org index aba5930..6b1a7ce 100644 --- a/docs/orgmode/index.org +++ b/docs/orgmode/index.org @@ -7,7 +7,8 @@ Keep the logs of EasyBuild builds that a build pipeline would otherwise lose, and keep the pipeline's log tree bounded. After a failed build, =eb-keep-logs failed= copies the EasyBuild log and the failing command's own output next to the build's output, where the end of the job does not take them, and closes the copies to other users, because a failed compile line of licensed software can print the licence number. =eb-keep-logs rotate= compresses the logs of old runs and removes the oldest runs. -Each release is one static binary per architecture that needs nothing but =eb=; the shell script it was ported from stays in the repository as the same tool. +=eb-keep-logs why= says from the kept logs why a run's builds failed, and =eb-keep-logs history= how a package's builds went run by run. +Each release is one static binary per architecture that needs nothing but =eb=; the shell script it was ported from stays in the repository as the same tool, without =why= and =history=. New here? [[file:tutorials/keep-a-failed-build-log.org][Keep a failed build's logs]] runs an EasyBuild build that fails and ends with its log and the compiler's error kept in a directory of your own. diff --git a/docs/orgmode/reference/cli.org b/docs/orgmode/reference/cli.org index a2b1f91..774e7ab 100644 --- a/docs/orgmode/reference/cli.org +++ b/docs/orgmode/reference/cli.org @@ -4,14 +4,16 @@ * The eb-keep-logs command -=eb-keep-logs= keeps the logs of a failed EasyBuild build, and compresses and removes the old runs of a log tree. -This page describes the Zig build; the shell script =eb-keep-logs= in the repository behaves the same, except as [[file:compatibility.org][Compatibility]] lists. +=eb-keep-logs= keeps the logs of a failed EasyBuild build, compresses and removes the old runs of a log tree, says from the kept logs why a run's builds failed, and lists how a package's builds went run by run. +This page describes the Zig build; the shell script =eb-keep-logs= in the repository behaves the same, except as [[file:compatibility.org][Compatibility]] lists: it has no =why= or =history=. ** Synopsis #+begin_example eb-keep-logs failed STATUS NAME LOGDIR [TMP_LOGDIR] eb-keep-logs rotate ROOT --compress-after DAYS [--delete-after DAYS] [--lock-timeout SECONDS] +eb-keep-logs why [RUN | --latest] [--target TARGET] [--root ROOT] [--json] +eb-keep-logs history PACKAGE [--target TARGET] [--root ROOT] [--json] eb-keep-logs -h | --help eb-keep-logs --version #+end_example @@ -25,6 +27,8 @@ eb-keep-logs --version | =LOGDIR= | =failed= | The run's directory, which holds =NAME.stdout.log= and gets the copies and =.licensed-logs=; a symbolic link to a directory is followed. | | =TMP_LOGDIR= | =failed= | The =--tmp-logdir= =eb= ran with, passed on to =eb --last-log=. Empty is the same as not given: =eb --last-log= then names the newest log in EasyBuild's default place. Arguments after it are ignored. | | =ROOT= | =rotate= | The directory that holds the runs. A run is a directory directly under it, not a symbolic link, named =YYYYMMDD_HHMMSS= with a date that exists; everything else under it is left alone. | +| =RUN= | =why= | The run to read: a path, or a name under =--root=. Its builds are in it, as =failed= given it as =LOGDIR= keeps them, or in its directories, one per target, not symbolic links, as eb-pipeline keeps them. | +| =PACKAGE= | =history= | An easyconfig's name, or its start up to a dash: =hello= and =hello-2.12.1= both take =hello-2.12.1-GCCcore-14.2.0=, and =hello= takes =hello-world-1.0= too. A module name, =hello/2.12.1=, is read as =hello-2.12.1=. | ** Options @@ -33,12 +37,17 @@ eb-keep-logs --version | =--compress-after DAYS=, =--compress-after=DAYS= | =rotate= | Required. Compress the =*.log= and =*.txt= files, at any depth, of runs at least =DAYS= old. =DAYS= is decimal digits. | | =--delete-after DAYS=, =--delete-after=DAYS= | =rotate= | Remove whole runs at least =DAYS= old. =DAYS= must be larger than =--compress-after=. Without it, or with an empty value, no run is removed. | | =--lock-timeout SECONDS=, =--lock-timeout=SECONDS= | =rotate= | How long to wait for the lock another =rotate= of =ROOT= holds, in seconds, decimal digits; =0= does not wait. Without it, or with an empty value, 600. A value larger than 999999999, which is over 31 years, waits 999999999 seconds. | +| =--latest= | =why= | Read the newest run under =--root=, by its name; with =--target=, the newest that has that target. The default without =RUN=. | +| =--target TARGET=, =--target=TARGET= | =why=, =history= | Read only the builds in the run's directory =TARGET=; for =history=, in each run's, a run without one passed over. Without it, those in the run's own directory and then in each directory in it, by name. | +| =--root ROOT=, =--root=ROOT= | =why=, =history= | The directory that holds the runs, directories named =YYYYMMDD_HHMMSS=, not symbolic links. Without it, the current directory. | +| =--json= | =why=, =history= | Print one line of JSON instead of the report; its keys are under Files below. | | =-h=, =--help= | | Print the usage on stdout and exit 0. | | =--version= | | Print the version line on stdout and exit 0. | - A run's age is the number of whole days from the local midnight of the date in its name; [[file:../explanation/local-time.org][Run ages and local time]] gives the details. - =rotate='s options and =ROOT= come in any order; the value of an option is the next argument, whatever it is. An option given twice takes its last value. +- =why='s options and =RUN=, and =history='s and =PACKAGE=, come in any order, and an option given twice takes its last value; the value of an option is the next argument, whatever it is, and an empty one is refused. - =-h=, =--help= and =--version= count only in the place of the command. - =failed= takes no options. @@ -57,19 +66,19 @@ eb-keep-logs --version | Status | Meaning | |--------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| 0 | =-h=, =--help= or =--version=, a =failed= that accepted its arguments, or a =rotate= that accepted its arguments and did not give up waiting for its lock, whatever it could keep, compress or remove: what it could not do is reported, and is no failure. | +| 0 | =-h=, =--help= or =--version=, a =failed=, =why= or =history= that accepted its arguments, or a =rotate= that accepted its arguments and did not give up waiting for its lock, whatever it could keep, compress, remove or read: what it could not do is reported, and is no failure. A =why= exits 0 whether or not the run's builds failed, and a =history= whether or not it found a build of the package. | | 2 | The invocation was refused, with =eb-keep-logs: MESSAGE= on stderr; or no command was given, and the usage is on stdout. | | 75 | Another =rotate= held =ROOT='s lock for longer than =--lock-timeout=, and this =rotate= changed nothing; try again later. | | =MESSAGE= | Cause | |-----------------------------------------------------------------+-----------------------------------------------------------------------------------------------| -| =unknown command 'WORD' (failed, rotate, --help)= | The first argument is none of the commands. | +| =unknown command 'WORD' (failed, rotate, why, history, --help)= | The first argument is none of the commands. | | =failed needs STATUS NAME LOGDIR [TMP_LOGDIR]= | =failed= got fewer than three arguments. | | =STATUS must be a number, not 'STATUS'= | =STATUS= is empty or holds something other than digits. | | =LOGDIR LOGDIR is not a directory= | =LOGDIR= does not name a directory that can be opened. | | =rotate needs ROOT= | =rotate= got no =ROOT=, or an empty one. | | =rotate takes one ROOT= | =rotate= got two arguments that are not options. | -| =unknown option OPTION= | =rotate= got an argument starting with =-= that is none of its options. | +| =unknown option OPTION= | =rotate=, =why= or =history= got an argument starting with =-= that is none of its options. | | =ROOT ROOT is not a directory= | =ROOT= does not name a directory that can be opened. | | =OPTION needs a number of days= | =--compress-after= is missing, or a value is missing, empty, not decimal digits or too large. | | =--delete-after must be later than --compress-after= | =--delete-after= is not larger than =--compress-after=. | @@ -77,9 +86,20 @@ eb-keep-logs --version | =EB_KEEP_LOGS_NOW must be seconds since the epoch, not 'VALUE'= | =EB_KEEP_LOGS_NOW= is neither empty nor an integer. | | =cannot lock ROOT/.eb-keep-logs-rotate.lock: ERROR= | The lock file could not be opened, or is a symbolic link or not a regular file. | | =cannot read ROOT ROOT=, =cannot read ROOT ROOT: ERROR= | =ROOT= could not be listed. | -| =cannot read the arguments= | The arguments could not be read into memory. | - -=rotate= checks =ROOT= before its options' values, then =EB_KEEP_LOGS_NOW=, and then takes the lock; =failed= checks =STATUS= and then =LOGDIR=. +| =why takes one RUN= | =why= got two arguments that are not options. | +| =why takes RUN or --latest, not both= | =why= got =RUN= and =--latest=. | +| =RUN must not be empty= | =RUN= is empty. | +| =--target needs a target=, =--root needs a directory= | The option's value is missing or empty. | +| =no run under ROOT=, =no run under ROOT has a target TARGET= | =--latest= found no run under =ROOT=, or none with a directory =TARGET=. | +| =RUN RUN is not a directory= | =RUN= does not name a directory that can be opened. | +| =TARGET TARGET is not a directory in RUN= | The run has no directory =TARGET=, or it is a symbolic link. | +| =cannot read RUN RUN: ERROR= | The run could not be listed. | +| =history needs PACKAGE= | =history= got no =PACKAGE=. | +| =history takes one PACKAGE= | =history= got two arguments that are not options. | +| =PACKAGE must not be empty= | =PACKAGE= is empty. | +| =cannot read the arguments=, =out of memory= | The arguments, or what =why= or =history= reads, could not be held in memory. | + +=rotate= checks =ROOT= before its options' values, then =EB_KEEP_LOGS_NOW=, and then takes the lock; =failed= checks =STATUS= and then =LOGDIR=; =why= checks its arguments, then =ROOT=, then =RUN= and =TARGET=; =history= checks its arguments, then =ROOT=. With status 75, =rotate= prints, with =ROOT= without its trailing slashes and =N= the seconds it waited: #+begin_example @@ -163,6 +183,117 @@ What =rotate= cannot do it reports on stderr as =eb-keep-logs: MESSAGE=, and goe | =cannot sync a .licensed-logs: ERROR= | A list was replaced, but its directory could not be synced; after a crash the old list may be back. | | =cannot delete ROOT/RUN: ERROR= | The run could not be removed completely; what was removed stays removed. | +*** why + +=why= only reads. +A build is a =NAME= with either of its logs in the run's own directory or in one of its target directories; of =FILE= and =FILE.gz=, =FILE= is read, and a =.gz= file is read through gzip, its CRC-32 checked. + +| File | Use | +|---------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| =RUN/[TARGET/]NAME.stdout.log=, =.gz= | EasyBuild's output, which says how the build went: the last =COMPLETED: Installation ended successfully= or =FAILED: Installation ended unsuccessfully= in it decides, with the duration in it; an =ERROR:= line after a success, or without either, is a failure. | +| =RUN/[TARGET/]NAME.failed.ebout.log=, =.gz= | The session log =failed= kept, which says why the build failed. A build whose output says nothing of how it went has failed when this log is there; without either, its outcome is unknown. | + +What =why= takes from a failed build's session log, or from its output when it has none: + +| Item | Taken from | +|------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| package | EasyBuild's =building and installing NAME/VERSION...=. | +| easyconfig | EasyBuild's =processing EasyBuild easyconfig PATH=. | +| message | EasyBuild's message for the failure: =EasyBuild encountered an error: MESSAGE= in the session log; in the output, the =FAILED: Installation ended unsuccessfully: MESSAGE= entry with EasyBuild's wrapping at 80 columns undone, or else the first =ERROR: MESSAGE=. Its first 400 bytes. | +| step | The step the =FAILED= entry names, as in =... failed with exit code 2 in build step for NAME.eb=; else the last step the log shows starting before the failure: =Starting STEP step= in the session log, an announcement such as ~== sanity checking...~ in the output. By EasyBuild's name, as =eb --stop= takes it: =fetch=, =ready=, =extract=, =patch=, =prepare=, =configure=, =build=, =test=, =install=, =extensions=, =postiter=, =postproc=, =sanitycheck=, =cleanup=, =module=, =permissions=, =package=, =testcases=. None when the failure came before the first step, as a missing dependency does. | +| error | The line that shows the error: the first compiler or linker error from the start of that step to EasyBuild's own error line, else that line. A compiler's error is one at a source line, =FILE:LINE: error:= or =FILE:LINE:COLUMN: fatal error:= as GCC and Clang print it, or =FILE(LINE): error:= as nvcc does; a linker's is =undefined reference to= or =cannot find -l= as GNU ld prints them, or =undefined symbol:= as lld and mold do. EasyBuild's own error line is its first =EasyBuild encountered an error= in the session log; in the output, the =FAILED= entry, or else the first =ERROR:=. In a session log, nothing before the first step counts. With its line number and three lines either side, each cut to 400 bytes. | +| duration | The =(took DURATION)= of the =FAILED= entry, in seconds. | + +For a failure class, feed the kept log to [[https://eb-stack.rgoswami.me/][eb-stack]]; =why= gives none. + +The report on stdout gives the run, the count of failed builds, and each failed build in turn, those in the run's own directory first, without =TARGET/=, then by target, each by name: + +#+begin_example +tests/fixtures/build-logs/20261117_040615: 1 failed build of 1 + +sapphirerapids/hello-2.12.1-GCCcore-14.2.0 failed in the build step, after 3m06s + package: hello/2.12.1-GCCcore-14.2.0 + easyconfig: /home/alice/corpus/cases/compile/hello-2.12.1-GCCcore-14.2.0.eb + EasyBuild: shell command 'make ...' failed with exit code 2 in build step for hello-2.12.1-GCCcore-14.2.0.eb + log: tests/fixtures/build-logs/20261117_040615/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.failed.ebout.log:291 + 288 | gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/exitfail.o -MD -MP -MF $depbase.Tpo -c -o lib/exitfail.o lib/exitfail.c &&\ + 289 | mv -f $depbase.Tpo $depbase.Po + 290 | src/hello.c: In function 'main': + > 291 | src/hello.c:149:18: error: 'site_greeting' undeclared (first use in this function); did you mean 'mb_greeting'? + 292 | 149 | greeting_msg = site_greeting; + 293 | | ^~~~~~~~~~~~~ + 294 | | mb_greeting +#+end_example + +A line the log does not give is left out; a failed build before its first step says =failed before its first step=, and one whose log could not be read, or records no failure, says =log: PATH (no error recorded)=. +With =--json=, =why= prints one line of JSON instead, its keys in this order, a value the log does not give =null=: + +| Key | Value | +|------------------+-------------------------------------------------------------------------------------------------------------------------------| +| =schema_version= | =1=. A new version drops or renames a key, or changes what one means; a key may be added without one. | +| =kind= | ="why"=. | +| =run= | The run's name: the last component of its path, symbolic links resolved. | +| =run_dir= | The run's path, as given or joined to =--root=. | +| =counts= | ={"success": N, "failed": N, "unknown": N}=, the builds read, by outcome. | +| =failures= | One object for each failed build, in the order of the report. | + +| Key in a failure | Value | +|------------------+-------------------------------------------------------------------------------------------------------------------------------| +| =target= | The target directory, or =null= for a build in the run's own directory. | +| =name= | =NAME=. | +| =package= | The package, as =NAME/VERSION=. | +| =easyconfig= | The easyconfig's path. | +| =step= | The step. | +| =message= | EasyBuild's message. | +| =duration_s= | The duration in seconds, from the =FAILED= entry or else from EasyBuild's output. | +| =log= | The path of the log read: =run_dir/TARGET/FILE=, or =run_dir/FILE=. | +| =error= | ={"line": N, "text": LINE, "before": [LINE, ...], "after": [LINE, ...]}=, the error line and its context, or =null=. | + +Text in the JSON is UTF-8: a byte of a log that is not part of a UTF-8 character is U+FFFD. +What =why= cannot read it reports on stderr as =eb-keep-logs: MESSAGE=, and goes on with the rest: + +| =MESSAGE= | Cause | +|----------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------| +| =cannot open PATH: ERROR= | A target directory could not be opened; its builds are not read. | +| =cannot read PATH: ERROR= | A target directory could not be listed, or a log could not be read: =BadGzip= for a =.gz= that is not gzip or is damaged, =StreamTooLong= for one of 1 GiB or more. A failed build whose log it is, is still listed. | + +*** history + +=history= only reads, the same files as =why=: in each run under =ROOT=, oldest first, in the run's own directory and then in each of its target directories, by name, the builds whose =NAME= is =PACKAGE= or starts with =PACKAGE= and a dash. +A build's outcome and duration come from its output, =NAME.stdout.log=, as =why= reads them; its session log is not read, and tells only that the build failed when its output does not say. +The report on stdout counts the builds by outcome and lists them, a build in the run's own directory with the target =-=, and a duration EasyBuild did not print as =-=: + +#+begin_example +hello-2.12.1-GCCcore-13.3.0: 2 builds under tests/fixtures/build-logs: 1 succeeded, 1 failed + +RUN TARGET OUTCOME DURATION NAME +20261117_041222 sapphirerapids failed 2m54s hello-2.12.1-GCCcore-13.3.0 +20261117_042207 sapphirerapids success 2m40s hello-2.12.1-GCCcore-13.3.0 +#+end_example + +The first line ends with =, N unknown= when an outcome is unknown; with no build found, it is =PACKAGE: 0 builds under ROOT= alone. +With =--json=, =history= prints one line of JSON instead, its keys in this order: + +| Key | Value | +|------------------+--------------------------------------------------------------------------------------------------------| +| =schema_version= | =1=, versioned as =why='s is. | +| =kind= | ="history"=. | +| =package= | =PACKAGE= as given. | +| =root= | =ROOT= as given, =.= without =--root=. | +| =counts= | ={"success": N, "failed": N, "unknown": N}=, the builds found, by outcome. | +| =builds= | One object for each build, in the order of the report. | + +| Key in a build | Value | +|------------------+--------------------------------------------------------------------------------------------------------| +| =run= | The run's name. | +| =target= | The target directory, or =null= for a build in the run's own directory. | +| =name= | =NAME=. | +| =outcome= | ="success"=, ="failed"= or ="unknown"=. | +| =duration_s= | The duration in seconds EasyBuild printed, or =null=. | +| =log= | The log read: =ROOT/RUN/[TARGET/]NAME.stdout.log= or its =.gz=, or the session log when there is no output. | + +What =history= cannot read it reports on stderr as =why= does, a run that cannot be opened with =cannot open PATH: ERROR= too, and goes on with the rest; a build whose output could not be read is still listed. + *** --help The usage =-h=, =--help= and no arguments print on stdout, the same from the shell script: @@ -198,6 +329,42 @@ otherwise lose, and keep the pipeline's log tree bounded. While another rotate holds the lock, wait up to SECONDS for it, then give up and exit 75. Default: 600; 0 does not wait. An empty value is the default. + eb-keep-logs why [RUN | --latest] [--target TARGET] [--root ROOT] [--json] + Say why the builds of a run failed: for each failed easyconfig, its + package and easyconfig, the EasyBuild step it failed in, EasyBuild's + message, and the line of its kept log that shows the error: the first + compiler or linker error, else EasyBuild's own error line, with the + line number and three lines either side. Logs rotate compressed are + read as they are. Zig build only. RUN and the options come in any + order. + RUN + A run directory, as a path or as a name under ROOT. + --latest + The newest run under ROOT, or the newest with a directory + TARGET. The default when no RUN is given. + --target TARGET, --target=TARGET + Only the builds in the run's directory TARGET. Default: those in + the run's own directory and in every directory in it. + --root ROOT, --root=ROOT + The directory that holds the runs. Default: the current + directory. + --json + Print one line of JSON instead, with schema_version 1. + eb-keep-logs history PACKAGE [--target TARGET] [--root ROOT] [--json] + Say how each kept build of PACKAGE went, oldest run first: success, + failed or unknown, and how long EasyBuild took, from its output. + PACKAGE is an easyconfig's name or its start up to a dash, as hello + or hello-2.12.1 for hello-2.12.1-GCCcore-14.2.0, or a module name, as + hello/2.12.1; hello also takes hello-world-1.0. Zig build only. + PACKAGE and the options come in any order. + --target TARGET, --target=TARGET + Only the builds in each run's directory TARGET. Default: those in + each run's own directory and in every directory in it. + --root ROOT, --root=ROOT + The directory that holds the runs. Default: the current + directory. + --json + Print one line of JSON instead, with schema_version 1. eb-keep-logs -h | --help Print this help on stdout and exit 0. eb-keep-logs --version @@ -214,9 +381,9 @@ Environment: directory of zone files. Exit status: - 0 -h, --help or --version, or a failed or rotate that accepted its - arguments, whatever it could keep, compress or remove: what it could - not do is reported on stderr. + 0 -h, --help or --version, or a failed, rotate, why or history that + accepted its arguments, whatever it could keep, compress, remove or + read: what it could not do is reported on stderr. 2 The invocation was refused, with eb-keep-logs: MESSAGE on stderr; or no command was given, and this help is on stdout. 75 rotate waited --lock-timeout seconds for the lock another rotate diff --git a/eb-keep-logs b/eb-keep-logs index 13f1071..aca94d1 100755 --- a/eb-keep-logs +++ b/eb-keep-logs @@ -44,6 +44,42 @@ otherwise lose, and keep the pipeline's log tree bounded. While another rotate holds the lock, wait up to SECONDS for it, then give up and exit 75. Default: 600; 0 does not wait. An empty value is the default. + eb-keep-logs why [RUN | --latest] [--target TARGET] [--root ROOT] [--json] + Say why the builds of a run failed: for each failed easyconfig, its + package and easyconfig, the EasyBuild step it failed in, EasyBuild's + message, and the line of its kept log that shows the error: the first + compiler or linker error, else EasyBuild's own error line, with the + line number and three lines either side. Logs rotate compressed are + read as they are. Zig build only. RUN and the options come in any + order. + RUN + A run directory, as a path or as a name under ROOT. + --latest + The newest run under ROOT, or the newest with a directory + TARGET. The default when no RUN is given. + --target TARGET, --target=TARGET + Only the builds in the run's directory TARGET. Default: those in + the run's own directory and in every directory in it. + --root ROOT, --root=ROOT + The directory that holds the runs. Default: the current + directory. + --json + Print one line of JSON instead, with schema_version 1. + eb-keep-logs history PACKAGE [--target TARGET] [--root ROOT] [--json] + Say how each kept build of PACKAGE went, oldest run first: success, + failed or unknown, and how long EasyBuild took, from its output. + PACKAGE is an easyconfig's name or its start up to a dash, as hello + or hello-2.12.1 for hello-2.12.1-GCCcore-14.2.0, or a module name, as + hello/2.12.1; hello also takes hello-world-1.0. Zig build only. + PACKAGE and the options come in any order. + --target TARGET, --target=TARGET + Only the builds in each run's directory TARGET. Default: those in + each run's own directory and in every directory in it. + --root ROOT, --root=ROOT + The directory that holds the runs. Default: the current + directory. + --json + Print one line of JSON instead, with schema_version 1. eb-keep-logs -h | --help Print this help on stdout and exit 0. eb-keep-logs --version @@ -60,9 +96,9 @@ Environment: directory of zone files. Exit status: - 0 -h, --help or --version, or a failed or rotate that accepted its - arguments, whatever it could keep, compress or remove: what it could - not do is reported on stderr. + 0 -h, --help or --version, or a failed, rotate, why or history that + accepted its arguments, whatever it could keep, compress, remove or + read: what it could not do is reported on stderr. 2 The invocation was refused, with eb-keep-logs: MESSAGE on stderr; or no command was given, and this help is on stdout. 75 rotate waited --lock-timeout seconds for the lock another rotate @@ -392,6 +428,7 @@ case "${1:-}" in --version) echo "eb-keep-logs ${VERSION}" ;; failed) shift; cmd_failed "$@" ;; rotate) shift; cmd_rotate "$@" ;; + why | history) die "$1 is in the Zig build only" ;; "") usage; exit 2 ;; - *) die "unknown command '$1' (failed, rotate, --help)" ;; + *) die "unknown command '$1' (failed, rotate, why, history, --help)" ;; esac diff --git a/src/main.zig b/src/main.zig index 491d1e9..c06bd42 100644 --- a/src/main.zig +++ b/src/main.zig @@ -11,6 +11,7 @@ const logs = common.logs; const cli = common.cli; const localtime = @import("localtime.zig"); const scan = @import("scan.zig"); +const why = @import("why.zig"); const Allocator = std.mem.Allocator; const tool = "eb-keep-logs"; @@ -51,6 +52,42 @@ const usage_text = \\ While another rotate holds the lock, wait up to SECONDS for it, \\ then give up and exit 75. Default: 600; 0 does not wait. An empty \\ value is the default. + \\ eb-keep-logs why [RUN | --latest] [--target TARGET] [--root ROOT] [--json] + \\ Say why the builds of a run failed: for each failed easyconfig, its + \\ package and easyconfig, the EasyBuild step it failed in, EasyBuild's + \\ message, and the line of its kept log that shows the error: the first + \\ compiler or linker error, else EasyBuild's own error line, with the + \\ line number and three lines either side. Logs rotate compressed are + \\ read as they are. Zig build only. RUN and the options come in any + \\ order. + \\ RUN + \\ A run directory, as a path or as a name under ROOT. + \\ --latest + \\ The newest run under ROOT, or the newest with a directory + \\ TARGET. The default when no RUN is given. + \\ --target TARGET, --target=TARGET + \\ Only the builds in the run's directory TARGET. Default: those in + \\ the run's own directory and in every directory in it. + \\ --root ROOT, --root=ROOT + \\ The directory that holds the runs. Default: the current + \\ directory. + \\ --json + \\ Print one line of JSON instead, with schema_version 1. + \\ eb-keep-logs history PACKAGE [--target TARGET] [--root ROOT] [--json] + \\ Say how each kept build of PACKAGE went, oldest run first: success, + \\ failed or unknown, and how long EasyBuild took, from its output. + \\ PACKAGE is an easyconfig's name or its start up to a dash, as hello + \\ or hello-2.12.1 for hello-2.12.1-GCCcore-14.2.0, or a module name, as + \\ hello/2.12.1; hello also takes hello-world-1.0. Zig build only. + \\ PACKAGE and the options come in any order. + \\ --target TARGET, --target=TARGET + \\ Only the builds in each run's directory TARGET. Default: those in + \\ each run's own directory and in every directory in it. + \\ --root ROOT, --root=ROOT + \\ The directory that holds the runs. Default: the current + \\ directory. + \\ --json + \\ Print one line of JSON instead, with schema_version 1. \\ eb-keep-logs -h | --help \\ Print this help on stdout and exit 0. \\ eb-keep-logs --version @@ -67,9 +104,9 @@ const usage_text = \\ directory of zone files. \\ \\Exit status: - \\ 0 -h, --help or --version, or a failed or rotate that accepted its - \\ arguments, whatever it could keep, compress or remove: what it could - \\ not do is reported on stderr. + \\ 0 -h, --help or --version, or a failed, rotate, why or history that + \\ accepted its arguments, whatever it could keep, compress, remove or + \\ read: what it could not do is reported on stderr. \\ 2 The invocation was refused, with eb-keep-logs: MESSAGE on stderr; or \\ no command was given, and this help is on stdout. \\ 75 rotate waited --lock-timeout seconds for the lock another rotate @@ -811,10 +848,10 @@ fn cmdRotate(c: Ctx, args: []const [:0]const u8) u8 { return 0; } -/// The command line. `failed` and `rotate` run those commands; `--help` or -/// `-h` prints the usage and `--version` the version line, both returning -/// 0. No command prints the usage and returns 2, and an unknown one is -/// refused with 2. +/// The command line. `failed`, `rotate`, `why` and `history` run those +/// commands; `--help` or `-h` prints the usage and `--version` the version +/// line, both returning 0. No command prints the usage and returns 2, and +/// an unknown one is refused with 2. pub fn main(init: std.process.Init) u8 { const gpa = init.gpa; const args = init.minimal.args.toSlice(init.arena.allocator()) catch die("cannot read the arguments", .{}); @@ -835,16 +872,19 @@ pub fn main(init: std.process.Init) u8 { } if (std.mem.eql(u8, cmd, "failed")) return cmdFailed(c, args[2..]); if (std.mem.eql(u8, cmd, "rotate")) return cmdRotate(c, args[2..]); + if (std.mem.eql(u8, cmd, "why")) return why.cmdWhy(gpa, args[2..]); + if (std.mem.eql(u8, cmd, "history")) return why.cmdHistory(gpa, args[2..]); if (cmd.len == 0) { cli.put(1, usage_text); return cli.usage_exit; } - die("unknown command '{s}' (failed, rotate, --help)", .{cmd}); + die("unknown command '{s}' (failed, rotate, why, history, --help)", .{cmd}); } test { _ = localtime; _ = scan; + _ = why; } test "a failed copy does not replace a log already kept" { diff --git a/src/why.zig b/src/why.zig new file mode 100644 index 0000000..8e40c81 --- /dev/null +++ b/src/why.zig @@ -0,0 +1,1252 @@ +//! `why`: read the logs a run kept, plain or as `rotate` compressed them, +//! and say why its builds failed: for each, the EasyBuild step it failed +//! in, EasyBuild's message, and the line of its log that shows the error, +//! with the lines around it. `history`: how each kept build of a package +//! went, run by run, from EasyBuild's output. +const std = @import("std"); +const common = @import("zig_common"); +const sys = common.sys; +const fsx = common.fsx; +const cli = common.cli; + +const Allocator = std.mem.Allocator; +const tool = "eb-keep-logs"; + +/// Largest log read, after decompression, as `failed` scans at most. +const read_limit: usize = 1 << 30; +/// Lines shown either side of the error line. +const context_lines = 3; +/// Longest line shown, in bytes. +const line_limit = 400; +/// Most lines of one EasyBuild message read after its first. +const entry_lines = 200; +/// The `schema_version` of what `--json` prints. Dropping or renaming a +/// field, or changing what one means, takes a new version; adding a field +/// does not. +pub const schema_version = 1; + +fn die(comptime fmt: []const u8, args: anytype) noreturn { + cli.die(tool, fmt, args); +} + +fn warn(comptime fmt: []const u8, args: anytype) void { + cli.err(tool ++ ": " ++ fmt ++ "\n", args); +} + +/// EasyBuild 5's steps: the name its session log, its failure messages and +/// `--stop` use (easybuild/tools/hooks.py), and the description it +/// announces the step with on the terminal, `== DESCRIPTION...` +/// (`EasyBlock.get_steps`, easybuild/framework/easyblock.py). +const steps = [_]struct { name: []const u8, said: []const u8 }{ + .{ .name = "fetch", .said = "fetching files and verifying checksums" }, + .{ .name = "ready", .said = "creating build dir, resetting environment" }, + .{ .name = "extract", .said = "unpacking" }, + .{ .name = "patch", .said = "patching" }, + .{ .name = "prepare", .said = "preparing" }, + .{ .name = "configure", .said = "configuring" }, + .{ .name = "build", .said = "building" }, + .{ .name = "test", .said = "testing" }, + .{ .name = "install", .said = "installing" }, + .{ .name = "extensions", .said = "taking care of extensions" }, + .{ .name = "postiter", .said = "restore after iterating" }, + .{ .name = "postproc", .said = "postprocessing" }, + .{ .name = "sanitycheck", .said = "sanity checking" }, + .{ .name = "cleanup", .said = "cleaning up" }, + .{ .name = "module", .said = "creating module" }, + .{ .name = "permissions", .said = "permissions" }, + .{ .name = "package", .said = "packaging" }, + .{ .name = "testcases", .said = "running test cases" }, +}; + +/// Why a log could not be read: the system's error, no memory, 1 GiB or +/// more of text, or a `.gz` that is not gzip or is damaged. +pub const ReadError = sys.Error || Allocator.Error || error{ StreamTooLong, BadGzip }; + +/// The text of the regular file `dir/name`, through gzip when the name ends +/// in `.gz`. A symbolic link is not followed. +pub fn readLog(gpa: Allocator, dir: fsx.fd_t, name: []const u8) ReadError![]u8 { + const f = try fsx.openRegular(dir, name, false); + defer sys.close(f.fd); + const raw = try fsx.readAll(gpa, f.fd, read_limit); + if (!std.mem.endsWith(u8, name, ".gz")) return raw; + defer gpa.free(raw); + return gunzip(gpa, raw); +} + +/// The bytes the gzip data `raw` holds, its members one after another as +/// `gzip -d` gives them; `read_limit` or more of them is an error. The +/// inflater only reads a member's CRC-32 and size, so they are checked +/// here. +pub fn gunzip(gpa: Allocator, raw: []const u8) (Allocator.Error || error{ StreamTooLong, BadGzip })![]u8 { + const window = try gpa.alloc(u8, std.compress.flate.max_window_len); + defer gpa.free(window); + var in: std.Io.Reader = .fixed(raw); + var out: std.ArrayList(u8) = .empty; + errdefer out.deinit(gpa); + while (true) { + var d: std.compress.flate.Decompress = .init(&in, .gzip, window); + const start = out.items.len; + d.reader.appendRemaining(gpa, &out, .limited(read_limit - start)) catch |err| switch (err) { + error.ReadFailed => return error.BadGzip, + else => |e| return e, + }; + const m = d.container_metadata.gzip; + const member = out.items[start..]; + if (m.crc != std.hash.Crc32.hash(member) or m.count != @as(u32, @truncate(member.len))) + return error.BadGzip; + if (in.bufferedLen() == 0) return out.toOwnedSlice(gpa); + } +} + +/// A line of a log: its text without the newline, its number from 1, and +/// the offset of its first byte. +const Line = struct { text: []const u8, no: usize, start: usize }; + +const Lines = struct { + text: []const u8, + pos: usize = 0, + no: usize = 0, + + fn next(it: *Lines) ?Line { + if (it.pos >= it.text.len) return null; + const start = it.pos; + const end = std.mem.findScalarPos(u8, it.text, start, '\n') orelse it.text.len; + it.pos = end + 1; + it.no += 1; + return .{ .text = std.mem.trimEnd(u8, it.text[start..end], "\r"), .no = it.no, .start = start }; + } +}; + +fn isWord(c: u8) bool { + return std.ascii.isAlphanumeric(c) or c == '_'; +} + +/// Whether `line` is a compiler's or a linker's error, the line a failed +/// build command's output names its cause in: +/// - a C or C++ compiler's error at a source line, as GCC and Clang print +/// it, `FILE:LINE: error: ...` or `FILE:LINE:COLUMN: fatal error: ...`, +/// or as nvcc does, `FILE(LINE): error: ...`; +/// - a linker's `undefined reference to SYMBOL` or `cannot find -lNAME`, +/// as GNU ld prints them, or `undefined symbol: SYMBOL`, as lld and mold +/// do. +/// A compiler's error without a source line, such as an unknown option, is +/// not one. +pub fn isCompilerOrLinkerError(line: []const u8) bool { + for ([_][]const u8{ "undefined reference to ", "undefined symbol: ", "cannot find -l" }) |s| { + if (std.mem.find(u8, line, s) != null) return true; + } + for ([_][]const u8{ ": error:", ": fatal error:" }) |s| { + var pos: usize = 0; + while (std.mem.findPos(u8, line, pos, s)) |at| : (pos = at + 1) { + if (endsInSourceLine(line[0..at])) return true; + } + } + return false; +} + +/// Whether `s` ends in a place in a source file: `FILE:LINE`, +/// `FILE:LINE:COLUMN` or `FILE(LINE)`. +fn endsInSourceLine(s: []const u8) bool { + if (std.mem.endsWith(u8, s, ")")) { + const open = std.mem.findScalarLast(u8, s, '(') orelse return false; + return open > 0 and isNumber(s[open + 1 .. s.len - 1]); + } + var file = s; + var numbers: usize = 0; + while (numbers < 2) : (numbers += 1) { + const colon = std.mem.findScalarLast(u8, file, ':') orelse break; + if (!isNumber(file[colon + 1 ..])) break; + file = file[0..colon]; + } + return numbers > 0 and file.len > 0; +} + +fn isNumber(s: []const u8) bool { + if (s.len == 0) return false; + for (s) |c| if (!std.ascii.isDigit(c)) return false; + return true; +} + +const space = " \t\r\n\x0b\x0c"; + +/// `line` without its ANSI escape sequences, as EasyBuild's coloured output +/// on a terminal has them. +fn visible(arena: Allocator, line: []const u8) Allocator.Error![]const u8 { + if (std.mem.findScalar(u8, line, 0x1b) == null) return line; + var out: std.ArrayList(u8) = try .initCapacity(arena, line.len); + var i: usize = 0; + while (i < line.len) { + if (line[i] == 0x1b and i + 1 < line.len and line[i + 1] == '[') { + var j = i + 2; + while (j < line.len and (std.ascii.isDigit(line[j]) or line[j] == ';')) j += 1; + if (j < line.len and std.ascii.isAlphabetic(line[j])) { + i = j + 1; + continue; + } + } + out.appendAssumeCapacity(line[i]); + i += 1; + } + return out.items; +} + +/// The step a line starts: EasyBuild's announcement of it on the terminal, +/// `== DESCRIPTION...`, or `Starting STEP step` in the session log. Any +/// other announcement, such as `== resolving dependencies ...`, starts +/// none. +fn stepStarted(arena: Allocator, raw: []const u8) Allocator.Error!?[]const u8 { + const line = try visible(arena, raw); + if (std.mem.startsWith(u8, line, "== ")) for (steps) |s| { + const rest = line[3..]; + if (std.mem.startsWith(u8, rest, s.said) and std.mem.startsWith(u8, rest[s.said.len..], "...")) return s.name; + }; + const word = "Starting "; + var pos: usize = 0; + while (std.mem.findPos(u8, line, pos, word)) |at| : (pos = at + 1) { + if (at > 0 and isWord(line[at - 1])) continue; + const s = at + word.len; + var e = s; + while (e < line.len and isWord(line[e])) e += 1; + if (e == s or !std.mem.startsWith(u8, line[e..], " step")) continue; + if (e + 5 < line.len and isWord(line[e + 5])) continue; + return line[s..e]; + } + return null; +} + +/// The step EasyBuild's failure message names, `... in STEP step for +/// NAME.eb`; the first, should it name more than one. +fn stepNamed(entry: []const u8) ?[]const u8 { + var best: ?struct { at: usize, step: []const u8 } = null; + for (steps) |s| { + var buf: [32]u8 = undefined; + const needle = std.fmt.bufPrint(&buf, " in {s} step", .{s.name}) catch unreachable; + const at = std.ascii.findIgnoreCase(entry, needle) orelse continue; + if (best == null or at < best.?.at) best = .{ .at = at, .step = s.name }; + } + return if (best) |b| b.step else null; +} + +/// What follows `marker` in `line`, at its first occurrence. +fn after(line: []const u8, marker: []const u8) ?[]const u8 { + const i = std.mem.find(u8, line, marker) orelse return null; + return line[i + marker.len ..]; +} + +/// EasyBuild's message from offset `from` in `text` to the end of its entry, +/// the lines before the next that starts with `== `, with each run of white +/// space made one space. On the terminal EasyBuild wraps at 80 columns, +/// folding a longer word over whole lines; with `unwrap`, a line of 80 bytes +/// or more without white space is such a fold, and runs on into the next +/// line. +fn flatEntry(arena: Allocator, text: []const u8, from: usize, unwrap: bool) Allocator.Error![]const u8 { + var out: std.ArrayList(u8) = .empty; + var it: Lines = .{ .text = text, .pos = from }; + var n: usize = 0; + var fold = false; + while (it.next()) |l| : (n += 1) { + if (n > entry_lines or (n > 0 and std.mem.startsWith(u8, l.text, "== "))) break; + var words = std.mem.tokenizeAny(u8, l.text, space); + var first = true; + while (words.next()) |w| : (first = false) { + if (out.items.len > 0 and !(first and fold)) try out.append(arena, ' '); + try out.appendSlice(arena, w); + } + fold = unwrap and l.text.len >= 80 and std.mem.findAny(u8, l.text, space) == null; + } + return out.items; +} + +/// The seconds in the last `(took DURATION)` of `entry`, DURATION as +/// EasyBuild writes one: `< 1 sec`, `48 secs`, `2 mins 24 secs`, +/// `1 hour 0 mins 5 secs`. +pub fn tookSeconds(entry: []const u8) ?u64 { + const at = std.mem.findLast(u8, entry, "(took ") orelse return null; + const s = at + "(took ".len; + const took = entry[s .. std.mem.findScalarPos(u8, entry, s, ')') orelse return null]; + if (std.mem.startsWith(u8, took, "<")) return 0; + var total: u64 = 0; + var words = std.mem.tokenizeScalar(u8, took, ' '); + var any = false; + while (words.next()) |num| { + const n = std.fmt.parseInt(u64, num, 10) catch return null; + const unit = words.next() orelse return null; + const scale: u64 = if (std.mem.startsWith(u8, unit, "hour")) 3600 else if (std.mem.startsWith(u8, unit, "min")) 60 else if (std.mem.startsWith(u8, unit, "sec")) 1 else return null; + total = std.math.add(u64, total, std.math.mul(u64, n, scale) catch return null) catch return null; + any = true; + } + return if (any) total else null; +} + +/// Which log a text is: EasyBuild's session log, or its output on the +/// terminal, kept as NAME.stdout.log. +pub const Source = enum { session, stdout }; + +/// What `analyze` reads in a log; slices point into the log's text or are +/// constants. +pub const Analysis = struct { + /// `NAME/VERSION` from EasyBuild's `building and installing` line. + package: ?[]const u8 = null, + /// The path in EasyBuild's `processing EasyBuild easyconfig` line. + easyconfig: ?[]const u8 = null, + /// The EasyBuild step the build failed in, or the log ends in. + step: ?[]const u8 = null, + /// Whether the log records the failure. + failed: bool = false, + /// EasyBuild's own message for the failure, its first line. + message: ?[]const u8 = null, + /// The seconds EasyBuild says the installation took. + duration_s: ?u64 = null, + /// The line that shows the error. + error_line: ?Line = null, +}; + +/// EasyBuild's message in a line that reports an error, or null when the +/// line reports none: `EasyBuild encountered an error: MESSAGE (at +/// FILE:LINE in FUNCTION)` in a session log, `ERROR: MESSAGE` on the +/// terminal. +fn reportOf(line: []const u8, source: Source) ?[]const u8 { + switch (source) { + .session => { + const m = after(line, "EasyBuild encountered an error: ") orelse return null; + if (std.mem.endsWith(u8, m, ")")) if (std.mem.findLast(u8, m, " (at ")) |i| return m[0..i]; + return m; + }, + .stdout => return if (std.mem.startsWith(u8, line, "ERROR: ")) std.mem.trim(u8, line[7..], space) else null, + } +} + +const ended_marker = "installation ended unsuccessfully"; + +/// The message of an `Installation ended unsuccessfully: MESSAGE (took +/// DURATION)` entry that `flatEntry` gave from the marker on. +fn endedMessage(entry: []const u8) ?[]const u8 { + var m = std.mem.trimStart(u8, entry[ended_marker.len..], ": "); + if (std.mem.findLast(u8, m, " (took ")) |i| m = m[0..i]; + return if (m.len > 0) m else null; +} + +/// What a log records about its build's failure. EasyBuild's own error line +/// is, in a session log, its first `EasyBuild encountered an error`; on the +/// terminal, where its first `ERROR:` may only say `Shell command failed!`, +/// the `FAILED: Installation ended unsuccessfully` entry, which carries the +/// message; failing either, the other. The step is the one that entry +/// names; else the last step the log shows starting before the failure, or +/// before its end when it records none. The error line is the first +/// compiler or linker error from that step's start to EasyBuild's error +/// line, as a failed command's output in a session log has one; without +/// one, EasyBuild's error line. A session log shows no error before its +/// first step, as what comes before is EasyBuild dumping its configuration. +pub fn analyze(arena: Allocator, text: []const u8, source: Source) Allocator.Error!Analysis { + var a: Analysis = .{}; + var last_step: ?[]const u8 = null; + var candidate: ?Line = null; + var report: ?Line = null; + var ended: ?Line = null; + var ended_at: usize = 0; + var it: Lines = .{ .text = text }; + while (it.next()) |l| { + if (std.ascii.findIgnoreCase(l.text, ended_marker)) |i| { + ended = l; + ended_at = l.start + i; + break; + } + if (report != null and source == .session) continue; + if (try stepStarted(arena, l.text)) |s| { + last_step = s; + candidate = null; + } else if (after(l.text, "building and installing ")) |rest| { + a.package = std.mem.trimEnd(u8, std.mem.trim(u8, rest, space), "."); + } else if (after(l.text, "processing EasyBuild easyconfig ")) |rest| { + const p = std.mem.trim(u8, rest, space); + if (p.len > 0) a.easyconfig = p; + } + if (report == null) if (reportOf(l.text, source)) |m| { + report = l; + a.message = m; + continue; + }; + if (candidate == null and (source == .stdout or last_step != null) and isCompilerOrLinkerError(l.text)) + candidate = l; + } + if (ended) |e| { + const entry = try flatEntry(arena, text, ended_at, source == .stdout); + a.step = stepNamed(entry); + a.duration_s = tookSeconds(entry); + if (report == null or source == .stdout) { + report = e; + a.message = endedMessage(entry); + } + } + if (a.step == null) a.step = last_step; + if (report) |r| { + a.failed = true; + a.error_line = if (candidate) |c| (if (c.no < r.no) c else r) else r; + } + return a; +} + +/// How a build went. +pub const Outcome = enum { success, failed, unknown }; + +/// How a build went, by its output, and the seconds EasyBuild says it took. +pub const Verdict = struct { outcome: Outcome = .unknown, duration_s: ?u64 = null }; + +/// How the EasyBuild run a log of its terminal output records went: the +/// last `COMPLETED: Installation ended successfully` or `FAILED: +/// Installation ended unsuccessfully` decides, with the duration in it; a +/// line starting with `ERROR:` after a success, or without either, is a +/// failure. +pub fn verdict(arena: Allocator, text: []const u8) Allocator.Error!Verdict { + var v: Verdict = .{}; + var it: Lines = .{ .text = text }; + while (it.next()) |l| { + if (std.mem.find(u8, l.text, "COMPLETED: Installation ended successfully")) |i| { + v = .{ .outcome = .success, .duration_s = tookSeconds(try flatEntry(arena, text, l.start + i, true)) }; + } else if (std.mem.find(u8, l.text, "FAILED: Installation ended unsuccessfully")) |i| { + v = .{ .outcome = .failed, .duration_s = tookSeconds(try flatEntry(arena, text, l.start + i, true)) }; + } else if (std.mem.startsWith(u8, l.text, "ERROR:") and v.outcome != .failed) { + v = .{ .outcome = .failed }; + } + } + return v; +} + +/// A line cut to `line_limit` bytes, at a character boundary. +fn clip(line: []const u8) []const u8 { + if (line.len <= line_limit) return line; + var end: usize = line_limit; + while (end > 0 and line[end] & 0xC0 == 0x80) end -= 1; + return line[0..end]; +} + +/// `s` with each byte that is not part of a UTF-8 character replaced by +/// U+FFFD, as JSON text is UTF-8. +fn utf8(arena: Allocator, s: []const u8) Allocator.Error![]const u8 { + if (std.unicode.utf8ValidateSlice(s)) return s; + var out: std.ArrayList(u8) = .empty; + var i: usize = 0; + while (i < s.len) { + const n: usize = std.unicode.utf8ByteSequenceLength(s[i]) catch 0; + if (n > 0 and i + n <= s.len) if (std.unicode.utf8Decode(s[i..][0..n])) |_| { + try out.appendSlice(arena, s[i..][0..n]); + i += n; + continue; + } else |_| {}; + try out.appendSlice(arena, "\u{FFFD}"); + i += 1; + } + return out.items; +} + +/// A copy of `s` in `arena`, as `utf8` gives it. +fn own(arena: Allocator, s: ?[]const u8) Allocator.Error!?[]const u8 { + const x = s orelse return null; + return if (std.unicode.utf8ValidateSlice(x)) try arena.dupe(u8, x) else try utf8(arena, x); +} + +/// The line that shows a failure's error, with the lines either side of it. +const ErrorLine = struct { + line: usize, + text: []const u8, + before: []const []const u8, + after: []const []const u8, +}; + +/// `l` and up to `context_lines` lines either side of it, each clipped, +/// copied out of `text`. +fn errorLine(arena: Allocator, text: []const u8, l: Line) Allocator.Error!ErrorLine { + var before: std.ArrayList([]const u8) = .empty; + var s = l.start; + while (before.items.len < context_lines and s > 0) { + const begin = if (std.mem.findScalarLast(u8, text[0 .. s - 1], '\n')) |p| p + 1 else 0; + try before.append(arena, (try own(arena, clip(std.mem.trimEnd(u8, text[begin .. s - 1], "\r")))).?); + s = begin; + } + std.mem.reverse([]const u8, before.items); + var rest: std.ArrayList([]const u8) = .empty; + var it: Lines = .{ .text = text, .pos = l.start }; + _ = it.next(); + while (rest.items.len < context_lines) { + const x = it.next() orelse break; + try rest.append(arena, (try own(arena, clip(x.text))).?); + } + return .{ + .line = l.no, + .text = (try own(arena, clip(l.text))).?, + .before = before.items, + .after = rest.items, + }; +} + +/// A failed build, as `why` reports it and `--json` prints it. Its target +/// is null for a build in the run's own directory. +const Failure = struct { + target: ?[]const u8, + name: []const u8, + package: ?[]const u8, + easyconfig: ?[]const u8, + step: ?[]const u8, + message: ?[]const u8, + duration_s: ?u64, + log: ?[]const u8, + @"error": ?ErrorLine, +}; + +const Counts = struct { + success: usize = 0, + failed: usize = 0, + unknown: usize = 0, + + fn add(c: *Counts, o: Outcome) void { + switch (o) { + .success => c.success += 1, + .failed => c.failed += 1, + .unknown => c.unknown += 1, + } + } +}; + +const WhyReport = struct { + schema_version: u32 = schema_version, + kind: []const u8 = "why", + run: []const u8, + run_dir: []const u8, + counts: Counts, + failures: []const Failure, +}; + +const Kind = enum { stdout, session }; + +const log_names = [_]struct { []const u8, Kind }{ + .{ ".stdout.log", .stdout }, .{ ".stdout.log.gz", .stdout }, + .{ ".failed.ebout.log", .session }, .{ ".failed.ebout.log.gz", .session }, +}; + +/// Which of a build's logs a file in a target directory is, and the +/// build's NAME. +fn logOf(file: []const u8) ?struct { Kind, []const u8 } { + for (log_names) |n| { + if (file.len > n[0].len and std.mem.endsWith(u8, file, n[0])) return .{ n[1], file[0 .. file.len - n[0].len] }; + } + return null; +} + +/// A build a target directory has logs of: EasyBuild's output, which every +/// build has, and the session log `failed` kept for a failed one. +const Build = struct { + name: []const u8, + stdout: ?[]const u8 = null, + session: ?[]const u8 = null, + + fn lessThan(_: void, a: Build, b: Build) bool { + return std.mem.lessThan(u8, a.name, b.name); + } +}; + +/// The builds in a target directory, by NAME. Of a plain log and its `.gz`, +/// the plain one counts: rotate removes it only once the `.gz` is whole. +fn buildsIn(gpa: Allocator, arena: Allocator, dir: fsx.fd_t, dir_s: []const u8) Allocator.Error![]const Build { + var map: std.StringArrayHashMapUnmanaged(Build) = .empty; + var it = try fsx.DirIter.init(gpa, dir); + defer it.deinit(gpa); + while (it.next() catch |err| { + warn("cannot read {s}: {t}", .{ dir_s, err }); + return &.{}; + }) |e| { + const kind, const name = logOf(e.name) orelse continue; + if ((fsx.entryType(dir, e) catch continue) != fsx.DT.REG) continue; + const gop = try map.getOrPut(arena, try arena.dupe(u8, name)); + if (!gop.found_existing) gop.value_ptr.* = .{ .name = gop.key_ptr.* }; + const slot = switch (kind) { + .stdout => &gop.value_ptr.stdout, + .session => &gop.value_ptr.session, + }; + if (slot.* == null or (std.mem.endsWith(u8, slot.*.?, ".gz") and !std.mem.endsWith(u8, e.name, ".gz"))) + slot.* = try arena.dupe(u8, e.name); + } + std.mem.sort(Build, map.values(), {}, Build.lessThan); + return map.values(); +} + +/// The text of one of a build's logs, or null, with a message, when it +/// cannot be read. +fn readOrWarn(gpa: Allocator, dir: fsx.fd_t, dir_s: []const u8, name: []const u8) ?[]u8 { + return readLog(gpa, dir, name) catch |err| { + warn("cannot read {s}/{s}: {t}", .{ dir_s, name, err }); + return null; + }; +} + +/// How a build went: EasyBuild's output says; when it does not, a kept +/// session log means it failed. +fn outcomeOf(gpa: Allocator, arena: Allocator, dir: fsx.fd_t, dir_s: []const u8, b: Build) Allocator.Error!Verdict { + var v: Verdict = .{}; + if (b.stdout) |name| if (readOrWarn(gpa, dir, dir_s, name)) |text| { + defer gpa.free(text); + v = try verdict(arena, text); + }; + if (v.outcome == .unknown and b.session != null) v.outcome = .failed; + return v; +} + +/// The failure a failed build's logs record: its kept session log when it +/// has one, else EasyBuild's output. +fn failureOf(gpa: Allocator, arena: Allocator, dir: fsx.fd_t, dir_s: []const u8, target: []const u8, b: Build, v: Verdict) Allocator.Error!Failure { + const log_name = b.session orelse b.stdout.?; + const source: Source = if (b.session != null) .session else .stdout; + var f: Failure = .{ + .target = if (target.len == 0) null else try utf8(arena, target), + .name = try utf8(arena, b.name), + .package = null, + .easyconfig = null, + .step = null, + .message = null, + .duration_s = v.duration_s, + .log = try utf8(arena, try std.fs.path.join(arena, &.{ dir_s, log_name })), + .@"error" = null, + }; + const text = readOrWarn(gpa, dir, dir_s, log_name) orelse return f; + defer gpa.free(text); + const a = try analyze(arena, text, source); + f.package = try own(arena, a.package); + f.easyconfig = try own(arena, a.easyconfig); + f.step = try own(arena, a.step); + f.message = try own(arena, if (a.message) |m| clip(m) else null); + f.duration_s = a.duration_s orelse v.duration_s; + if (a.error_line) |l| f.@"error" = try errorLine(arena, text, l); + return f; +} + +/// Whether a directory name is a run's, YYYYMMDD_HHMMSS. +fn isRunName(name: []const u8) bool { + if (name.len != 15 or name[8] != '_') return false; + for (name, 0..) |ch, i| if (i != 8 and !std.ascii.isDigit(ch)) return false; + return true; +} + +/// The runs directly under `root`, oldest first. +fn runsIn(gpa: Allocator, arena: Allocator, root: fsx.fd_t, root_s: []const u8) Allocator.Error![]const []const u8 { + var runs: std.ArrayList([]const u8) = .empty; + var it = try fsx.DirIter.init(gpa, root); + defer it.deinit(gpa); + while (it.next() catch |err| die("cannot read ROOT {s}: {t}", .{ root_s, err })) |e| { + if (!isRunName(e.name)) continue; + if ((fsx.entryType(root, e) catch continue) != fsx.DT.DIR) continue; + try runs.append(arena, try arena.dupe(u8, e.name)); + } + std.mem.sort([]const u8, runs.items, {}, lessThan); + return runs.items; +} + +fn lessThan(_: void, a: []const u8, b: []const u8) bool { + return std.mem.lessThan(u8, a, b); +} + +/// The directories a run keeps builds in: its own, as "", as `failed` +/// given the run as LOGDIR keeps them, then its target directories, by +/// name, as eb-pipeline's runs have them. +fn targetsIn(gpa: Allocator, arena: Allocator, run: fsx.fd_t, run_s: []const u8) Allocator.Error![]const []const u8 { + var names: std.ArrayList([]const u8) = .empty; + try names.append(arena, ""); + var it = try fsx.DirIter.init(gpa, run); + defer it.deinit(gpa); + while (it.next() catch |err| die("cannot read RUN {s}: {t}", .{ run_s, err })) |e| { + if (e.name[0] == '.') continue; + if ((fsx.entryType(run, e) catch continue) != fsx.DT.DIR) continue; + try names.append(arena, try arena.dupe(u8, e.name)); + } + std.mem.sort([]const u8, names.items, {}, lessThan); + return names.items; +} + +/// A run's directory of builds `t`, the run's own when `t` is empty, with +/// its path; null, with a message, when it cannot be opened. +fn openBuilds(arena: Allocator, run: fsx.fd_t, run_s: []const u8, t: []const u8) Allocator.Error!?struct { fsx.fd_t, []const u8 } { + const dir_s = if (t.len == 0) run_s else try std.fs.path.join(arena, &.{ run_s, t }); + const dir = fsx.openDir(run, if (t.len == 0) "." else t, false) catch |err| { + warn("cannot open {s}: {t}", .{ dir_s, err }); + return null; + }; + return .{ dir, dir_s }; +} + +/// Whether `dir/name` is a directory, not through a symbolic link. +fn isDirAt(dir: fsx.fd_t, name: []const u8) bool { + const st = fsx.statAt(dir, name, false) catch return false; + return st.isDir(); +} + +/// The value of option `name` at `args[i.*]`, given as `NAME VALUE`, which +/// moves `i` past the value, or as `NAME=VALUE`; null when `args[i.*]` is +/// not the option. A missing or empty value is refused. +fn optionValue(args: []const [:0]const u8, i: *usize, comptime name: []const u8, comptime what: []const u8) ?[]const u8 { + const a = args[i.*]; + const v: []const u8 = if (std.mem.eql(u8, a, name)) blk: { + if (i.* + 1 >= args.len) die(name ++ " needs " ++ what, .{}); + i.* += 1; + break :blk args[i.*]; + } else if (std.mem.startsWith(u8, a, name ++ "=")) a[name.len + 1 ..] else return null; + if (v.len == 0) die(name ++ " needs " ++ what, .{}); + return v; +} + +fn plural(n: usize) []const u8 { + return if (n == 1) "" else "s"; +} + +/// A duration as `48s`, `2m24s` or `1h00m05s`. +fn writeDuration(w: *std.Io.Writer, s: u64) std.Io.Writer.Error!void { + if (s < 60) return w.print("{d}s", .{s}); + if (s < 3600) return w.print("{d}m{d:0>2}s", .{ s / 60, s % 60 }); + try w.print("{d}h{d:0>2}m{d:0>2}s", .{ s / 3600, s / 60 % 60, s % 60 }); +} + +fn writeFailure(w: *std.Io.Writer, f: Failure) std.Io.Writer.Error!void { + try w.writeAll("\n"); + if (f.target) |t| try w.print("{s}/", .{t}); + try w.print("{s} failed", .{f.name}); + if (f.step) |s| try w.print(" in the {s} step", .{s}) else try w.writeAll(" before its first step"); + if (f.duration_s) |d| { + try w.writeAll(", after "); + try writeDuration(w, d); + } + try w.writeAll("\n"); + if (f.package) |p| try w.print(" package: {s}\n", .{p}); + if (f.easyconfig) |e| try w.print(" easyconfig: {s}\n", .{e}); + if (f.message) |m| try w.print(" EasyBuild: {s}\n", .{m}); + const e = f.@"error" orelse { + if (f.log) |l| try w.print(" log: {s} (no error recorded)\n", .{l}); + return; + }; + try w.print(" log: {s}:{d}\n", .{ f.log.?, e.line }); + var buf: [24]u8 = undefined; + const width = (std.fmt.bufPrint(&buf, "{d}", .{e.line + e.after.len}) catch unreachable).len; + for (e.before, 0..) |t, i| try writeContext(w, " ", e.line - e.before.len + i, width, t); + try writeContext(w, " > ", e.line, width, e.text); + for (e.after, 0..) |t, i| try writeContext(w, " ", e.line + 1 + i, width, t); +} + +fn writeContext(w: *std.Io.Writer, mark: []const u8, no: usize, width: usize, text: []const u8) std.Io.Writer.Error!void { + try w.print("{s}{d:>[2]} |", .{ mark, no, width }); + if (text.len > 0) try w.print(" {s}", .{text}); + try w.writeAll("\n"); +} + +fn writeWhy(w: *std.Io.Writer, r: WhyReport) std.Io.Writer.Error!void { + const total = r.counts.success + r.counts.failed + r.counts.unknown; + try w.print("{s}: {d} failed build{s} of {d}\n", .{ r.run_dir, r.counts.failed, plural(r.counts.failed), total }); + for (r.failures) |f| try writeFailure(w, f); +} + +fn writeJson(w: *std.Io.Writer, r: anytype) std.Io.Writer.Error!void { + try std.json.Stringify.value(r, .{}, w); + try w.writeAll("\n"); +} + +/// Print `r` on stdout, as text or as one line of JSON. +fn emit(gpa: Allocator, r: anytype, as_json: bool, comptime writeText: fn (*std.Io.Writer, @TypeOf(r)) std.Io.Writer.Error!void) void { + var out: std.Io.Writer.Allocating = .init(gpa); + defer out.deinit(); + const res = if (as_json) writeJson(&out.writer, r) else writeText(&out.writer, r); + res catch die("out of memory", .{}); + cli.put(1, out.written()); +} + +/// `why [RUN | --latest] [--target TARGET] [--root ROOT] [--json]`: print +/// why the builds of a run failed, from the logs it kept. Returns 0 once +/// its arguments are accepted, whatever it could read; a refused +/// invocation exits 2. +pub fn cmdWhy(gpa: Allocator, args: []const [:0]const u8) u8 { + var run_arg: ?[]const u8 = null; + var latest = false; + var target: ?[]const u8 = null; + var root_arg: ?[]const u8 = null; + var as_json = false; + var i: usize = 0; + while (i < args.len) : (i += 1) { + const a = args[i]; + if (std.mem.eql(u8, a, "--latest")) { + latest = true; + } else if (std.mem.eql(u8, a, "--json")) { + as_json = true; + } else if (optionValue(args, &i, "--target", "a target")) |v| { + target = v; + } else if (optionValue(args, &i, "--root", "a directory")) |v| { + root_arg = v; + } else if (a.len > 0 and a[0] == '-') { + die("unknown option {s}", .{a}); + } else { + if (run_arg != null) die("why takes one RUN", .{}); + run_arg = a; + } + } + if (run_arg != null and latest) die("why takes RUN or --latest, not both", .{}); + if (run_arg) |r| if (r.len == 0) die("RUN must not be empty", .{}); + + var arena_state = std.heap.ArenaAllocator.init(gpa); + defer arena_state.deinit(); + const arena = arena_state.allocator(); + const oom = "out of memory"; + + const root_s = root_arg orelse "."; + const root = fsx.openDir(fsx.cwd, root_s, true) catch die("ROOT {s} is not a directory", .{root_s}); + defer sys.close(root); + const run_name: []const u8 = run_arg orelse blk: { + const runs = runsIn(gpa, arena, root, root_s) catch die(oom, .{}); + var k = runs.len; + while (k > 0) { + k -= 1; + const t = target orelse break :blk runs[k]; + const p = std.fs.path.join(arena, &.{ runs[k], t }) catch die(oom, .{}); + if (isDirAt(root, p)) break :blk runs[k]; + } + if (target) |t| die("no run under {s} has a target {s}", .{ root_s, t }); + die("no run under {s}", .{root_s}); + }; + const run_s = if (root_arg == null or std.fs.path.isAbsolute(run_name)) run_name else std.fs.path.join(arena, &.{ root_s, run_name }) catch die(oom, .{}); + const run = fsx.openDir(root, run_name, true) catch die("RUN {s} is not a directory", .{run_s}); + defer sys.close(run); + var rb: [sys.path_max]u8 = undefined; + const run_base = std.fs.path.basename(fsx.realpathFd(run, &rb) catch run_s); + + const targets: []const []const u8 = if (target) |t| blk: { + if (!isDirAt(run, t)) die("TARGET {s} is not a directory in {s}", .{ t, run_s }); + break :blk arena.dupe([]const u8, &.{t}) catch die(oom, .{}); + } else targetsIn(gpa, arena, run, run_s) catch die(oom, .{}); + + var counts: Counts = .{}; + var failures: std.ArrayList(Failure) = .empty; + for (targets) |t| { + const dir, const dir_s = (openBuilds(arena, run, run_s, t) catch die(oom, .{})) orelse continue; + defer sys.close(dir); + const builds = buildsIn(gpa, arena, dir, dir_s) catch die(oom, .{}); + for (builds) |b| { + const v = outcomeOf(gpa, arena, dir, dir_s, b) catch die(oom, .{}); + counts.add(v.outcome); + if (v.outcome != .failed) continue; + const f = failureOf(gpa, arena, dir, dir_s, t, b, v) catch die(oom, .{}); + failures.append(arena, f) catch die(oom, .{}); + } + } + const report: WhyReport = .{ + .run = utf8(arena, run_base) catch die(oom, .{}), + .run_dir = utf8(arena, run_s) catch die(oom, .{}), + .counts = counts, + .failures = failures.items, + }; + emit(gpa, report, as_json, writeWhy); + return 0; +} + +/// A build of a package, as history lists it; its target is null for a +/// build in the run's own directory. +const Kept = struct { + run: []const u8, + target: ?[]const u8, + name: []const u8, + outcome: Outcome, + duration_s: ?u64, + log: []const u8, +}; + +const HistoryReport = struct { + schema_version: u32 = schema_version, + kind: []const u8 = "history", + package: []const u8, + root: []const u8, + counts: Counts, + builds: []const Kept, +}; + +/// Whether build NAME is one of PACKAGE's: NAME is PACKAGE, or starts with +/// PACKAGE and a dash, as `hello-2.12.1-GCCcore-14.2.0` does for hello and +/// for hello-2.12.1. +fn isBuildOf(name: []const u8, package: []const u8) bool { + return std.mem.startsWith(u8, name, package) and (name.len == package.len or name[package.len] == '-'); +} + +fn durationText(buf: *[24]u8, d: ?u64) []const u8 { + var w: std.Io.Writer = .fixed(buf); + writeDuration(&w, d orelse return "-") catch unreachable; + return w.buffered(); +} + +fn writeRow(w: *std.Io.Writer, cells: [5][]const u8, widths: [4]usize) std.Io.Writer.Error!void { + for (cells[0..4], widths) |c, n| try w.print("{s:<[1]} ", .{ c, n }); + try w.print("{s}\n", .{cells[4]}); +} + +fn writeHistory(w: *std.Io.Writer, r: HistoryReport) std.Io.Writer.Error!void { + const total = r.builds.len; + try w.print("{s}: {d} build{s} under {s}", .{ r.package, total, plural(total), r.root }); + if (total > 0) try w.print(": {d} succeeded, {d} failed", .{ r.counts.success, r.counts.failed }); + if (r.counts.unknown > 0) try w.print(", {d} unknown", .{r.counts.unknown}); + try w.writeAll("\n"); + if (total == 0) return; + const header = [5][]const u8{ "RUN", "TARGET", "OUTCOME", "DURATION", "NAME" }; + var widths: [4]usize = undefined; + for (header[0..4], &widths) |h, *n| n.* = h.len; + var buf: [24]u8 = undefined; + for (r.builds) |b| { + const target: []const u8 = b.target orelse "-"; + widths[0] = @max(widths[0], b.run.len); + widths[1] = @max(widths[1], target.len); + widths[2] = @max(widths[2], @tagName(b.outcome).len); + widths[3] = @max(widths[3], durationText(&buf, b.duration_s).len); + } + try w.writeAll("\n"); + try writeRow(w, header, widths); + for (r.builds) |b| try writeRow(w, .{ b.run, b.target orelse "-", @tagName(b.outcome), durationText(&buf, b.duration_s), b.name }, widths); +} + +/// `history PACKAGE [--target TARGET] [--root ROOT] [--json]`: print how +/// each build of PACKAGE kept under ROOT went, oldest run first. Returns 0 +/// once its arguments are accepted, whatever it could read; a refused +/// invocation exits 2. +pub fn cmdHistory(gpa: Allocator, args: []const [:0]const u8) u8 { + var package_arg: ?[]const u8 = null; + var target: ?[]const u8 = null; + var root_arg: ?[]const u8 = null; + var as_json = false; + var i: usize = 0; + while (i < args.len) : (i += 1) { + const a = args[i]; + if (std.mem.eql(u8, a, "--json")) { + as_json = true; + } else if (optionValue(args, &i, "--target", "a target")) |v| { + target = v; + } else if (optionValue(args, &i, "--root", "a directory")) |v| { + root_arg = v; + } else if (a.len > 0 and a[0] == '-') { + die("unknown option {s}", .{a}); + } else { + if (package_arg != null) die("history takes one PACKAGE", .{}); + package_arg = a; + } + } + const package_s = package_arg orelse die("history needs PACKAGE", .{}); + if (package_s.len == 0) die("PACKAGE must not be empty", .{}); + + var arena_state = std.heap.ArenaAllocator.init(gpa); + defer arena_state.deinit(); + const arena = arena_state.allocator(); + const oom = "out of memory"; + // A module name, NAME/VERSION, is the easyconfig's NAME-VERSION. + const package = arena.dupe(u8, package_s) catch die(oom, .{}); + std.mem.replaceScalar(u8, package, '/', '-'); + + const root_s = root_arg orelse "."; + const root = fsx.openDir(fsx.cwd, root_s, true) catch die("ROOT {s} is not a directory", .{root_s}); + defer sys.close(root); + var counts: Counts = .{}; + var kept: std.ArrayList(Kept) = .empty; + const runs = runsIn(gpa, arena, root, root_s) catch die(oom, .{}); + for (runs) |r| { + const run_s = std.fs.path.join(arena, &.{ root_s, r }) catch die(oom, .{}); + const run = fsx.openDir(root, r, false) catch |err| { + warn("cannot open {s}: {t}", .{ run_s, err }); + continue; + }; + defer sys.close(run); + const targets: []const []const u8 = if (target) |t| + (if (isDirAt(run, t)) arena.dupe([]const u8, &.{t}) catch die(oom, .{}) else &.{}) + else + targetsIn(gpa, arena, run, run_s) catch die(oom, .{}); + for (targets) |t| { + const dir, const dir_s = (openBuilds(arena, run, run_s, t) catch die(oom, .{})) orelse continue; + defer sys.close(dir); + const builds = buildsIn(gpa, arena, dir, dir_s) catch die(oom, .{}); + for (builds) |b| { + if (!isBuildOf(b.name, package)) continue; + const v = outcomeOf(gpa, arena, dir, dir_s, b) catch die(oom, .{}); + counts.add(v.outcome); + const log = std.fs.path.join(arena, &.{ dir_s, b.stdout orelse b.session.? }) catch die(oom, .{}); + kept.append(arena, .{ + .run = r, + .target = if (t.len == 0) null else utf8(arena, t) catch die(oom, .{}), + .name = utf8(arena, b.name) catch die(oom, .{}), + .outcome = v.outcome, + .duration_s = v.duration_s, + .log = utf8(arena, log) catch die(oom, .{}), + }) catch die(oom, .{}); + } + } + } + const report: HistoryReport = .{ + .package = utf8(arena, package_s) catch die(oom, .{}), + .root = utf8(arena, root_s) catch die(oom, .{}), + .counts = counts, + .builds = kept.items, + }; + emit(gpa, report, as_json, writeHistory); + return 0; +} + +const testing = std.testing; + +test "isCompilerOrLinkerError: a compiler's error at a source line, a linker's error" { + for ([_][]const u8{ + "src/hello.c:149:18: error: 'site_greeting' undeclared (first use in this function)", + "hello.c:12: error: expected ';' before '}' token", + "src/x.c:1:10: fatal error: greet.h: No such file or directory", + "kernel.cu(12): error: identifier \"x\" is undefined", + "hello.c:(.text.startup+0x4a): undefined reference to `site_greeting'", + "/usr/bin/ld: cannot find -lgreet: No such file or directory", + "ld.lld: error: undefined symbol: site_greeting", + }) |l| try testing.expect(isCompilerOrLinkerError(l)); + for ([_][]const u8{ + "configure: error: C compiler cannot create executables", + "collect2: error: ld returned 1 exit status", + "cc1: error: bad value 'nosuchcpu' for '-march=' switch", + "src/hello.c:149:18: warning: unused variable 'x'", + "make: *** [Makefile:1899: all] Error 2", + "Hunk #1 FAILED at 65.", + "FAIL: tests/hello-1", + "== 2026-11-17 04:09:25,758 build_log.py:233 ERROR EasyBuild encountered an error: shell command 'make ...' failed", + ":12: error: no file before the line", + "x.c(): error: no line", + }) |l| try testing.expect(!isCompilerOrLinkerError(l)); +} + +test "stepStarted and stepNamed" { + var arena_state = std.heap.ArenaAllocator.init(testing.allocator); + defer arena_state.deinit(); + const arena = arena_state.allocator(); + const none: ?[]const u8 = null; + try testing.expectEqualStrings("sanitycheck", (try stepStarted(arena, "== 2026-11-17 04:17:53,833 easyblock.py:5068 INFO Starting sanitycheck step")).?); + try testing.expectEqual(none, try stepStarted(arena, "Starting step")); + try testing.expectEqual(none, try stepStarted(arena, "Restarting build step")); + try testing.expectEqual(none, try stepStarted(arena, "Starting build steps")); + try testing.expectEqualStrings("fetch", (try stepStarted(arena, "== fetching files and verifying checksums...")).?); + try testing.expectEqualStrings("sanitycheck", (try stepStarted(arena, "\x1b[1m== sanity checking...\x1b[0m")).?); + try testing.expectEqualStrings("postiter", (try stepStarted(arena, "== restore after iterating...")).?); + try testing.expectEqualStrings("test", (try stepStarted(arena, "== testing...")).?); + try testing.expectEqualStrings("testcases", (try stepStarted(arena, "== running test cases...")).?); + try testing.expectEqual(none, try stepStarted(arena, "== resolving dependencies ...")); + try testing.expectEqual(none, try stepStarted(arena, "== building and installing hello/2.12.1-GCCcore-14.2.0...")); + try testing.expectEqual(none, try stepStarted(arena, "== configuring [skipped]")); + try testing.expectEqual(none, try stepStarted(arena, "== ... (took 2 mins 11 secs)")); + try testing.expectEqualStrings("build", stepNamed("shell command 'make ...' failed with exit code 2 in build step for x.eb").?); + try testing.expectEqualStrings("test", stepNamed("x in test step, y in install step").?); + try testing.expectEqual(@as(?[]const u8, null), stepNamed("Checksum verification for x failed.")); +} + +test "tookSeconds reads EasyBuild's durations" { + try testing.expectEqual(@as(?u64, 0), tookSeconds("x (took < 1 sec)")); + try testing.expectEqual(@as(?u64, 48), tookSeconds("x (took 48 secs)")); + try testing.expectEqual(@as(?u64, 144), tookSeconds("x (took 2 mins 24 secs)")); + try testing.expectEqual(@as(?u64, 60), tookSeconds("x (took 1 min 0 secs)")); + try testing.expectEqual(@as(?u64, 3605), tookSeconds("x (took 1 hour 0 mins 5 secs)")); + try testing.expectEqual(@as(?u64, 7), tookSeconds("(took 9 secs) then (took 7 secs)")); + try testing.expectEqual(@as(?u64, null), tookSeconds("x (took a while)")); + try testing.expectEqual(@as(?u64, null), tookSeconds("x (took 3")); + try testing.expectEqual(@as(?u64, null), tookSeconds("x")); +} + +test "analyze: a compile error inside the failed command's output" { + var arena_state = std.heap.ArenaAllocator.init(testing.allocator); + defer arena_state.deinit(); + const log = + \\== 2026-11-17 04:06:19,242 build_log.py:330 INFO processing EasyBuild easyconfig /ec/hello-2.12.1.eb + \\== 2026-11-17 04:06:19,250 build_log.py:330 INFO building and installing hello/2.12.1... + \\== 2026-11-17 04:07:13,523 easyblock.py:5068 INFO Starting configure step + \\conftest.c:1:10: fatal error: an earlier step's + \\== 2026-11-17 04:09:25,312 easyblock.py:5068 INFO Starting build step + \\== 2026-11-17 04:09:25,709 run.py:652 WARNING Shell command FAILED (exit code 2) + \\Output (stdout + stderr): + \\src/hello.c:149:18: error: 'site_greeting' undeclared + \\collect2: error: ld returned 1 exit status + \\== 2026-11-17 04:09:25,758 build_log.py:233 ERROR EasyBuild encountered an error: shell command 'make ...' failed with exit code 2 in build step for hello-2.12.1.eb (at easybuild/framework/easyblock.py:5266 in run_all_steps) + \\== 2026-11-17 04:09:25,759 build_log.py:330 INFO FAILED: Installation ended unsuccessfully: shell command 'make ...' failed with exit code 2 in build step for hello-2.12.1.eb (took 3 mins 6 secs) + \\ + ; + const a = try analyze(arena_state.allocator(), log, .session); + try testing.expectEqualStrings("hello/2.12.1", a.package.?); + try testing.expectEqualStrings("/ec/hello-2.12.1.eb", a.easyconfig.?); + try testing.expectEqualStrings("build", a.step.?); + try testing.expect(a.failed); + try testing.expectEqualStrings("shell command 'make ...' failed with exit code 2 in build step for hello-2.12.1.eb", a.message.?); + try testing.expectEqual(@as(?u64, 186), a.duration_s); + try testing.expectEqual(@as(usize, 8), a.error_line.?.no); +} + +test "analyze: without a compiler or linker error, EasyBuild's error line" { + var arena_state = std.heap.ArenaAllocator.init(testing.allocator); + defer arena_state.deinit(); + const log = + \\== 2026-11-17 03:58:44,474 easyblock.py:5068 INFO Starting fetch step + \\== 2026-11-17 03:59:32,688 build_log.py:465 WARNING Failed to download recent config.guess to /s/config.guess + \\== 2026-11-17 03:59:32,778 build_log.py:233 ERROR EasyBuild encountered an error: Checksum verification for /s/hello-2.12.1.tar.gz using cf04 failed. (at easybuild/framework/easyblock.py:2747 in checksum_step) + \\== 2026-11-17 03:59:32,779 build_log.py:330 INFO FAILED: Installation ended unsuccessfully: Checksum verification for /s/hello-2.12.1.tar.gz using cf04 failed. (took 48 secs) + ; + const a = try analyze(arena_state.allocator(), log, .session); + try testing.expectEqualStrings("fetch", a.step.?); + try testing.expectEqualStrings("Checksum verification for /s/hello-2.12.1.tar.gz using cf04 failed.", a.message.?); + try testing.expectEqual(@as(usize, 3), a.error_line.?.no); + try testing.expectEqual(@as(?u64, 48), a.duration_s); +} + +test "analyze: a test failure, a robot failure, a log that ends in a step" { + var arena_state = std.heap.ArenaAllocator.init(testing.allocator); + defer arena_state.deinit(); + const arena = arena_state.allocator(); + const tests = + \\== 2026-11-17 04:14:58,628 easyblock.py:5068 INFO Starting test step + \\== 2026-11-17 04:14:59,165 run.py:652 WARNING Shell command FAILED (exit code 2) + \\PASS: tests/atexit-1 + \\FAIL: tests/hello-1 + \\# FAIL: 1 + \\make: *** [Makefile:2997: check] Error 2 + \\== 2026-11-17 04:14:59,217 build_log.py:233 ERROR EasyBuild encountered an error: shell command 'make ...' failed in test step for hello-2.12.1.eb (at easybuild/framework/easyblock.py:2829 in report_test_failure) + ; + var a = try analyze(arena, tests, .session); + try testing.expectEqualStrings("test", a.step.?); + try testing.expectEqual(@as(usize, 7), a.error_line.?.no); + try testing.expectEqual(@as(?u64, null), a.duration_s); + + const robot = + \\== 2026-11-17 04:01:20,687 pyheaderconfigobj.py:259 DEBUG pyheader parsed cfg: {'copyright': Copyright (c) 2001 Python Software Foundation. + \\All Rights Reserved., 'msg': 'x.c:1: error: in a dump'} + \\== 2026-11-17 04:01:21,521 build_log.py:330 INFO resolving dependencies ... + \\== 2026-11-17 04:01:22,080 build_log.py:233 ERROR EasyBuild encountered an error: Missing dependencies: libgreet/1.0 (no easyconfig file or existing module found) (at easybuild/tools/robot.py:352 in raise_error_missing_deps) + ; + a = try analyze(arena, robot, .session); + try testing.expectEqual(@as(?[]const u8, null), a.step); + try testing.expectEqualStrings("Missing dependencies: libgreet/1.0 (no easyconfig file or existing module found)", a.message.?); + try testing.expectEqual(@as(usize, 4), a.error_line.?.no); + + a = try analyze(arena, "== 2026-11-17 04:09:25,312 easyblock.py:5068 INFO Starting build step\ngcc -c x.c\n", .session); + try testing.expectEqualStrings("build", a.step.?); + try testing.expect(!a.failed); + try testing.expectEqual(@as(?Line, null), a.error_line); +} + +test "analyze: EasyBuild's output, wrapped at 80 columns" { + var arena_state = std.heap.ArenaAllocator.init(testing.allocator); + defer arena_state.deinit(); + const out = + \\== building... + \\ + \\ERROR: Shell command failed! + \\== FAILED: Installation ended unsuccessfully: shell command 'make ...' failed + \\with exit code 2 in build step for hello-2.12.1-GCCcore-14.2.0.eb (took 3 mins 6 + \\secs) + \\== Results of the build can be found in the log file(s) + ; + var a = try analyze(arena_state.allocator(), out, .stdout); + try testing.expectEqualStrings("build", a.step.?); + try testing.expectEqualStrings("shell command 'make ...' failed with exit code 2 in build step for hello-2.12.1-GCCcore-14.2.0.eb", a.message.?); + try testing.expectEqual(@as(?u64, 186), a.duration_s); + try testing.expectEqual(@as(usize, 4), a.error_line.?.no); + + const sanity = + \\== sanity checking... + \\ >> file 'lib/libhello.a' found: FAILED + \\== ... (took 4 secs) + \\== FAILED: Installation ended unsuccessfully: Sanity check failed: no file found + \\at 'lib/libhello.a' in + \\/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/so + \\ftware/hello/2.12.1-GCCcore-13.3.0 (took 2 mins 54 secs) + \\== Results of the build can be found in the log file(s) + ; + a = try analyze(arena_state.allocator(), sanity, .stdout); + try testing.expectEqualStrings("sanitycheck", a.step.?); + try testing.expectEqualStrings("Sanity check failed: no file found at 'lib/libhello.a' in /home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-13.3.0", a.message.?); + try testing.expectEqual(@as(?u64, 174), a.duration_s); + try testing.expectEqual(@as(usize, 4), a.error_line.?.no); + + const robot = + \\== resolving dependencies ... + \\ERROR: Missing dependencies: libgreet/1.0 (no easyconfig file or existing module found) + \\x.c:1: error: printed after the report + ; + a = try analyze(arena_state.allocator(), robot, .stdout); + try testing.expect(a.failed); + try testing.expectEqual(@as(?[]const u8, null), a.step); + try testing.expectEqualStrings("Missing dependencies: libgreet/1.0 (no easyconfig file or existing module found)", a.message.?); + try testing.expectEqual(@as(usize, 2), a.error_line.?.no); +} + +test "verdict" { + var arena_state = std.heap.ArenaAllocator.init(testing.allocator); + defer arena_state.deinit(); + const arena = arena_state.allocator(); + var v = try verdict(arena, "== COMPLETED: Installation ended successfully (took 2 mins 52 secs)\n== Build succeeded for 1 out of 1\n"); + try testing.expectEqual(Outcome.success, v.outcome); + try testing.expectEqual(@as(?u64, 172), v.duration_s); + v = try verdict(arena, "== COMPLETED: Installation ended successfully (took 5 secs)\n== FAILED: Installation ended unsuccessfully: x failed in\nbuild step (took 1 min 1\nsecs)\nERROR: Installation of x.eb failed\n"); + try testing.expectEqual(Outcome.failed, v.outcome); + try testing.expectEqual(@as(?u64, 61), v.duration_s); + v = try verdict(arena, "== resolving dependencies ...\n\nERROR: Missing dependencies: libgreet/1.0\n"); + try testing.expectEqual(Outcome.failed, v.outcome); + try testing.expectEqual(@as(?u64, null), v.duration_s); + v = try verdict(arena, "== building...\n"); + try testing.expectEqual(Outcome.unknown, v.outcome); +} + +test "gunzip reads what gzip wrote, and refuses what it did not" { + const gpa = testing.allocator; + var plain: std.ArrayList(u8) = .empty; + defer plain.deinit(gpa); + for (0..20000) |i| try plain.print(gpa, "== line {d} of a log that repeats itself\n", .{i % 700}); + var aw: std.Io.Writer.Allocating = try .initCapacity(gpa, 4096); + defer aw.deinit(); + const window = try gpa.alloc(u8, std.compress.flate.max_window_len); + defer gpa.free(window); + var c = try std.compress.flate.Compress.init(&aw.writer, window, .gzip, .best); + try c.writer.writeAll(plain.items); + try c.finish(); + const got = try gunzip(gpa, aw.written()); + defer gpa.free(got); + try testing.expectEqualStrings(plain.items, got); + + const twice = try std.mem.concat(gpa, u8, &.{ aw.written(), aw.written() }); + defer gpa.free(twice); + const both = try gunzip(gpa, twice); + defer gpa.free(both); + try testing.expectEqual(2 * plain.items.len, both.len); + try testing.expectEqualStrings(plain.items, both[plain.items.len..]); + + var bad = try gpa.dupe(u8, aw.written()); + defer gpa.free(bad); + bad[bad.len - 6] ^= 0xff; + try testing.expectError(error.BadGzip, gunzip(gpa, bad)); + try testing.expectError(error.BadGzip, gunzip(gpa, aw.written()[0 .. aw.written().len / 2])); + try testing.expectError(error.BadGzip, gunzip(gpa, "not gzip at all")); +} + +test "clip and utf8" { + var arena_state = std.heap.ArenaAllocator.init(testing.allocator); + defer arena_state.deinit(); + const arena = arena_state.allocator(); + var long: [601]u8 = undefined; + long[0] = 'x'; + for (0..300) |i| @memcpy(long[1 + 2 * i ..][0..2], "\u{e9}"); + try testing.expectEqual(@as(usize, 400), clip(long[1..]).len); + try testing.expectEqual(@as(usize, 399), clip(&long).len); + try testing.expectEqualStrings("a\u{FFFD}b\u{e9}", try utf8(arena, "a\xffb\u{e9}")); + try testing.expectEqualStrings("\u{FFFD}(\u{FFFD}\u{FFFD}\u{FFFD}", try utf8(arena, "\xc3(\xed\xa0\x80")); +} + +test "logOf and isRunName" { + const k, const n = logOf("hello-2.12.1-GCCcore-14.2.0.failed.ebout.log.gz").?; + try testing.expectEqual(Kind.session, k); + try testing.expectEqualStrings("hello-2.12.1-GCCcore-14.2.0", n); + try testing.expectEqual(Kind.stdout, logOf("a.stdout.log").?[0]); + try testing.expect(logOf(".stdout.log") == null); + try testing.expect(logOf("a.keep-logs.log") == null); + try testing.expect(isRunName("20261117_040615")); + try testing.expect(!isRunName("20261117-040615")); + try testing.expect(!isRunName("2026111_0406150")); +} + +test "isBuildOf takes a name or its start up to a dash" { + const name = "hello-2.12.1-GCCcore-14.2.0"; + try testing.expect(isBuildOf(name, "hello")); + try testing.expect(isBuildOf(name, "hello-2.12.1")); + try testing.expect(isBuildOf(name, name)); + try testing.expect(!isBuildOf(name, "hell")); + try testing.expect(!isBuildOf(name, "hello-2.12")); + try testing.expect(isBuildOf("hello-world-1.0", "hello")); +} diff --git a/tests/corpus/cases/checksum/hello-2.12.1-GCCcore-14.2.0.eb b/tests/corpus/cases/checksum/hello-2.12.1-GCCcore-14.2.0.eb new file mode 100644 index 0000000..e5d3e53 --- /dev/null +++ b/tests/corpus/cases/checksum/hello-2.12.1-GCCcore-14.2.0.eb @@ -0,0 +1,26 @@ +easyblock = 'ConfigureMake' + +name = 'hello' +version = '2.12.1' + +homepage = 'https://www.gnu.org/software/hello/' +description = "GNU hello prints a friendly greeting." + +toolchain = {'name': 'GCCcore', 'version': '14.2.0'} + +source_urls = [GNU_SOURCE] +sources = [SOURCE_TAR_GZ] +checksums = ['cf04af86dc085268c5f4470fbae49b18afbc221b78096aab842d934a76bad0ab'] + +builddependencies = [('binutils', '2.42')] + +runtest = 'check' + +sanity_check_paths = { + 'files': ['bin/hello'], + 'dirs': ['share/man/man1'], +} + +sanity_check_commands = ['hello --version'] + +moduleclass = 'tools' diff --git a/tests/corpus/cases/compile/hello-2.12.1-GCCcore-14.2.0.eb b/tests/corpus/cases/compile/hello-2.12.1-GCCcore-14.2.0.eb new file mode 100644 index 0000000..176a9b9 --- /dev/null +++ b/tests/corpus/cases/compile/hello-2.12.1-GCCcore-14.2.0.eb @@ -0,0 +1,30 @@ +easyblock = 'ConfigureMake' + +name = 'hello' +version = '2.12.1' + +homepage = 'https://www.gnu.org/software/hello/' +description = "GNU hello prints a friendly greeting." + +toolchain = {'name': 'GCCcore', 'version': '14.2.0'} + +source_urls = [GNU_SOURCE] +sources = [SOURCE_TAR_GZ] +patches = ['hello-2.12.1_site-greeting.patch'] +checksums = [ + {'hello-2.12.1.tar.gz': '8d99142afd92576f30b0cd7cb42a8dc6809998bc5d607d88761f512e26c7db20'}, + {'hello-2.12.1_site-greeting.patch': '78c8296b0edd563ad11fde7a548ac9f8644cefbbd5034bd8e42bcac668d1616e'}, +] + +builddependencies = [('binutils', '2.42')] + +runtest = 'check' + +sanity_check_paths = { + 'files': ['bin/hello'], + 'dirs': ['share/man/man1'], +} + +sanity_check_commands = ['hello --version'] + +moduleclass = 'tools' diff --git a/tests/corpus/cases/compile/hello-2.12.1_site-greeting.patch b/tests/corpus/cases/compile/hello-2.12.1_site-greeting.patch new file mode 100644 index 0000000..09576c1 --- /dev/null +++ b/tests/corpus/cases/compile/hello-2.12.1_site-greeting.patch @@ -0,0 +1,11 @@ +--- hello-2.12.1.orig/src/hello.c ++++ hello-2.12.1/src/hello.c +@@ -146,7 +146,7 @@ + #endif + + /* Having initialized gettext, get the default message. */ +- greeting_msg = _("Hello, world!"); ++ greeting_msg = site_greeting; + + /* Even exiting has subtleties. On exit, if any writes failed, change + the exit status. The /dev/full device on GNU/Linux can be used for diff --git a/tests/corpus/cases/configure/hello-2.12.1-GCCcore-14.2.0.eb b/tests/corpus/cases/configure/hello-2.12.1-GCCcore-14.2.0.eb new file mode 100644 index 0000000..ef6bd7d --- /dev/null +++ b/tests/corpus/cases/configure/hello-2.12.1-GCCcore-14.2.0.eb @@ -0,0 +1,27 @@ +easyblock = 'ConfigureMake' + +name = 'hello' +version = '2.12.1' + +homepage = 'https://www.gnu.org/software/hello/' +description = "GNU hello prints a friendly greeting." + +toolchain = {'name': 'GCCcore', 'version': '14.2.0'} + +source_urls = [GNU_SOURCE] +sources = [SOURCE_TAR_GZ] +checksums = ['8d99142afd92576f30b0cd7cb42a8dc6809998bc5d607d88761f512e26c7db20'] +configopts = 'CFLAGS="$CFLAGS -march=nosuchcpu"' + +builddependencies = [('binutils', '2.42')] + +runtest = 'check' + +sanity_check_paths = { + 'files': ['bin/hello'], + 'dirs': ['share/man/man1'], +} + +sanity_check_commands = ['hello --version'] + +moduleclass = 'tools' diff --git a/tests/corpus/cases/link/hello-2.12.1-GCCcore-14.2.0.eb b/tests/corpus/cases/link/hello-2.12.1-GCCcore-14.2.0.eb new file mode 100644 index 0000000..fe92dd0 --- /dev/null +++ b/tests/corpus/cases/link/hello-2.12.1-GCCcore-14.2.0.eb @@ -0,0 +1,30 @@ +easyblock = 'ConfigureMake' + +name = 'hello' +version = '2.12.1' + +homepage = 'https://www.gnu.org/software/hello/' +description = "GNU hello prints a friendly greeting." + +toolchain = {'name': 'GCCcore', 'version': '14.2.0'} + +source_urls = [GNU_SOURCE] +sources = [SOURCE_TAR_GZ] +patches = ['hello-2.12.1_site-greeting.patch'] +checksums = [ + {'hello-2.12.1.tar.gz': '8d99142afd92576f30b0cd7cb42a8dc6809998bc5d607d88761f512e26c7db20'}, + {'hello-2.12.1_site-greeting.patch': '40ba38132babec5d88d02340fad6543b62d3fdf535a7715993cd1d08ef41c725'}, +] + +builddependencies = [('binutils', '2.42')] + +runtest = 'check' + +sanity_check_paths = { + 'files': ['bin/hello'], + 'dirs': ['share/man/man1'], +} + +sanity_check_commands = ['hello --version'] + +moduleclass = 'tools' diff --git a/tests/corpus/cases/link/hello-2.12.1_site-greeting.patch b/tests/corpus/cases/link/hello-2.12.1_site-greeting.patch new file mode 100644 index 0000000..f1978c5 --- /dev/null +++ b/tests/corpus/cases/link/hello-2.12.1_site-greeting.patch @@ -0,0 +1,20 @@ +--- hello-2.12.1.orig/src/hello.c ++++ hello-2.12.1/src/hello.c +@@ -126,6 +126,8 @@ + } + } + ++extern const char *site_greeting (void); ++ + int + main (int argc, char *argv[]) + { +@@ -146,7 +148,7 @@ + #endif + + /* Having initialized gettext, get the default message. */ +- greeting_msg = _("Hello, world!"); ++ greeting_msg = site_greeting (); + + /* Even exiting has subtleties. On exit, if any writes failed, change + the exit status. The /dev/full device on GNU/Linux can be used for diff --git a/tests/corpus/cases/missing-dep/hello-2.12.1-GCCcore-14.2.0.eb b/tests/corpus/cases/missing-dep/hello-2.12.1-GCCcore-14.2.0.eb new file mode 100644 index 0000000..488948d --- /dev/null +++ b/tests/corpus/cases/missing-dep/hello-2.12.1-GCCcore-14.2.0.eb @@ -0,0 +1,27 @@ +easyblock = 'ConfigureMake' + +name = 'hello' +version = '2.12.1' + +homepage = 'https://www.gnu.org/software/hello/' +description = "GNU hello prints a friendly greeting." + +toolchain = {'name': 'GCCcore', 'version': '14.2.0'} + +source_urls = [GNU_SOURCE] +sources = [SOURCE_TAR_GZ] +checksums = ['8d99142afd92576f30b0cd7cb42a8dc6809998bc5d607d88761f512e26c7db20'] +dependencies = [('libgreet', '1.0')] + +builddependencies = [('binutils', '2.42')] + +runtest = 'check' + +sanity_check_paths = { + 'files': ['bin/hello'], + 'dirs': ['share/man/man1'], +} + +sanity_check_commands = ['hello --version'] + +moduleclass = 'tools' diff --git a/tests/corpus/cases/pass-13/hello-2.12.1-GCCcore-13.3.0.eb b/tests/corpus/cases/pass-13/hello-2.12.1-GCCcore-13.3.0.eb new file mode 100644 index 0000000..6081679 --- /dev/null +++ b/tests/corpus/cases/pass-13/hello-2.12.1-GCCcore-13.3.0.eb @@ -0,0 +1,26 @@ +easyblock = 'ConfigureMake' + +name = 'hello' +version = '2.12.1' + +homepage = 'https://www.gnu.org/software/hello/' +description = "GNU hello prints a friendly greeting." + +toolchain = {'name': 'GCCcore', 'version': '13.3.0'} + +source_urls = [GNU_SOURCE] +sources = [SOURCE_TAR_GZ] +checksums = ['8d99142afd92576f30b0cd7cb42a8dc6809998bc5d607d88761f512e26c7db20'] + +builddependencies = [('binutils', '2.42')] + +runtest = 'check' + +sanity_check_paths = { + 'files': ['bin/hello'], + 'dirs': ['share/man/man1'], +} + +sanity_check_commands = ['hello --version'] + +moduleclass = 'tools' diff --git a/tests/corpus/cases/pass/hello-2.12.1-GCCcore-14.2.0.eb b/tests/corpus/cases/pass/hello-2.12.1-GCCcore-14.2.0.eb new file mode 100644 index 0000000..aadf547 --- /dev/null +++ b/tests/corpus/cases/pass/hello-2.12.1-GCCcore-14.2.0.eb @@ -0,0 +1,26 @@ +easyblock = 'ConfigureMake' + +name = 'hello' +version = '2.12.1' + +homepage = 'https://www.gnu.org/software/hello/' +description = "GNU hello prints a friendly greeting." + +toolchain = {'name': 'GCCcore', 'version': '14.2.0'} + +source_urls = [GNU_SOURCE] +sources = [SOURCE_TAR_GZ] +checksums = ['8d99142afd92576f30b0cd7cb42a8dc6809998bc5d607d88761f512e26c7db20'] + +builddependencies = [('binutils', '2.42')] + +runtest = 'check' + +sanity_check_paths = { + 'files': ['bin/hello'], + 'dirs': ['share/man/man1'], +} + +sanity_check_commands = ['hello --version'] + +moduleclass = 'tools' diff --git a/tests/corpus/cases/patch/hello-2.12.1-GCCcore-14.2.0.eb b/tests/corpus/cases/patch/hello-2.12.1-GCCcore-14.2.0.eb new file mode 100644 index 0000000..4ac3856 --- /dev/null +++ b/tests/corpus/cases/patch/hello-2.12.1-GCCcore-14.2.0.eb @@ -0,0 +1,30 @@ +easyblock = 'ConfigureMake' + +name = 'hello' +version = '2.12.1' + +homepage = 'https://www.gnu.org/software/hello/' +description = "GNU hello prints a friendly greeting." + +toolchain = {'name': 'GCCcore', 'version': '14.2.0'} + +source_urls = [GNU_SOURCE] +sources = [SOURCE_TAR_GZ] +patches = ['hello-2.12.1_env-greeting.patch'] +checksums = [ + {'hello-2.12.1.tar.gz': '8d99142afd92576f30b0cd7cb42a8dc6809998bc5d607d88761f512e26c7db20'}, + {'hello-2.12.1_env-greeting.patch': '5feabe82b920bd98d060af58c36377e1c5c972f500e1c5359d5e2f0b0a285207'}, +] + +builddependencies = [('binutils', '2.42')] + +runtest = 'check' + +sanity_check_paths = { + 'files': ['bin/hello'], + 'dirs': ['share/man/man1'], +} + +sanity_check_commands = ['hello --version'] + +moduleclass = 'tools' diff --git a/tests/corpus/cases/patch/hello-2.12.1_env-greeting.patch b/tests/corpus/cases/patch/hello-2.12.1_env-greeting.patch new file mode 100644 index 0000000..db091e7 --- /dev/null +++ b/tests/corpus/cases/patch/hello-2.12.1_env-greeting.patch @@ -0,0 +1,21 @@ +--- hello-2.12.1.orig/src/hello.c ++++ hello-2.12.1/src/hello.c +@@ -65,7 +65,7 @@ + This is implemented in the Gnulib module "closeout". */ + atexit (close_stdout); + +- while ((optc = getopt_long (argc, argv, "g:htv", longopts, NULL)) != -1) ++ while ((optc = getopt_long (argc, argv, "eg:htv", longopts, NULL)) != -1) + switch (optc) + { + /* --help and --version exit immediately, per GNU coding standards. */ +@@ -73,6 +73,9 @@ + print_version (); + exit (EXIT_SUCCESS); + break; ++ case 'e': ++ greeting_msg = getenv ("HELLO_GREETING"); ++ break; + case 'g': + greeting_msg = optarg; + break; diff --git a/tests/corpus/cases/sanity/hello-2.12.1-GCCcore-13.3.0.eb b/tests/corpus/cases/sanity/hello-2.12.1-GCCcore-13.3.0.eb new file mode 100644 index 0000000..356cbe9 --- /dev/null +++ b/tests/corpus/cases/sanity/hello-2.12.1-GCCcore-13.3.0.eb @@ -0,0 +1,26 @@ +easyblock = 'ConfigureMake' + +name = 'hello' +version = '2.12.1' + +homepage = 'https://www.gnu.org/software/hello/' +description = "GNU hello prints a friendly greeting." + +toolchain = {'name': 'GCCcore', 'version': '13.3.0'} + +source_urls = [GNU_SOURCE] +sources = [SOURCE_TAR_GZ] +checksums = ['8d99142afd92576f30b0cd7cb42a8dc6809998bc5d607d88761f512e26c7db20'] + +builddependencies = [('binutils', '2.42')] + +runtest = 'check' + +sanity_check_paths = { + 'files': ['bin/hello', 'lib/libhello.a'], + 'dirs': ['share/man/man1'], +} + +sanity_check_commands = ['hello --version'] + +moduleclass = 'tools' diff --git a/tests/corpus/cases/test/hello-2.12.1-GCCcore-14.2.0.eb b/tests/corpus/cases/test/hello-2.12.1-GCCcore-14.2.0.eb new file mode 100644 index 0000000..572dd49 --- /dev/null +++ b/tests/corpus/cases/test/hello-2.12.1-GCCcore-14.2.0.eb @@ -0,0 +1,30 @@ +easyblock = 'ConfigureMake' + +name = 'hello' +version = '2.12.1' + +homepage = 'https://www.gnu.org/software/hello/' +description = "GNU hello prints a friendly greeting." + +toolchain = {'name': 'GCCcore', 'version': '14.2.0'} + +source_urls = [GNU_SOURCE] +sources = [SOURCE_TAR_GZ] +patches = ['hello-2.12.1_capitalise.patch'] +checksums = [ + {'hello-2.12.1.tar.gz': '8d99142afd92576f30b0cd7cb42a8dc6809998bc5d607d88761f512e26c7db20'}, + {'hello-2.12.1_capitalise.patch': 'e3f06cdd0bc219e21ffd667444d50dc3b07d9c4ee6373ba672377373c3e0bc76'}, +] + +builddependencies = [('binutils', '2.42')] + +runtest = 'check' + +sanity_check_paths = { + 'files': ['bin/hello'], + 'dirs': ['share/man/man1'], +} + +sanity_check_commands = ['hello --version'] + +moduleclass = 'tools' diff --git a/tests/corpus/cases/test/hello-2.12.1_capitalise.patch b/tests/corpus/cases/test/hello-2.12.1_capitalise.patch new file mode 100644 index 0000000..5c39378 --- /dev/null +++ b/tests/corpus/cases/test/hello-2.12.1_capitalise.patch @@ -0,0 +1,11 @@ +--- hello-2.12.1.orig/src/hello.c ++++ hello-2.12.1/src/hello.c +@@ -146,7 +146,7 @@ + #endif + + /* Having initialized gettext, get the default message. */ +- greeting_msg = _("Hello, world!"); ++ greeting_msg = _("Hello, World!"); + + /* Even exiting has subtleties. On exit, if any writes failed, change + the exit status. The /dev/full device on GNU/Linux can be used for diff --git a/tests/corpus/make-fixtures.sh b/tests/corpus/make-fixtures.sh new file mode 100755 index 0000000..96d21e5 --- /dev/null +++ b/tests/corpus/make-fixtures.sh @@ -0,0 +1,61 @@ +#!/bin/bash +# Make the fixture tree from a log tree that run.sh wrote, by dropping lines +# and never editing one: each kept session log goes through trim-log.awk, a +# kept command output longer than 160 lines keeps its first 10 and last 150, +# and EasyBuild's own logs in easybuild-logs/ stay out (the kept session log +# is a copy of one). The runs whose files rotate had compressed are +# compressed again, by EB_KEEP_LOGS rotate. +# +# Usage: make-fixtures.sh SRC_ROOT DEST_ROOT EB_KEEP_LOGS +set -euo pipefail +[ $# -eq 3 ] || { echo "usage: make-fixtures.sh SRC_ROOT DEST_ROOT EB_KEEP_LOGS" >&2; exit 2; } +src=$1 +dest=$2 +tool=$3 +here=$(cd "$(dirname "$0")" && pwd) + +copy_run() { + local run=$1 target f base out + for target in "$src/$run"/*/; do + target=${target%/} + target=${target##*/} + mkdir -p "$dest/$run/$target" + for f in "$src/$run/$target"/* "$src/$run/$target/.licensed-logs"; do + [ -f "$f" ] || continue + base=${f##*/} + base=${base%.gz} + out=$dest/$run/$target/$base + case "$base" in + *.failed.ebout.log) zcat -f -- "$f" | awk -f "$here/trim-log.awk" > "$out" ;; + *.failed.command-*.txt) + zcat -f -- "$f" | awk '{ l[NR] = $0 } + END { for (i = 1; i <= NR; i++) if (NR <= 160 || i <= 10 || i > NR - 150) print l[i] }' > "$out" ;; + *) zcat -f -- "$f" > "$out" ;; + esac + done + done +} + +rm -rf -- "$dest" +mkdir -p -- "$dest" +compressed=() +plain=() +for run in "$src"/*/; do + run=${run%/} + run=${run##*/} + if find "$src/$run" -name '*.gz' -print -quit | grep -q .; then + compressed+=("$run") + else + plain+=("$run") + fi +done +for run in "${compressed[@]}"; do copy_run "$run"; done +if [ ${#compressed[@]} -gt 0 ]; then + # Now is the day after the newest compressed run, so rotate takes each + # of them and nothing else is in the tree yet. + newest=${compressed[-1]} + now=$(($(date -u -d "${newest:0:4}-${newest:4:2}-${newest:6:2} 12:00" +%s) + 86400)) + TZ=UTC EB_KEEP_LOGS_NOW=$now "$tool" rotate "$dest" --compress-after 1 + rm -f -- "$dest/.eb-keep-logs-rotate.lock" +fi +for run in "${plain[@]}"; do copy_run "$run"; done diff --git a/tests/corpus/run.sh b/tests/corpus/run.sh new file mode 100755 index 0000000..27786cd --- /dev/null +++ b/tests/corpus/run.sh @@ -0,0 +1,42 @@ +#!/bin/bash +# One build run of the corpus, laid out as eb-pipeline lays out a run: +# ROOT/STAMP/TARGET/, each easyconfig's output in STEM.stdout.log, its +# --tmp-logdir in easybuild-logs/STEM, and eb-keep-logs failed after a failed +# line, with its output in STEM.keep-logs.log. EasyBuild comes from EESSI +# 2025.06 with EESSI-extend, which installs on top of EESSI. +# +# Usage: [ROOT=DIR] [STAMP=YYYYMMDD_HHMMSS] run.sh TARGET CASE... +# CASE a directory under cases/ holding one easyconfig. +# ROOT the log tree; default ~/build-logs. +# STAMP puts another target into a run that is already there. +# TARGET generic builds for EESSI's x86_64/generic; any other name +# builds for the CPU EESSI detects. +set -uo pipefail +target=$1 +shift +cases=$(cd "$(dirname "$0")/cases" && pwd) +root=${ROOT:-$HOME/build-logs} +stamp=${STAMP:-$(date +%Y%m%d_%H%M%S)} +logdir=$root/$stamp/$target +mkdir -p "$logdir" +if [ "$target" = generic ]; then + export EESSI_SOFTWARE_SUBDIR_OVERRIDE=x86_64/generic +fi +# EESSI's init and Lmod read unset variables. +set +u +# shellcheck disable=SC1091 +source /cvmfs/software.eessi.io/versions/2025.06/init/bash >/dev/null 2>&1 +module load EESSI-extend/2025.06-easybuild >/dev/null 2>&1 +set -u +export EASYBUILD_TMPDIR=/tmp/$USER/easybuild EASYBUILD_SOURCEPATH=$HOME/sources +for case in "$@"; do + ec=$(echo "$cases/$case/"*.eb) + stem=$(basename "$ec" .eb) + eb "$ec" --robot --tmp-logdir="$logdir/easybuild-logs/$stem" > "$logdir/$stem.stdout.log" 2>&1 + status=$? + echo "$stamp/$target $case: eb exited $status" + if [ "$status" -ne 0 ]; then + EASYBUILD_OUTPUT_STYLE=basic eb-keep-logs failed "$status" "$stem" "$logdir" \ + "$logdir/easybuild-logs/$stem" > "$logdir/$stem.keep-logs.log" 2>&1 + fi +done diff --git a/tests/corpus/trim-log.awk b/tests/corpus/trim-log.awk new file mode 100644 index 0000000..98f74ff --- /dev/null +++ b/tests/corpus/trim-log.awk @@ -0,0 +1,32 @@ +# Trim an EasyBuild session log for a test fixture by dropping whole lines, +# never editing one. A record is a line "== DATE TIME FILE:LINE LEVEL ..." +# and the lines after it up to the next record. Kept: WARNING and ERROR +# records, and INFO records of EasyBuild's own messages, steps and shell +# commands (build_log.py, easyblock.py, run.py, main.py), less the output a +# successful command logged and the middle of a long failed command's output +# (its first 10 and last 150 lines stay). +function flush( i, n) { + if (!keep) { nbody = 0; return } + print head + n = nbody + for (i = 1; i <= n; i++) { + if (n > 160 && i > 10 && i <= n - 150) continue + print body[i] + } + nbody = 0 +} +/^== [0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9] [0-9:,]+ [^ ]+ [A-Z]+ / { + if (started) flush() + started = 1 + head = $0 + keep = ($5 == "WARNING" || $5 == "ERROR" || + ($5 == "INFO" && $4 ~ /^(build_log|easyblock|run|main)\.py:/)) + quiet = (index($0, " completed successfully") > 0) + next +} +{ + if (!started) { print; next } + if (quiet) next + body[++nbody] = $0 +} +END { if (started) flush() } diff --git a/tests/differential.sh b/tests/differential.sh index fdf54ac..1e7ea25 100644 --- a/tests/differential.sh +++ b/tests/differential.sh @@ -21,6 +21,8 @@ diffs=0 # deliberate differences. declare -A deliberate=( ["rotate, lock is a symbolic link"]="\`rotate\`'s lock file cannot be opened, or is a symbolic link or not a regular file" + ["why"]="\`why\`" + ["history"]="\`history\`" ) compat_deliberate=$(sed -n '/^## Deliberate differences$/,/^## /p' "${repo_root}/COMPAT.md") # The environment both runs get, as env(1) takes it. @@ -140,6 +142,8 @@ holder=$! until [ -e "${work}/held" ]; do sleep 0.05; done compare "rotate, a run still written into" rotate "${work}/live" --compress-after 5 --delete-after 9 kill "${holder}"; wait "${holder}" 2>/dev/null +compare "why" why --latest --root "${repo_root}/tests/fixtures/build-logs" +compare "history" history hello --root "${repo_root}/tests/fixtures/build-logs" echo "${diffs} differences" [ "${diffs}" -eq 0 ] diff --git a/tests/fixtures/build-logs/20261117_035825/sapphirerapids/.licensed-logs b/tests/fixtures/build-logs/20261117_035825/sapphirerapids/.licensed-logs new file mode 100644 index 0000000..83041aa --- /dev/null +++ b/tests/fixtures/build-logs/20261117_035825/sapphirerapids/.licensed-logs @@ -0,0 +1 @@ +/home/alice/build-logs/20261117_035825/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.failed.ebout.log.gz diff --git a/tests/fixtures/build-logs/20261117_035825/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.failed.ebout.log.gz b/tests/fixtures/build-logs/20261117_035825/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.failed.ebout.log.gz new file mode 100644 index 0000000..2ca7464 Binary files /dev/null and b/tests/fixtures/build-logs/20261117_035825/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.failed.ebout.log.gz differ diff --git a/tests/fixtures/build-logs/20261117_035825/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.keep-logs.log.gz b/tests/fixtures/build-logs/20261117_035825/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.keep-logs.log.gz new file mode 100644 index 0000000..228528f Binary files /dev/null and b/tests/fixtures/build-logs/20261117_035825/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.keep-logs.log.gz differ diff --git a/tests/fixtures/build-logs/20261117_035825/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.stdout.log.gz b/tests/fixtures/build-logs/20261117_035825/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.stdout.log.gz new file mode 100644 index 0000000..68e65f0 Binary files /dev/null and b/tests/fixtures/build-logs/20261117_035825/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.stdout.log.gz differ diff --git a/tests/fixtures/build-logs/20261117_040032/sapphirerapids/.licensed-logs b/tests/fixtures/build-logs/20261117_040032/sapphirerapids/.licensed-logs new file mode 100644 index 0000000..7f786fc --- /dev/null +++ b/tests/fixtures/build-logs/20261117_040032/sapphirerapids/.licensed-logs @@ -0,0 +1,2 @@ +/home/alice/build-logs/20261117_040032/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.failed.ebout.log.gz +/home/alice/build-logs/20261117_040032/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.failed.command-out.txt.gz diff --git a/tests/fixtures/build-logs/20261117_040032/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.failed.command-out.txt.gz b/tests/fixtures/build-logs/20261117_040032/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.failed.command-out.txt.gz new file mode 100644 index 0000000..72adc1b Binary files /dev/null and b/tests/fixtures/build-logs/20261117_040032/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.failed.command-out.txt.gz differ diff --git a/tests/fixtures/build-logs/20261117_040032/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.failed.ebout.log.gz b/tests/fixtures/build-logs/20261117_040032/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.failed.ebout.log.gz new file mode 100644 index 0000000..6b2adb5 Binary files /dev/null and b/tests/fixtures/build-logs/20261117_040032/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.failed.ebout.log.gz differ diff --git a/tests/fixtures/build-logs/20261117_040032/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.keep-logs.log.gz b/tests/fixtures/build-logs/20261117_040032/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.keep-logs.log.gz new file mode 100644 index 0000000..cff4f5d Binary files /dev/null and b/tests/fixtures/build-logs/20261117_040032/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.keep-logs.log.gz differ diff --git a/tests/fixtures/build-logs/20261117_040032/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.stdout.log.gz b/tests/fixtures/build-logs/20261117_040032/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.stdout.log.gz new file mode 100644 index 0000000..e6f27ad Binary files /dev/null and b/tests/fixtures/build-logs/20261117_040032/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.stdout.log.gz differ diff --git a/tests/fixtures/build-logs/20261117_040119/sapphirerapids/.licensed-logs b/tests/fixtures/build-logs/20261117_040119/sapphirerapids/.licensed-logs new file mode 100644 index 0000000..0a9e007 --- /dev/null +++ b/tests/fixtures/build-logs/20261117_040119/sapphirerapids/.licensed-logs @@ -0,0 +1 @@ +/home/alice/build-logs/20261117_040119/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.failed.ebout.log.gz diff --git a/tests/fixtures/build-logs/20261117_040119/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.failed.ebout.log.gz b/tests/fixtures/build-logs/20261117_040119/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.failed.ebout.log.gz new file mode 100644 index 0000000..0fbce67 Binary files /dev/null and b/tests/fixtures/build-logs/20261117_040119/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.failed.ebout.log.gz differ diff --git a/tests/fixtures/build-logs/20261117_040119/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.keep-logs.log.gz b/tests/fixtures/build-logs/20261117_040119/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.keep-logs.log.gz new file mode 100644 index 0000000..70fb904 Binary files /dev/null and b/tests/fixtures/build-logs/20261117_040119/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.keep-logs.log.gz differ diff --git a/tests/fixtures/build-logs/20261117_040119/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.stdout.log.gz b/tests/fixtures/build-logs/20261117_040119/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.stdout.log.gz new file mode 100644 index 0000000..faa0075 Binary files /dev/null and b/tests/fixtures/build-logs/20261117_040119/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.stdout.log.gz differ diff --git a/tests/fixtures/build-logs/20261117_040311/sapphirerapids/.licensed-logs b/tests/fixtures/build-logs/20261117_040311/sapphirerapids/.licensed-logs new file mode 100644 index 0000000..501670f --- /dev/null +++ b/tests/fixtures/build-logs/20261117_040311/sapphirerapids/.licensed-logs @@ -0,0 +1,2 @@ +/home/alice/build-logs/20261117_040311/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.failed.ebout.log.gz +/home/alice/build-logs/20261117_040311/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.failed.command-out.txt.gz diff --git a/tests/fixtures/build-logs/20261117_040311/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.failed.command-out.txt.gz b/tests/fixtures/build-logs/20261117_040311/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.failed.command-out.txt.gz new file mode 100644 index 0000000..000c7fd Binary files /dev/null and b/tests/fixtures/build-logs/20261117_040311/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.failed.command-out.txt.gz differ diff --git a/tests/fixtures/build-logs/20261117_040311/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.failed.ebout.log.gz b/tests/fixtures/build-logs/20261117_040311/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.failed.ebout.log.gz new file mode 100644 index 0000000..fe7cc10 Binary files /dev/null and b/tests/fixtures/build-logs/20261117_040311/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.failed.ebout.log.gz differ diff --git a/tests/fixtures/build-logs/20261117_040311/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.keep-logs.log.gz b/tests/fixtures/build-logs/20261117_040311/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.keep-logs.log.gz new file mode 100644 index 0000000..da2c830 Binary files /dev/null and b/tests/fixtures/build-logs/20261117_040311/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.keep-logs.log.gz differ diff --git a/tests/fixtures/build-logs/20261117_040311/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.stdout.log.gz b/tests/fixtures/build-logs/20261117_040311/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.stdout.log.gz new file mode 100644 index 0000000..8f3beb9 Binary files /dev/null and b/tests/fixtures/build-logs/20261117_040311/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.stdout.log.gz differ diff --git a/tests/fixtures/build-logs/20261117_040615/sapphirerapids/.licensed-logs b/tests/fixtures/build-logs/20261117_040615/sapphirerapids/.licensed-logs new file mode 100644 index 0000000..0aefb46 --- /dev/null +++ b/tests/fixtures/build-logs/20261117_040615/sapphirerapids/.licensed-logs @@ -0,0 +1,2 @@ +/home/alice/build-logs/20261117_040615/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.failed.ebout.log +/home/alice/build-logs/20261117_040615/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.failed.command-out.txt diff --git a/tests/fixtures/build-logs/20261117_040615/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.failed.command-out.txt b/tests/fixtures/build-logs/20261117_040615/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.failed.command-out.txt new file mode 100644 index 0000000..0a75c0f --- /dev/null +++ b/tests/fixtures/build-logs/20261117_040615/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.failed.command-out.txt @@ -0,0 +1,160 @@ +rm -f lib/alloca.h-t lib/alloca.h && \ +{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + sed -e 's|@''HAVE_ALLOCA_H''@|1|g' < ./lib/alloca.in.h; \ +} > lib/alloca.h-t && \ +mv -f lib/alloca.h-t lib/alloca.h +rm -f lib/configmake.h-t && \ +{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + echo '#if HAVE_WINSOCK2_H'; \ + echo '# include /* avoid mingw pollution on DATADIR */'; \ + echo '#endif'; \ + -e 's|@''HAVE_MBSRTOWCS''@|1|g' \ + -e 's|@''HAVE_MBSNRTOWCS''@|1|g' \ + -e 's|@''HAVE_WCRTOMB''@|1|g' \ + -e 's|@''HAVE_WCSRTOMBS''@|1|g' \ + -e 's|@''HAVE_WCSNRTOMBS''@|1|g' \ + -e 's|@''HAVE_WMEMCHR''@|1|g' \ + -e 's|@''HAVE_WMEMCMP''@|1|g' \ + -e 's|@''HAVE_WMEMCPY''@|1|g' \ + -e 's|@''HAVE_WMEMMOVE''@|1|g' \ + -e 's|@''HAVE_WMEMPCPY''@|1|g' \ + -e 's|@''HAVE_WMEMSET''@|1|g' \ + -e 's|@''HAVE_WCSLEN''@|1|g' \ + -e 's|@''HAVE_WCSNLEN''@|1|g' \ + -e 's|@''HAVE_WCSCPY''@|1|g' \ + -e 's|@''HAVE_WCPCPY''@|1|g' \ + -e 's|@''HAVE_WCSNCPY''@|1|g' \ + -e 's|@''HAVE_WCPNCPY''@|1|g' \ + -e 's|@''HAVE_WCSCAT''@|1|g' \ + -e 's|@''HAVE_WCSNCAT''@|1|g' \ + -e 's|@''HAVE_WCSCMP''@|1|g' \ + -e 's|@''HAVE_WCSNCMP''@|1|g' \ + -e 's|@''HAVE_WCSCASECMP''@|1|g' \ + -e 's|@''HAVE_WCSNCASECMP''@|1|g' \ + -e 's|@''HAVE_WCSCOLL''@|1|g' \ + -e 's|@''HAVE_WCSXFRM''@|1|g' \ + -e 's|@''HAVE_WCSDUP''@|1|g' \ + -e 's|@''HAVE_WCSCHR''@|1|g' \ + -e 's|@''HAVE_WCSRCHR''@|1|g' \ + -e 's|@''HAVE_WCSCSPN''@|1|g' \ + -e 's|@''HAVE_WCSSPN''@|1|g' \ + -e 's|@''HAVE_WCSPBRK''@|1|g' \ + -e 's|@''HAVE_WCSSTR''@|1|g' \ + -e 's|@''HAVE_WCSTOK''@|1|g' \ + -e 's|@''HAVE_WCSWIDTH''@|1|g' \ + -e 's|@''HAVE_WCSFTIME''@|1|g' \ + -e 's|@''HAVE_DECL_WCTOB''@|1|g' \ + -e 's|@''HAVE_DECL_WCSDUP''@|1|g' \ + -e 's|@''HAVE_DECL_WCWIDTH''@|1|g' \ + | \ + sed -e 's|@''REPLACE_MBSTATE_T''@|0|g' \ + -e 's|@''REPLACE_BTOWC''@|0|g' \ + -e 's|@''REPLACE_WCTOB''@|0|g' \ + -e 's|@''REPLACE_MBSINIT''@|0|g' \ + -e 's|@''REPLACE_MBRTOWC''@|1|g' \ + -e 's|@''REPLACE_MBRLEN''@|0|g' \ + -e 's|@''REPLACE_MBSRTOWCS''@|0|g' \ + -e 's|@''REPLACE_MBSNRTOWCS''@|0|g' \ + -e 's|@''REPLACE_WCRTOMB''@|0|g' \ + -e 's|@''REPLACE_WCSRTOMBS''@|0|g' \ + -e 's|@''REPLACE_WCSNRTOMBS''@|0|g' \ + -e 's|@''REPLACE_WCWIDTH''@|0|g' \ + -e 's|@''REPLACE_WCSWIDTH''@|0|g' \ + -e 's|@''REPLACE_WCSFTIME''@|0|g' \ + -e 's|@''REPLACE_WCSTOK''@|0|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r ./lib/c++defs.h' \ + -e '/definition of _GL_ARG_NONNULL/r ./lib/arg-nonnull.h' \ + -e '/definition of _GL_WARN_ON_USE/r ./lib/warn-on-use.h'; \ +} > lib/wchar.h-t && \ +mv lib/wchar.h-t lib/wchar.h +rm -f lib/wctype.h-t lib/wctype.h && \ +{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + sed -e 's|@''GUARD_PREFIX''@|GL|g' \ + -e 's/@''HAVE_WCTYPE_H''@/1/g' \ + -e 's|@''INCLUDE_NEXT''@|include_next|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|#pragma GCC system_header|g' \ + -e 's|@''PRAGMA_COLUMNS''@||g' \ + -e 's|@''NEXT_WCTYPE_H''@||g' \ + -e 's/@''HAVE_CRTDEFS_H''@/0/g' \ + -e 's/@''GNULIB_OVERRIDES_WINT_T''@/0/g' \ + -e 's/@''GNULIB_ISWBLANK''@/1/g' \ + -e 's/@''GNULIB_ISWDIGIT''@/1/g' \ + -e 's/@''GNULIB_ISWXDIGIT''@/1/g' \ + -e 's/@''GNULIB_WCTYPE''@/0/g' \ + -e 's/@''GNULIB_ISWCTYPE''@/0/g' \ + -e 's/@''GNULIB_WCTRANS''@/0/g' \ + -e 's/@''GNULIB_TOWCTRANS''@/0/g' \ + -e 's/@''HAVE_ISWBLANK''@/1/g' \ + -e 's/@''HAVE_ISWCNTRL''@/1/g' \ + -e 's/@''HAVE_WCTYPE_T''@/1/g' \ + -e 's/@''HAVE_WCTRANS_T''@/1/g' \ + -e 's/@''HAVE_WINT_T''@/1/g' \ + -e 's/@''REPLACE_ISWBLANK''@/0/g' \ + -e 's/@''REPLACE_ISWDIGIT''@/0/g' \ + -e 's/@''REPLACE_ISWXDIGIT''@/0/g' \ + -e 's/@''REPLACE_ISWCNTRL''@/0/g' \ + -e 's/@''REPLACE_TOWLOWER''@/0/g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r ./lib/c++defs.h' \ + -e '/definition of _GL_WARN_ON_USE/r ./lib/warn-on-use.h' \ + < ./lib/wctype.in.h; \ +} > lib/wctype.h-t && \ +mv lib/wctype.h-t lib/wctype.h +make all-recursive +make[1]: Entering directory '/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1' +Making all in po +make[2]: Entering directory '/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1/po' +Makefile:170: warning: ignoring prerequisites on suffix rule definition +make[2]: Nothing to be done for 'all'. +make[2]: Leaving directory '/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1/po' +make[2]: Entering directory '/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1' +depbase=`echo src/hello.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT src/hello.o -MD -MP -MF $depbase.Tpo -c -o src/hello.o src/hello.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/basename-lgpl.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/basename-lgpl.o -MD -MP -MF $depbase.Tpo -c -o lib/basename-lgpl.o lib/basename-lgpl.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/c-ctype.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/c-ctype.o -MD -MP -MF $depbase.Tpo -c -o lib/c-ctype.o lib/c-ctype.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/c-strcasecmp.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/c-strcasecmp.o -MD -MP -MF $depbase.Tpo -c -o lib/c-strcasecmp.o lib/c-strcasecmp.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/c-strncasecmp.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/c-strncasecmp.o -MD -MP -MF $depbase.Tpo -c -o lib/c-strncasecmp.o lib/c-strncasecmp.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/cloexec.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/cloexec.o -MD -MP -MF $depbase.Tpo -c -o lib/cloexec.o lib/cloexec.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/close-stream.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/close-stream.o -MD -MP -MF $depbase.Tpo -c -o lib/close-stream.o lib/close-stream.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/closeout.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/closeout.o -MD -MP -MF $depbase.Tpo -c -o lib/closeout.o lib/closeout.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/dirname.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/dirname.o -MD -MP -MF $depbase.Tpo -c -o lib/dirname.o lib/dirname.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/basename.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/basename.o -MD -MP -MF $depbase.Tpo -c -o lib/basename.o lib/basename.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/dirname-lgpl.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/dirname-lgpl.o -MD -MP -MF $depbase.Tpo -c -o lib/dirname-lgpl.o lib/dirname-lgpl.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/stripslash.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/stripslash.o -MD -MP -MF $depbase.Tpo -c -o lib/stripslash.o lib/stripslash.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/exitfail.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/exitfail.o -MD -MP -MF $depbase.Tpo -c -o lib/exitfail.o lib/exitfail.c &&\ +mv -f $depbase.Tpo $depbase.Po +src/hello.c: In function 'main': +src/hello.c:149:18: error: 'site_greeting' undeclared (first use in this function); did you mean 'mb_greeting'? + 149 | greeting_msg = site_greeting; + | ^~~~~~~~~~~~~ + | mb_greeting +src/hello.c:149:18: note: each undeclared identifier is reported only once for each function it appears in +make[2]: *** [Makefile:2270: src/hello.o] Error 1 +make[2]: *** Waiting for unfinished jobs.... +make[2]: Leaving directory '/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1' +make[1]: *** [Makefile:2496: all-recursive] Error 1 +make[1]: Leaving directory '/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1' +make: *** [Makefile:1899: all] Error 2 diff --git a/tests/fixtures/build-logs/20261117_040615/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.failed.ebout.log b/tests/fixtures/build-logs/20261117_040615/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.failed.ebout.log new file mode 100644 index 0000000..82b0977 --- /dev/null +++ b/tests/fixtures/build-logs/20261117_040615/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.failed.ebout.log @@ -0,0 +1,332 @@ +== 2026-11-17 04:06:17,064 build_log.py:291 INFO This is EasyBuild 5.4.2 (framework: 5.4.2, easyblocks: 5.4.2) on host node1. +== 2026-11-17 04:06:17,064 build_log.py:294 INFO Command line: --allow-loaded-modules='EasyBuild,EESSI-extend' --buildpath='/tmp/alice/easybuild/build' --bwrap-installpath='/tmp/alice/easybuild/bwrap' --containerpath='/tmp/alice/easybuild/containers' --cuda-sanity-check-error-on-failed-checks --debug --experimental --fail-on-mod-files-gcccore --filter-deps='binutils,bzip2,DBus,flex,gettext,gperf,help2man,intltool,libreadline,makeinfo,ncurses,NVPL,ParMETIS,util-linux,XZ,zlib' --filter-env-vars='LD_LIBRARY_PATH' --hooks='/cvmfs/software.eessi.io/versions/2025.06/init/easybuild/eb_hooks.py' --ignore-osdeps --installpath='/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids' --local-var-naming-check='error' --module-search-path-headers='include_paths' --packagepath='/tmp/alice/easybuild/packages' --parallel-extensions-install --prefer-python-search-path='EBPYTHONPREFIXES' --prefix='/tmp/alice/easybuild' --read-only-installdir --repositorypath='/tmp/alice/easybuild/ebfiles_repo' --robot='/cvmfs/software.eessi.io/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/EasyBuild/5.4.2/easybuild/easyconfigs' --sourcepath='/home/alice/sources' --sourcepath-data='/tmp/alice/easybuild/sources' --sticky-bit --strict-rpath-sanity-check --sysroot='/cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64' --tmp-logdir='/home/alice/build-logs/20261117_040615/sapphirerapids/easybuild-logs/hello-2.12.1-GCCcore-14.2.0' --tmpdir='/tmp/alice/easybuild' --umask='077' --zip-logs='bzip2' /home/alice/corpus/cases/compile/hello-2.12.1-GCCcore-14.2.0.eb +== 2026-11-17 04:06:17,064 build_log.py:296 INFO Using /tmp/alice/easybuild/eb-n5ccgtjd as temporary directory +== 2026-11-17 04:06:17,105 run.py:518 INFO Path to bash that will be used to run shell commands: /cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/bin/bash +== 2026-11-17 04:06:17,105 run.py:532 INFO Running shell command in /tmp/eb-stack-0418d85a/src: + type module +== 2026-11-17 04:06:17,107 run.py:650 INFO Shell command completed successfully +== 2026-11-17 04:06:17,107 run.py:532 INFO Running command in /tmp/eb-stack-0418d85a/src: + /cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/usr/share/Lmod/libexec/lmod python --version +== 2026-11-17 04:06:17,148 run.py:650 INFO Command completed successfully +== 2026-11-17 04:06:17,165 run.py:532 INFO Running command in /tmp/eb-stack-0418d85a/src: + /cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/usr/share/Lmod/libexec/lmod python --terse list +== 2026-11-17 04:06:17,221 run.py:650 INFO Command completed successfully +== 2026-11-17 04:06:17,448 run.py:532 INFO Running command in /tmp/eb-stack-0418d85a/src: + /cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/usr/share/Lmod/libexec/lmod python --terse --show-hidden avail hello/2.12.1-GCCcore-14.2.0 +== 2026-11-17 04:06:17,846 run.py:650 INFO Command completed successfully +== 2026-11-17 04:06:17,847 build_log.py:330 INFO resolving dependencies ... +== 2026-11-17 04:06:17,848 run.py:532 INFO Running command in /tmp/eb-stack-0418d85a/src: + /cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/usr/share/Lmod/libexec/lmod python --terse --show-hidden avail +== 2026-11-17 04:06:18,243 run.py:650 INFO Command completed successfully +== 2026-11-17 04:06:19,242 build_log.py:330 INFO processing EasyBuild easyconfig /home/alice/corpus/cases/compile/hello-2.12.1-GCCcore-14.2.0.eb +== 2026-11-17 04:06:19,243 easyblock.py:5381 INFO Resetting environment +== 2026-11-17 04:06:19,245 easyblock.py:392 INFO This is EasyBuild 5.4.2 (framework: 5.4.2, easyblocks: 5.4.2) on host node1. +== 2026-11-17 04:06:19,245 easyblock.py:398 INFO This is easyblock ConfigureMake from module easybuild.easyblocks.generic.configuremake (/cvmfs/software.eessi.io/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/EasyBuild/5.4.2/lib/python3.13/site-packages/easybuild/easyblocks/generic/configuremake.py) +== 2026-11-17 04:06:19,245 easyblock.py:1242 INFO Build dir set to /tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0 +== 2026-11-17 04:06:19,245 easyblock.py:1305 INFO Software install dir set to /home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0 +== 2026-11-17 04:06:19,245 easyblock.py:1310 INFO Module install dir set to /home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/modules/all +== 2026-11-17 04:06:19,245 easyblock.py:360 INFO Init completed for application name hello version 2.12.1 +== 2026-11-17 04:06:19,245 easyblock.py:5400 INFO Obtained application instance for hello (easyblock: ConfigureMake) +== 2026-11-17 04:06:19,248 easyblock.py:5681 INFO Dumped easyconfig instance to /home/alice/build-logs/20261117_040615/sapphirerapids/easybuild-logs/hello-2.12.1-GCCcore-14.2.0/reprod_20261117040619_11912/hello-2.12.1-GCCcore-14.2.0.eb +== 2026-11-17 04:06:19,249 easyblock.py:5661 INFO Dumped easyblock configuremake.py required for reproduction to /home/alice/build-logs/20261117_040615/sapphirerapids/easybuild-logs/hello-2.12.1-GCCcore-14.2.0/reprod_20261117040619_11912/easyblocks +== 2026-11-17 04:06:19,249 easyblock.py:5693 INFO Dumped hooks file /cvmfs/software.eessi.io/versions/2025.06/init/easybuild/eb_hooks.py which is (potentially) required for reproduction to /home/alice/build-logs/20261117_040615/sapphirerapids/easybuild-logs/hello-2.12.1-GCCcore-14.2.0/reprod_20261117040619_11912/hooks/eb_hooks.py +== 2026-11-17 04:06:19,250 easyblock.py:2756 INFO Number of iterations to perform for central part of installation procedure: 1 +== 2026-11-17 04:06:19,250 build_log.py:330 INFO building and installing hello/2.12.1-GCCcore-14.2.0... +== 2026-11-17 04:06:19,254 run.py:518 INFO Path to bash that will be used to run shell commands: /cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/bin/bash +== 2026-11-17 04:06:19,254 run.py:532 INFO Running shell command in /tmp/eb-stack-0418d85a/src: + ulimit -u +== 2026-11-17 04:06:19,256 run.py:650 INFO Shell command completed successfully +== 2026-11-17 04:06:19,256 easyblock.py:2792 INFO Setting parallelism: 8 +== 2026-11-17 04:06:19,256 build_log.py:330 INFO fetching files and verifying checksums... +== 2026-11-17 04:06:19,257 easyblock.py:5068 INFO Starting fetch step +== 2026-11-17 04:06:19,258 easyblock.py:5079 INFO Running method fetch_step part of step fetch +== 2026-11-17 04:06:19,258 easyblock.py:2893 WARNING Easyconfig does not specify an EasyBuild-version (key 'easybuild_version')! Assuming the latest version +== 2026-11-17 04:06:19,258 easyblock.py:971 INFO Considering directory in which easyconfig file is located when searching for hello-2.12.1.tar.gz: /home/alice/corpus/cases/compile +== 2026-11-17 04:06:19,259 easyblock.py:1013 INFO Found file hello-2.12.1.tar.gz at /home/alice/sources/h/hello/hello-2.12.1.tar.gz +== 2026-11-17 04:06:19,259 easyblock.py:602 INFO Added sources: [{'name': 'hello-2.12.1.tar.gz', 'path': '/home/alice/sources/h/hello/hello-2.12.1.tar.gz', 'cmd': None, 'checksum': {'hello-2.12.1.tar.gz': '8d99142afd92576f30b0cd7cb42a8dc6809998bc5d607d88761f512e26c7db20'}, 'finalpath': '/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0'}] +== 2026-11-17 04:06:19,259 easyblock.py:971 INFO Considering directory in which easyconfig file is located when searching for hello-2.12.1_site-greeting.patch: /home/alice/corpus/cases/compile +== 2026-11-17 04:06:19,260 easyblock.py:1013 INFO Found file hello-2.12.1_site-greeting.patch at /home/alice/corpus/cases/compile/hello-2.12.1_site-greeting.patch +== 2026-11-17 04:06:19,260 easyblock.py:648 INFO Added patches: [{'name': 'hello-2.12.1_site-greeting.patch', 'postinstall': False, 'path': '/home/alice/corpus/cases/compile/hello-2.12.1_site-greeting.patch', 'checksum': {'hello-2.12.1_site-greeting.patch': '78c8296b0edd563ad11fde7a548ac9f8644cefbbd5034bd8e42bcac668d1616e'}}] +== 2026-11-17 04:06:19,261 easyblock.py:2965 INFO sha256 checksum for /home/alice/sources/h/hello/hello-2.12.1.tar.gz: 8d99142afd92576f30b0cd7cb42a8dc6809998bc5d607d88761f512e26c7db20 +== 2026-11-17 04:06:19,261 easyblock.py:2965 INFO sha256 checksum for /home/alice/corpus/cases/compile/hello-2.12.1_site-greeting.patch: 78c8296b0edd563ad11fde7a548ac9f8644cefbbd5034bd8e42bcac668d1616e +== 2026-11-17 04:06:19,263 easyblock.py:3000 INFO Checking dirs that need to be created: ['/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0', '/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/modules/all/hello', '/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/modules/tools/hello'] +== 2026-11-17 04:06:29,284 filetools.py:928 WARNING IOError occurred while trying to download https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d5d8800c472bc2452eaa16e37af2 to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess: +== 2026-11-17 04:06:39,297 filetools.py:928 WARNING IOError occurred while trying to download https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d5d8800c472bc2452eaa16e37af2 to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess: +== 2026-11-17 04:06:49,309 filetools.py:928 WARNING IOError occurred while trying to download https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d5d8800c472bc2452eaa16e37af2 to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess: +== 2026-11-17 04:06:52,871 filetools.py:925 WARNING HTTPError occurred while trying to download https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d5d8800c472bc2452eaa16e37af2 to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess: HTTP Error 502: Bad Gateway +== 2026-11-17 04:07:02,884 filetools.py:928 WARNING IOError occurred while trying to download https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d5d8800c472bc2452eaa16e37af2 to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess: +== 2026-11-17 04:07:12,896 filetools.py:928 WARNING IOError occurred while trying to download https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d5d8800c472bc2452eaa16e37af2 to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess: +== 2026-11-17 04:07:12,896 filetools.py:967 WARNING Download of https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d5d8800c472bc2452eaa16e37af2 to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess failed, done trying +== 2026-11-17 04:07:12,897 build_log.py:465 WARNING Failed to download recent config.guess to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess +== 2026-11-17 04:07:12,897 easyblock.py:5079 INFO Running method checksum_step part of step fetch +== 2026-11-17 04:07:12,898 easyblock.py:3022 INFO Checksum verification for /home/alice/sources/h/hello/hello-2.12.1.tar.gz using {'hello-2.12.1.tar.gz': '8d99142afd92576f30b0cd7cb42a8dc6809998bc5d607d88761f512e26c7db20'} passed. +== 2026-11-17 04:07:12,898 easyblock.py:3022 INFO Checksum verification for /home/alice/corpus/cases/compile/hello-2.12.1_site-greeting.patch using {'hello-2.12.1_site-greeting.patch': '78c8296b0edd563ad11fde7a548ac9f8644cefbbd5034bd8e42bcac668d1616e'} passed. +== 2026-11-17 04:07:12,898 build_log.py:330 INFO ... (took 53 secs) +== 2026-11-17 04:07:12,899 build_log.py:330 INFO creating build dir, resetting environment... +== 2026-11-17 04:07:12,899 easyblock.py:5068 INFO Starting ready step +== 2026-11-17 04:07:12,900 easyblock.py:5079 INFO Running method check_readiness_step part of step ready +== 2026-11-17 04:07:12,900 run.py:532 INFO Running command in /tmp/eb-stack-0418d85a/src: + /cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/usr/share/Lmod/libexec/lmod python --terse list +== 2026-11-17 04:07:12,964 run.py:650 INFO Command completed successfully +== 2026-11-17 04:07:12,965 easyblock.py:2842 WARNING Loaded modules detected: ['EasyBuild/5.4.2', 'EESSI-extend/2025.06-easybuild'] +== 2026-11-17 04:07:12,965 easyblock.py:5079 INFO Running method make_builddir part of step ready +== 2026-11-17 04:07:12,965 easyblock.py:1331 INFO Found old directory /tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0 +== 2026-11-17 04:07:12,973 easyblock.py:1354 INFO Removed old directory /tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0 +== 2026-11-17 04:07:12,974 easyblock.py:5079 INFO Running method reset_env part of step ready +== 2026-11-17 04:07:12,974 easyblock.py:5079 INFO Running method handle_iterate_opts part of step ready +== 2026-11-17 04:07:12,975 build_log.py:202 WARNING Deprecated functionality, will no longer work in EasyBuild v6.0: Easyconfig parameter 'parallel' is deprecated, use 'max_parallel' or the parallel property instead.; see https://docs.easybuild.io/deprecated-functionality/ for more information +== 2026-11-17 04:07:12,975 build_log.py:330 INFO ... (took < 1 sec) +== 2026-11-17 04:07:12,975 build_log.py:330 INFO unpacking... +== 2026-11-17 04:07:12,975 easyblock.py:5068 INFO Starting extract step +== 2026-11-17 04:07:12,976 easyblock.py:5079 INFO Running method extract_step part of step extract +== 2026-11-17 04:07:12,976 easyblock.py:3152 INFO Unpacking source hello-2.12.1.tar.gz +== 2026-11-17 04:07:12,980 run.py:492 INFO run_shell_cmd: Script to start debug shell for shell command 'tar ...' + will be saved to /tmp/alice/easybuild/eb-n5ccgtjd/run-shell-cmd-output/tar-tc_tyl_u/cmd.sh + output will be logged to /tmp/alice/easybuild/eb-n5ccgtjd/run-shell-cmd-output/tar-tc_tyl_u/out.txt +== 2026-11-17 04:07:12,981 run.py:518 INFO Path to bash that will be used to run shell commands: /cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/bin/bash +== 2026-11-17 04:07:12,981 run.py:532 INFO Running shell command in /tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0: + tar xzf /home/alice/sources/h/hello/hello-2.12.1.tar.gz +== 2026-11-17 04:07:13,005 run.py:650 INFO Shell command completed successfully +== 2026-11-17 04:07:13,006 build_log.py:330 INFO ... (took < 1 sec) +== 2026-11-17 04:07:13,006 build_log.py:330 INFO patching... +== 2026-11-17 04:07:13,006 easyblock.py:5068 INFO Starting patch step +== 2026-11-17 04:07:13,007 easyblock.py:5079 INFO Running method patch_step part of step patch +== 2026-11-17 04:07:13,007 easyblock.py:3170 INFO Applying patch hello-2.12.1_site-greeting.patch +== 2026-11-17 04:07:13,011 run.py:492 INFO run_shell_cmd: Script to start debug shell for shell command 'patch ...' + will be saved to /tmp/alice/easybuild/eb-n5ccgtjd/run-shell-cmd-output/patch-f_erg4_i/cmd.sh + output will be logged to /tmp/alice/easybuild/eb-n5ccgtjd/run-shell-cmd-output/patch-f_erg4_i/out.txt +== 2026-11-17 04:07:13,011 run.py:518 INFO Path to bash that will be used to run shell commands: /cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/bin/bash +== 2026-11-17 04:07:13,011 run.py:532 INFO Running shell command in /tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1: + patch -p1 -i /home/alice/corpus/cases/compile/hello-2.12.1_site-greeting.patch +== 2026-11-17 04:07:13,018 run.py:650 INFO Shell command completed successfully +== 2026-11-17 04:07:13,019 build_log.py:330 INFO ... (took < 1 sec) +== 2026-11-17 04:07:13,019 build_log.py:330 INFO preparing... +== 2026-11-17 04:07:13,020 easyblock.py:5068 INFO Starting prepare step +== 2026-11-17 04:07:13,021 easyblock.py:5079 INFO Running method prepare_step part of step prepare +== 2026-11-17 04:07:13,024 run.py:532 INFO Running command in /tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1: + /cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/usr/share/Lmod/libexec/lmod python show GCCcore/14.2.0 +== 2026-11-17 04:07:13,255 run.py:650 INFO Command completed successfully +== 2026-11-17 04:07:13,257 run.py:532 INFO Running command in /tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1: + /cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/usr/share/Lmod/libexec/lmod python load GCCcore/14.2.0 +== 2026-11-17 04:07:13,504 run.py:650 INFO Command completed successfully +== 2026-11-17 04:07:13,522 easyblock.py:2653 INFO Using /tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1 as start dir +== 2026-11-17 04:07:13,523 build_log.py:330 INFO ... (took < 1 sec) +== 2026-11-17 04:07:13,523 build_log.py:330 INFO configuring... +== 2026-11-17 04:07:13,523 easyblock.py:5068 INFO Starting configure step +== 2026-11-17 04:07:13,563 easyblock.py:5079 INFO Running method configure_step part of step configure +== 2026-11-17 04:07:23,576 filetools.py:928 WARNING IOError occurred while trying to download https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d5d8800c472bc2452eaa16e37af2 to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess: +== 2026-11-17 04:07:24,087 filetools.py:925 WARNING HTTPError occurred while trying to download https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d5d8800c472bc2452eaa16e37af2 to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess: HTTP Error 502: Bad Gateway +== 2026-11-17 04:07:34,095 filetools.py:928 WARNING IOError occurred while trying to download https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d5d8800c472bc2452eaa16e37af2 to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess: +== 2026-11-17 04:07:44,985 filetools.py:928 WARNING IOError occurred while trying to download https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d5d8800c472bc2452eaa16e37af2 to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess: The read operation timed out +== 2026-11-17 04:07:54,997 filetools.py:928 WARNING IOError occurred while trying to download https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d5d8800c472bc2452eaa16e37af2 to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess: +== 2026-11-17 04:07:55,533 filetools.py:925 WARNING HTTPError occurred while trying to download https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d5d8800c472bc2452eaa16e37af2 to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess: HTTP Error 502: Bad Gateway +== 2026-11-17 04:07:55,534 filetools.py:967 WARNING Download of https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d5d8800c472bc2452eaa16e37af2 to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess failed, done trying +== 2026-11-17 04:07:55,534 build_log.py:465 WARNING Failed to download recent config.guess to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess +== 2026-11-17 04:07:55,538 run.py:492 INFO run_shell_cmd: Script to start debug shell for shell command './configure ...' + will be saved to /tmp/alice/easybuild/eb-n5ccgtjd/run-shell-cmd-output/configure-a8rx4w8t/cmd.sh + output will be logged to /tmp/alice/easybuild/eb-n5ccgtjd/run-shell-cmd-output/configure-a8rx4w8t/out.txt +== 2026-11-17 04:07:55,539 run.py:518 INFO Path to bash that will be used to run shell commands: /cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/bin/bash +== 2026-11-17 04:07:55,539 run.py:532 INFO Running shell command in /tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1: + ./configure --prefix=/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0 +== 2026-11-17 04:09:25,310 run.py:650 INFO Shell command completed successfully +== 2026-11-17 04:09:25,311 build_log.py:330 INFO ... (took 2 mins 11 secs) +== 2026-11-17 04:09:25,311 build_log.py:330 INFO building... +== 2026-11-17 04:09:25,312 easyblock.py:5068 INFO Starting build step +== 2026-11-17 04:09:25,312 easyblock.py:5079 INFO Running method build_step part of step build +== 2026-11-17 04:09:25,316 run.py:492 INFO run_shell_cmd: Script to start debug shell for shell command 'make ...' + will be saved to /tmp/alice/easybuild/eb-n5ccgtjd/run-shell-cmd-output/make-lv1eoqiy/cmd.sh + output will be logged to /tmp/alice/easybuild/eb-n5ccgtjd/run-shell-cmd-output/make-lv1eoqiy/out.txt +== 2026-11-17 04:09:25,317 run.py:518 INFO Path to bash that will be used to run shell commands: /cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/bin/bash +== 2026-11-17 04:09:25,317 run.py:532 INFO Running shell command in /tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1: + make -j 8 +== 2026-11-17 04:09:25,709 run.py:652 WARNING Shell command FAILED (exit code 2) +Output (stdout + stderr): +rm -f lib/alloca.h-t lib/alloca.h && \ +{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + sed -e 's|@''HAVE_ALLOCA_H''@|1|g' < ./lib/alloca.in.h; \ +} > lib/alloca.h-t && \ +mv -f lib/alloca.h-t lib/alloca.h +rm -f lib/configmake.h-t && \ +{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + echo '#if HAVE_WINSOCK2_H'; \ + echo '# include /* avoid mingw pollution on DATADIR */'; \ + -e 's|@''HAVE_MBSNRTOWCS''@|1|g' \ + -e 's|@''HAVE_WCRTOMB''@|1|g' \ + -e 's|@''HAVE_WCSRTOMBS''@|1|g' \ + -e 's|@''HAVE_WCSNRTOMBS''@|1|g' \ + -e 's|@''HAVE_WMEMCHR''@|1|g' \ + -e 's|@''HAVE_WMEMCMP''@|1|g' \ + -e 's|@''HAVE_WMEMCPY''@|1|g' \ + -e 's|@''HAVE_WMEMMOVE''@|1|g' \ + -e 's|@''HAVE_WMEMPCPY''@|1|g' \ + -e 's|@''HAVE_WMEMSET''@|1|g' \ + -e 's|@''HAVE_WCSLEN''@|1|g' \ + -e 's|@''HAVE_WCSNLEN''@|1|g' \ + -e 's|@''HAVE_WCSCPY''@|1|g' \ + -e 's|@''HAVE_WCPCPY''@|1|g' \ + -e 's|@''HAVE_WCSNCPY''@|1|g' \ + -e 's|@''HAVE_WCPNCPY''@|1|g' \ + -e 's|@''HAVE_WCSCAT''@|1|g' \ + -e 's|@''HAVE_WCSNCAT''@|1|g' \ + -e 's|@''HAVE_WCSCMP''@|1|g' \ + -e 's|@''HAVE_WCSNCMP''@|1|g' \ + -e 's|@''HAVE_WCSCASECMP''@|1|g' \ + -e 's|@''HAVE_WCSNCASECMP''@|1|g' \ + -e 's|@''HAVE_WCSCOLL''@|1|g' \ + -e 's|@''HAVE_WCSXFRM''@|1|g' \ + -e 's|@''HAVE_WCSDUP''@|1|g' \ + -e 's|@''HAVE_WCSCHR''@|1|g' \ + -e 's|@''HAVE_WCSRCHR''@|1|g' \ + -e 's|@''HAVE_WCSCSPN''@|1|g' \ + -e 's|@''HAVE_WCSSPN''@|1|g' \ + -e 's|@''HAVE_WCSPBRK''@|1|g' \ + -e 's|@''HAVE_WCSSTR''@|1|g' \ + -e 's|@''HAVE_WCSTOK''@|1|g' \ + -e 's|@''HAVE_WCSWIDTH''@|1|g' \ + -e 's|@''HAVE_WCSFTIME''@|1|g' \ + -e 's|@''HAVE_DECL_WCTOB''@|1|g' \ + -e 's|@''HAVE_DECL_WCSDUP''@|1|g' \ + -e 's|@''HAVE_DECL_WCWIDTH''@|1|g' \ + | \ + sed -e 's|@''REPLACE_MBSTATE_T''@|0|g' \ + -e 's|@''REPLACE_BTOWC''@|0|g' \ + -e 's|@''REPLACE_WCTOB''@|0|g' \ + -e 's|@''REPLACE_MBSINIT''@|0|g' \ + -e 's|@''REPLACE_MBRTOWC''@|1|g' \ + -e 's|@''REPLACE_MBRLEN''@|0|g' \ + -e 's|@''REPLACE_MBSRTOWCS''@|0|g' \ + -e 's|@''REPLACE_MBSNRTOWCS''@|0|g' \ + -e 's|@''REPLACE_WCRTOMB''@|0|g' \ + -e 's|@''REPLACE_WCSRTOMBS''@|0|g' \ + -e 's|@''REPLACE_WCSNRTOMBS''@|0|g' \ + -e 's|@''REPLACE_WCWIDTH''@|0|g' \ + -e 's|@''REPLACE_WCSWIDTH''@|0|g' \ + -e 's|@''REPLACE_WCSFTIME''@|0|g' \ + -e 's|@''REPLACE_WCSTOK''@|0|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r ./lib/c++defs.h' \ + -e '/definition of _GL_ARG_NONNULL/r ./lib/arg-nonnull.h' \ + -e '/definition of _GL_WARN_ON_USE/r ./lib/warn-on-use.h'; \ +} > lib/wchar.h-t && \ +mv lib/wchar.h-t lib/wchar.h +rm -f lib/wctype.h-t lib/wctype.h && \ +{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + sed -e 's|@''GUARD_PREFIX''@|GL|g' \ + -e 's/@''HAVE_WCTYPE_H''@/1/g' \ + -e 's|@''INCLUDE_NEXT''@|include_next|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|#pragma GCC system_header|g' \ + -e 's|@''PRAGMA_COLUMNS''@||g' \ + -e 's|@''NEXT_WCTYPE_H''@||g' \ + -e 's/@''HAVE_CRTDEFS_H''@/0/g' \ + -e 's/@''GNULIB_OVERRIDES_WINT_T''@/0/g' \ + -e 's/@''GNULIB_ISWBLANK''@/1/g' \ + -e 's/@''GNULIB_ISWDIGIT''@/1/g' \ + -e 's/@''GNULIB_ISWXDIGIT''@/1/g' \ + -e 's/@''GNULIB_WCTYPE''@/0/g' \ + -e 's/@''GNULIB_ISWCTYPE''@/0/g' \ + -e 's/@''GNULIB_WCTRANS''@/0/g' \ + -e 's/@''GNULIB_TOWCTRANS''@/0/g' \ + -e 's/@''HAVE_ISWBLANK''@/1/g' \ + -e 's/@''HAVE_ISWCNTRL''@/1/g' \ + -e 's/@''HAVE_WCTYPE_T''@/1/g' \ + -e 's/@''HAVE_WCTRANS_T''@/1/g' \ + -e 's/@''HAVE_WINT_T''@/1/g' \ + -e 's/@''REPLACE_ISWBLANK''@/0/g' \ + -e 's/@''REPLACE_ISWDIGIT''@/0/g' \ + -e 's/@''REPLACE_ISWXDIGIT''@/0/g' \ + -e 's/@''REPLACE_ISWCNTRL''@/0/g' \ + -e 's/@''REPLACE_TOWLOWER''@/0/g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r ./lib/c++defs.h' \ + -e '/definition of _GL_WARN_ON_USE/r ./lib/warn-on-use.h' \ + < ./lib/wctype.in.h; \ +} > lib/wctype.h-t && \ +mv lib/wctype.h-t lib/wctype.h +make all-recursive +make[1]: Entering directory '/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1' +Making all in po +make[2]: Entering directory '/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1/po' +Makefile:170: warning: ignoring prerequisites on suffix rule definition +make[2]: Nothing to be done for 'all'. +make[2]: Leaving directory '/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1/po' +make[2]: Entering directory '/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1' +depbase=`echo src/hello.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT src/hello.o -MD -MP -MF $depbase.Tpo -c -o src/hello.o src/hello.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/basename-lgpl.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/basename-lgpl.o -MD -MP -MF $depbase.Tpo -c -o lib/basename-lgpl.o lib/basename-lgpl.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/c-ctype.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/c-ctype.o -MD -MP -MF $depbase.Tpo -c -o lib/c-ctype.o lib/c-ctype.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/c-strcasecmp.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/c-strcasecmp.o -MD -MP -MF $depbase.Tpo -c -o lib/c-strcasecmp.o lib/c-strcasecmp.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/c-strncasecmp.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/c-strncasecmp.o -MD -MP -MF $depbase.Tpo -c -o lib/c-strncasecmp.o lib/c-strncasecmp.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/cloexec.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/cloexec.o -MD -MP -MF $depbase.Tpo -c -o lib/cloexec.o lib/cloexec.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/close-stream.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/close-stream.o -MD -MP -MF $depbase.Tpo -c -o lib/close-stream.o lib/close-stream.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/closeout.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/closeout.o -MD -MP -MF $depbase.Tpo -c -o lib/closeout.o lib/closeout.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/dirname.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/dirname.o -MD -MP -MF $depbase.Tpo -c -o lib/dirname.o lib/dirname.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/basename.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/basename.o -MD -MP -MF $depbase.Tpo -c -o lib/basename.o lib/basename.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/dirname-lgpl.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/dirname-lgpl.o -MD -MP -MF $depbase.Tpo -c -o lib/dirname-lgpl.o lib/dirname-lgpl.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/stripslash.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/stripslash.o -MD -MP -MF $depbase.Tpo -c -o lib/stripslash.o lib/stripslash.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/exitfail.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/exitfail.o -MD -MP -MF $depbase.Tpo -c -o lib/exitfail.o lib/exitfail.c &&\ +mv -f $depbase.Tpo $depbase.Po +src/hello.c: In function 'main': +src/hello.c:149:18: error: 'site_greeting' undeclared (first use in this function); did you mean 'mb_greeting'? + 149 | greeting_msg = site_greeting; + | ^~~~~~~~~~~~~ + | mb_greeting +src/hello.c:149:18: note: each undeclared identifier is reported only once for each function it appears in +make[2]: *** [Makefile:2270: src/hello.o] Error 1 +make[2]: *** Waiting for unfinished jobs.... +make[2]: Leaving directory '/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1' +make[1]: *** [Makefile:2496: all-recursive] Error 1 +make[1]: Leaving directory '/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1' +make: *** [Makefile:1899: all] Error 2 + +== 2026-11-17 04:09:25,753 easyblock.py:5261 WARNING shell command 'make -j 8' failed with exit code 2 in build step for hello-2.12.1-GCCcore-14.2.0.eb +== 2026-11-17 04:09:25,758 build_log.py:233 ERROR EasyBuild encountered an error: shell command 'make ...' failed with exit code 2 in build step for hello-2.12.1-GCCcore-14.2.0.eb (at easybuild/framework/easyblock.py:5266 in run_all_steps) +Callstack: + easybuild/framework/easyblock.py:5266 in run_all_steps + easybuild/framework/easyblock.py:5444 in build_and_install_one + easybuild/main.py:184 in build_and_install_software + easybuild/main.py:632 in process_eb_args + easybuild/main.py:816 in main + easybuild/main.py:874 in main_with_hooks + easybuild/main.py:893 in +== 2026-11-17 04:09:25,758 build_log.py:330 INFO ... (took < 1 sec) +== 2026-11-17 04:09:25,759 easyblock.py:410 INFO Closing log for application name hello version 2.12.1 +== 2026-11-17 04:09:25,759 build_log.py:330 INFO FAILED: Installation ended unsuccessfully: shell command 'make ...' failed with exit code 2 in build step for hello-2.12.1-GCCcore-14.2.0.eb (took 3 mins 6 secs) +== 2026-11-17 04:09:25,759 build_log.py:330 INFO Results of the build can be found in the log file(s) /home/alice/build-logs/20261117_040615/sapphirerapids/easybuild-logs/hello-2.12.1-GCCcore-14.2.0/easybuild-hello-2.12.1-20261117.040619.EHXaR.log +== 2026-11-17 04:09:25,764 build_log.py:233 ERROR EasyBuild encountered an error: shell command 'make ...' failed with exit code 2 in build step for hello-2.12.1-GCCcore-14.2.0.eb (at easybuild/main.py:187 in build_and_install_software) +Callstack: + easybuild/main.py:187 in build_and_install_software + easybuild/main.py:632 in process_eb_args + easybuild/main.py:816 in main + easybuild/main.py:874 in main_with_hooks + easybuild/main.py:893 in +== 2026-11-17 04:09:25,768 build_log.py:330 INFO Summary: + * [FAILED] hello/2.12.1-GCCcore-14.2.0 +== 2026-11-17 04:09:25,772 build_log.py:233 ERROR EasyBuild encountered an error: Installation of hello-2.12.1-GCCcore-14.2.0.eb failed: shell command 'make ...' failed with exit code 2 in build step for hello-2.12.1-GCCcore-14.2.0.eb (at easybuild/main.py:231 in build_and_install_software) +Callstack: + easybuild/main.py:231 in build_and_install_software + easybuild/main.py:632 in process_eb_args + easybuild/main.py:816 in main + easybuild/main.py:874 in main_with_hooks + easybuild/main.py:893 in diff --git a/tests/fixtures/build-logs/20261117_040615/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.keep-logs.log b/tests/fixtures/build-logs/20261117_040615/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.keep-logs.log new file mode 100644 index 0000000..73bfdcc --- /dev/null +++ b/tests/fixtures/build-logs/20261117_040615/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.keep-logs.log @@ -0,0 +1,2 @@ +Failed build log: /home/alice/build-logs/20261117_040615/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.failed.ebout.log +Failed command output: /home/alice/build-logs/20261117_040615/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.failed.command-out.txt diff --git a/tests/fixtures/build-logs/20261117_040615/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.stdout.log b/tests/fixtures/build-logs/20261117_040615/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.stdout.log new file mode 100644 index 0000000..a856a53 --- /dev/null +++ b/tests/fixtures/build-logs/20261117_040615/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.stdout.log @@ -0,0 +1,174 @@ +== Temporary log file in case of crash /home/alice/build-logs/20261117_040615/sapphirerapids/easybuild-logs/hello-2.12.1-GCCcore-14.2.0/easybuild-m60drnpl.log +== found valid index for +/cvmfs/software.eessi.io/versions/2025.06/software/linux/x86_64/intel/sapphirera +pids/software/EasyBuild/5.4.2/easybuild/easyconfigs, so using it... +== Running parse hook for hello-2.12.1-GCCcore-14.2.0.eb... +== found valid index for +/cvmfs/software.eessi.io/versions/2025.06/software/linux/x86_64/intel/sapphirera +pids/software/EasyBuild/5.4.2/easybuild/easyconfigs, so using it... +== Running parse hook for GCCcore-14.2.0.eb... +== resolving dependencies ... +== Running pre_build_and_install_loop hook... +== Running parse hook for foss-2024a.eb... +== Running parse hook for GCC-13.3.0.eb... +== Running parse hook for OpenMPI-5.0.3-GCC-13.3.0.eb... +== Running parse hook for GCC-13.3.0.eb... +== Running parse hook for GCCcore-13.3.0.eb... +== Running parse hook for M4-1.4.19.eb... +== Running parse hook for FlexiBLAS-3.4.4-GCC-13.3.0.eb... +== Running parse hook for FFTW-3.3.10-GCC-13.3.0.eb... +== Running parse hook for FFTW.MPI-3.3.10-gompi-2024a.eb... +== Running parse hook for gompi-2024a.eb... +== Running parse hook for gompi-2024a.eb... +== Running parse hook for ScaLAPACK-2.2.0-gompi-2024a-fb.eb... +== Running parse hook for gfbf-2024a.eb... +== Running parse hook for foss-2025a.eb... +== Running parse hook for GCC-14.2.0.eb... +== Running parse hook for OpenMPI-5.0.7-GCC-14.2.0.eb... +== Running parse hook for GCC-14.2.0.eb... +== Running parse hook for GCCcore-14.2.0.eb... +== Running parse hook for FlexiBLAS-3.4.5-GCC-14.2.0.eb... +== Running parse hook for FFTW-3.3.10-GCC-14.2.0.eb... +== Running parse hook for FFTW.MPI-3.3.10-gompi-2025a.eb... +== Running parse hook for gompi-2025a.eb... +== Running parse hook for gompi-2025a.eb... +== Running parse hook for ScaLAPACK-2.2.2-gompi-2025a-fb.eb... +== Running parse hook for gfbf-2025a.eb... +== Running parse hook for foss-2025b.eb... +== Running parse hook for GCC-14.3.0.eb... +== Running parse hook for OpenMPI-5.0.8-GCC-14.3.0.eb... +== Running parse hook for GCC-14.3.0.eb... +== Running parse hook for GCCcore-14.3.0.eb... +== Running parse hook for M4-1.4.20.eb... +== Running parse hook for FlexiBLAS-3.4.5-GCC-14.3.0.eb... +== Running parse hook for FFTW-3.3.10-GCC-14.3.0.eb... +== Running parse hook for FFTW.MPI-3.3.10-gompi-2025b.eb... +== Running parse hook for gompi-2025b.eb... +== Running parse hook for gompi-2025b.eb... +== Running parse hook for ScaLAPACK-2.2.2-gompi-2025b-fb.eb... +== Running parse hook for gfbf-2025b.eb... +== Running parse hook for lfoss-2025b.eb... +== Running parse hook for llvm-compilers-20.1.8.eb... +== Running parse hook for OpenMPI-5.0.8-llvm-compilers-20.1.8.eb... +== Running parse hook for llvm-compilers-20.1.8.eb... +== Running parse hook for LLVM-20.1.8-GCCcore-14.3.0.eb... +== Running parse hook for GCCcore-14.3.0.eb... +== Running parse hook for FlexiBLAS-3.4.5-llvm-compilers-20.1.8.eb... +== Running parse hook for FFTW-3.3.10-llvm-compilers-20.1.8.eb... +== Running parse hook for FFTW.MPI-3.3.10-lompi-2025b.eb... +== Running parse hook for lompi-2025b.eb... +== Running parse hook for lompi-2025b.eb... +== Running parse hook for ScaLAPACK-2.2.2-lompi-2025b-fb.eb... +== Running parse hook for lfbf-2025b.eb... +== Running parse hook for rompi-2025a.eb... +== Running parse hook for rocm-compilers-19.0.0-ROCm-6.4.1.eb... +== Running parse hook for OpenMPI-5.0.7-rocm-compilers-19.0.0-ROCm-6.4.1.eb... +== Running parse hook for rocm-compilers-19.0.0-ROCm-6.4.1.eb... +== Running parse hook for ROCm-LLVM-19.0.0-GCCcore-14.2.0-ROCm-6.4.1.eb... +== processing EasyBuild easyconfig +/home/alice/corpus/cases/compile/hello-2.12.1-GCCcore-14.2.0.eb +== building and installing hello/2.12.1-GCCcore-14.2.0... + >> installation prefix: +/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/so +ftware/hello/2.12.1-GCCcore-14.2.0 +== fetching files and verifying checksums... +== Running pre-fetch hook... + >> sources: + >> /home/alice/sources/h/hello/hello-2.12.1.tar.gz [SHA256: +8d99142afd92576f30b0cd7cb42a8dc6809998bc5d607d88761f512e26c7db20] + >> patches: + >> /home/alice/corpus/cases/compile/hello-2.12.1_site-greeting.patch [SHA256: +78c8296b0edd563ad11fde7a548ac9f8644cefbbd5034bd8e42bcac668d1616e] + +WARNING: Failed to download recent config.guess to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess + + >> download failed: +https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d +5d8800c472bc2452eaa16e37af2 +== ... (took 53 secs) +== creating build dir, resetting environment... + >> build dir: /tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0 + +WARNING: Deprecated functionality, will no longer work in EasyBuild v6.0: Easyconfig parameter 'parallel' is deprecated, use 'max_parallel' or the parallel property instead.; see https://docs.easybuild.io/deprecated-functionality/ for more information + +== Running post-ready hook... +== ... (took < 1 sec) +== unpacking... + >> running shell command: + tar xzf /home/alice/sources/h/hello/hello-2.12.1.tar.gz + [started at: 2026-11-17 04:07:12] + [working dir: /tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0] + [output and state saved to +/tmp/alice/easybuild/eb-n5ccgtjd/run-shell-cmd-output/tar-tc_tyl_u] + >> command completed: exit 0, ran in < 1s +== ... (took < 1 sec) +== patching... + >> applying patch hello-2.12.1_site-greeting.patch +== ... (took < 1 sec) +== preparing... +== Running pre-prepare hook... + >> loading toolchain module: GCCcore/14.2.0 + >> defining build environment for GCCcore/14.2.0 toolchain +== Running post-prepare hook... +== ... (took < 1 sec) +== configuring... +== Running pre-configure hook... + +WARNING: Failed to download recent config.guess to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess + + +WARNING: No config.guess available, not setting '--build' option for configure step +EasyBuild attempts to download a recent config.guess but seems to have failed! + + >> download failed: +https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d +5d8800c472bc2452eaa16e37af2 + >> running shell command: + ./configure +--prefix=/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphire +rapids/software/hello/2.12.1-GCCcore-14.2.0 + [started at: 2026-11-17 04:07:55] + [working dir: +/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1] + [output and state saved to +/tmp/alice/easybuild/eb-n5ccgtjd/run-shell-cmd-output/configure-a8rx4w8t] + >> command completed: exit 0, ran in 00h01m29s +== ... (took 2 mins 11 secs) +== building... + + +ERROR: Shell command failed! + full command -> make -j 8 + exit code -> 2 + called from -> 'build_step' function in +/cvmfs/software.eessi.io/versions/2025.06/software/linux/x86_64/intel/sapphirera +pids/software/EasyBuild/5.4.2/lib/python3.13/site-packages/easybuild/easyblocks/ +generic/configuremake.py (line 382) + working directory -> +/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1 + output (stdout + stderr) -> +/tmp/alice/easybuild/eb-n5ccgtjd/run-shell-cmd-output/make-lv1eoqiy/out.txt + interactive shell script -> +/tmp/alice/easybuild/eb-n5ccgtjd/run-shell-cmd-output/make-lv1eoqiy/cmd.sh + + >> running shell command: + make -j 8 + [started at: 2026-11-17 04:09:25] + [working dir: +/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1] + [output and state saved to +/tmp/alice/easybuild/eb-n5ccgtjd/run-shell-cmd-output/make-lv1eoqiy] +== ... (took < 1 sec) +== FAILED: Installation ended unsuccessfully: shell command 'make ...' failed +with exit code 2 in build step for hello-2.12.1-GCCcore-14.2.0.eb (took 3 mins 6 +secs) +== Results of the build can be found in the log file(s) +/home/alice/build-logs/20261117_040615/sapphirerapids/easybuild-logs/hello-2.12. +1-GCCcore-14.2.0/easybuild-hello-2.12.1-20261117.040619.EHXaR.log +== Running post-easyblock hook... +== Summary: + * [FAILED] hello/2.12.1-GCCcore-14.2.0 + + +ERROR: Installation of hello-2.12.1-GCCcore-14.2.0.eb failed: shell command 'make ...' failed with exit code 2 in build step for hello-2.12.1-GCCcore-14.2.0.eb + diff --git a/tests/fixtures/build-logs/20261117_040928/sapphirerapids/.licensed-logs b/tests/fixtures/build-logs/20261117_040928/sapphirerapids/.licensed-logs new file mode 100644 index 0000000..0c3f75c --- /dev/null +++ b/tests/fixtures/build-logs/20261117_040928/sapphirerapids/.licensed-logs @@ -0,0 +1,2 @@ +/home/alice/build-logs/20261117_040928/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.failed.ebout.log +/home/alice/build-logs/20261117_040928/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.failed.command-out.txt diff --git a/tests/fixtures/build-logs/20261117_040928/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.failed.command-out.txt b/tests/fixtures/build-logs/20261117_040928/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.failed.command-out.txt new file mode 100644 index 0000000..7651bf0 --- /dev/null +++ b/tests/fixtures/build-logs/20261117_040928/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.failed.command-out.txt @@ -0,0 +1,160 @@ +rm -f lib/alloca.h-t lib/alloca.h && \ +{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + sed -e 's|@''HAVE_ALLOCA_H''@|1|g' < ./lib/alloca.in.h; \ +} > lib/alloca.h-t && \ +mv -f lib/alloca.h-t lib/alloca.h +rm -f lib/configmake.h-t && \ +{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + echo '#if HAVE_WINSOCK2_H'; \ + echo '# include /* avoid mingw pollution on DATADIR */'; \ + echo '#endif'; \ +make[2]: Nothing to be done for 'all'. +make[2]: Leaving directory '/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1/po' +make[2]: Entering directory '/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1' +depbase=`echo src/hello.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT src/hello.o -MD -MP -MF $depbase.Tpo -c -o src/hello.o src/hello.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/basename-lgpl.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/basename-lgpl.o -MD -MP -MF $depbase.Tpo -c -o lib/basename-lgpl.o lib/basename-lgpl.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/c-ctype.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/c-ctype.o -MD -MP -MF $depbase.Tpo -c -o lib/c-ctype.o lib/c-ctype.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/c-strcasecmp.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/c-strcasecmp.o -MD -MP -MF $depbase.Tpo -c -o lib/c-strcasecmp.o lib/c-strcasecmp.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/c-strncasecmp.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/c-strncasecmp.o -MD -MP -MF $depbase.Tpo -c -o lib/c-strncasecmp.o lib/c-strncasecmp.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/cloexec.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/cloexec.o -MD -MP -MF $depbase.Tpo -c -o lib/cloexec.o lib/cloexec.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/close-stream.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/close-stream.o -MD -MP -MF $depbase.Tpo -c -o lib/close-stream.o lib/close-stream.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/closeout.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/closeout.o -MD -MP -MF $depbase.Tpo -c -o lib/closeout.o lib/closeout.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/dirname.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/dirname.o -MD -MP -MF $depbase.Tpo -c -o lib/dirname.o lib/dirname.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/basename.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/basename.o -MD -MP -MF $depbase.Tpo -c -o lib/basename.o lib/basename.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/dirname-lgpl.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/dirname-lgpl.o -MD -MP -MF $depbase.Tpo -c -o lib/dirname-lgpl.o lib/dirname-lgpl.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/stripslash.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/stripslash.o -MD -MP -MF $depbase.Tpo -c -o lib/stripslash.o lib/stripslash.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/exitfail.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/exitfail.o -MD -MP -MF $depbase.Tpo -c -o lib/exitfail.o lib/exitfail.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/fd-hook.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/fd-hook.o -MD -MP -MF $depbase.Tpo -c -o lib/fd-hook.o lib/fd-hook.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/getprogname.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/getprogname.o -MD -MP -MF $depbase.Tpo -c -o lib/getprogname.o lib/getprogname.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/hard-locale.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/hard-locale.o -MD -MP -MF $depbase.Tpo -c -o lib/hard-locale.o lib/hard-locale.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/localcharset.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/localcharset.o -MD -MP -MF $depbase.Tpo -c -o lib/localcharset.o lib/localcharset.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/malloca.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/malloca.o -MD -MP -MF $depbase.Tpo -c -o lib/malloca.o lib/malloca.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/mbchar.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/mbchar.o -MD -MP -MF $depbase.Tpo -c -o lib/mbchar.o lib/mbchar.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/mbiter.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/mbiter.o -MD -MP -MF $depbase.Tpo -c -o lib/mbiter.o lib/mbiter.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/mbslen.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/mbslen.o -MD -MP -MF $depbase.Tpo -c -o lib/mbslen.o lib/mbslen.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/mbsstr.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/mbsstr.o -MD -MP -MF $depbase.Tpo -c -o lib/mbsstr.o lib/mbsstr.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/mbuiter.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/mbuiter.o -MD -MP -MF $depbase.Tpo -c -o lib/mbuiter.o lib/mbuiter.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/progname.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/progname.o -MD -MP -MF $depbase.Tpo -c -o lib/progname.o lib/progname.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/propername.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/propername.o -MD -MP -MF $depbase.Tpo -c -o lib/propername.o lib/propername.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/quotearg.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/quotearg.o -MD -MP -MF $depbase.Tpo -c -o lib/quotearg.o lib/quotearg.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/setlocale_null.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/setlocale_null.o -MD -MP -MF $depbase.Tpo -c -o lib/setlocale_null.o lib/setlocale_null.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/stat-time.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/stat-time.o -MD -MP -MF $depbase.Tpo -c -o lib/stat-time.o lib/stat-time.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/striconv.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/striconv.o -MD -MP -MF $depbase.Tpo -c -o lib/striconv.o lib/striconv.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/strnlen1.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/strnlen1.o -MD -MP -MF $depbase.Tpo -c -o lib/strnlen1.o lib/strnlen1.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/trim.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/trim.o -MD -MP -MF $depbase.Tpo -c -o lib/trim.o lib/trim.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/unistd.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/unistd.o -MD -MP -MF $depbase.Tpo -c -o lib/unistd.o lib/unistd.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/unistr/u8-mbtoucr.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/unistr/u8-mbtoucr.o -MD -MP -MF $depbase.Tpo -c -o lib/unistr/u8-mbtoucr.o lib/unistr/u8-mbtoucr.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/unistr/u8-uctomb.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/unistr/u8-uctomb.o -MD -MP -MF $depbase.Tpo -c -o lib/unistr/u8-uctomb.o lib/unistr/u8-uctomb.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/unistr/u8-uctomb-aux.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/unistr/u8-uctomb-aux.o -MD -MP -MF $depbase.Tpo -c -o lib/unistr/u8-uctomb-aux.o lib/unistr/u8-uctomb-aux.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/uniwidth/width.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/uniwidth/width.o -MD -MP -MF $depbase.Tpo -c -o lib/uniwidth/width.o lib/uniwidth/width.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/version-etc.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/version-etc.o -MD -MP -MF $depbase.Tpo -c -o lib/version-etc.o lib/version-etc.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/version-etc-fsf.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/version-etc-fsf.o -MD -MP -MF $depbase.Tpo -c -o lib/version-etc-fsf.o lib/version-etc-fsf.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/wctype-h.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/wctype-h.o -MD -MP -MF $depbase.Tpo -c -o lib/wctype-h.o lib/wctype-h.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/xmalloc.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/xmalloc.o -MD -MP -MF $depbase.Tpo -c -o lib/xmalloc.o lib/xmalloc.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/xalloc-die.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/xalloc-die.o -MD -MP -MF $depbase.Tpo -c -o lib/xalloc-die.o lib/xalloc-die.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/xstriconv.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/xstriconv.o -MD -MP -MF $depbase.Tpo -c -o lib/xstriconv.o lib/xstriconv.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/xstrndup.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/xstrndup.o -MD -MP -MF $depbase.Tpo -c -o lib/xstrndup.o lib/xstrndup.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/fcntl.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/fcntl.o -MD -MP -MF $depbase.Tpo -c -o lib/fcntl.o lib/fcntl.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/mbrtowc.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/mbrtowc.o -MD -MP -MF $depbase.Tpo -c -o lib/mbrtowc.o lib/mbrtowc.c &&\ +mv -f $depbase.Tpo $depbase.Po +rm -f lib/libhello.a +ar cr lib/libhello.a lib/basename-lgpl.o lib/c-ctype.o lib/c-strcasecmp.o lib/c-strncasecmp.o lib/cloexec.o lib/close-stream.o lib/closeout.o lib/dirname.o lib/basename.o lib/dirname-lgpl.o lib/stripslash.o lib/exitfail.o lib/fd-hook.o lib/getprogname.o lib/hard-locale.o lib/localcharset.o lib/malloca.o lib/mbchar.o lib/mbiter.o lib/mbslen.o lib/mbsstr.o lib/mbuiter.o lib/progname.o lib/propername.o lib/quotearg.o lib/setlocale_null.o lib/stat-time.o lib/striconv.o lib/strnlen1.o lib/trim.o lib/unistd.o lib/unistr/u8-mbtoucr.o lib/unistr/u8-uctomb.o lib/unistr/u8-uctomb-aux.o lib/uniwidth/width.o lib/version-etc.o lib/version-etc-fsf.o lib/wctype-h.o lib/xmalloc.o lib/xalloc-die.o lib/xstriconv.o lib/xstrndup.o lib/fcntl.o lib/mbrtowc.o +ranlib lib/libhello.a +gcc -O2 -ftree-vectorize -march=native -fno-math-errno -L/cvmfs/software.eessi.io/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/GCCcore/14.2.0/lib64 -L/cvmfs/software.eessi.io/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/GCCcore/14.2.0/lib -o hello src/hello.o ./lib/libhello.a -lm -lpthread +/cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/usr/bin/ld: src/hello.o: in function `main': +hello.c:(.text.startup+0x4a): undefined reference to `site_greeting' +collect2: error: ld returned 1 exit status +make[2]: *** [Makefile:2173: hello] Error 1 +make[2]: Leaving directory '/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1' +make[1]: *** [Makefile:2496: all-recursive] Error 1 +make[1]: Leaving directory '/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1' +make: *** [Makefile:1899: all] Error 2 diff --git a/tests/fixtures/build-logs/20261117_040928/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.failed.ebout.log b/tests/fixtures/build-logs/20261117_040928/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.failed.ebout.log new file mode 100644 index 0000000..ca5c8a5 --- /dev/null +++ b/tests/fixtures/build-logs/20261117_040928/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.failed.ebout.log @@ -0,0 +1,332 @@ +== 2026-11-17 04:09:29,369 build_log.py:291 INFO This is EasyBuild 5.4.2 (framework: 5.4.2, easyblocks: 5.4.2) on host node1. +== 2026-11-17 04:09:29,369 build_log.py:294 INFO Command line: --allow-loaded-modules='EasyBuild,EESSI-extend' --buildpath='/tmp/alice/easybuild/build' --bwrap-installpath='/tmp/alice/easybuild/bwrap' --containerpath='/tmp/alice/easybuild/containers' --cuda-sanity-check-error-on-failed-checks --debug --experimental --fail-on-mod-files-gcccore --filter-deps='binutils,bzip2,DBus,flex,gettext,gperf,help2man,intltool,libreadline,makeinfo,ncurses,NVPL,ParMETIS,util-linux,XZ,zlib' --filter-env-vars='LD_LIBRARY_PATH' --hooks='/cvmfs/software.eessi.io/versions/2025.06/init/easybuild/eb_hooks.py' --ignore-osdeps --installpath='/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids' --local-var-naming-check='error' --module-search-path-headers='include_paths' --packagepath='/tmp/alice/easybuild/packages' --parallel-extensions-install --prefer-python-search-path='EBPYTHONPREFIXES' --prefix='/tmp/alice/easybuild' --read-only-installdir --repositorypath='/tmp/alice/easybuild/ebfiles_repo' --robot='/cvmfs/software.eessi.io/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/EasyBuild/5.4.2/easybuild/easyconfigs' --sourcepath='/home/alice/sources' --sourcepath-data='/tmp/alice/easybuild/sources' --sticky-bit --strict-rpath-sanity-check --sysroot='/cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64' --tmp-logdir='/home/alice/build-logs/20261117_040928/sapphirerapids/easybuild-logs/hello-2.12.1-GCCcore-14.2.0' --tmpdir='/tmp/alice/easybuild' --umask='077' --zip-logs='bzip2' /home/alice/corpus/cases/link/hello-2.12.1-GCCcore-14.2.0.eb +== 2026-11-17 04:09:29,369 build_log.py:296 INFO Using /tmp/alice/easybuild/eb-w7p_7909 as temporary directory +== 2026-11-17 04:09:29,407 run.py:518 INFO Path to bash that will be used to run shell commands: /cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/bin/bash +== 2026-11-17 04:09:29,407 run.py:532 INFO Running shell command in /tmp/eb-stack-0418d85a/src: + type module +== 2026-11-17 04:09:29,411 run.py:650 INFO Shell command completed successfully +== 2026-11-17 04:09:29,412 run.py:532 INFO Running command in /tmp/eb-stack-0418d85a/src: + /cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/usr/share/Lmod/libexec/lmod python --version +== 2026-11-17 04:09:29,449 run.py:650 INFO Command completed successfully +== 2026-11-17 04:09:29,460 run.py:532 INFO Running command in /tmp/eb-stack-0418d85a/src: + /cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/usr/share/Lmod/libexec/lmod python --terse list +== 2026-11-17 04:09:29,512 run.py:650 INFO Command completed successfully +== 2026-11-17 04:09:29,737 run.py:532 INFO Running command in /tmp/eb-stack-0418d85a/src: + /cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/usr/share/Lmod/libexec/lmod python --terse --show-hidden avail hello/2.12.1-GCCcore-14.2.0 +== 2026-11-17 04:09:30,068 run.py:650 INFO Command completed successfully +== 2026-11-17 04:09:30,069 build_log.py:330 INFO resolving dependencies ... +== 2026-11-17 04:09:30,070 run.py:532 INFO Running command in /tmp/eb-stack-0418d85a/src: + /cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/usr/share/Lmod/libexec/lmod python --terse --show-hidden avail +== 2026-11-17 04:09:30,405 run.py:650 INFO Command completed successfully +== 2026-11-17 04:09:31,356 build_log.py:330 INFO processing EasyBuild easyconfig /home/alice/corpus/cases/link/hello-2.12.1-GCCcore-14.2.0.eb +== 2026-11-17 04:09:31,356 easyblock.py:5381 INFO Resetting environment +== 2026-11-17 04:09:31,359 easyblock.py:392 INFO This is EasyBuild 5.4.2 (framework: 5.4.2, easyblocks: 5.4.2) on host node1. +== 2026-11-17 04:09:31,359 easyblock.py:398 INFO This is easyblock ConfigureMake from module easybuild.easyblocks.generic.configuremake (/cvmfs/software.eessi.io/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/EasyBuild/5.4.2/lib/python3.13/site-packages/easybuild/easyblocks/generic/configuremake.py) +== 2026-11-17 04:09:31,359 easyblock.py:1242 INFO Build dir set to /tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0 +== 2026-11-17 04:09:31,359 easyblock.py:1305 INFO Software install dir set to /home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0 +== 2026-11-17 04:09:31,359 easyblock.py:1310 INFO Module install dir set to /home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/modules/all +== 2026-11-17 04:09:31,359 easyblock.py:360 INFO Init completed for application name hello version 2.12.1 +== 2026-11-17 04:09:31,359 easyblock.py:5400 INFO Obtained application instance for hello (easyblock: ConfigureMake) +== 2026-11-17 04:09:31,362 easyblock.py:5681 INFO Dumped easyconfig instance to /home/alice/build-logs/20261117_040928/sapphirerapids/easybuild-logs/hello-2.12.1-GCCcore-14.2.0/reprod_20261117040931_18514/hello-2.12.1-GCCcore-14.2.0.eb +== 2026-11-17 04:09:31,362 easyblock.py:5661 INFO Dumped easyblock configuremake.py required for reproduction to /home/alice/build-logs/20261117_040928/sapphirerapids/easybuild-logs/hello-2.12.1-GCCcore-14.2.0/reprod_20261117040931_18514/easyblocks +== 2026-11-17 04:09:31,363 easyblock.py:5693 INFO Dumped hooks file /cvmfs/software.eessi.io/versions/2025.06/init/easybuild/eb_hooks.py which is (potentially) required for reproduction to /home/alice/build-logs/20261117_040928/sapphirerapids/easybuild-logs/hello-2.12.1-GCCcore-14.2.0/reprod_20261117040931_18514/hooks/eb_hooks.py +== 2026-11-17 04:09:31,364 easyblock.py:2756 INFO Number of iterations to perform for central part of installation procedure: 1 +== 2026-11-17 04:09:31,364 build_log.py:330 INFO building and installing hello/2.12.1-GCCcore-14.2.0... +== 2026-11-17 04:09:31,367 run.py:518 INFO Path to bash that will be used to run shell commands: /cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/bin/bash +== 2026-11-17 04:09:31,367 run.py:532 INFO Running shell command in /tmp/eb-stack-0418d85a/src: + ulimit -u +== 2026-11-17 04:09:31,372 run.py:650 INFO Shell command completed successfully +== 2026-11-17 04:09:31,372 easyblock.py:2792 INFO Setting parallelism: 8 +== 2026-11-17 04:09:31,372 build_log.py:330 INFO fetching files and verifying checksums... +== 2026-11-17 04:09:31,372 easyblock.py:5068 INFO Starting fetch step +== 2026-11-17 04:09:31,374 easyblock.py:5079 INFO Running method fetch_step part of step fetch +== 2026-11-17 04:09:31,374 easyblock.py:2893 WARNING Easyconfig does not specify an EasyBuild-version (key 'easybuild_version')! Assuming the latest version +== 2026-11-17 04:09:31,374 easyblock.py:971 INFO Considering directory in which easyconfig file is located when searching for hello-2.12.1.tar.gz: /home/alice/corpus/cases/link +== 2026-11-17 04:09:31,375 easyblock.py:1013 INFO Found file hello-2.12.1.tar.gz at /home/alice/sources/h/hello/hello-2.12.1.tar.gz +== 2026-11-17 04:09:31,375 easyblock.py:602 INFO Added sources: [{'name': 'hello-2.12.1.tar.gz', 'path': '/home/alice/sources/h/hello/hello-2.12.1.tar.gz', 'cmd': None, 'checksum': {'hello-2.12.1.tar.gz': '8d99142afd92576f30b0cd7cb42a8dc6809998bc5d607d88761f512e26c7db20'}, 'finalpath': '/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0'}] +== 2026-11-17 04:09:31,375 easyblock.py:971 INFO Considering directory in which easyconfig file is located when searching for hello-2.12.1_site-greeting.patch: /home/alice/corpus/cases/link +== 2026-11-17 04:09:31,376 easyblock.py:1013 INFO Found file hello-2.12.1_site-greeting.patch at /home/alice/corpus/cases/link/hello-2.12.1_site-greeting.patch +== 2026-11-17 04:09:31,376 easyblock.py:648 INFO Added patches: [{'name': 'hello-2.12.1_site-greeting.patch', 'postinstall': False, 'path': '/home/alice/corpus/cases/link/hello-2.12.1_site-greeting.patch', 'checksum': {'hello-2.12.1_site-greeting.patch': '40ba38132babec5d88d02340fad6543b62d3fdf535a7715993cd1d08ef41c725'}}] +== 2026-11-17 04:09:31,377 easyblock.py:2965 INFO sha256 checksum for /home/alice/sources/h/hello/hello-2.12.1.tar.gz: 8d99142afd92576f30b0cd7cb42a8dc6809998bc5d607d88761f512e26c7db20 +== 2026-11-17 04:09:31,377 easyblock.py:2965 INFO sha256 checksum for /home/alice/corpus/cases/link/hello-2.12.1_site-greeting.patch: 40ba38132babec5d88d02340fad6543b62d3fdf535a7715993cd1d08ef41c725 +== 2026-11-17 04:09:31,379 easyblock.py:3000 INFO Checking dirs that need to be created: ['/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0', '/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/modules/all/hello', '/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/modules/tools/hello'] +== 2026-11-17 04:09:42,492 filetools.py:928 WARNING IOError occurred while trying to download https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d5d8800c472bc2452eaa16e37af2 to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess: The read operation timed out +== 2026-11-17 04:09:52,504 filetools.py:928 WARNING IOError occurred while trying to download https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d5d8800c472bc2452eaa16e37af2 to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess: +== 2026-11-17 04:10:02,517 filetools.py:928 WARNING IOError occurred while trying to download https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d5d8800c472bc2452eaa16e37af2 to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess: +== 2026-11-17 04:10:03,029 filetools.py:925 WARNING HTTPError occurred while trying to download https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d5d8800c472bc2452eaa16e37af2 to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess: HTTP Error 502: Bad Gateway +== 2026-11-17 04:10:13,042 filetools.py:928 WARNING IOError occurred while trying to download https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d5d8800c472bc2452eaa16e37af2 to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess: +== 2026-11-17 04:10:23,054 filetools.py:928 WARNING IOError occurred while trying to download https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d5d8800c472bc2452eaa16e37af2 to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess: +== 2026-11-17 04:10:23,054 filetools.py:967 WARNING Download of https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d5d8800c472bc2452eaa16e37af2 to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess failed, done trying +== 2026-11-17 04:10:23,055 build_log.py:465 WARNING Failed to download recent config.guess to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess +== 2026-11-17 04:10:23,055 easyblock.py:5079 INFO Running method checksum_step part of step fetch +== 2026-11-17 04:10:23,056 easyblock.py:3022 INFO Checksum verification for /home/alice/sources/h/hello/hello-2.12.1.tar.gz using {'hello-2.12.1.tar.gz': '8d99142afd92576f30b0cd7cb42a8dc6809998bc5d607d88761f512e26c7db20'} passed. +== 2026-11-17 04:10:23,056 easyblock.py:3022 INFO Checksum verification for /home/alice/corpus/cases/link/hello-2.12.1_site-greeting.patch using {'hello-2.12.1_site-greeting.patch': '40ba38132babec5d88d02340fad6543b62d3fdf535a7715993cd1d08ef41c725'} passed. +== 2026-11-17 04:10:23,056 build_log.py:330 INFO ... (took 51 secs) +== 2026-11-17 04:10:23,057 build_log.py:330 INFO creating build dir, resetting environment... +== 2026-11-17 04:10:23,057 easyblock.py:5068 INFO Starting ready step +== 2026-11-17 04:10:23,058 easyblock.py:5079 INFO Running method check_readiness_step part of step ready +== 2026-11-17 04:10:23,058 run.py:532 INFO Running command in /tmp/eb-stack-0418d85a/src: + /cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/usr/share/Lmod/libexec/lmod python --terse list +== 2026-11-17 04:10:23,115 run.py:650 INFO Command completed successfully +== 2026-11-17 04:10:23,115 easyblock.py:2842 WARNING Loaded modules detected: ['EasyBuild/5.4.2', 'EESSI-extend/2025.06-easybuild'] +== 2026-11-17 04:10:23,116 easyblock.py:5079 INFO Running method make_builddir part of step ready +== 2026-11-17 04:10:23,116 easyblock.py:1331 INFO Found old directory /tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0 +== 2026-11-17 04:10:23,126 easyblock.py:1354 INFO Removed old directory /tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0 +== 2026-11-17 04:10:23,127 easyblock.py:5079 INFO Running method reset_env part of step ready +== 2026-11-17 04:10:23,127 easyblock.py:5079 INFO Running method handle_iterate_opts part of step ready +== 2026-11-17 04:10:23,128 build_log.py:202 WARNING Deprecated functionality, will no longer work in EasyBuild v6.0: Easyconfig parameter 'parallel' is deprecated, use 'max_parallel' or the parallel property instead.; see https://docs.easybuild.io/deprecated-functionality/ for more information +== 2026-11-17 04:10:23,128 build_log.py:330 INFO ... (took < 1 sec) +== 2026-11-17 04:10:23,128 build_log.py:330 INFO unpacking... +== 2026-11-17 04:10:23,129 easyblock.py:5068 INFO Starting extract step +== 2026-11-17 04:10:23,129 easyblock.py:5079 INFO Running method extract_step part of step extract +== 2026-11-17 04:10:23,129 easyblock.py:3152 INFO Unpacking source hello-2.12.1.tar.gz +== 2026-11-17 04:10:23,134 run.py:492 INFO run_shell_cmd: Script to start debug shell for shell command 'tar ...' + will be saved to /tmp/alice/easybuild/eb-w7p_7909/run-shell-cmd-output/tar-sn58uqt2/cmd.sh + output will be logged to /tmp/alice/easybuild/eb-w7p_7909/run-shell-cmd-output/tar-sn58uqt2/out.txt +== 2026-11-17 04:10:23,136 run.py:518 INFO Path to bash that will be used to run shell commands: /cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/bin/bash +== 2026-11-17 04:10:23,136 run.py:532 INFO Running shell command in /tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0: + tar xzf /home/alice/sources/h/hello/hello-2.12.1.tar.gz +== 2026-11-17 04:10:23,159 run.py:650 INFO Shell command completed successfully +== 2026-11-17 04:10:23,159 build_log.py:330 INFO ... (took < 1 sec) +== 2026-11-17 04:10:23,160 build_log.py:330 INFO patching... +== 2026-11-17 04:10:23,160 easyblock.py:5068 INFO Starting patch step +== 2026-11-17 04:10:23,160 easyblock.py:5079 INFO Running method patch_step part of step patch +== 2026-11-17 04:10:23,161 easyblock.py:3170 INFO Applying patch hello-2.12.1_site-greeting.patch +== 2026-11-17 04:10:23,165 run.py:492 INFO run_shell_cmd: Script to start debug shell for shell command 'patch ...' + will be saved to /tmp/alice/easybuild/eb-w7p_7909/run-shell-cmd-output/patch-r0vaxe37/cmd.sh + output will be logged to /tmp/alice/easybuild/eb-w7p_7909/run-shell-cmd-output/patch-r0vaxe37/out.txt +== 2026-11-17 04:10:23,166 run.py:518 INFO Path to bash that will be used to run shell commands: /cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/bin/bash +== 2026-11-17 04:10:23,166 run.py:532 INFO Running shell command in /tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1: + patch -p1 -i /home/alice/corpus/cases/link/hello-2.12.1_site-greeting.patch +== 2026-11-17 04:10:23,170 run.py:650 INFO Shell command completed successfully +== 2026-11-17 04:10:23,170 build_log.py:330 INFO ... (took < 1 sec) +== 2026-11-17 04:10:23,170 build_log.py:330 INFO preparing... +== 2026-11-17 04:10:23,171 easyblock.py:5068 INFO Starting prepare step +== 2026-11-17 04:10:23,172 easyblock.py:5079 INFO Running method prepare_step part of step prepare +== 2026-11-17 04:10:23,173 run.py:532 INFO Running command in /tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1: + /cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/usr/share/Lmod/libexec/lmod python show GCCcore/14.2.0 +== 2026-11-17 04:10:23,412 run.py:650 INFO Command completed successfully +== 2026-11-17 04:10:23,413 run.py:532 INFO Running command in /tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1: + /cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/usr/share/Lmod/libexec/lmod python load GCCcore/14.2.0 +== 2026-11-17 04:10:23,637 run.py:650 INFO Command completed successfully +== 2026-11-17 04:10:23,654 easyblock.py:2653 INFO Using /tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1 as start dir +== 2026-11-17 04:10:23,654 build_log.py:330 INFO ... (took < 1 sec) +== 2026-11-17 04:10:23,655 build_log.py:330 INFO configuring... +== 2026-11-17 04:10:23,655 easyblock.py:5068 INFO Starting configure step +== 2026-11-17 04:10:23,693 easyblock.py:5079 INFO Running method configure_step part of step configure +== 2026-11-17 04:10:33,714 filetools.py:928 WARNING IOError occurred while trying to download https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d5d8800c472bc2452eaa16e37af2 to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess: +== 2026-11-17 04:10:43,730 filetools.py:928 WARNING IOError occurred while trying to download https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d5d8800c472bc2452eaa16e37af2 to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess: +== 2026-11-17 04:10:53,744 filetools.py:928 WARNING IOError occurred while trying to download https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d5d8800c472bc2452eaa16e37af2 to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess: +== 2026-11-17 04:11:03,754 filetools.py:928 WARNING IOError occurred while trying to download https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d5d8800c472bc2452eaa16e37af2 to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess: +== 2026-11-17 04:11:13,766 filetools.py:928 WARNING IOError occurred while trying to download https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d5d8800c472bc2452eaa16e37af2 to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess: +== 2026-11-17 04:11:23,779 filetools.py:928 WARNING IOError occurred while trying to download https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d5d8800c472bc2452eaa16e37af2 to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess: +== 2026-11-17 04:11:23,779 filetools.py:967 WARNING Download of https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d5d8800c472bc2452eaa16e37af2 to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess failed, done trying +== 2026-11-17 04:11:23,780 build_log.py:465 WARNING Failed to download recent config.guess to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess +== 2026-11-17 04:11:23,790 run.py:492 INFO run_shell_cmd: Script to start debug shell for shell command './configure ...' + will be saved to /tmp/alice/easybuild/eb-w7p_7909/run-shell-cmd-output/configure-4op69kv8/cmd.sh + output will be logged to /tmp/alice/easybuild/eb-w7p_7909/run-shell-cmd-output/configure-4op69kv8/out.txt +== 2026-11-17 04:11:23,792 run.py:518 INFO Path to bash that will be used to run shell commands: /cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/bin/bash +== 2026-11-17 04:11:23,792 run.py:532 INFO Running shell command in /tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1: + ./configure --prefix=/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0 +== 2026-11-17 04:11:59,127 run.py:650 INFO Shell command completed successfully +== 2026-11-17 04:11:59,128 build_log.py:330 INFO ... (took 1 min 35 secs) +== 2026-11-17 04:11:59,128 build_log.py:330 INFO building... +== 2026-11-17 04:11:59,128 easyblock.py:5068 INFO Starting build step +== 2026-11-17 04:11:59,129 easyblock.py:5079 INFO Running method build_step part of step build +== 2026-11-17 04:11:59,133 run.py:492 INFO run_shell_cmd: Script to start debug shell for shell command 'make ...' + will be saved to /tmp/alice/easybuild/eb-w7p_7909/run-shell-cmd-output/make-680alam3/cmd.sh + output will be logged to /tmp/alice/easybuild/eb-w7p_7909/run-shell-cmd-output/make-680alam3/out.txt +== 2026-11-17 04:11:59,135 run.py:518 INFO Path to bash that will be used to run shell commands: /cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/bin/bash +== 2026-11-17 04:11:59,135 run.py:532 INFO Running shell command in /tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1: + make -j 8 +== 2026-11-17 04:12:01,537 run.py:652 WARNING Shell command FAILED (exit code 2) +Output (stdout + stderr): +rm -f lib/alloca.h-t lib/alloca.h && \ +{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + sed -e 's|@''HAVE_ALLOCA_H''@|1|g' < ./lib/alloca.in.h; \ +} > lib/alloca.h-t && \ +mv -f lib/alloca.h-t lib/alloca.h +rm -f lib/configmake.h-t && \ +{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + echo '#if HAVE_WINSOCK2_H'; \ + echo '# include /* avoid mingw pollution on DATADIR */'; \ +make[2]: Leaving directory '/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1/po' +make[2]: Entering directory '/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1' +depbase=`echo src/hello.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT src/hello.o -MD -MP -MF $depbase.Tpo -c -o src/hello.o src/hello.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/basename-lgpl.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/basename-lgpl.o -MD -MP -MF $depbase.Tpo -c -o lib/basename-lgpl.o lib/basename-lgpl.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/c-ctype.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/c-ctype.o -MD -MP -MF $depbase.Tpo -c -o lib/c-ctype.o lib/c-ctype.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/c-strcasecmp.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/c-strcasecmp.o -MD -MP -MF $depbase.Tpo -c -o lib/c-strcasecmp.o lib/c-strcasecmp.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/c-strncasecmp.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/c-strncasecmp.o -MD -MP -MF $depbase.Tpo -c -o lib/c-strncasecmp.o lib/c-strncasecmp.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/cloexec.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/cloexec.o -MD -MP -MF $depbase.Tpo -c -o lib/cloexec.o lib/cloexec.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/close-stream.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/close-stream.o -MD -MP -MF $depbase.Tpo -c -o lib/close-stream.o lib/close-stream.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/closeout.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/closeout.o -MD -MP -MF $depbase.Tpo -c -o lib/closeout.o lib/closeout.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/dirname.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/dirname.o -MD -MP -MF $depbase.Tpo -c -o lib/dirname.o lib/dirname.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/basename.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/basename.o -MD -MP -MF $depbase.Tpo -c -o lib/basename.o lib/basename.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/dirname-lgpl.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/dirname-lgpl.o -MD -MP -MF $depbase.Tpo -c -o lib/dirname-lgpl.o lib/dirname-lgpl.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/stripslash.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/stripslash.o -MD -MP -MF $depbase.Tpo -c -o lib/stripslash.o lib/stripslash.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/exitfail.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/exitfail.o -MD -MP -MF $depbase.Tpo -c -o lib/exitfail.o lib/exitfail.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/fd-hook.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/fd-hook.o -MD -MP -MF $depbase.Tpo -c -o lib/fd-hook.o lib/fd-hook.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/getprogname.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/getprogname.o -MD -MP -MF $depbase.Tpo -c -o lib/getprogname.o lib/getprogname.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/hard-locale.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/hard-locale.o -MD -MP -MF $depbase.Tpo -c -o lib/hard-locale.o lib/hard-locale.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/localcharset.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/localcharset.o -MD -MP -MF $depbase.Tpo -c -o lib/localcharset.o lib/localcharset.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/malloca.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/malloca.o -MD -MP -MF $depbase.Tpo -c -o lib/malloca.o lib/malloca.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/mbchar.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/mbchar.o -MD -MP -MF $depbase.Tpo -c -o lib/mbchar.o lib/mbchar.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/mbiter.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/mbiter.o -MD -MP -MF $depbase.Tpo -c -o lib/mbiter.o lib/mbiter.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/mbslen.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/mbslen.o -MD -MP -MF $depbase.Tpo -c -o lib/mbslen.o lib/mbslen.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/mbsstr.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/mbsstr.o -MD -MP -MF $depbase.Tpo -c -o lib/mbsstr.o lib/mbsstr.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/mbuiter.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/mbuiter.o -MD -MP -MF $depbase.Tpo -c -o lib/mbuiter.o lib/mbuiter.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/progname.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/progname.o -MD -MP -MF $depbase.Tpo -c -o lib/progname.o lib/progname.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/propername.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/propername.o -MD -MP -MF $depbase.Tpo -c -o lib/propername.o lib/propername.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/quotearg.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/quotearg.o -MD -MP -MF $depbase.Tpo -c -o lib/quotearg.o lib/quotearg.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/setlocale_null.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/setlocale_null.o -MD -MP -MF $depbase.Tpo -c -o lib/setlocale_null.o lib/setlocale_null.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/stat-time.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/stat-time.o -MD -MP -MF $depbase.Tpo -c -o lib/stat-time.o lib/stat-time.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/striconv.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/striconv.o -MD -MP -MF $depbase.Tpo -c -o lib/striconv.o lib/striconv.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/strnlen1.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/strnlen1.o -MD -MP -MF $depbase.Tpo -c -o lib/strnlen1.o lib/strnlen1.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/trim.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/trim.o -MD -MP -MF $depbase.Tpo -c -o lib/trim.o lib/trim.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/unistd.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/unistd.o -MD -MP -MF $depbase.Tpo -c -o lib/unistd.o lib/unistd.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/unistr/u8-mbtoucr.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/unistr/u8-mbtoucr.o -MD -MP -MF $depbase.Tpo -c -o lib/unistr/u8-mbtoucr.o lib/unistr/u8-mbtoucr.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/unistr/u8-uctomb.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/unistr/u8-uctomb.o -MD -MP -MF $depbase.Tpo -c -o lib/unistr/u8-uctomb.o lib/unistr/u8-uctomb.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/unistr/u8-uctomb-aux.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/unistr/u8-uctomb-aux.o -MD -MP -MF $depbase.Tpo -c -o lib/unistr/u8-uctomb-aux.o lib/unistr/u8-uctomb-aux.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/uniwidth/width.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/uniwidth/width.o -MD -MP -MF $depbase.Tpo -c -o lib/uniwidth/width.o lib/uniwidth/width.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/version-etc.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/version-etc.o -MD -MP -MF $depbase.Tpo -c -o lib/version-etc.o lib/version-etc.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/version-etc-fsf.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/version-etc-fsf.o -MD -MP -MF $depbase.Tpo -c -o lib/version-etc-fsf.o lib/version-etc-fsf.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/wctype-h.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/wctype-h.o -MD -MP -MF $depbase.Tpo -c -o lib/wctype-h.o lib/wctype-h.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/xmalloc.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/xmalloc.o -MD -MP -MF $depbase.Tpo -c -o lib/xmalloc.o lib/xmalloc.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/xalloc-die.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/xalloc-die.o -MD -MP -MF $depbase.Tpo -c -o lib/xalloc-die.o lib/xalloc-die.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/xstriconv.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/xstriconv.o -MD -MP -MF $depbase.Tpo -c -o lib/xstriconv.o lib/xstriconv.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/xstrndup.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/xstrndup.o -MD -MP -MF $depbase.Tpo -c -o lib/xstrndup.o lib/xstrndup.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/fcntl.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/fcntl.o -MD -MP -MF $depbase.Tpo -c -o lib/fcntl.o lib/fcntl.c &&\ +mv -f $depbase.Tpo $depbase.Po +depbase=`echo lib/mbrtowc.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ +gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/mbrtowc.o -MD -MP -MF $depbase.Tpo -c -o lib/mbrtowc.o lib/mbrtowc.c &&\ +mv -f $depbase.Tpo $depbase.Po +rm -f lib/libhello.a +ar cr lib/libhello.a lib/basename-lgpl.o lib/c-ctype.o lib/c-strcasecmp.o lib/c-strncasecmp.o lib/cloexec.o lib/close-stream.o lib/closeout.o lib/dirname.o lib/basename.o lib/dirname-lgpl.o lib/stripslash.o lib/exitfail.o lib/fd-hook.o lib/getprogname.o lib/hard-locale.o lib/localcharset.o lib/malloca.o lib/mbchar.o lib/mbiter.o lib/mbslen.o lib/mbsstr.o lib/mbuiter.o lib/progname.o lib/propername.o lib/quotearg.o lib/setlocale_null.o lib/stat-time.o lib/striconv.o lib/strnlen1.o lib/trim.o lib/unistd.o lib/unistr/u8-mbtoucr.o lib/unistr/u8-uctomb.o lib/unistr/u8-uctomb-aux.o lib/uniwidth/width.o lib/version-etc.o lib/version-etc-fsf.o lib/wctype-h.o lib/xmalloc.o lib/xalloc-die.o lib/xstriconv.o lib/xstrndup.o lib/fcntl.o lib/mbrtowc.o +ranlib lib/libhello.a +gcc -O2 -ftree-vectorize -march=native -fno-math-errno -L/cvmfs/software.eessi.io/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/GCCcore/14.2.0/lib64 -L/cvmfs/software.eessi.io/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/GCCcore/14.2.0/lib -o hello src/hello.o ./lib/libhello.a -lm -lpthread +/cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/usr/bin/ld: src/hello.o: in function `main': +hello.c:(.text.startup+0x4a): undefined reference to `site_greeting' +collect2: error: ld returned 1 exit status +make[2]: *** [Makefile:2173: hello] Error 1 +make[2]: Leaving directory '/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1' +make[1]: *** [Makefile:2496: all-recursive] Error 1 +make[1]: Leaving directory '/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1' +make: *** [Makefile:1899: all] Error 2 + +== 2026-11-17 04:12:01,605 easyblock.py:5261 WARNING shell command 'make -j 8' failed with exit code 2 in build step for hello-2.12.1-GCCcore-14.2.0.eb +== 2026-11-17 04:12:01,612 build_log.py:233 ERROR EasyBuild encountered an error: shell command 'make ...' failed with exit code 2 in build step for hello-2.12.1-GCCcore-14.2.0.eb (at easybuild/framework/easyblock.py:5266 in run_all_steps) +Callstack: + easybuild/framework/easyblock.py:5266 in run_all_steps + easybuild/framework/easyblock.py:5444 in build_and_install_one + easybuild/main.py:184 in build_and_install_software + easybuild/main.py:632 in process_eb_args + easybuild/main.py:816 in main + easybuild/main.py:874 in main_with_hooks + easybuild/main.py:893 in +== 2026-11-17 04:12:01,612 build_log.py:330 INFO ... (took 2 secs) +== 2026-11-17 04:12:01,613 easyblock.py:410 INFO Closing log for application name hello version 2.12.1 +== 2026-11-17 04:12:01,613 build_log.py:330 INFO FAILED: Installation ended unsuccessfully: shell command 'make ...' failed with exit code 2 in build step for hello-2.12.1-GCCcore-14.2.0.eb (took 2 mins 30 secs) +== 2026-11-17 04:12:01,615 build_log.py:330 INFO Results of the build can be found in the log file(s) /home/alice/build-logs/20261117_040928/sapphirerapids/easybuild-logs/hello-2.12.1-GCCcore-14.2.0/easybuild-hello-2.12.1-20261117.040931.HVCIo.log +== 2026-11-17 04:12:01,619 build_log.py:233 ERROR EasyBuild encountered an error: shell command 'make ...' failed with exit code 2 in build step for hello-2.12.1-GCCcore-14.2.0.eb (at easybuild/main.py:187 in build_and_install_software) +Callstack: + easybuild/main.py:187 in build_and_install_software + easybuild/main.py:632 in process_eb_args + easybuild/main.py:816 in main + easybuild/main.py:874 in main_with_hooks + easybuild/main.py:893 in +== 2026-11-17 04:12:01,623 build_log.py:330 INFO Summary: + * [FAILED] hello/2.12.1-GCCcore-14.2.0 +== 2026-11-17 04:12:01,627 build_log.py:233 ERROR EasyBuild encountered an error: Installation of hello-2.12.1-GCCcore-14.2.0.eb failed: shell command 'make ...' failed with exit code 2 in build step for hello-2.12.1-GCCcore-14.2.0.eb (at easybuild/main.py:231 in build_and_install_software) +Callstack: + easybuild/main.py:231 in build_and_install_software + easybuild/main.py:632 in process_eb_args + easybuild/main.py:816 in main + easybuild/main.py:874 in main_with_hooks + easybuild/main.py:893 in diff --git a/tests/fixtures/build-logs/20261117_040928/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.keep-logs.log b/tests/fixtures/build-logs/20261117_040928/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.keep-logs.log new file mode 100644 index 0000000..ff35b62 --- /dev/null +++ b/tests/fixtures/build-logs/20261117_040928/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.keep-logs.log @@ -0,0 +1,2 @@ +Failed build log: /home/alice/build-logs/20261117_040928/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.failed.ebout.log +Failed command output: /home/alice/build-logs/20261117_040928/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.failed.command-out.txt diff --git a/tests/fixtures/build-logs/20261117_040928/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.stdout.log b/tests/fixtures/build-logs/20261117_040928/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.stdout.log new file mode 100644 index 0000000..2f383a1 --- /dev/null +++ b/tests/fixtures/build-logs/20261117_040928/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.stdout.log @@ -0,0 +1,174 @@ +== Temporary log file in case of crash /home/alice/build-logs/20261117_040928/sapphirerapids/easybuild-logs/hello-2.12.1-GCCcore-14.2.0/easybuild-3i95wvlv.log +== found valid index for +/cvmfs/software.eessi.io/versions/2025.06/software/linux/x86_64/intel/sapphirera +pids/software/EasyBuild/5.4.2/easybuild/easyconfigs, so using it... +== Running parse hook for hello-2.12.1-GCCcore-14.2.0.eb... +== found valid index for +/cvmfs/software.eessi.io/versions/2025.06/software/linux/x86_64/intel/sapphirera +pids/software/EasyBuild/5.4.2/easybuild/easyconfigs, so using it... +== Running parse hook for GCCcore-14.2.0.eb... +== resolving dependencies ... +== Running pre_build_and_install_loop hook... +== Running parse hook for foss-2024a.eb... +== Running parse hook for GCC-13.3.0.eb... +== Running parse hook for OpenMPI-5.0.3-GCC-13.3.0.eb... +== Running parse hook for GCC-13.3.0.eb... +== Running parse hook for GCCcore-13.3.0.eb... +== Running parse hook for M4-1.4.19.eb... +== Running parse hook for FlexiBLAS-3.4.4-GCC-13.3.0.eb... +== Running parse hook for FFTW-3.3.10-GCC-13.3.0.eb... +== Running parse hook for FFTW.MPI-3.3.10-gompi-2024a.eb... +== Running parse hook for gompi-2024a.eb... +== Running parse hook for gompi-2024a.eb... +== Running parse hook for ScaLAPACK-2.2.0-gompi-2024a-fb.eb... +== Running parse hook for gfbf-2024a.eb... +== Running parse hook for foss-2025a.eb... +== Running parse hook for GCC-14.2.0.eb... +== Running parse hook for OpenMPI-5.0.7-GCC-14.2.0.eb... +== Running parse hook for GCC-14.2.0.eb... +== Running parse hook for GCCcore-14.2.0.eb... +== Running parse hook for FlexiBLAS-3.4.5-GCC-14.2.0.eb... +== Running parse hook for FFTW-3.3.10-GCC-14.2.0.eb... +== Running parse hook for FFTW.MPI-3.3.10-gompi-2025a.eb... +== Running parse hook for gompi-2025a.eb... +== Running parse hook for gompi-2025a.eb... +== Running parse hook for ScaLAPACK-2.2.2-gompi-2025a-fb.eb... +== Running parse hook for gfbf-2025a.eb... +== Running parse hook for foss-2025b.eb... +== Running parse hook for GCC-14.3.0.eb... +== Running parse hook for OpenMPI-5.0.8-GCC-14.3.0.eb... +== Running parse hook for GCC-14.3.0.eb... +== Running parse hook for GCCcore-14.3.0.eb... +== Running parse hook for M4-1.4.20.eb... +== Running parse hook for FlexiBLAS-3.4.5-GCC-14.3.0.eb... +== Running parse hook for FFTW-3.3.10-GCC-14.3.0.eb... +== Running parse hook for FFTW.MPI-3.3.10-gompi-2025b.eb... +== Running parse hook for gompi-2025b.eb... +== Running parse hook for gompi-2025b.eb... +== Running parse hook for ScaLAPACK-2.2.2-gompi-2025b-fb.eb... +== Running parse hook for gfbf-2025b.eb... +== Running parse hook for lfoss-2025b.eb... +== Running parse hook for llvm-compilers-20.1.8.eb... +== Running parse hook for OpenMPI-5.0.8-llvm-compilers-20.1.8.eb... +== Running parse hook for llvm-compilers-20.1.8.eb... +== Running parse hook for LLVM-20.1.8-GCCcore-14.3.0.eb... +== Running parse hook for GCCcore-14.3.0.eb... +== Running parse hook for FlexiBLAS-3.4.5-llvm-compilers-20.1.8.eb... +== Running parse hook for FFTW-3.3.10-llvm-compilers-20.1.8.eb... +== Running parse hook for FFTW.MPI-3.3.10-lompi-2025b.eb... +== Running parse hook for lompi-2025b.eb... +== Running parse hook for lompi-2025b.eb... +== Running parse hook for ScaLAPACK-2.2.2-lompi-2025b-fb.eb... +== Running parse hook for lfbf-2025b.eb... +== Running parse hook for rompi-2025a.eb... +== Running parse hook for rocm-compilers-19.0.0-ROCm-6.4.1.eb... +== Running parse hook for OpenMPI-5.0.7-rocm-compilers-19.0.0-ROCm-6.4.1.eb... +== Running parse hook for rocm-compilers-19.0.0-ROCm-6.4.1.eb... +== Running parse hook for ROCm-LLVM-19.0.0-GCCcore-14.2.0-ROCm-6.4.1.eb... +== processing EasyBuild easyconfig +/home/alice/corpus/cases/link/hello-2.12.1-GCCcore-14.2.0.eb +== building and installing hello/2.12.1-GCCcore-14.2.0... + >> installation prefix: +/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/so +ftware/hello/2.12.1-GCCcore-14.2.0 +== fetching files and verifying checksums... +== Running pre-fetch hook... + >> sources: + >> /home/alice/sources/h/hello/hello-2.12.1.tar.gz [SHA256: +8d99142afd92576f30b0cd7cb42a8dc6809998bc5d607d88761f512e26c7db20] + >> patches: + >> /home/alice/corpus/cases/link/hello-2.12.1_site-greeting.patch [SHA256: +40ba38132babec5d88d02340fad6543b62d3fdf535a7715993cd1d08ef41c725] + +WARNING: Failed to download recent config.guess to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess + + >> download failed: +https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d +5d8800c472bc2452eaa16e37af2 +== ... (took 51 secs) +== creating build dir, resetting environment... + >> build dir: /tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0 + +WARNING: Deprecated functionality, will no longer work in EasyBuild v6.0: Easyconfig parameter 'parallel' is deprecated, use 'max_parallel' or the parallel property instead.; see https://docs.easybuild.io/deprecated-functionality/ for more information + +== Running post-ready hook... +== ... (took < 1 sec) +== unpacking... + >> running shell command: + tar xzf /home/alice/sources/h/hello/hello-2.12.1.tar.gz + [started at: 2026-11-17 04:10:23] + [working dir: /tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0] + [output and state saved to +/tmp/alice/easybuild/eb-w7p_7909/run-shell-cmd-output/tar-sn58uqt2] + >> command completed: exit 0, ran in < 1s +== ... (took < 1 sec) +== patching... + >> applying patch hello-2.12.1_site-greeting.patch +== ... (took < 1 sec) +== preparing... +== Running pre-prepare hook... + >> loading toolchain module: GCCcore/14.2.0 + >> defining build environment for GCCcore/14.2.0 toolchain +== Running post-prepare hook... +== ... (took < 1 sec) +== configuring... +== Running pre-configure hook... + +WARNING: Failed to download recent config.guess to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess + + +WARNING: No config.guess available, not setting '--build' option for configure step +EasyBuild attempts to download a recent config.guess but seems to have failed! + + >> download failed: +https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d +5d8800c472bc2452eaa16e37af2 + >> running shell command: + ./configure +--prefix=/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphire +rapids/software/hello/2.12.1-GCCcore-14.2.0 + [started at: 2026-11-17 04:11:23] + [working dir: +/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1] + [output and state saved to +/tmp/alice/easybuild/eb-w7p_7909/run-shell-cmd-output/configure-4op69kv8] + >> command completed: exit 0, ran in 00h00m35s +== ... (took 1 min 35 secs) +== building... + + +ERROR: Shell command failed! + full command -> make -j 8 + exit code -> 2 + called from -> 'build_step' function in +/cvmfs/software.eessi.io/versions/2025.06/software/linux/x86_64/intel/sapphirera +pids/software/EasyBuild/5.4.2/lib/python3.13/site-packages/easybuild/easyblocks/ +generic/configuremake.py (line 382) + working directory -> +/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1 + output (stdout + stderr) -> +/tmp/alice/easybuild/eb-w7p_7909/run-shell-cmd-output/make-680alam3/out.txt + interactive shell script -> +/tmp/alice/easybuild/eb-w7p_7909/run-shell-cmd-output/make-680alam3/cmd.sh + + >> running shell command: + make -j 8 + [started at: 2026-11-17 04:11:59] + [working dir: +/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1] + [output and state saved to +/tmp/alice/easybuild/eb-w7p_7909/run-shell-cmd-output/make-680alam3] +== ... (took 2 secs) +== FAILED: Installation ended unsuccessfully: shell command 'make ...' failed +with exit code 2 in build step for hello-2.12.1-GCCcore-14.2.0.eb (took 2 mins +30 secs) +== Results of the build can be found in the log file(s) +/home/alice/build-logs/20261117_040928/sapphirerapids/easybuild-logs/hello-2.12. +1-GCCcore-14.2.0/easybuild-hello-2.12.1-20261117.040931.HVCIo.log +== Running post-easyblock hook... +== Summary: + * [FAILED] hello/2.12.1-GCCcore-14.2.0 + + +ERROR: Installation of hello-2.12.1-GCCcore-14.2.0.eb failed: shell command 'make ...' failed with exit code 2 in build step for hello-2.12.1-GCCcore-14.2.0.eb + diff --git a/tests/fixtures/build-logs/20261117_041222/generic/hello-2.12.1-GCCcore-14.2.0.stdout.log b/tests/fixtures/build-logs/20261117_041222/generic/hello-2.12.1-GCCcore-14.2.0.stdout.log new file mode 100644 index 0000000..32731a7 --- /dev/null +++ b/tests/fixtures/build-logs/20261117_041222/generic/hello-2.12.1-GCCcore-14.2.0.stdout.log @@ -0,0 +1,213 @@ +== Temporary log file in case of crash /home/alice/build-logs/20261117_041222/generic/easybuild-logs/hello-2.12.1-GCCcore-14.2.0/easybuild-71z9yg0n.log +== found valid index for +/cvmfs/software.eessi.io/versions/2025.06/software/linux/x86_64/generic/software +/EasyBuild/5.4.2/easybuild/easyconfigs, so using it... +== Running parse hook for hello-2.12.1-GCCcore-14.2.0.eb... +== found valid index for +/cvmfs/software.eessi.io/versions/2025.06/software/linux/x86_64/generic/software +/EasyBuild/5.4.2/easybuild/easyconfigs, so using it... +== Running parse hook for GCCcore-14.2.0.eb... +== resolving dependencies ... +== Running pre_build_and_install_loop hook... +== Running parse hook for foss-2024a.eb... +== Running parse hook for GCC-13.3.0.eb... +== Running parse hook for OpenMPI-5.0.3-GCC-13.3.0.eb... +== Running parse hook for GCC-13.3.0.eb... +== Running parse hook for GCCcore-13.3.0.eb... +== Running parse hook for M4-1.4.19.eb... +== Running parse hook for FlexiBLAS-3.4.4-GCC-13.3.0.eb... +== Running parse hook for FFTW-3.3.10-GCC-13.3.0.eb... +== Running parse hook for FFTW.MPI-3.3.10-gompi-2024a.eb... +== Running parse hook for gompi-2024a.eb... +== Running parse hook for gompi-2024a.eb... +== Running parse hook for ScaLAPACK-2.2.0-gompi-2024a-fb.eb... +== Running parse hook for gfbf-2024a.eb... +== Running parse hook for foss-2025a.eb... +== Running parse hook for GCC-14.2.0.eb... +== Running parse hook for OpenMPI-5.0.7-GCC-14.2.0.eb... +== Running parse hook for GCC-14.2.0.eb... +== Running parse hook for GCCcore-14.2.0.eb... +== Running parse hook for FlexiBLAS-3.4.5-GCC-14.2.0.eb... +== Running parse hook for FFTW-3.3.10-GCC-14.2.0.eb... +== Running parse hook for FFTW.MPI-3.3.10-gompi-2025a.eb... +== Running parse hook for gompi-2025a.eb... +== Running parse hook for gompi-2025a.eb... +== Running parse hook for ScaLAPACK-2.2.2-gompi-2025a-fb.eb... +== Running parse hook for gfbf-2025a.eb... +== Running parse hook for foss-2025b.eb... +== Running parse hook for GCC-14.3.0.eb... +== Running parse hook for OpenMPI-5.0.8-GCC-14.3.0.eb... +== Running parse hook for GCC-14.3.0.eb... +== Running parse hook for GCCcore-14.3.0.eb... +== Running parse hook for M4-1.4.20.eb... +== Running parse hook for FlexiBLAS-3.4.5-GCC-14.3.0.eb... +== Running parse hook for FFTW-3.3.10-GCC-14.3.0.eb... +== Running parse hook for FFTW.MPI-3.3.10-gompi-2025b.eb... +== Running parse hook for gompi-2025b.eb... +== Running parse hook for gompi-2025b.eb... +== Running parse hook for ScaLAPACK-2.2.2-gompi-2025b-fb.eb... +== Running parse hook for gfbf-2025b.eb... +== Running parse hook for lfoss-2025b.eb... +== Running parse hook for llvm-compilers-20.1.8.eb... +== Running parse hook for OpenMPI-5.0.8-llvm-compilers-20.1.8.eb... +== Running parse hook for llvm-compilers-20.1.8.eb... +== Running parse hook for LLVM-20.1.8-GCCcore-14.3.0.eb... +== Running parse hook for GCCcore-14.3.0.eb... +== Running parse hook for FlexiBLAS-3.4.5-llvm-compilers-20.1.8.eb... +== Running parse hook for FFTW-3.3.10-llvm-compilers-20.1.8.eb... +== Running parse hook for FFTW.MPI-3.3.10-lompi-2025b.eb... +== Running parse hook for lompi-2025b.eb... +== Running parse hook for lompi-2025b.eb... +== Running parse hook for ScaLAPACK-2.2.2-lompi-2025b-fb.eb... +== Running parse hook for lfbf-2025b.eb... +== Running parse hook for rompi-2025a.eb... +== Running parse hook for rocm-compilers-19.0.0-ROCm-6.4.1.eb... +== Running parse hook for OpenMPI-5.0.7-rocm-compilers-19.0.0-ROCm-6.4.1.eb... +== Running parse hook for rocm-compilers-19.0.0-ROCm-6.4.1.eb... +== Running parse hook for ROCm-LLVM-19.0.0-GCCcore-14.2.0-ROCm-6.4.1.eb... +== processing EasyBuild easyconfig +/home/alice/corpus/cases/pass/hello-2.12.1-GCCcore-14.2.0.eb +== building and installing hello/2.12.1-GCCcore-14.2.0... + >> installation prefix: +/home/alice/eessi/versions/2025.06/software/linux/x86_64/generic/software/hello/ +2.12.1-GCCcore-14.2.0 +== fetching files and verifying checksums... +== Running pre-fetch hook... + >> sources: + >> /home/alice/sources/h/hello/hello-2.12.1.tar.gz [SHA256: +8d99142afd92576f30b0cd7cb42a8dc6809998bc5d607d88761f512e26c7db20] + +WARNING: Failed to download recent config.guess to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess + + >> download failed: +https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d +5d8800c472bc2452eaa16e37af2 +== ... (took 1 min 0 secs) +== creating build dir, resetting environment... + >> build dir: /tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0 + +WARNING: Deprecated functionality, will no longer work in EasyBuild v6.0: Easyconfig parameter 'parallel' is deprecated, use 'max_parallel' or the parallel property instead.; see https://docs.easybuild.io/deprecated-functionality/ for more information + +== Running post-ready hook... +== ... (took < 1 sec) +== unpacking... + >> running shell command: + tar xzf /home/alice/sources/h/hello/hello-2.12.1.tar.gz + [started at: 2026-11-17 04:19:29] + [working dir: /tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0] + [output and state saved to +/tmp/alice/easybuild/eb-os_pyuv1/run-shell-cmd-output/tar-nj0aulyu] + >> command completed: exit 0, ran in < 1s +== ... (took < 1 sec) +== patching... +== ... (took < 1 sec) +== preparing... +== Running pre-prepare hook... + >> loading toolchain module: GCCcore/14.2.0 + >> defining build environment for GCCcore/14.2.0 toolchain +== Running post-prepare hook... +== ... (took 1 secs) +== configuring... +== Running pre-configure hook... + +WARNING: Failed to download recent config.guess to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess + + +WARNING: No config.guess available, not setting '--build' option for configure step +EasyBuild attempts to download a recent config.guess but seems to have failed! + + >> download failed: +https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d +5d8800c472bc2452eaa16e37af2 + >> running shell command: + ./configure +--prefix=/home/alice/eessi/versions/2025.06/software/linux/x86_64/generic/softwa +re/hello/2.12.1-GCCcore-14.2.0 + [started at: 2026-11-17 04:20:31] + [working dir: +/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1] + [output and state saved to +/tmp/alice/easybuild/eb-os_pyuv1/run-shell-cmd-output/configure-32hz65uu] + >> command completed: exit 0, ran in 00h00m44s +== ... (took 1 min 45 secs) +== building... + >> running shell command: + make -j 8 + [started at: 2026-11-17 04:21:16] + [working dir: +/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1] + [output and state saved to +/tmp/alice/easybuild/eb-os_pyuv1/run-shell-cmd-output/make-k2jppozg] + >> command completed: exit 0, ran in 00h00m01s +== ... (took 1 secs) +== testing... +== Running pre-test hook... + >> running shell command: + make check + [started at: 2026-11-17 04:21:17] + [working dir: +/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1] + [output and state saved to +/tmp/alice/easybuild/eb-os_pyuv1/run-shell-cmd-output/make-4vtvsm46] + >> command completed: exit 0, ran in < 1s +== ... (took < 1 sec) +== installing... + >> running shell command: + make install + [started at: 2026-11-17 04:21:17] + [working dir: +/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1] + [output and state saved to +/tmp/alice/easybuild/eb-os_pyuv1/run-shell-cmd-output/make-ii6l9m_t] + >> command completed: exit 0, ran in < 1s +== ... (took < 1 sec) +== taking care of extensions... +== ... (took < 1 sec) +== restore after iterating... +== ... (took < 1 sec) +== postprocessing... +== Running post-postproc hook... +== ... (took < 1 sec) +== sanity checking... +== Running pre-sanitycheck hook... + >> file 'bin/hello' found: OK + >> (non-empty) directory 'share/man/man1' found: OK + >> loading modules: hello/2.12.1-GCCcore-14.2.0... + >> running command 'hello --version' ... + >> result for command 'hello --version': OK +== Running post-sanitycheck hook... +== ... (took < 1 sec) +== cleaning up... +== ... (took < 1 sec) +== creating module... +== Running pre-module hook... + >> generating module file @ +/home/alice/eessi/versions/2025.06/software/linux/x86_64/generic/modules/all/hel +lo/2.12.1-GCCcore-14.2.0.lua +== Running post-module hook... +== ... (took < 1 sec) +== permissions... +== ... (took < 1 sec) +== packaging... +== ... (took < 1 sec) + >> running shell command: + bzip2 +/home/alice/eessi/versions/2025.06/software/linux/x86_64/generic/software/hello/ +2.12.1-GCCcore-14.2.0/easybuild/easybuild-hello-2.12.1-20261117.042119.log + [started at: 2026-11-17 04:21:19] + [working dir: /tmp/eb-stack-0418d85a/src] + [output and state saved to +/tmp/alice/easybuild/eb-os_pyuv1/run-shell-cmd-output/bzip2-aejtwngg] + >> command completed: exit 0, ran in < 1s +== COMPLETED: Installation ended successfully (took 2 mins 50 secs) +== Results of the build can be found in the log file(s) +/home/alice/eessi/versions/2025.06/software/linux/x86_64/generic/software/hello/ +2.12.1-GCCcore-14.2.0/easybuild/easybuild-hello-2.12.1-20261117.042119.log.bz2 +== Running post-easyblock hook... +== Build succeeded for 1 out of 1 (total: 2 mins 51 secs) +== Summary: + * [SUCCESS] hello/2.12.1-GCCcore-14.2.0 +== Temporary log file(s) +/home/alice/build-logs/20261117_041222/generic/easybuild-logs/hello-2.12.1-GCCco +re-14.2.0/easybuild-71z9yg0n.log* have been removed. +== Temporary directory /tmp/alice/easybuild/eb-os_pyuv1 has been removed. diff --git a/tests/fixtures/build-logs/20261117_041222/sapphirerapids/.licensed-logs b/tests/fixtures/build-logs/20261117_041222/sapphirerapids/.licensed-logs new file mode 100644 index 0000000..5d1b278 --- /dev/null +++ b/tests/fixtures/build-logs/20261117_041222/sapphirerapids/.licensed-logs @@ -0,0 +1,3 @@ +/home/alice/build-logs/20261117_041222/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.failed.ebout.log +/home/alice/build-logs/20261117_041222/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.failed.command-out.txt +/home/alice/build-logs/20261117_041222/sapphirerapids/hello-2.12.1-GCCcore-13.3.0.failed.ebout.log diff --git a/tests/fixtures/build-logs/20261117_041222/sapphirerapids/hello-2.12.1-GCCcore-13.3.0.failed.ebout.log b/tests/fixtures/build-logs/20261117_041222/sapphirerapids/hello-2.12.1-GCCcore-13.3.0.failed.ebout.log new file mode 100644 index 0000000..255e85d --- /dev/null +++ b/tests/fixtures/build-logs/20261117_041222/sapphirerapids/hello-2.12.1-GCCcore-13.3.0.failed.ebout.log @@ -0,0 +1,290 @@ +== 2026-11-17 04:15:01,534 build_log.py:291 INFO This is EasyBuild 5.4.2 (framework: 5.4.2, easyblocks: 5.4.2) on host node1. +== 2026-11-17 04:15:01,534 build_log.py:294 INFO Command line: --allow-loaded-modules='EasyBuild,EESSI-extend' --buildpath='/tmp/alice/easybuild/build' --bwrap-installpath='/tmp/alice/easybuild/bwrap' --containerpath='/tmp/alice/easybuild/containers' --cuda-sanity-check-error-on-failed-checks --debug --experimental --fail-on-mod-files-gcccore --filter-deps='binutils,bzip2,DBus,flex,gettext,gperf,help2man,intltool,libreadline,makeinfo,ncurses,NVPL,ParMETIS,util-linux,XZ,zlib' --filter-env-vars='LD_LIBRARY_PATH' --hooks='/cvmfs/software.eessi.io/versions/2025.06/init/easybuild/eb_hooks.py' --ignore-osdeps --installpath='/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids' --local-var-naming-check='error' --module-search-path-headers='include_paths' --packagepath='/tmp/alice/easybuild/packages' --parallel-extensions-install --prefer-python-search-path='EBPYTHONPREFIXES' --prefix='/tmp/alice/easybuild' --read-only-installdir --repositorypath='/tmp/alice/easybuild/ebfiles_repo' --robot='/cvmfs/software.eessi.io/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/EasyBuild/5.4.2/easybuild/easyconfigs' --sourcepath='/home/alice/sources' --sourcepath-data='/tmp/alice/easybuild/sources' --sticky-bit --strict-rpath-sanity-check --sysroot='/cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64' --tmp-logdir='/home/alice/build-logs/20261117_041222/sapphirerapids/easybuild-logs/hello-2.12.1-GCCcore-13.3.0' --tmpdir='/tmp/alice/easybuild' --umask='077' --zip-logs='bzip2' /home/alice/corpus/cases/sanity/hello-2.12.1-GCCcore-13.3.0.eb +== 2026-11-17 04:15:01,534 build_log.py:296 INFO Using /tmp/alice/easybuild/eb-tcvj0j2o as temporary directory +== 2026-11-17 04:15:01,585 run.py:518 INFO Path to bash that will be used to run shell commands: /cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/bin/bash +== 2026-11-17 04:15:01,585 run.py:532 INFO Running shell command in /tmp/eb-stack-0418d85a/src: + type module +== 2026-11-17 04:15:01,587 run.py:650 INFO Shell command completed successfully +== 2026-11-17 04:15:01,587 run.py:532 INFO Running command in /tmp/eb-stack-0418d85a/src: + /cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/usr/share/Lmod/libexec/lmod python --version +== 2026-11-17 04:15:01,639 run.py:650 INFO Command completed successfully +== 2026-11-17 04:15:01,655 run.py:532 INFO Running command in /tmp/eb-stack-0418d85a/src: + /cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/usr/share/Lmod/libexec/lmod python --terse list +== 2026-11-17 04:15:01,725 run.py:650 INFO Command completed successfully +== 2026-11-17 04:15:02,005 run.py:532 INFO Running command in /tmp/eb-stack-0418d85a/src: + /cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/usr/share/Lmod/libexec/lmod python --terse --show-hidden avail hello/2.12.1-GCCcore-13.3.0 +== 2026-11-17 04:15:02,400 run.py:650 INFO Command completed successfully +== 2026-11-17 04:15:02,401 build_log.py:330 INFO resolving dependencies ... +== 2026-11-17 04:15:02,402 run.py:532 INFO Running command in /tmp/eb-stack-0418d85a/src: + /cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/usr/share/Lmod/libexec/lmod python --terse --show-hidden avail +== 2026-11-17 04:15:02,778 run.py:650 INFO Command completed successfully +== 2026-11-17 04:15:03,673 build_log.py:330 INFO processing EasyBuild easyconfig /home/alice/corpus/cases/sanity/hello-2.12.1-GCCcore-13.3.0.eb +== 2026-11-17 04:15:03,674 easyblock.py:5381 INFO Resetting environment +== 2026-11-17 04:15:03,676 easyblock.py:392 INFO This is EasyBuild 5.4.2 (framework: 5.4.2, easyblocks: 5.4.2) on host node1. +== 2026-11-17 04:15:03,676 easyblock.py:398 INFO This is easyblock ConfigureMake from module easybuild.easyblocks.generic.configuremake (/cvmfs/software.eessi.io/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/EasyBuild/5.4.2/lib/python3.13/site-packages/easybuild/easyblocks/generic/configuremake.py) +== 2026-11-17 04:15:03,676 easyblock.py:1242 INFO Build dir set to /tmp/alice/easybuild/build/hello/2.12.1/GCCcore-13.3.0 +== 2026-11-17 04:15:03,676 easyblock.py:1305 INFO Software install dir set to /home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-13.3.0 +== 2026-11-17 04:15:03,676 easyblock.py:1310 INFO Module install dir set to /home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/modules/all +== 2026-11-17 04:15:03,676 easyblock.py:360 INFO Init completed for application name hello version 2.12.1 +== 2026-11-17 04:15:03,676 easyblock.py:5400 INFO Obtained application instance for hello (easyblock: ConfigureMake) +== 2026-11-17 04:15:03,678 easyblock.py:5681 INFO Dumped easyconfig instance to /home/alice/build-logs/20261117_041222/sapphirerapids/easybuild-logs/hello-2.12.1-GCCcore-13.3.0/reprod_20261117041503_33313/hello-2.12.1-GCCcore-13.3.0.eb +== 2026-11-17 04:15:03,679 easyblock.py:5661 INFO Dumped easyblock configuremake.py required for reproduction to /home/alice/build-logs/20261117_041222/sapphirerapids/easybuild-logs/hello-2.12.1-GCCcore-13.3.0/reprod_20261117041503_33313/easyblocks +== 2026-11-17 04:15:03,680 easyblock.py:5693 INFO Dumped hooks file /cvmfs/software.eessi.io/versions/2025.06/init/easybuild/eb_hooks.py which is (potentially) required for reproduction to /home/alice/build-logs/20261117_041222/sapphirerapids/easybuild-logs/hello-2.12.1-GCCcore-13.3.0/reprod_20261117041503_33313/hooks/eb_hooks.py +== 2026-11-17 04:15:03,680 easyblock.py:2756 INFO Number of iterations to perform for central part of installation procedure: 1 +== 2026-11-17 04:15:03,680 build_log.py:330 INFO building and installing hello/2.12.1-GCCcore-13.3.0... +== 2026-11-17 04:15:03,683 run.py:518 INFO Path to bash that will be used to run shell commands: /cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/bin/bash +== 2026-11-17 04:15:03,683 run.py:532 INFO Running shell command in /tmp/eb-stack-0418d85a/src: + ulimit -u +== 2026-11-17 04:15:03,687 run.py:650 INFO Shell command completed successfully +== 2026-11-17 04:15:03,687 easyblock.py:2792 INFO Setting parallelism: 8 +== 2026-11-17 04:15:03,687 build_log.py:330 INFO fetching files and verifying checksums... +== 2026-11-17 04:15:03,688 easyblock.py:5068 INFO Starting fetch step +== 2026-11-17 04:15:03,689 easyblock.py:5079 INFO Running method fetch_step part of step fetch +== 2026-11-17 04:15:03,689 easyblock.py:2893 WARNING Easyconfig does not specify an EasyBuild-version (key 'easybuild_version')! Assuming the latest version +== 2026-11-17 04:15:03,689 easyblock.py:971 INFO Considering directory in which easyconfig file is located when searching for hello-2.12.1.tar.gz: /home/alice/corpus/cases/sanity +== 2026-11-17 04:15:03,690 easyblock.py:1013 INFO Found file hello-2.12.1.tar.gz at /home/alice/sources/h/hello/hello-2.12.1.tar.gz +== 2026-11-17 04:15:03,690 easyblock.py:602 INFO Added sources: [{'name': 'hello-2.12.1.tar.gz', 'path': '/home/alice/sources/h/hello/hello-2.12.1.tar.gz', 'cmd': None, 'checksum': '8d99142afd92576f30b0cd7cb42a8dc6809998bc5d607d88761f512e26c7db20', 'finalpath': '/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-13.3.0'}] +== 2026-11-17 04:15:03,690 easyblock.py:2956 INFO no patches provided +== 2026-11-17 04:15:03,692 easyblock.py:2965 INFO sha256 checksum for /home/alice/sources/h/hello/hello-2.12.1.tar.gz: 8d99142afd92576f30b0cd7cb42a8dc6809998bc5d607d88761f512e26c7db20 +== 2026-11-17 04:15:03,693 easyblock.py:3000 INFO Checking dirs that need to be created: ['/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-13.3.0', '/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/modules/all/hello', '/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/modules/tools/hello'] +== 2026-11-17 04:15:13,809 filetools.py:928 WARNING IOError occurred while trying to download https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d5d8800c472bc2452eaa16e37af2 to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess: +== 2026-11-17 04:15:23,821 filetools.py:928 WARNING IOError occurred while trying to download https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d5d8800c472bc2452eaa16e37af2 to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess: +== 2026-11-17 04:15:33,833 filetools.py:928 WARNING IOError occurred while trying to download https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d5d8800c472bc2452eaa16e37af2 to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess: +== 2026-11-17 04:15:43,846 filetools.py:928 WARNING IOError occurred while trying to download https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d5d8800c472bc2452eaa16e37af2 to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess: +== 2026-11-17 04:15:53,858 filetools.py:928 WARNING IOError occurred while trying to download https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d5d8800c472bc2452eaa16e37af2 to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess: +== 2026-11-17 04:16:03,871 filetools.py:928 WARNING IOError occurred while trying to download https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d5d8800c472bc2452eaa16e37af2 to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess: +== 2026-11-17 04:16:03,872 filetools.py:967 WARNING Download of https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d5d8800c472bc2452eaa16e37af2 to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess failed, done trying +== 2026-11-17 04:16:03,872 build_log.py:465 WARNING Failed to download recent config.guess to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess +== 2026-11-17 04:16:03,873 easyblock.py:5079 INFO Running method checksum_step part of step fetch +== 2026-11-17 04:16:03,874 easyblock.py:3022 INFO Checksum verification for /home/alice/sources/h/hello/hello-2.12.1.tar.gz using 8d99142afd92576f30b0cd7cb42a8dc6809998bc5d607d88761f512e26c7db20 passed. +== 2026-11-17 04:16:03,874 build_log.py:330 INFO ... (took 1 min 0 secs) +== 2026-11-17 04:16:03,875 build_log.py:330 INFO creating build dir, resetting environment... +== 2026-11-17 04:16:03,875 easyblock.py:5068 INFO Starting ready step +== 2026-11-17 04:16:03,876 easyblock.py:5079 INFO Running method check_readiness_step part of step ready +== 2026-11-17 04:16:03,876 run.py:532 INFO Running command in /tmp/eb-stack-0418d85a/src: + /cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/usr/share/Lmod/libexec/lmod python --terse list +== 2026-11-17 04:16:03,943 run.py:650 INFO Command completed successfully +== 2026-11-17 04:16:03,943 easyblock.py:2842 WARNING Loaded modules detected: ['EasyBuild/5.4.2', 'EESSI-extend/2025.06-easybuild'] +== 2026-11-17 04:16:03,943 easyblock.py:5079 INFO Running method make_builddir part of step ready +== 2026-11-17 04:16:03,944 easyblock.py:5079 INFO Running method reset_env part of step ready +== 2026-11-17 04:16:03,944 easyblock.py:5079 INFO Running method handle_iterate_opts part of step ready +== 2026-11-17 04:16:03,945 build_log.py:202 WARNING Deprecated functionality, will no longer work in EasyBuild v6.0: Easyconfig parameter 'parallel' is deprecated, use 'max_parallel' or the parallel property instead.; see https://docs.easybuild.io/deprecated-functionality/ for more information +== 2026-11-17 04:16:03,945 build_log.py:330 INFO ... (took < 1 sec) +== 2026-11-17 04:16:03,946 build_log.py:330 INFO unpacking... +== 2026-11-17 04:16:03,946 easyblock.py:5068 INFO Starting extract step +== 2026-11-17 04:16:03,946 easyblock.py:5079 INFO Running method extract_step part of step extract +== 2026-11-17 04:16:03,946 easyblock.py:3152 INFO Unpacking source hello-2.12.1.tar.gz +== 2026-11-17 04:16:03,950 run.py:492 INFO run_shell_cmd: Script to start debug shell for shell command 'tar ...' + will be saved to /tmp/alice/easybuild/eb-tcvj0j2o/run-shell-cmd-output/tar-pfliq3_l/cmd.sh + output will be logged to /tmp/alice/easybuild/eb-tcvj0j2o/run-shell-cmd-output/tar-pfliq3_l/out.txt +== 2026-11-17 04:16:03,951 run.py:518 INFO Path to bash that will be used to run shell commands: /cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/bin/bash +== 2026-11-17 04:16:03,951 run.py:532 INFO Running shell command in /tmp/alice/easybuild/build/hello/2.12.1/GCCcore-13.3.0: + tar xzf /home/alice/sources/h/hello/hello-2.12.1.tar.gz +== 2026-11-17 04:16:03,977 run.py:650 INFO Shell command completed successfully +== 2026-11-17 04:16:03,977 build_log.py:330 INFO ... (took < 1 sec) +== 2026-11-17 04:16:03,978 build_log.py:330 INFO patching... +== 2026-11-17 04:16:03,978 easyblock.py:5068 INFO Starting patch step +== 2026-11-17 04:16:03,979 easyblock.py:5079 INFO Running method patch_step part of step patch +== 2026-11-17 04:16:03,979 build_log.py:330 INFO ... (took < 1 sec) +== 2026-11-17 04:16:03,979 build_log.py:330 INFO preparing... +== 2026-11-17 04:16:03,979 easyblock.py:5068 INFO Starting prepare step +== 2026-11-17 04:16:03,980 easyblock.py:5079 INFO Running method prepare_step part of step prepare +== 2026-11-17 04:16:03,982 run.py:532 INFO Running command in /tmp/alice/easybuild/build/hello/2.12.1/GCCcore-13.3.0/hello-2.12.1: + /cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/usr/share/Lmod/libexec/lmod python show GCCcore/13.3.0 +== 2026-11-17 04:16:04,448 run.py:650 INFO Command completed successfully +== 2026-11-17 04:16:04,449 run.py:532 INFO Running command in /tmp/alice/easybuild/build/hello/2.12.1/GCCcore-13.3.0/hello-2.12.1: + /cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/usr/share/Lmod/libexec/lmod python load GCCcore/13.3.0 +== 2026-11-17 04:16:05,284 run.py:650 INFO Command completed successfully +== 2026-11-17 04:16:05,302 easyblock.py:2653 INFO Using /tmp/alice/easybuild/build/hello/2.12.1/GCCcore-13.3.0/hello-2.12.1 as start dir +== 2026-11-17 04:16:05,302 build_log.py:330 INFO ... (took 1 secs) +== 2026-11-17 04:16:05,303 build_log.py:330 INFO configuring... +== 2026-11-17 04:16:05,303 easyblock.py:5068 INFO Starting configure step +== 2026-11-17 04:16:05,343 easyblock.py:5079 INFO Running method configure_step part of step configure +== 2026-11-17 04:16:15,355 filetools.py:928 WARNING IOError occurred while trying to download https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d5d8800c472bc2452eaa16e37af2 to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess: +== 2026-11-17 04:16:25,367 filetools.py:928 WARNING IOError occurred while trying to download https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d5d8800c472bc2452eaa16e37af2 to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess: +== 2026-11-17 04:16:35,380 filetools.py:928 WARNING IOError occurred while trying to download https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d5d8800c472bc2452eaa16e37af2 to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess: +== 2026-11-17 04:16:45,391 filetools.py:928 WARNING IOError occurred while trying to download https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d5d8800c472bc2452eaa16e37af2 to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess: +== 2026-11-17 04:16:55,404 filetools.py:928 WARNING IOError occurred while trying to download https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d5d8800c472bc2452eaa16e37af2 to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess: +== 2026-11-17 04:17:05,416 filetools.py:928 WARNING IOError occurred while trying to download https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d5d8800c472bc2452eaa16e37af2 to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess: +== 2026-11-17 04:17:05,416 filetools.py:967 WARNING Download of https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d5d8800c472bc2452eaa16e37af2 to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess failed, done trying +== 2026-11-17 04:17:05,417 build_log.py:465 WARNING Failed to download recent config.guess to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess +== 2026-11-17 04:17:05,425 run.py:492 INFO run_shell_cmd: Script to start debug shell for shell command './configure ...' + will be saved to /tmp/alice/easybuild/eb-tcvj0j2o/run-shell-cmd-output/configure-kytfvqsx/cmd.sh + output will be logged to /tmp/alice/easybuild/eb-tcvj0j2o/run-shell-cmd-output/configure-kytfvqsx/out.txt +== 2026-11-17 04:17:05,427 run.py:518 INFO Path to bash that will be used to run shell commands: /cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/bin/bash +== 2026-11-17 04:17:05,427 run.py:532 INFO Running shell command in /tmp/alice/easybuild/build/hello/2.12.1/GCCcore-13.3.0/hello-2.12.1: + ./configure --prefix=/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-13.3.0 +== 2026-11-17 04:17:51,618 run.py:650 INFO Shell command completed successfully +== 2026-11-17 04:17:51,619 build_log.py:330 INFO ... (took 1 min 46 secs) +== 2026-11-17 04:17:51,620 build_log.py:330 INFO building... +== 2026-11-17 04:17:51,620 easyblock.py:5068 INFO Starting build step +== 2026-11-17 04:17:51,621 easyblock.py:5079 INFO Running method build_step part of step build +== 2026-11-17 04:17:51,625 run.py:492 INFO run_shell_cmd: Script to start debug shell for shell command 'make ...' + will be saved to /tmp/alice/easybuild/eb-tcvj0j2o/run-shell-cmd-output/make-3rg_wj21/cmd.sh + output will be logged to /tmp/alice/easybuild/eb-tcvj0j2o/run-shell-cmd-output/make-3rg_wj21/out.txt +== 2026-11-17 04:17:51,626 run.py:518 INFO Path to bash that will be used to run shell commands: /cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/bin/bash +== 2026-11-17 04:17:51,626 run.py:532 INFO Running shell command in /tmp/alice/easybuild/build/hello/2.12.1/GCCcore-13.3.0/hello-2.12.1: + make -j 8 +== 2026-11-17 04:17:52,900 run.py:650 INFO Shell command completed successfully +== 2026-11-17 04:17:52,901 build_log.py:330 INFO ... (took 1 secs) +== 2026-11-17 04:17:52,901 build_log.py:330 INFO testing... +== 2026-11-17 04:17:52,901 easyblock.py:5068 INFO Starting test step +== 2026-11-17 04:17:52,902 easyblock.py:5079 INFO Running method test_step part of step test +== 2026-11-17 04:17:52,906 run.py:492 INFO run_shell_cmd: Script to start debug shell for shell command 'make ...' + will be saved to /tmp/alice/easybuild/eb-tcvj0j2o/run-shell-cmd-output/make-x7zwjwjt/cmd.sh + output will be logged to /tmp/alice/easybuild/eb-tcvj0j2o/run-shell-cmd-output/make-x7zwjwjt/out.txt +== 2026-11-17 04:17:52,907 run.py:518 INFO Path to bash that will be used to run shell commands: /cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/bin/bash +== 2026-11-17 04:17:52,907 run.py:532 INFO Running shell command in /tmp/alice/easybuild/build/hello/2.12.1/GCCcore-13.3.0/hello-2.12.1: + make check +== 2026-11-17 04:17:53,202 run.py:650 INFO Shell command completed successfully +== 2026-11-17 04:17:53,203 build_log.py:330 INFO ... (took < 1 sec) +== 2026-11-17 04:17:53,204 build_log.py:330 INFO installing... +== 2026-11-17 04:17:53,205 easyblock.py:5068 INFO Starting install step +== 2026-11-17 04:17:53,205 easyblock.py:5079 INFO Running method stage_install_step part of step install +== 2026-11-17 04:17:53,205 easyblock.py:5079 INFO Running method make_installdir part of step install +== 2026-11-17 04:17:53,205 easyblock.py:1331 INFO Found old directory /home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-13.3.0 +== 2026-11-17 04:17:53,205 easyblock.py:1351 INFO Cleaned old directory /home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-13.3.0 +== 2026-11-17 04:17:53,206 easyblock.py:5079 INFO Running method install_step part of step install +== 2026-11-17 04:17:53,210 run.py:492 INFO run_shell_cmd: Script to start debug shell for shell command 'make ...' + will be saved to /tmp/alice/easybuild/eb-tcvj0j2o/run-shell-cmd-output/make-75u3lj0k/cmd.sh + output will be logged to /tmp/alice/easybuild/eb-tcvj0j2o/run-shell-cmd-output/make-75u3lj0k/out.txt +== 2026-11-17 04:17:53,211 run.py:518 INFO Path to bash that will be used to run shell commands: /cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/bin/bash +== 2026-11-17 04:17:53,211 run.py:532 INFO Running shell command in /tmp/alice/easybuild/build/hello/2.12.1/GCCcore-13.3.0/hello-2.12.1: + make install +== 2026-11-17 04:17:53,826 run.py:650 INFO Shell command completed successfully +== 2026-11-17 04:17:53,827 build_log.py:330 INFO ... (took < 1 sec) +== 2026-11-17 04:17:53,828 build_log.py:330 INFO taking care of extensions... +== 2026-11-17 04:17:53,828 easyblock.py:5068 INFO Starting extensions step +== 2026-11-17 04:17:53,828 easyblock.py:5079 INFO Running method extensions_step part of step extensions +== 2026-11-17 04:17:53,828 build_log.py:330 INFO ... (took < 1 sec) +== 2026-11-17 04:17:53,829 build_log.py:330 INFO restore after iterating... +== 2026-11-17 04:17:53,829 easyblock.py:5068 INFO Starting postiter step +== 2026-11-17 04:17:53,830 easyblock.py:5079 INFO Running method post_iter_step part of step postiter +== 2026-11-17 04:17:53,830 build_log.py:330 INFO ... (took < 1 sec) +== 2026-11-17 04:17:53,830 build_log.py:330 INFO postprocessing... +== 2026-11-17 04:17:53,830 easyblock.py:5068 INFO Starting postproc step +== 2026-11-17 04:17:53,831 easyblock.py:5079 INFO Running method post_processing_step part of step postproc +== 2026-11-17 04:17:53,832 easyblock.py:3541 INFO Path to 'env' command to use in patched shebang lines: /cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/usr/bin/env +== 2026-11-17 04:17:53,833 build_log.py:330 INFO ... (took < 1 sec) +== 2026-11-17 04:17:53,833 build_log.py:330 INFO sanity checking... +== 2026-11-17 04:17:53,833 easyblock.py:5068 INFO Starting sanitycheck step +== 2026-11-17 04:17:53,834 easyblock.py:5079 INFO Running method sanity_check_step part of step sanitycheck +== 2026-11-17 04:17:53,834 easyblock.py:4388 INFO Using (only) sanity check paths specified by easyconfig file: {'files': ['bin/hello', 'lib/libhello.a'], 'dirs': ['share/man/man1']} +== 2026-11-17 04:17:53,835 easyblock.py:4444 INFO Using (only) sanity check commands specified by easyconfig file: ['hello --version'] +== 2026-11-17 04:17:53,835 easyblock.py:4660 INFO file not found at 'lib/libhello.a' in /home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-13.3.0, consider fallback locations: 'lib64/libhello.a' +== 2026-11-17 04:17:53,835 easyblock.py:4668 WARNING Sanity check: no file found at 'lib/libhello.a' in /home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-13.3.0 +== 2026-11-17 04:17:53,836 easyblock.py:1961 INFO Loading fake module (hello/2.12.1-GCCcore-13.3.0) +== 2026-11-17 04:17:53,839 easyblock.py:4860 INFO Module file /tmp/alice/easybuild/eb-tcvj0j2o/tmpgtllwl82/all/hello/2.12.1-GCCcore-13.3.0.lua written: help([==[ + +Description +=========== +GNU hello prints a friendly greeting. + + +More information +================ + - Homepage: https://www.gnu.org/software/hello/ +]==]) + +whatis([==[Description: GNU hello prints a friendly greeting.]==]) +whatis([==[Homepage: https://www.gnu.org/software/hello/]==]) +whatis([==[URL: https://www.gnu.org/software/hello/]==]) + +local root = "/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-13.3.0" + +conflict("hello") + +depends_on("GCCcore/13.3.0") + +prepend_path("CMAKE_PREFIX_PATH", root) +prepend_path("MANPATH", pathJoin(root, "share", "man")) +prepend_path("PATH", pathJoin(root, "bin")) +prepend_path("XDG_DATA_DIRS", pathJoin(root, "share")) +setenv("EBROOTHELLO", root) +setenv("EBVERSIONHELLO", "2.12.1") +setenv("EBDEVELHELLO", pathJoin(root, "easybuild", "hello-2.12.1-GCCcore-13.3.0-easybuild-devel")) + +-- Built with EasyBuild version 5.4.2 + +== 2026-11-17 04:17:53,841 easyblock.py:4896 INFO Skipping devel module... +== 2026-11-17 04:17:53,845 run.py:532 INFO Running command in /tmp/alice/easybuild/build/hello/2.12.1/GCCcore-13.3.0/hello-2.12.1: + /cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/usr/share/Lmod/libexec/lmod python use --priority 10000 /tmp/alice/easybuild/eb-tcvj0j2o/tmpgtllwl82/all/ +== 2026-11-17 04:17:54,156 run.py:650 INFO Command completed successfully +== 2026-11-17 04:17:54,157 run.py:532 INFO Running command in /tmp/alice/easybuild/build/hello/2.12.1/GCCcore-13.3.0/hello-2.12.1: + /cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/usr/share/Lmod/libexec/lmod python load hello/2.12.1-GCCcore-13.3.0 +== 2026-11-17 04:17:54,389 run.py:650 INFO Command completed successfully +== 2026-11-17 04:17:54,394 run.py:492 INFO run_shell_cmd: Script to start debug shell for shell command 'hello ...' + will be saved to /tmp/alice/easybuild/eb-tcvj0j2o/run-shell-cmd-output/hello-vewm4vjv/cmd.sh + output will be logged to /tmp/alice/easybuild/eb-tcvj0j2o/run-shell-cmd-output/hello-vewm4vjv/out.txt +== 2026-11-17 04:17:54,394 run.py:518 INFO Path to bash that will be used to run shell commands: /cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/bin/bash +== 2026-11-17 04:17:54,394 run.py:532 INFO Running shell command in /tmp/alice/easybuild/eb-tcvj0j2o/eb-sanity-check-_utajd4g: + hello --version +== 2026-11-17 04:17:54,399 run.py:650 INFO Shell command completed successfully +== 2026-11-17 04:17:54,400 easyblock.py:4696 INFO sanity check command hello --version ran successfully! (output: hello (GNU Hello) 2.12.1 +Copyright (C) 2020 Free Software Foundation, Inc. +License GPLv3+: GNU GPL version 3 or later . +This is free software: you are free to change and redistribute it. +There is NO WARRANTY, to the extent permitted by law. + +Written by Karl Berry, Sami Kerola, Jim Meyering, +and Reuben Thomas. +) +== 2026-11-17 04:17:54,400 easyblock.py:4253 INFO Checking for banned/required linked shared libraries... +== 2026-11-17 04:17:54,400 easyblock.py:4271 INFO No banned/required libraries specified +== 2026-11-17 04:17:54,402 easyblock.py:4111 INFO Checking RPATH linkage for binaries/libraries... +== 2026-11-17 04:17:54,402 easyblock.py:4120 INFO Checks on RPATH section of binaries/libraries (via 'readelf -d') enabled +== 2026-11-17 04:17:54,402 easyblock.py:4125 INFO Unsetting $LD_LIBRARY_PATH since strict RPATH sanity check is enabled... +== 2026-11-17 04:17:54,402 run.py:532 INFO Running command in /tmp/alice/easybuild/build/hello/2.12.1/GCCcore-13.3.0/hello-2.12.1: + /cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/usr/share/Lmod/libexec/lmod python --terse list +== 2026-11-17 04:17:54,456 run.py:650 INFO Command completed successfully +== 2026-11-17 04:17:54,457 easyblock.py:4145 INFO Ignoring the following libraries if they are not found by RPATH sanity check: ('libcuda.so', 'libcuda.so.1', 'libnvidia-ml.so', 'libnvidia-ml.so.1') +== 2026-11-17 04:17:54,457 easyblock.py:4153 INFO Using default subdirs for binaries/libraries to verify RPATH linking: ['bin', 'lib', 'lib64'] +== 2026-11-17 04:17:54,457 run.py:518 INFO Path to bash that will be used to run shell commands: /cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/bin/bash +== 2026-11-17 04:17:54,457 run.py:532 INFO Running shell command in /tmp/alice/easybuild/build/hello/2.12.1/GCCcore-13.3.0/hello-2.12.1: + file /home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-13.3.0/bin/hello +== 2026-11-17 04:17:56,933 run.py:650 INFO Shell command completed successfully +== 2026-11-17 04:17:56,933 run.py:518 INFO Path to bash that will be used to run shell commands: /cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/bin/bash +== 2026-11-17 04:17:56,933 run.py:532 INFO Running shell command in /tmp/alice/easybuild/build/hello/2.12.1/GCCcore-13.3.0/hello-2.12.1: + ldd /home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-13.3.0/bin/hello +== 2026-11-17 04:17:56,942 run.py:650 INFO Shell command completed successfully +== 2026-11-17 04:17:56,946 run.py:492 INFO run_shell_cmd: Script to start debug shell for shell command 'readelf ...' + will be saved to /tmp/alice/easybuild/eb-tcvj0j2o/run-shell-cmd-output/readelf-f66kmje7/cmd.sh + output will be logged to /tmp/alice/easybuild/eb-tcvj0j2o/run-shell-cmd-output/readelf-f66kmje7/out.txt +== 2026-11-17 04:17:56,946 run.py:518 INFO Path to bash that will be used to run shell commands: /cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/bin/bash +== 2026-11-17 04:17:56,946 run.py:532 INFO Running shell command in /tmp/alice/easybuild/build/hello/2.12.1/GCCcore-13.3.0/hello-2.12.1: + readelf -d /home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-13.3.0/bin/hello +== 2026-11-17 04:17:57,895 run.py:650 INFO Shell command completed successfully +== 2026-11-17 04:17:57,896 easyblock.py:1995 INFO Restoring environment after unloading fake module +== 2026-11-17 04:17:57,955 build_log.py:233 ERROR EasyBuild encountered an error: Sanity check failed: no file found at 'lib/libhello.a' in /home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-13.3.0 (at easybuild/framework/easyblock.py:4753 in _sanity_check_step) +Callstack: + easybuild/framework/easyblock.py:4753 in _sanity_check_step + easybuild/framework/easyblock.py:3688 in _dispatch_sanity_check_step + easybuild/framework/easyblock.py:3700 in sanity_check_step + easybuild/framework/easyblock.py:5095 in run_step + easybuild/framework/easyblock.py:5254 in run_all_steps + easybuild/framework/easyblock.py:5444 in build_and_install_one + easybuild/main.py:184 in build_and_install_software + easybuild/main.py:632 in process_eb_args + easybuild/main.py:816 in main + easybuild/main.py:874 in main_with_hooks + easybuild/main.py:893 in +== 2026-11-17 04:17:57,955 build_log.py:330 INFO ... (took 4 secs) +== 2026-11-17 04:17:57,956 easyblock.py:410 INFO Closing log for application name hello version 2.12.1 +== 2026-11-17 04:17:57,956 build_log.py:330 INFO FAILED: Installation ended unsuccessfully: Sanity check failed: no file found at 'lib/libhello.a' in /home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-13.3.0 (took 2 mins 54 secs) +== 2026-11-17 04:17:57,957 build_log.py:330 INFO Results of the build can be found in the log file(s) /home/alice/build-logs/20261117_041222/sapphirerapids/easybuild-logs/hello-2.12.1-GCCcore-13.3.0/easybuild-hello-2.12.1-20261117.041503.PyfpW.log +== 2026-11-17 04:17:57,962 build_log.py:233 ERROR EasyBuild encountered an error: Sanity check failed: no file found at 'lib/libhello.a' in /home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-13.3.0 (at easybuild/main.py:187 in build_and_install_software) +Callstack: + easybuild/main.py:187 in build_and_install_software + easybuild/main.py:632 in process_eb_args + easybuild/main.py:816 in main + easybuild/main.py:874 in main_with_hooks + easybuild/main.py:893 in +== 2026-11-17 04:17:57,967 build_log.py:330 INFO Summary: + * [FAILED] hello/2.12.1-GCCcore-13.3.0 +== 2026-11-17 04:17:57,971 build_log.py:233 ERROR EasyBuild encountered an error: Installation of hello-2.12.1-GCCcore-13.3.0.eb failed: Sanity check failed: no file found at 'lib/libhello.a' in /home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-13.3.0 (at easybuild/main.py:231 in build_and_install_software) +Callstack: + easybuild/main.py:231 in build_and_install_software + easybuild/main.py:632 in process_eb_args + easybuild/main.py:816 in main + easybuild/main.py:874 in main_with_hooks + easybuild/main.py:893 in diff --git a/tests/fixtures/build-logs/20261117_041222/sapphirerapids/hello-2.12.1-GCCcore-13.3.0.keep-logs.log b/tests/fixtures/build-logs/20261117_041222/sapphirerapids/hello-2.12.1-GCCcore-13.3.0.keep-logs.log new file mode 100644 index 0000000..67cf895 --- /dev/null +++ b/tests/fixtures/build-logs/20261117_041222/sapphirerapids/hello-2.12.1-GCCcore-13.3.0.keep-logs.log @@ -0,0 +1 @@ +Failed build log: /home/alice/build-logs/20261117_041222/sapphirerapids/hello-2.12.1-GCCcore-13.3.0.failed.ebout.log diff --git a/tests/fixtures/build-logs/20261117_041222/sapphirerapids/hello-2.12.1-GCCcore-13.3.0.stdout.log b/tests/fixtures/build-logs/20261117_041222/sapphirerapids/hello-2.12.1-GCCcore-13.3.0.stdout.log new file mode 100644 index 0000000..70791fc --- /dev/null +++ b/tests/fixtures/build-logs/20261117_041222/sapphirerapids/hello-2.12.1-GCCcore-13.3.0.stdout.log @@ -0,0 +1,194 @@ +== Temporary log file in case of crash /home/alice/build-logs/20261117_041222/sapphirerapids/easybuild-logs/hello-2.12.1-GCCcore-13.3.0/easybuild-162l_u8t.log +== found valid index for +/cvmfs/software.eessi.io/versions/2025.06/software/linux/x86_64/intel/sapphirera +pids/software/EasyBuild/5.4.2/easybuild/easyconfigs, so using it... +== Running parse hook for hello-2.12.1-GCCcore-13.3.0.eb... +== found valid index for +/cvmfs/software.eessi.io/versions/2025.06/software/linux/x86_64/intel/sapphirera +pids/software/EasyBuild/5.4.2/easybuild/easyconfigs, so using it... +== Running parse hook for GCCcore-13.3.0.eb... +== resolving dependencies ... +== Running pre_build_and_install_loop hook... +== Running parse hook for foss-2024a.eb... +== Running parse hook for GCC-13.3.0.eb... +== Running parse hook for OpenMPI-5.0.3-GCC-13.3.0.eb... +== Running parse hook for GCC-13.3.0.eb... +== Running parse hook for GCCcore-13.3.0.eb... +== Running parse hook for M4-1.4.19.eb... +== Running parse hook for FlexiBLAS-3.4.4-GCC-13.3.0.eb... +== Running parse hook for FFTW-3.3.10-GCC-13.3.0.eb... +== Running parse hook for FFTW.MPI-3.3.10-gompi-2024a.eb... +== Running parse hook for gompi-2024a.eb... +== Running parse hook for gompi-2024a.eb... +== Running parse hook for ScaLAPACK-2.2.0-gompi-2024a-fb.eb... +== Running parse hook for gfbf-2024a.eb... +== Running parse hook for foss-2025a.eb... +== Running parse hook for GCC-14.2.0.eb... +== Running parse hook for OpenMPI-5.0.7-GCC-14.2.0.eb... +== Running parse hook for GCC-14.2.0.eb... +== Running parse hook for GCCcore-14.2.0.eb... +== Running parse hook for FlexiBLAS-3.4.5-GCC-14.2.0.eb... +== Running parse hook for FFTW-3.3.10-GCC-14.2.0.eb... +== Running parse hook for FFTW.MPI-3.3.10-gompi-2025a.eb... +== Running parse hook for gompi-2025a.eb... +== Running parse hook for gompi-2025a.eb... +== Running parse hook for ScaLAPACK-2.2.2-gompi-2025a-fb.eb... +== Running parse hook for gfbf-2025a.eb... +== Running parse hook for foss-2025b.eb... +== Running parse hook for GCC-14.3.0.eb... +== Running parse hook for OpenMPI-5.0.8-GCC-14.3.0.eb... +== Running parse hook for GCC-14.3.0.eb... +== Running parse hook for GCCcore-14.3.0.eb... +== Running parse hook for M4-1.4.20.eb... +== Running parse hook for FlexiBLAS-3.4.5-GCC-14.3.0.eb... +== Running parse hook for FFTW-3.3.10-GCC-14.3.0.eb... +== Running parse hook for FFTW.MPI-3.3.10-gompi-2025b.eb... +== Running parse hook for gompi-2025b.eb... +== Running parse hook for gompi-2025b.eb... +== Running parse hook for ScaLAPACK-2.2.2-gompi-2025b-fb.eb... +== Running parse hook for gfbf-2025b.eb... +== Running parse hook for lfoss-2025b.eb... +== Running parse hook for llvm-compilers-20.1.8.eb... +== Running parse hook for OpenMPI-5.0.8-llvm-compilers-20.1.8.eb... +== Running parse hook for llvm-compilers-20.1.8.eb... +== Running parse hook for LLVM-20.1.8-GCCcore-14.3.0.eb... +== Running parse hook for GCCcore-14.3.0.eb... +== Running parse hook for FlexiBLAS-3.4.5-llvm-compilers-20.1.8.eb... +== Running parse hook for FFTW-3.3.10-llvm-compilers-20.1.8.eb... +== Running parse hook for FFTW.MPI-3.3.10-lompi-2025b.eb... +== Running parse hook for lompi-2025b.eb... +== Running parse hook for lompi-2025b.eb... +== Running parse hook for ScaLAPACK-2.2.2-lompi-2025b-fb.eb... +== Running parse hook for lfbf-2025b.eb... +== Running parse hook for rompi-2025a.eb... +== Running parse hook for rocm-compilers-19.0.0-ROCm-6.4.1.eb... +== Running parse hook for OpenMPI-5.0.7-rocm-compilers-19.0.0-ROCm-6.4.1.eb... +== Running parse hook for rocm-compilers-19.0.0-ROCm-6.4.1.eb... +== Running parse hook for ROCm-LLVM-19.0.0-GCCcore-14.2.0-ROCm-6.4.1.eb... +== Running parse hook for GCCcore-14.2.0.eb... +== processing EasyBuild easyconfig +/home/alice/corpus/cases/sanity/hello-2.12.1-GCCcore-13.3.0.eb +== building and installing hello/2.12.1-GCCcore-13.3.0... + >> installation prefix: +/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/so +ftware/hello/2.12.1-GCCcore-13.3.0 +== fetching files and verifying checksums... +== Running pre-fetch hook... + >> sources: + >> /home/alice/sources/h/hello/hello-2.12.1.tar.gz [SHA256: +8d99142afd92576f30b0cd7cb42a8dc6809998bc5d607d88761f512e26c7db20] + +WARNING: Failed to download recent config.guess to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess + + >> download failed: +https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d +5d8800c472bc2452eaa16e37af2 +== ... (took 1 min 0 secs) +== creating build dir, resetting environment... + >> build dir: /tmp/alice/easybuild/build/hello/2.12.1/GCCcore-13.3.0 + +WARNING: Deprecated functionality, will no longer work in EasyBuild v6.0: Easyconfig parameter 'parallel' is deprecated, use 'max_parallel' or the parallel property instead.; see https://docs.easybuild.io/deprecated-functionality/ for more information + +== Running post-ready hook... +== ... (took < 1 sec) +== unpacking... + >> running shell command: + tar xzf /home/alice/sources/h/hello/hello-2.12.1.tar.gz + [started at: 2026-11-17 04:16:03] + [working dir: /tmp/alice/easybuild/build/hello/2.12.1/GCCcore-13.3.0] + [output and state saved to +/tmp/alice/easybuild/eb-tcvj0j2o/run-shell-cmd-output/tar-pfliq3_l] + >> command completed: exit 0, ran in < 1s +== ... (took < 1 sec) +== patching... +== ... (took < 1 sec) +== preparing... +== Running pre-prepare hook... + >> loading toolchain module: GCCcore/13.3.0 + >> defining build environment for GCCcore/13.3.0 toolchain +== Running post-prepare hook... +== ... (took 1 secs) +== configuring... +== Running pre-configure hook... + +WARNING: Failed to download recent config.guess to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess + + +WARNING: No config.guess available, not setting '--build' option for configure step +EasyBuild attempts to download a recent config.guess but seems to have failed! + + >> download failed: +https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d +5d8800c472bc2452eaa16e37af2 + >> running shell command: + ./configure +--prefix=/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphire +rapids/software/hello/2.12.1-GCCcore-13.3.0 + [started at: 2026-11-17 04:17:05] + [working dir: +/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-13.3.0/hello-2.12.1] + [output and state saved to +/tmp/alice/easybuild/eb-tcvj0j2o/run-shell-cmd-output/configure-kytfvqsx] + >> command completed: exit 0, ran in 00h00m46s +== ... (took 1 min 46 secs) +== building... + >> running shell command: + make -j 8 + [started at: 2026-11-17 04:17:51] + [working dir: +/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-13.3.0/hello-2.12.1] + [output and state saved to +/tmp/alice/easybuild/eb-tcvj0j2o/run-shell-cmd-output/make-3rg_wj21] + >> command completed: exit 0, ran in 00h00m01s +== ... (took 1 secs) +== testing... +== Running pre-test hook... + >> running shell command: + make check + [started at: 2026-11-17 04:17:52] + [working dir: +/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-13.3.0/hello-2.12.1] + [output and state saved to +/tmp/alice/easybuild/eb-tcvj0j2o/run-shell-cmd-output/make-x7zwjwjt] + >> command completed: exit 0, ran in < 1s +== ... (took < 1 sec) +== installing... + >> running shell command: + make install + [started at: 2026-11-17 04:17:53] + [working dir: +/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-13.3.0/hello-2.12.1] + [output and state saved to +/tmp/alice/easybuild/eb-tcvj0j2o/run-shell-cmd-output/make-75u3lj0k] + >> command completed: exit 0, ran in < 1s +== ... (took < 1 sec) +== taking care of extensions... +== ... (took < 1 sec) +== restore after iterating... +== ... (took < 1 sec) +== postprocessing... +== Running post-postproc hook... +== ... (took < 1 sec) +== sanity checking... +== Running pre-sanitycheck hook... + >> file 'bin/hello' found: OK + >> file 'lib/libhello.a' found: FAILED + >> (non-empty) directory 'share/man/man1' found: OK + >> loading modules: hello/2.12.1-GCCcore-13.3.0... + >> running command 'hello --version' ... + >> result for command 'hello --version': OK +== ... (took 4 secs) +== FAILED: Installation ended unsuccessfully: Sanity check failed: no file found +at 'lib/libhello.a' in +/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/so +ftware/hello/2.12.1-GCCcore-13.3.0 (took 2 mins 54 secs) +== Results of the build can be found in the log file(s) +/home/alice/build-logs/20261117_041222/sapphirerapids/easybuild-logs/hello-2.12. +1-GCCcore-13.3.0/easybuild-hello-2.12.1-20261117.041503.PyfpW.log +== Running post-easyblock hook... +== Summary: + * [FAILED] hello/2.12.1-GCCcore-13.3.0 + + +ERROR: Installation of hello-2.12.1-GCCcore-13.3.0.eb failed: Sanity check failed: no file found at 'lib/libhello.a' in /home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-13.3.0 + diff --git a/tests/fixtures/build-logs/20261117_041222/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.failed.command-out.txt b/tests/fixtures/build-logs/20261117_041222/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.failed.command-out.txt new file mode 100644 index 0000000..e541430 --- /dev/null +++ b/tests/fixtures/build-logs/20261117_041222/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.failed.command-out.txt @@ -0,0 +1,52 @@ +if test -d ./.git \ + && git --version >/dev/null 2>&1; then \ + cd . && \ + git submodule --quiet foreach \ + 'test "$(git rev-parse "$sha1")" \ + = "$(git merge-base origin "$sha1")"' \ + || { echo 'maint.mk: found non-public submodule commit' >&2; \ + exit 1; }; \ +else \ + : ; \ +fi +make check-recursive +make[1]: Entering directory '/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1' +Making check in po +make[2]: Entering directory '/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1/po' +Makefile:170: warning: ignoring prerequisites on suffix rule definition +make[2]: Nothing to be done for 'check'. +make[2]: Leaving directory '/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1/po' +make[2]: Entering directory '/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1' +make check-TESTS +make[3]: Entering directory '/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1' +make[4]: Entering directory '/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1' +PASS: tests/atexit-1 +PASS: tests/greeting-1 +SKIP: tests/greeting-2 +FAIL: tests/hello-1 +PASS: tests/last-1 +PASS: tests/operand-1 +PASS: tests/traditional-1 +============================================================================ +Testsuite summary for GNU Hello 2.12.1 +============================================================================ +# TOTAL: 7 +# PASS: 5 +# SKIP: 1 +# XFAIL: 0 +# FAIL: 1 +# XPASS: 0 +# ERROR: 0 +============================================================================ +See ./test-suite.log +Please report to bug-hello@gnu.org +============================================================================ +make[4]: *** [Makefile:2611: test-suite.log] Error 1 +make[4]: Leaving directory '/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1' +make[3]: *** [Makefile:2719: check-TESTS] Error 2 +make[3]: Leaving directory '/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1' +make[2]: *** [Makefile:2995: check-am] Error 2 +make[2]: Leaving directory '/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1' +make[1]: *** [Makefile:2496: check-recursive] Error 1 +make[1]: Leaving directory '/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1' +make: *** [Makefile:2997: check] Error 2 diff --git a/tests/fixtures/build-logs/20261117_041222/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.failed.ebout.log b/tests/fixtures/build-logs/20261117_041222/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.failed.ebout.log new file mode 100644 index 0000000..6bcd62b --- /dev/null +++ b/tests/fixtures/build-logs/20261117_041222/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.failed.ebout.log @@ -0,0 +1,240 @@ +== 2026-11-17 04:12:24,021 build_log.py:291 INFO This is EasyBuild 5.4.2 (framework: 5.4.2, easyblocks: 5.4.2) on host node1. +== 2026-11-17 04:12:24,021 build_log.py:294 INFO Command line: --allow-loaded-modules='EasyBuild,EESSI-extend' --buildpath='/tmp/alice/easybuild/build' --bwrap-installpath='/tmp/alice/easybuild/bwrap' --containerpath='/tmp/alice/easybuild/containers' --cuda-sanity-check-error-on-failed-checks --debug --experimental --fail-on-mod-files-gcccore --filter-deps='binutils,bzip2,DBus,flex,gettext,gperf,help2man,intltool,libreadline,makeinfo,ncurses,NVPL,ParMETIS,util-linux,XZ,zlib' --filter-env-vars='LD_LIBRARY_PATH' --hooks='/cvmfs/software.eessi.io/versions/2025.06/init/easybuild/eb_hooks.py' --ignore-osdeps --installpath='/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids' --local-var-naming-check='error' --module-search-path-headers='include_paths' --packagepath='/tmp/alice/easybuild/packages' --parallel-extensions-install --prefer-python-search-path='EBPYTHONPREFIXES' --prefix='/tmp/alice/easybuild' --read-only-installdir --repositorypath='/tmp/alice/easybuild/ebfiles_repo' --robot='/cvmfs/software.eessi.io/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/EasyBuild/5.4.2/easybuild/easyconfigs' --sourcepath='/home/alice/sources' --sourcepath-data='/tmp/alice/easybuild/sources' --sticky-bit --strict-rpath-sanity-check --sysroot='/cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64' --tmp-logdir='/home/alice/build-logs/20261117_041222/sapphirerapids/easybuild-logs/hello-2.12.1-GCCcore-14.2.0' --tmpdir='/tmp/alice/easybuild' --umask='077' --zip-logs='bzip2' /home/alice/corpus/cases/test/hello-2.12.1-GCCcore-14.2.0.eb +== 2026-11-17 04:12:24,021 build_log.py:296 INFO Using /tmp/alice/easybuild/eb-ppa2pagz as temporary directory +== 2026-11-17 04:12:24,067 run.py:518 INFO Path to bash that will be used to run shell commands: /cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/bin/bash +== 2026-11-17 04:12:24,067 run.py:532 INFO Running shell command in /tmp/eb-stack-0418d85a/src: + type module +== 2026-11-17 04:12:24,071 run.py:650 INFO Shell command completed successfully +== 2026-11-17 04:12:24,071 run.py:532 INFO Running command in /tmp/eb-stack-0418d85a/src: + /cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/usr/share/Lmod/libexec/lmod python --version +== 2026-11-17 04:12:24,109 run.py:650 INFO Command completed successfully +== 2026-11-17 04:12:24,120 run.py:532 INFO Running command in /tmp/eb-stack-0418d85a/src: + /cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/usr/share/Lmod/libexec/lmod python --terse list +== 2026-11-17 04:12:24,172 run.py:650 INFO Command completed successfully +== 2026-11-17 04:12:24,396 run.py:532 INFO Running command in /tmp/eb-stack-0418d85a/src: + /cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/usr/share/Lmod/libexec/lmod python --terse --show-hidden avail hello/2.12.1-GCCcore-14.2.0 +== 2026-11-17 04:12:24,751 run.py:650 INFO Command completed successfully +== 2026-11-17 04:12:24,752 build_log.py:330 INFO resolving dependencies ... +== 2026-11-17 04:12:24,753 run.py:532 INFO Running command in /tmp/eb-stack-0418d85a/src: + /cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/usr/share/Lmod/libexec/lmod python --terse --show-hidden avail +== 2026-11-17 04:12:25,079 run.py:650 INFO Command completed successfully +== 2026-11-17 04:12:26,044 build_log.py:330 INFO processing EasyBuild easyconfig /home/alice/corpus/cases/test/hello-2.12.1-GCCcore-14.2.0.eb +== 2026-11-17 04:12:26,044 easyblock.py:5381 INFO Resetting environment +== 2026-11-17 04:12:26,047 easyblock.py:392 INFO This is EasyBuild 5.4.2 (framework: 5.4.2, easyblocks: 5.4.2) on host node1. +== 2026-11-17 04:12:26,047 easyblock.py:398 INFO This is easyblock ConfigureMake from module easybuild.easyblocks.generic.configuremake (/cvmfs/software.eessi.io/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/EasyBuild/5.4.2/lib/python3.13/site-packages/easybuild/easyblocks/generic/configuremake.py) +== 2026-11-17 04:12:26,047 easyblock.py:1242 INFO Build dir set to /tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0 +== 2026-11-17 04:12:26,047 easyblock.py:1305 INFO Software install dir set to /home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0 +== 2026-11-17 04:12:26,047 easyblock.py:1310 INFO Module install dir set to /home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/modules/all +== 2026-11-17 04:12:26,047 easyblock.py:360 INFO Init completed for application name hello version 2.12.1 +== 2026-11-17 04:12:26,047 easyblock.py:5400 INFO Obtained application instance for hello (easyblock: ConfigureMake) +== 2026-11-17 04:12:26,049 easyblock.py:5681 INFO Dumped easyconfig instance to /home/alice/build-logs/20261117_041222/sapphirerapids/easybuild-logs/hello-2.12.1-GCCcore-14.2.0/reprod_20261117041226_25879/hello-2.12.1-GCCcore-14.2.0.eb +== 2026-11-17 04:12:26,050 easyblock.py:5661 INFO Dumped easyblock configuremake.py required for reproduction to /home/alice/build-logs/20261117_041222/sapphirerapids/easybuild-logs/hello-2.12.1-GCCcore-14.2.0/reprod_20261117041226_25879/easyblocks +== 2026-11-17 04:12:26,051 easyblock.py:5693 INFO Dumped hooks file /cvmfs/software.eessi.io/versions/2025.06/init/easybuild/eb_hooks.py which is (potentially) required for reproduction to /home/alice/build-logs/20261117_041222/sapphirerapids/easybuild-logs/hello-2.12.1-GCCcore-14.2.0/reprod_20261117041226_25879/hooks/eb_hooks.py +== 2026-11-17 04:12:26,051 easyblock.py:2756 INFO Number of iterations to perform for central part of installation procedure: 1 +== 2026-11-17 04:12:26,051 build_log.py:330 INFO building and installing hello/2.12.1-GCCcore-14.2.0... +== 2026-11-17 04:12:26,055 run.py:518 INFO Path to bash that will be used to run shell commands: /cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/bin/bash +== 2026-11-17 04:12:26,055 run.py:532 INFO Running shell command in /tmp/eb-stack-0418d85a/src: + ulimit -u +== 2026-11-17 04:12:26,058 run.py:650 INFO Shell command completed successfully +== 2026-11-17 04:12:26,058 easyblock.py:2792 INFO Setting parallelism: 8 +== 2026-11-17 04:12:26,058 build_log.py:330 INFO fetching files and verifying checksums... +== 2026-11-17 04:12:26,059 easyblock.py:5068 INFO Starting fetch step +== 2026-11-17 04:12:26,060 easyblock.py:5079 INFO Running method fetch_step part of step fetch +== 2026-11-17 04:12:26,060 easyblock.py:2893 WARNING Easyconfig does not specify an EasyBuild-version (key 'easybuild_version')! Assuming the latest version +== 2026-11-17 04:12:26,060 easyblock.py:971 INFO Considering directory in which easyconfig file is located when searching for hello-2.12.1.tar.gz: /home/alice/corpus/cases/test +== 2026-11-17 04:12:26,061 easyblock.py:1013 INFO Found file hello-2.12.1.tar.gz at /home/alice/sources/h/hello/hello-2.12.1.tar.gz +== 2026-11-17 04:12:26,061 easyblock.py:602 INFO Added sources: [{'name': 'hello-2.12.1.tar.gz', 'path': '/home/alice/sources/h/hello/hello-2.12.1.tar.gz', 'cmd': None, 'checksum': {'hello-2.12.1.tar.gz': '8d99142afd92576f30b0cd7cb42a8dc6809998bc5d607d88761f512e26c7db20'}, 'finalpath': '/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0'}] +== 2026-11-17 04:12:26,061 easyblock.py:971 INFO Considering directory in which easyconfig file is located when searching for hello-2.12.1_capitalise.patch: /home/alice/corpus/cases/test +== 2026-11-17 04:12:26,062 easyblock.py:1013 INFO Found file hello-2.12.1_capitalise.patch at /home/alice/corpus/cases/test/hello-2.12.1_capitalise.patch +== 2026-11-17 04:12:26,062 easyblock.py:648 INFO Added patches: [{'name': 'hello-2.12.1_capitalise.patch', 'postinstall': False, 'path': '/home/alice/corpus/cases/test/hello-2.12.1_capitalise.patch', 'checksum': {'hello-2.12.1_capitalise.patch': 'e3f06cdd0bc219e21ffd667444d50dc3b07d9c4ee6373ba672377373c3e0bc76'}}] +== 2026-11-17 04:12:26,063 easyblock.py:2965 INFO sha256 checksum for /home/alice/sources/h/hello/hello-2.12.1.tar.gz: 8d99142afd92576f30b0cd7cb42a8dc6809998bc5d607d88761f512e26c7db20 +== 2026-11-17 04:12:26,063 easyblock.py:2965 INFO sha256 checksum for /home/alice/corpus/cases/test/hello-2.12.1_capitalise.patch: e3f06cdd0bc219e21ffd667444d50dc3b07d9c4ee6373ba672377373c3e0bc76 +== 2026-11-17 04:12:26,065 easyblock.py:3000 INFO Checking dirs that need to be created: ['/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0', '/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/modules/all/hello', '/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/modules/tools/hello'] +== 2026-11-17 04:12:41,000 filetools.py:928 WARNING IOError occurred while trying to download https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d5d8800c472bc2452eaa16e37af2 to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess: The read operation timed out +== 2026-11-17 04:12:51,013 filetools.py:928 WARNING IOError occurred while trying to download https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d5d8800c472bc2452eaa16e37af2 to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess: +== 2026-11-17 04:13:01,025 filetools.py:928 WARNING IOError occurred while trying to download https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d5d8800c472bc2452eaa16e37af2 to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess: +== 2026-11-17 04:13:11,037 filetools.py:928 WARNING IOError occurred while trying to download https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d5d8800c472bc2452eaa16e37af2 to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess: +== 2026-11-17 04:13:11,535 filetools.py:925 WARNING HTTPError occurred while trying to download https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d5d8800c472bc2452eaa16e37af2 to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess: HTTP Error 502: Bad Gateway +== 2026-11-17 04:13:21,543 filetools.py:928 WARNING IOError occurred while trying to download https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d5d8800c472bc2452eaa16e37af2 to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess: +== 2026-11-17 04:13:21,543 filetools.py:967 WARNING Download of https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d5d8800c472bc2452eaa16e37af2 to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess failed, done trying +== 2026-11-17 04:13:21,544 build_log.py:465 WARNING Failed to download recent config.guess to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess +== 2026-11-17 04:13:21,544 easyblock.py:5079 INFO Running method checksum_step part of step fetch +== 2026-11-17 04:13:21,545 easyblock.py:3022 INFO Checksum verification for /home/alice/sources/h/hello/hello-2.12.1.tar.gz using {'hello-2.12.1.tar.gz': '8d99142afd92576f30b0cd7cb42a8dc6809998bc5d607d88761f512e26c7db20'} passed. +== 2026-11-17 04:13:21,545 easyblock.py:3022 INFO Checksum verification for /home/alice/corpus/cases/test/hello-2.12.1_capitalise.patch using {'hello-2.12.1_capitalise.patch': 'e3f06cdd0bc219e21ffd667444d50dc3b07d9c4ee6373ba672377373c3e0bc76'} passed. +== 2026-11-17 04:13:21,545 build_log.py:330 INFO ... (took 55 secs) +== 2026-11-17 04:13:21,546 build_log.py:330 INFO creating build dir, resetting environment... +== 2026-11-17 04:13:21,546 easyblock.py:5068 INFO Starting ready step +== 2026-11-17 04:13:21,547 easyblock.py:5079 INFO Running method check_readiness_step part of step ready +== 2026-11-17 04:13:21,547 run.py:532 INFO Running command in /tmp/eb-stack-0418d85a/src: + /cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/usr/share/Lmod/libexec/lmod python --terse list +== 2026-11-17 04:13:21,615 run.py:650 INFO Command completed successfully +== 2026-11-17 04:13:21,615 easyblock.py:2842 WARNING Loaded modules detected: ['EasyBuild/5.4.2', 'EESSI-extend/2025.06-easybuild'] +== 2026-11-17 04:13:21,616 easyblock.py:5079 INFO Running method make_builddir part of step ready +== 2026-11-17 04:13:21,616 easyblock.py:1331 INFO Found old directory /tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0 +== 2026-11-17 04:13:21,628 easyblock.py:1354 INFO Removed old directory /tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0 +== 2026-11-17 04:13:21,628 easyblock.py:5079 INFO Running method reset_env part of step ready +== 2026-11-17 04:13:21,629 easyblock.py:5079 INFO Running method handle_iterate_opts part of step ready +== 2026-11-17 04:13:21,630 build_log.py:202 WARNING Deprecated functionality, will no longer work in EasyBuild v6.0: Easyconfig parameter 'parallel' is deprecated, use 'max_parallel' or the parallel property instead.; see https://docs.easybuild.io/deprecated-functionality/ for more information +== 2026-11-17 04:13:21,630 build_log.py:330 INFO ... (took < 1 sec) +== 2026-11-17 04:13:21,630 build_log.py:330 INFO unpacking... +== 2026-11-17 04:13:21,630 easyblock.py:5068 INFO Starting extract step +== 2026-11-17 04:13:21,631 easyblock.py:5079 INFO Running method extract_step part of step extract +== 2026-11-17 04:13:21,631 easyblock.py:3152 INFO Unpacking source hello-2.12.1.tar.gz +== 2026-11-17 04:13:21,635 run.py:492 INFO run_shell_cmd: Script to start debug shell for shell command 'tar ...' + will be saved to /tmp/alice/easybuild/eb-ppa2pagz/run-shell-cmd-output/tar-ed3q2brl/cmd.sh + output will be logged to /tmp/alice/easybuild/eb-ppa2pagz/run-shell-cmd-output/tar-ed3q2brl/out.txt +== 2026-11-17 04:13:21,636 run.py:518 INFO Path to bash that will be used to run shell commands: /cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/bin/bash +== 2026-11-17 04:13:21,636 run.py:532 INFO Running shell command in /tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0: + tar xzf /home/alice/sources/h/hello/hello-2.12.1.tar.gz +== 2026-11-17 04:13:21,660 run.py:650 INFO Shell command completed successfully +== 2026-11-17 04:13:21,660 build_log.py:330 INFO ... (took < 1 sec) +== 2026-11-17 04:13:21,661 build_log.py:330 INFO patching... +== 2026-11-17 04:13:21,661 easyblock.py:5068 INFO Starting patch step +== 2026-11-17 04:13:21,661 easyblock.py:5079 INFO Running method patch_step part of step patch +== 2026-11-17 04:13:21,661 easyblock.py:3170 INFO Applying patch hello-2.12.1_capitalise.patch +== 2026-11-17 04:13:21,665 run.py:492 INFO run_shell_cmd: Script to start debug shell for shell command 'patch ...' + will be saved to /tmp/alice/easybuild/eb-ppa2pagz/run-shell-cmd-output/patch-zmh72czr/cmd.sh + output will be logged to /tmp/alice/easybuild/eb-ppa2pagz/run-shell-cmd-output/patch-zmh72czr/out.txt +== 2026-11-17 04:13:21,665 run.py:518 INFO Path to bash that will be used to run shell commands: /cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/bin/bash +== 2026-11-17 04:13:21,665 run.py:532 INFO Running shell command in /tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1: + patch -p1 -i /home/alice/corpus/cases/test/hello-2.12.1_capitalise.patch +== 2026-11-17 04:13:21,670 run.py:650 INFO Shell command completed successfully +== 2026-11-17 04:13:21,670 build_log.py:330 INFO ... (took < 1 sec) +== 2026-11-17 04:13:21,670 build_log.py:330 INFO preparing... +== 2026-11-17 04:13:21,671 easyblock.py:5068 INFO Starting prepare step +== 2026-11-17 04:13:21,672 easyblock.py:5079 INFO Running method prepare_step part of step prepare +== 2026-11-17 04:13:21,674 run.py:532 INFO Running command in /tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1: + /cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/usr/share/Lmod/libexec/lmod python show GCCcore/14.2.0 +== 2026-11-17 04:13:21,899 run.py:650 INFO Command completed successfully +== 2026-11-17 04:13:21,900 run.py:532 INFO Running command in /tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1: + /cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/usr/share/Lmod/libexec/lmod python load GCCcore/14.2.0 +== 2026-11-17 04:13:22,149 run.py:650 INFO Command completed successfully +== 2026-11-17 04:13:22,170 easyblock.py:2653 INFO Using /tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1 as start dir +== 2026-11-17 04:13:22,170 build_log.py:330 INFO ... (took < 1 sec) +== 2026-11-17 04:13:22,171 build_log.py:330 INFO configuring... +== 2026-11-17 04:13:22,171 easyblock.py:5068 INFO Starting configure step +== 2026-11-17 04:13:22,216 easyblock.py:5079 INFO Running method configure_step part of step configure +== 2026-11-17 04:13:32,229 filetools.py:928 WARNING IOError occurred while trying to download https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d5d8800c472bc2452eaa16e37af2 to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess: +== 2026-11-17 04:13:42,241 filetools.py:928 WARNING IOError occurred while trying to download https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d5d8800c472bc2452eaa16e37af2 to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess: +== 2026-11-17 04:13:52,254 filetools.py:928 WARNING IOError occurred while trying to download https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d5d8800c472bc2452eaa16e37af2 to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess: +== 2026-11-17 04:14:02,266 filetools.py:928 WARNING IOError occurred while trying to download https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d5d8800c472bc2452eaa16e37af2 to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess: +== 2026-11-17 04:14:12,279 filetools.py:928 WARNING IOError occurred while trying to download https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d5d8800c472bc2452eaa16e37af2 to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess: +== 2026-11-17 04:14:22,296 filetools.py:928 WARNING IOError occurred while trying to download https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d5d8800c472bc2452eaa16e37af2 to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess: +== 2026-11-17 04:14:22,297 filetools.py:967 WARNING Download of https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d5d8800c472bc2452eaa16e37af2 to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess failed, done trying +== 2026-11-17 04:14:22,298 build_log.py:465 WARNING Failed to download recent config.guess to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess +== 2026-11-17 04:14:22,304 run.py:492 INFO run_shell_cmd: Script to start debug shell for shell command './configure ...' + will be saved to /tmp/alice/easybuild/eb-ppa2pagz/run-shell-cmd-output/configure-5yfdgbtp/cmd.sh + output will be logged to /tmp/alice/easybuild/eb-ppa2pagz/run-shell-cmd-output/configure-5yfdgbtp/out.txt +== 2026-11-17 04:14:22,306 run.py:518 INFO Path to bash that will be used to run shell commands: /cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/bin/bash +== 2026-11-17 04:14:22,306 run.py:532 INFO Running shell command in /tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1: + ./configure --prefix=/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0 +== 2026-11-17 04:14:57,379 run.py:650 INFO Shell command completed successfully +== 2026-11-17 04:14:57,380 build_log.py:330 INFO ... (took 1 min 35 secs) +== 2026-11-17 04:14:57,381 build_log.py:330 INFO building... +== 2026-11-17 04:14:57,381 easyblock.py:5068 INFO Starting build step +== 2026-11-17 04:14:57,381 easyblock.py:5079 INFO Running method build_step part of step build +== 2026-11-17 04:14:57,386 run.py:492 INFO run_shell_cmd: Script to start debug shell for shell command 'make ...' + will be saved to /tmp/alice/easybuild/eb-ppa2pagz/run-shell-cmd-output/make-st2jqm7h/cmd.sh + output will be logged to /tmp/alice/easybuild/eb-ppa2pagz/run-shell-cmd-output/make-st2jqm7h/out.txt +== 2026-11-17 04:14:57,387 run.py:518 INFO Path to bash that will be used to run shell commands: /cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/bin/bash +== 2026-11-17 04:14:57,387 run.py:532 INFO Running shell command in /tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1: + make -j 8 +== 2026-11-17 04:14:58,626 run.py:650 INFO Shell command completed successfully +== 2026-11-17 04:14:58,627 build_log.py:330 INFO ... (took 1 secs) +== 2026-11-17 04:14:58,627 build_log.py:330 INFO testing... +== 2026-11-17 04:14:58,628 easyblock.py:5068 INFO Starting test step +== 2026-11-17 04:14:58,628 easyblock.py:5079 INFO Running method test_step part of step test +== 2026-11-17 04:14:58,633 run.py:492 INFO run_shell_cmd: Script to start debug shell for shell command 'make ...' + will be saved to /tmp/alice/easybuild/eb-ppa2pagz/run-shell-cmd-output/make-n8vufklo/cmd.sh + output will be logged to /tmp/alice/easybuild/eb-ppa2pagz/run-shell-cmd-output/make-n8vufklo/out.txt +== 2026-11-17 04:14:58,634 run.py:518 INFO Path to bash that will be used to run shell commands: /cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/bin/bash +== 2026-11-17 04:14:58,634 run.py:532 INFO Running shell command in /tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1: + make check +== 2026-11-17 04:14:59,165 run.py:652 WARNING Shell command FAILED (exit code 2) +Output (stdout + stderr): +if test -d ./.git \ + && git --version >/dev/null 2>&1; then \ + cd . && \ + git submodule --quiet foreach \ + 'test "$(git rev-parse "$sha1")" \ + = "$(git merge-base origin "$sha1")"' \ + || { echo 'maint.mk: found non-public submodule commit' >&2; \ + exit 1; }; \ +else \ + : ; \ +fi +make check-recursive +make[1]: Entering directory '/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1' +Making check in po +make[2]: Entering directory '/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1/po' +Makefile:170: warning: ignoring prerequisites on suffix rule definition +make[2]: Nothing to be done for 'check'. +make[2]: Leaving directory '/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1/po' +make[2]: Entering directory '/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1' +make check-TESTS +make[3]: Entering directory '/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1' +make[4]: Entering directory '/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1' +PASS: tests/atexit-1 +PASS: tests/greeting-1 +SKIP: tests/greeting-2 +FAIL: tests/hello-1 +PASS: tests/last-1 +PASS: tests/operand-1 +PASS: tests/traditional-1 +============================================================================ +Testsuite summary for GNU Hello 2.12.1 +============================================================================ +# TOTAL: 7 +# PASS: 5 +# SKIP: 1 +# XFAIL: 0 +# FAIL: 1 +# XPASS: 0 +# ERROR: 0 +============================================================================ +See ./test-suite.log +Please report to bug-hello@gnu.org +============================================================================ +make[4]: *** [Makefile:2611: test-suite.log] Error 1 +make[4]: Leaving directory '/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1' +make[3]: *** [Makefile:2719: check-TESTS] Error 2 +make[3]: Leaving directory '/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1' +make[2]: *** [Makefile:2995: check-am] Error 2 +make[2]: Leaving directory '/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1' +make[1]: *** [Makefile:2496: check-recursive] Error 1 +make[1]: Leaving directory '/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1' +make: *** [Makefile:2997: check] Error 2 + +== 2026-11-17 04:14:59,213 easyblock.py:3357 WARNING shell command 'make check' failed in test step for hello-2.12.1-GCCcore-14.2.0.eb +== 2026-11-17 04:14:59,217 build_log.py:233 ERROR EasyBuild encountered an error: shell command 'make ...' failed in test step for hello-2.12.1-GCCcore-14.2.0.eb (at easybuild/framework/easyblock.py:2829 in report_test_failure) +Callstack: + easybuild/framework/easyblock.py:2829 in report_test_failure + easybuild/framework/easyblock.py:3358 in _test_step + easybuild/framework/easyblock.py:5095 in run_step + easybuild/framework/easyblock.py:5254 in run_all_steps + easybuild/framework/easyblock.py:5444 in build_and_install_one + easybuild/main.py:184 in build_and_install_software + easybuild/main.py:632 in process_eb_args + easybuild/main.py:816 in main + easybuild/main.py:874 in main_with_hooks + easybuild/main.py:893 in +== 2026-11-17 04:14:59,217 build_log.py:330 INFO ... (took < 1 sec) +== 2026-11-17 04:14:59,218 easyblock.py:410 INFO Closing log for application name hello version 2.12.1 +== 2026-11-17 04:14:59,218 build_log.py:330 INFO FAILED: Installation ended unsuccessfully: shell command 'make ...' failed in test step for hello-2.12.1-GCCcore-14.2.0.eb (took 2 mins 33 secs) +== 2026-11-17 04:14:59,219 build_log.py:330 INFO Results of the build can be found in the log file(s) /home/alice/build-logs/20261117_041222/sapphirerapids/easybuild-logs/hello-2.12.1-GCCcore-14.2.0/easybuild-hello-2.12.1-20261117.041226.SMcbb.log +== 2026-11-17 04:14:59,223 build_log.py:233 ERROR EasyBuild encountered an error: shell command 'make ...' failed in test step for hello-2.12.1-GCCcore-14.2.0.eb (at easybuild/main.py:187 in build_and_install_software) +Callstack: + easybuild/main.py:187 in build_and_install_software + easybuild/main.py:632 in process_eb_args + easybuild/main.py:816 in main + easybuild/main.py:874 in main_with_hooks + easybuild/main.py:893 in +== 2026-11-17 04:14:59,228 build_log.py:330 INFO Summary: + * [FAILED] hello/2.12.1-GCCcore-14.2.0 +== 2026-11-17 04:14:59,232 build_log.py:233 ERROR EasyBuild encountered an error: Installation of hello-2.12.1-GCCcore-14.2.0.eb failed: shell command 'make ...' failed in test step for hello-2.12.1-GCCcore-14.2.0.eb (at easybuild/main.py:231 in build_and_install_software) +Callstack: + easybuild/main.py:231 in build_and_install_software + easybuild/main.py:632 in process_eb_args + easybuild/main.py:816 in main + easybuild/main.py:874 in main_with_hooks + easybuild/main.py:893 in diff --git a/tests/fixtures/build-logs/20261117_041222/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.keep-logs.log b/tests/fixtures/build-logs/20261117_041222/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.keep-logs.log new file mode 100644 index 0000000..4492192 --- /dev/null +++ b/tests/fixtures/build-logs/20261117_041222/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.keep-logs.log @@ -0,0 +1,2 @@ +Failed build log: /home/alice/build-logs/20261117_041222/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.failed.ebout.log +Failed command output: /home/alice/build-logs/20261117_041222/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.failed.command-out.txt diff --git a/tests/fixtures/build-logs/20261117_041222/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.stdout.log b/tests/fixtures/build-logs/20261117_041222/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.stdout.log new file mode 100644 index 0000000..f06bdfc --- /dev/null +++ b/tests/fixtures/build-logs/20261117_041222/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.stdout.log @@ -0,0 +1,184 @@ +== Temporary log file in case of crash /home/alice/build-logs/20261117_041222/sapphirerapids/easybuild-logs/hello-2.12.1-GCCcore-14.2.0/easybuild-8jpkcqnt.log +== found valid index for +/cvmfs/software.eessi.io/versions/2025.06/software/linux/x86_64/intel/sapphirera +pids/software/EasyBuild/5.4.2/easybuild/easyconfigs, so using it... +== Running parse hook for hello-2.12.1-GCCcore-14.2.0.eb... +== found valid index for +/cvmfs/software.eessi.io/versions/2025.06/software/linux/x86_64/intel/sapphirera +pids/software/EasyBuild/5.4.2/easybuild/easyconfigs, so using it... +== Running parse hook for GCCcore-14.2.0.eb... +== resolving dependencies ... +== Running pre_build_and_install_loop hook... +== Running parse hook for foss-2024a.eb... +== Running parse hook for GCC-13.3.0.eb... +== Running parse hook for OpenMPI-5.0.3-GCC-13.3.0.eb... +== Running parse hook for GCC-13.3.0.eb... +== Running parse hook for GCCcore-13.3.0.eb... +== Running parse hook for M4-1.4.19.eb... +== Running parse hook for FlexiBLAS-3.4.4-GCC-13.3.0.eb... +== Running parse hook for FFTW-3.3.10-GCC-13.3.0.eb... +== Running parse hook for FFTW.MPI-3.3.10-gompi-2024a.eb... +== Running parse hook for gompi-2024a.eb... +== Running parse hook for gompi-2024a.eb... +== Running parse hook for ScaLAPACK-2.2.0-gompi-2024a-fb.eb... +== Running parse hook for gfbf-2024a.eb... +== Running parse hook for foss-2025a.eb... +== Running parse hook for GCC-14.2.0.eb... +== Running parse hook for OpenMPI-5.0.7-GCC-14.2.0.eb... +== Running parse hook for GCC-14.2.0.eb... +== Running parse hook for GCCcore-14.2.0.eb... +== Running parse hook for FlexiBLAS-3.4.5-GCC-14.2.0.eb... +== Running parse hook for FFTW-3.3.10-GCC-14.2.0.eb... +== Running parse hook for FFTW.MPI-3.3.10-gompi-2025a.eb... +== Running parse hook for gompi-2025a.eb... +== Running parse hook for gompi-2025a.eb... +== Running parse hook for ScaLAPACK-2.2.2-gompi-2025a-fb.eb... +== Running parse hook for gfbf-2025a.eb... +== Running parse hook for foss-2025b.eb... +== Running parse hook for GCC-14.3.0.eb... +== Running parse hook for OpenMPI-5.0.8-GCC-14.3.0.eb... +== Running parse hook for GCC-14.3.0.eb... +== Running parse hook for GCCcore-14.3.0.eb... +== Running parse hook for M4-1.4.20.eb... +== Running parse hook for FlexiBLAS-3.4.5-GCC-14.3.0.eb... +== Running parse hook for FFTW-3.3.10-GCC-14.3.0.eb... +== Running parse hook for FFTW.MPI-3.3.10-gompi-2025b.eb... +== Running parse hook for gompi-2025b.eb... +== Running parse hook for gompi-2025b.eb... +== Running parse hook for ScaLAPACK-2.2.2-gompi-2025b-fb.eb... +== Running parse hook for gfbf-2025b.eb... +== Running parse hook for lfoss-2025b.eb... +== Running parse hook for llvm-compilers-20.1.8.eb... +== Running parse hook for OpenMPI-5.0.8-llvm-compilers-20.1.8.eb... +== Running parse hook for llvm-compilers-20.1.8.eb... +== Running parse hook for LLVM-20.1.8-GCCcore-14.3.0.eb... +== Running parse hook for GCCcore-14.3.0.eb... +== Running parse hook for FlexiBLAS-3.4.5-llvm-compilers-20.1.8.eb... +== Running parse hook for FFTW-3.3.10-llvm-compilers-20.1.8.eb... +== Running parse hook for FFTW.MPI-3.3.10-lompi-2025b.eb... +== Running parse hook for lompi-2025b.eb... +== Running parse hook for lompi-2025b.eb... +== Running parse hook for ScaLAPACK-2.2.2-lompi-2025b-fb.eb... +== Running parse hook for lfbf-2025b.eb... +== Running parse hook for rompi-2025a.eb... +== Running parse hook for rocm-compilers-19.0.0-ROCm-6.4.1.eb... +== Running parse hook for OpenMPI-5.0.7-rocm-compilers-19.0.0-ROCm-6.4.1.eb... +== Running parse hook for rocm-compilers-19.0.0-ROCm-6.4.1.eb... +== Running parse hook for ROCm-LLVM-19.0.0-GCCcore-14.2.0-ROCm-6.4.1.eb... +== processing EasyBuild easyconfig +/home/alice/corpus/cases/test/hello-2.12.1-GCCcore-14.2.0.eb +== building and installing hello/2.12.1-GCCcore-14.2.0... + >> installation prefix: +/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/so +ftware/hello/2.12.1-GCCcore-14.2.0 +== fetching files and verifying checksums... +== Running pre-fetch hook... + >> sources: + >> /home/alice/sources/h/hello/hello-2.12.1.tar.gz [SHA256: +8d99142afd92576f30b0cd7cb42a8dc6809998bc5d607d88761f512e26c7db20] + >> patches: + >> /home/alice/corpus/cases/test/hello-2.12.1_capitalise.patch [SHA256: +e3f06cdd0bc219e21ffd667444d50dc3b07d9c4ee6373ba672377373c3e0bc76] + +WARNING: Failed to download recent config.guess to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess + + >> download failed: +https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d +5d8800c472bc2452eaa16e37af2 +== ... (took 55 secs) +== creating build dir, resetting environment... + >> build dir: /tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0 + +WARNING: Deprecated functionality, will no longer work in EasyBuild v6.0: Easyconfig parameter 'parallel' is deprecated, use 'max_parallel' or the parallel property instead.; see https://docs.easybuild.io/deprecated-functionality/ for more information + +== Running post-ready hook... +== ... (took < 1 sec) +== unpacking... + >> running shell command: + tar xzf /home/alice/sources/h/hello/hello-2.12.1.tar.gz + [started at: 2026-11-17 04:13:21] + [working dir: /tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0] + [output and state saved to +/tmp/alice/easybuild/eb-ppa2pagz/run-shell-cmd-output/tar-ed3q2brl] + >> command completed: exit 0, ran in < 1s +== ... (took < 1 sec) +== patching... + >> applying patch hello-2.12.1_capitalise.patch +== ... (took < 1 sec) +== preparing... +== Running pre-prepare hook... + >> loading toolchain module: GCCcore/14.2.0 + >> defining build environment for GCCcore/14.2.0 toolchain +== Running post-prepare hook... +== ... (took < 1 sec) +== configuring... +== Running pre-configure hook... + +WARNING: Failed to download recent config.guess to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess + + +WARNING: No config.guess available, not setting '--build' option for configure step +EasyBuild attempts to download a recent config.guess but seems to have failed! + + >> download failed: +https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d +5d8800c472bc2452eaa16e37af2 + >> running shell command: + ./configure +--prefix=/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphire +rapids/software/hello/2.12.1-GCCcore-14.2.0 + [started at: 2026-11-17 04:14:22] + [working dir: +/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1] + [output and state saved to +/tmp/alice/easybuild/eb-ppa2pagz/run-shell-cmd-output/configure-5yfdgbtp] + >> command completed: exit 0, ran in 00h00m35s +== ... (took 1 min 35 secs) +== building... + >> running shell command: + make -j 8 + [started at: 2026-11-17 04:14:57] + [working dir: +/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1] + [output and state saved to +/tmp/alice/easybuild/eb-ppa2pagz/run-shell-cmd-output/make-st2jqm7h] + >> command completed: exit 0, ran in 00h00m01s +== ... (took 1 secs) +== testing... +== Running pre-test hook... + + +ERROR: Shell command failed! + full command -> make check + exit code -> 2 + called from -> 'test_step' function in +/cvmfs/software.eessi.io/versions/2025.06/software/linux/x86_64/intel/sapphirera +pids/software/EasyBuild/5.4.2/lib/python3.13/site-packages/easybuild/easyblocks/ +generic/configuremake.py (line 401) + working directory -> +/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1 + output (stdout + stderr) -> +/tmp/alice/easybuild/eb-ppa2pagz/run-shell-cmd-output/make-n8vufklo/out.txt + interactive shell script -> +/tmp/alice/easybuild/eb-ppa2pagz/run-shell-cmd-output/make-n8vufklo/cmd.sh + + >> running shell command: + make check + [started at: 2026-11-17 04:14:58] + [working dir: +/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1] + [output and state saved to +/tmp/alice/easybuild/eb-ppa2pagz/run-shell-cmd-output/make-n8vufklo] +== ... (took < 1 sec) +== FAILED: Installation ended unsuccessfully: shell command 'make ...' failed in +test step for hello-2.12.1-GCCcore-14.2.0.eb (took 2 mins 33 secs) +== Results of the build can be found in the log file(s) +/home/alice/build-logs/20261117_041222/sapphirerapids/easybuild-logs/hello-2.12. +1-GCCcore-14.2.0/easybuild-hello-2.12.1-20261117.041226.SMcbb.log +== Running post-easyblock hook... +== Summary: + * [FAILED] hello/2.12.1-GCCcore-14.2.0 + + +ERROR: Installation of hello-2.12.1-GCCcore-14.2.0.eb failed: shell command 'make ...' failed in test step for hello-2.12.1-GCCcore-14.2.0.eb + diff --git a/tests/fixtures/build-logs/20261117_042207/sapphirerapids/hello-2.12.1-GCCcore-13.3.0.stdout.log b/tests/fixtures/build-logs/20261117_042207/sapphirerapids/hello-2.12.1-GCCcore-13.3.0.stdout.log new file mode 100644 index 0000000..f1644bc --- /dev/null +++ b/tests/fixtures/build-logs/20261117_042207/sapphirerapids/hello-2.12.1-GCCcore-13.3.0.stdout.log @@ -0,0 +1,216 @@ +== Temporary log file in case of crash /home/alice/build-logs/20261117_042207/sapphirerapids/easybuild-logs/hello-2.12.1-GCCcore-13.3.0/easybuild-z4apo5vm.log +== found valid index for +/cvmfs/software.eessi.io/versions/2025.06/software/linux/x86_64/intel/sapphirera +pids/software/EasyBuild/5.4.2/easybuild/easyconfigs, so using it... +== Running parse hook for hello-2.12.1-GCCcore-13.3.0.eb... +== found valid index for +/cvmfs/software.eessi.io/versions/2025.06/software/linux/x86_64/intel/sapphirera +pids/software/EasyBuild/5.4.2/easybuild/easyconfigs, so using it... +== Running parse hook for GCCcore-13.3.0.eb... +== resolving dependencies ... +== Running pre_build_and_install_loop hook... +== Running parse hook for foss-2024a.eb... +== Running parse hook for GCC-13.3.0.eb... +== Running parse hook for OpenMPI-5.0.3-GCC-13.3.0.eb... +== Running parse hook for GCC-13.3.0.eb... +== Running parse hook for GCCcore-13.3.0.eb... +== Running parse hook for M4-1.4.19.eb... +== Running parse hook for FlexiBLAS-3.4.4-GCC-13.3.0.eb... +== Running parse hook for FFTW-3.3.10-GCC-13.3.0.eb... +== Running parse hook for FFTW.MPI-3.3.10-gompi-2024a.eb... +== Running parse hook for gompi-2024a.eb... +== Running parse hook for gompi-2024a.eb... +== Running parse hook for ScaLAPACK-2.2.0-gompi-2024a-fb.eb... +== Running parse hook for gfbf-2024a.eb... +== Running parse hook for foss-2025a.eb... +== Running parse hook for GCC-14.2.0.eb... +== Running parse hook for OpenMPI-5.0.7-GCC-14.2.0.eb... +== Running parse hook for GCC-14.2.0.eb... +== Running parse hook for GCCcore-14.2.0.eb... +== Running parse hook for FlexiBLAS-3.4.5-GCC-14.2.0.eb... +== Running parse hook for FFTW-3.3.10-GCC-14.2.0.eb... +== Running parse hook for FFTW.MPI-3.3.10-gompi-2025a.eb... +== Running parse hook for gompi-2025a.eb... +== Running parse hook for gompi-2025a.eb... +== Running parse hook for ScaLAPACK-2.2.2-gompi-2025a-fb.eb... +== Running parse hook for gfbf-2025a.eb... +== Running parse hook for foss-2025b.eb... +== Running parse hook for GCC-14.3.0.eb... +== Running parse hook for OpenMPI-5.0.8-GCC-14.3.0.eb... +== Running parse hook for GCC-14.3.0.eb... +== Running parse hook for GCCcore-14.3.0.eb... +== Running parse hook for M4-1.4.20.eb... +== Running parse hook for FlexiBLAS-3.4.5-GCC-14.3.0.eb... +== Running parse hook for FFTW-3.3.10-GCC-14.3.0.eb... +== Running parse hook for FFTW.MPI-3.3.10-gompi-2025b.eb... +== Running parse hook for gompi-2025b.eb... +== Running parse hook for gompi-2025b.eb... +== Running parse hook for ScaLAPACK-2.2.2-gompi-2025b-fb.eb... +== Running parse hook for gfbf-2025b.eb... +== Running parse hook for lfoss-2025b.eb... +== Running parse hook for llvm-compilers-20.1.8.eb... +== Running parse hook for OpenMPI-5.0.8-llvm-compilers-20.1.8.eb... +== Running parse hook for llvm-compilers-20.1.8.eb... +== Running parse hook for LLVM-20.1.8-GCCcore-14.3.0.eb... +== Running parse hook for GCCcore-14.3.0.eb... +== Running parse hook for FlexiBLAS-3.4.5-llvm-compilers-20.1.8.eb... +== Running parse hook for FFTW-3.3.10-llvm-compilers-20.1.8.eb... +== Running parse hook for FFTW.MPI-3.3.10-lompi-2025b.eb... +== Running parse hook for lompi-2025b.eb... +== Running parse hook for lompi-2025b.eb... +== Running parse hook for ScaLAPACK-2.2.2-lompi-2025b-fb.eb... +== Running parse hook for lfbf-2025b.eb... +== Running parse hook for rompi-2025a.eb... +== Running parse hook for rocm-compilers-19.0.0-ROCm-6.4.1.eb... +== Running parse hook for OpenMPI-5.0.7-rocm-compilers-19.0.0-ROCm-6.4.1.eb... +== Running parse hook for rocm-compilers-19.0.0-ROCm-6.4.1.eb... +== Running parse hook for ROCm-LLVM-19.0.0-GCCcore-14.2.0-ROCm-6.4.1.eb... +== Running parse hook for GCCcore-14.2.0.eb... +== processing EasyBuild easyconfig +/home/alice/corpus/cases/pass-13/hello-2.12.1-GCCcore-13.3.0.eb +== building and installing hello/2.12.1-GCCcore-13.3.0... + >> installation prefix: +/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/so +ftware/hello/2.12.1-GCCcore-13.3.0 +== fetching files and verifying checksums... +== Running pre-fetch hook... + >> sources: + >> /home/alice/sources/h/hello/hello-2.12.1.tar.gz [SHA256: +8d99142afd92576f30b0cd7cb42a8dc6809998bc5d607d88761f512e26c7db20] + +WARNING: Failed to download recent config.guess to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess + + >> download failed: +https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d +5d8800c472bc2452eaa16e37af2 +== ... (took 1 min 0 secs) +== creating build dir, resetting environment... + >> build dir: /tmp/alice/easybuild/build/hello/2.12.1/GCCcore-13.3.0 + +WARNING: Deprecated functionality, will no longer work in EasyBuild v6.0: Easyconfig parameter 'parallel' is deprecated, use 'max_parallel' or the parallel property instead.; see https://docs.easybuild.io/deprecated-functionality/ for more information + +== Running post-ready hook... +== ... (took < 1 sec) +== unpacking... + >> running shell command: + tar xzf /home/alice/sources/h/hello/hello-2.12.1.tar.gz + [started at: 2026-11-17 04:26:07] + [working dir: /tmp/alice/easybuild/build/hello/2.12.1/GCCcore-13.3.0] + [output and state saved to +/tmp/alice/easybuild/eb-ml0gcapo/run-shell-cmd-output/tar-00fo_r7p] + >> command completed: exit 0, ran in < 1s +== ... (took < 1 sec) +== patching... +== ... (took < 1 sec) +== preparing... +== Running pre-prepare hook... + >> loading toolchain module: GCCcore/13.3.0 + >> defining build environment for GCCcore/13.3.0 toolchain +== Running post-prepare hook... +== ... (took < 1 sec) +== configuring... +== Running pre-configure hook... + +WARNING: Failed to download recent config.guess to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess + + +WARNING: No config.guess available, not setting '--build' option for configure step +EasyBuild attempts to download a recent config.guess but seems to have failed! + + >> download failed: +https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d +5d8800c472bc2452eaa16e37af2 + >> running shell command: + ./configure +--prefix=/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphire +rapids/software/hello/2.12.1-GCCcore-13.3.0 + [started at: 2026-11-17 04:27:07] + [working dir: +/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-13.3.0/hello-2.12.1] + [output and state saved to +/tmp/alice/easybuild/eb-ml0gcapo/run-shell-cmd-output/configure-zm8sqprg] + >> command completed: exit 0, ran in 00h00m35s +== ... (took 1 min 35 secs) +== building... + >> running shell command: + make -j 8 + [started at: 2026-11-17 04:27:43] + [working dir: +/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-13.3.0/hello-2.12.1] + [output and state saved to +/tmp/alice/easybuild/eb-ml0gcapo/run-shell-cmd-output/make-q2xxl8vv] + >> command completed: exit 0, ran in 00h00m01s +== ... (took 1 secs) +== testing... +== Running pre-test hook... + >> running shell command: + make check + [started at: 2026-11-17 04:27:44] + [working dir: +/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-13.3.0/hello-2.12.1] + [output and state saved to +/tmp/alice/easybuild/eb-ml0gcapo/run-shell-cmd-output/make-0cuceusf] + >> command completed: exit 0, ran in < 1s +== ... (took < 1 sec) +== installing... + >> running shell command: + make install + [started at: 2026-11-17 04:27:45] + [working dir: +/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-13.3.0/hello-2.12.1] + [output and state saved to +/tmp/alice/easybuild/eb-ml0gcapo/run-shell-cmd-output/make-4e5w301g] + >> command completed: exit 0, ran in < 1s +== ... (took < 1 sec) +== taking care of extensions... +== ... (took < 1 sec) +== restore after iterating... +== ... (took < 1 sec) +== postprocessing... +== Running post-postproc hook... +== ... (took < 1 sec) +== sanity checking... +== Running pre-sanitycheck hook... + >> file 'bin/hello' found: OK + >> (non-empty) directory 'share/man/man1' found: OK + >> loading modules: hello/2.12.1-GCCcore-13.3.0... + >> running command 'hello --version' ... + >> result for command 'hello --version': OK +== Running post-sanitycheck hook... +== ... (took < 1 sec) +== cleaning up... +== ... (took < 1 sec) +== creating module... +== Running pre-module hook... + >> generating module file @ +/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/mo +dules/all/hello/2.12.1-GCCcore-13.3.0.lua +== Running post-module hook... +== ... (took < 1 sec) +== permissions... +== ... (took < 1 sec) +== packaging... +== ... (took < 1 sec) + >> running shell command: + bzip2 +/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/so +ftware/hello/2.12.1-GCCcore-13.3.0/easybuild/easybuild-hello-2.12.1-20261117.042 +746.log + [started at: 2026-11-17 04:27:46] + [working dir: /tmp/eb-stack-0418d85a/src] + [output and state saved to +/tmp/alice/easybuild/eb-ml0gcapo/run-shell-cmd-output/bzip2-ad4nlyzy] + >> command completed: exit 0, ran in < 1s +== COMPLETED: Installation ended successfully (took 2 mins 40 secs) +== Results of the build can be found in the log file(s) +/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/so +ftware/hello/2.12.1-GCCcore-13.3.0/easybuild/easybuild-hello-2.12.1-20261117.042 +746.log.bz2 +== Running post-easyblock hook... +== Build succeeded for 1 out of 1 (total: 2 mins 40 secs) +== Summary: + * [SUCCESS] hello/2.12.1-GCCcore-13.3.0 +== Temporary log file(s) +/home/alice/build-logs/20261117_042207/sapphirerapids/easybuild-logs/hello-2.12. +1-GCCcore-13.3.0/easybuild-z4apo5vm.log* have been removed. +== Temporary directory /tmp/alice/easybuild/eb-ml0gcapo has been removed. diff --git a/tests/fixtures/build-logs/20261117_042207/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.stdout.log b/tests/fixtures/build-logs/20261117_042207/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.stdout.log new file mode 100644 index 0000000..75eed57 --- /dev/null +++ b/tests/fixtures/build-logs/20261117_042207/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.stdout.log @@ -0,0 +1,215 @@ +== Temporary log file in case of crash /home/alice/build-logs/20261117_042207/sapphirerapids/easybuild-logs/hello-2.12.1-GCCcore-14.2.0/easybuild-33749yzb.log +== found valid index for +/cvmfs/software.eessi.io/versions/2025.06/software/linux/x86_64/intel/sapphirera +pids/software/EasyBuild/5.4.2/easybuild/easyconfigs, so using it... +== Running parse hook for hello-2.12.1-GCCcore-14.2.0.eb... +== found valid index for +/cvmfs/software.eessi.io/versions/2025.06/software/linux/x86_64/intel/sapphirera +pids/software/EasyBuild/5.4.2/easybuild/easyconfigs, so using it... +== Running parse hook for GCCcore-14.2.0.eb... +== resolving dependencies ... +== Running pre_build_and_install_loop hook... +== Running parse hook for foss-2024a.eb... +== Running parse hook for GCC-13.3.0.eb... +== Running parse hook for OpenMPI-5.0.3-GCC-13.3.0.eb... +== Running parse hook for GCC-13.3.0.eb... +== Running parse hook for GCCcore-13.3.0.eb... +== Running parse hook for M4-1.4.19.eb... +== Running parse hook for FlexiBLAS-3.4.4-GCC-13.3.0.eb... +== Running parse hook for FFTW-3.3.10-GCC-13.3.0.eb... +== Running parse hook for FFTW.MPI-3.3.10-gompi-2024a.eb... +== Running parse hook for gompi-2024a.eb... +== Running parse hook for gompi-2024a.eb... +== Running parse hook for ScaLAPACK-2.2.0-gompi-2024a-fb.eb... +== Running parse hook for gfbf-2024a.eb... +== Running parse hook for foss-2025a.eb... +== Running parse hook for GCC-14.2.0.eb... +== Running parse hook for OpenMPI-5.0.7-GCC-14.2.0.eb... +== Running parse hook for GCC-14.2.0.eb... +== Running parse hook for GCCcore-14.2.0.eb... +== Running parse hook for FlexiBLAS-3.4.5-GCC-14.2.0.eb... +== Running parse hook for FFTW-3.3.10-GCC-14.2.0.eb... +== Running parse hook for FFTW.MPI-3.3.10-gompi-2025a.eb... +== Running parse hook for gompi-2025a.eb... +== Running parse hook for gompi-2025a.eb... +== Running parse hook for ScaLAPACK-2.2.2-gompi-2025a-fb.eb... +== Running parse hook for gfbf-2025a.eb... +== Running parse hook for foss-2025b.eb... +== Running parse hook for GCC-14.3.0.eb... +== Running parse hook for OpenMPI-5.0.8-GCC-14.3.0.eb... +== Running parse hook for GCC-14.3.0.eb... +== Running parse hook for GCCcore-14.3.0.eb... +== Running parse hook for M4-1.4.20.eb... +== Running parse hook for FlexiBLAS-3.4.5-GCC-14.3.0.eb... +== Running parse hook for FFTW-3.3.10-GCC-14.3.0.eb... +== Running parse hook for FFTW.MPI-3.3.10-gompi-2025b.eb... +== Running parse hook for gompi-2025b.eb... +== Running parse hook for gompi-2025b.eb... +== Running parse hook for ScaLAPACK-2.2.2-gompi-2025b-fb.eb... +== Running parse hook for gfbf-2025b.eb... +== Running parse hook for lfoss-2025b.eb... +== Running parse hook for llvm-compilers-20.1.8.eb... +== Running parse hook for OpenMPI-5.0.8-llvm-compilers-20.1.8.eb... +== Running parse hook for llvm-compilers-20.1.8.eb... +== Running parse hook for LLVM-20.1.8-GCCcore-14.3.0.eb... +== Running parse hook for GCCcore-14.3.0.eb... +== Running parse hook for FlexiBLAS-3.4.5-llvm-compilers-20.1.8.eb... +== Running parse hook for FFTW-3.3.10-llvm-compilers-20.1.8.eb... +== Running parse hook for FFTW.MPI-3.3.10-lompi-2025b.eb... +== Running parse hook for lompi-2025b.eb... +== Running parse hook for lompi-2025b.eb... +== Running parse hook for ScaLAPACK-2.2.2-lompi-2025b-fb.eb... +== Running parse hook for lfbf-2025b.eb... +== Running parse hook for rompi-2025a.eb... +== Running parse hook for rocm-compilers-19.0.0-ROCm-6.4.1.eb... +== Running parse hook for OpenMPI-5.0.7-rocm-compilers-19.0.0-ROCm-6.4.1.eb... +== Running parse hook for rocm-compilers-19.0.0-ROCm-6.4.1.eb... +== Running parse hook for ROCm-LLVM-19.0.0-GCCcore-14.2.0-ROCm-6.4.1.eb... +== processing EasyBuild easyconfig +/home/alice/corpus/cases/pass/hello-2.12.1-GCCcore-14.2.0.eb +== building and installing hello/2.12.1-GCCcore-14.2.0... + >> installation prefix: +/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/so +ftware/hello/2.12.1-GCCcore-14.2.0 +== fetching files and verifying checksums... +== Running pre-fetch hook... + >> sources: + >> /home/alice/sources/h/hello/hello-2.12.1.tar.gz [SHA256: +8d99142afd92576f30b0cd7cb42a8dc6809998bc5d607d88761f512e26c7db20] + +WARNING: Failed to download recent config.guess to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess + + >> download failed: +https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d +5d8800c472bc2452eaa16e37af2 +== ... (took 1 min 0 secs) +== creating build dir, resetting environment... + >> build dir: /tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0 + +WARNING: Deprecated functionality, will no longer work in EasyBuild v6.0: Easyconfig parameter 'parallel' is deprecated, use 'max_parallel' or the parallel property instead.; see https://docs.easybuild.io/deprecated-functionality/ for more information + +== Running post-ready hook... +== ... (took < 1 sec) +== unpacking... + >> running shell command: + tar xzf /home/alice/sources/h/hello/hello-2.12.1.tar.gz + [started at: 2026-11-17 04:23:11] + [working dir: /tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0] + [output and state saved to +/tmp/alice/easybuild/eb-2gz06mdp/run-shell-cmd-output/tar-0sviqumv] + >> command completed: exit 0, ran in < 1s +== ... (took < 1 sec) +== patching... +== ... (took < 1 sec) +== preparing... +== Running pre-prepare hook... + >> loading toolchain module: GCCcore/14.2.0 + >> defining build environment for GCCcore/14.2.0 toolchain +== Running post-prepare hook... +== ... (took < 1 sec) +== configuring... +== Running pre-configure hook... + +WARNING: Failed to download recent config.guess to /home/alice/sources/generic/eb_v5.4.2/ConfigureMake/config.guess + + +WARNING: No config.guess available, not setting '--build' option for configure step +EasyBuild attempts to download a recent config.guess but seems to have failed! + + >> download failed: +https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=28ea239c53a2d +5d8800c472bc2452eaa16e37af2 + >> running shell command: + ./configure +--prefix=/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphire +rapids/software/hello/2.12.1-GCCcore-14.2.0 + [started at: 2026-11-17 04:24:11] + [working dir: +/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1] + [output and state saved to +/tmp/alice/easybuild/eb-2gz06mdp/run-shell-cmd-output/configure-huke00m4] + >> command completed: exit 0, ran in 00h00m37s +== ... (took 1 min 37 secs) +== building... + >> running shell command: + make -j 8 + [started at: 2026-11-17 04:24:49] + [working dir: +/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1] + [output and state saved to +/tmp/alice/easybuild/eb-2gz06mdp/run-shell-cmd-output/make-hp1yib1m] + >> command completed: exit 0, ran in 00h00m01s +== ... (took 1 secs) +== testing... +== Running pre-test hook... + >> running shell command: + make check + [started at: 2026-11-17 04:24:50] + [working dir: +/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1] + [output and state saved to +/tmp/alice/easybuild/eb-2gz06mdp/run-shell-cmd-output/make-478e29yt] + >> command completed: exit 0, ran in < 1s +== ... (took < 1 sec) +== installing... + >> running shell command: + make install + [started at: 2026-11-17 04:24:50] + [working dir: +/tmp/alice/easybuild/build/hello/2.12.1/GCCcore-14.2.0/hello-2.12.1] + [output and state saved to +/tmp/alice/easybuild/eb-2gz06mdp/run-shell-cmd-output/make-3_ad851n] + >> command completed: exit 0, ran in < 1s +== ... (took < 1 sec) +== taking care of extensions... +== ... (took < 1 sec) +== restore after iterating... +== ... (took < 1 sec) +== postprocessing... +== Running post-postproc hook... +== ... (took < 1 sec) +== sanity checking... +== Running pre-sanitycheck hook... + >> file 'bin/hello' found: OK + >> (non-empty) directory 'share/man/man1' found: OK + >> loading modules: hello/2.12.1-GCCcore-14.2.0... + >> running command 'hello --version' ... + >> result for command 'hello --version': OK +== Running post-sanitycheck hook... +== ... (took < 1 sec) +== cleaning up... +== ... (took < 1 sec) +== creating module... +== Running pre-module hook... + >> generating module file @ +/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/mo +dules/all/hello/2.12.1-GCCcore-14.2.0.lua +== Running post-module hook... +== ... (took 11 secs) +== permissions... +== ... (took < 1 sec) +== packaging... +== ... (took < 1 sec) + >> running shell command: + bzip2 +/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/so +ftware/hello/2.12.1-GCCcore-14.2.0/easybuild/easybuild-hello-2.12.1-20261117.042 +503.log + [started at: 2026-11-17 04:25:03] + [working dir: /tmp/eb-stack-0418d85a/src] + [output and state saved to +/tmp/alice/easybuild/eb-2gz06mdp/run-shell-cmd-output/bzip2-8sbwhaev] + >> command completed: exit 0, ran in < 1s +== COMPLETED: Installation ended successfully (took 2 mins 52 secs) +== Results of the build can be found in the log file(s) +/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/so +ftware/hello/2.12.1-GCCcore-14.2.0/easybuild/easybuild-hello-2.12.1-20261117.042 +503.log.bz2 +== Running post-easyblock hook... +== Build succeeded for 1 out of 1 (total: 2 mins 53 secs) +== Summary: + * [SUCCESS] hello/2.12.1-GCCcore-14.2.0 +== Temporary log file(s) +/home/alice/build-logs/20261117_042207/sapphirerapids/easybuild-logs/hello-2.12. +1-GCCcore-14.2.0/easybuild-33749yzb.log* have been removed. +== Temporary directory /tmp/alice/easybuild/eb-2gz06mdp has been removed. diff --git a/tests/fixtures/why/20261117_040615.txt b/tests/fixtures/why/20261117_040615.txt new file mode 100644 index 0000000..dacbd29 --- /dev/null +++ b/tests/fixtures/why/20261117_040615.txt @@ -0,0 +1,14 @@ +tests/fixtures/build-logs/20261117_040615: 1 failed build of 1 + +sapphirerapids/hello-2.12.1-GCCcore-14.2.0 failed in the build step, after 3m06s + package: hello/2.12.1-GCCcore-14.2.0 + easyconfig: /home/alice/corpus/cases/compile/hello-2.12.1-GCCcore-14.2.0.eb + EasyBuild: shell command 'make ...' failed with exit code 2 in build step for hello-2.12.1-GCCcore-14.2.0.eb + log: tests/fixtures/build-logs/20261117_040615/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.failed.ebout.log:291 + 288 | gcc -DLOCALEDIR=\"/home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-14.2.0/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -ftree-vectorize -march=native -fno-math-errno -MT lib/exitfail.o -MD -MP -MF $depbase.Tpo -c -o lib/exitfail.o lib/exitfail.c &&\ + 289 | mv -f $depbase.Tpo $depbase.Po + 290 | src/hello.c: In function 'main': + > 291 | src/hello.c:149:18: error: 'site_greeting' undeclared (first use in this function); did you mean 'mb_greeting'? + 292 | 149 | greeting_msg = site_greeting; + 293 | | ^~~~~~~~~~~~~ + 294 | | mb_greeting diff --git a/tests/fixtures/why/20261117_041222.json b/tests/fixtures/why/20261117_041222.json new file mode 100644 index 0000000..d7958e8 --- /dev/null +++ b/tests/fixtures/why/20261117_041222.json @@ -0,0 +1 @@ +{"schema_version":1,"kind":"why","run":"20261117_041222","run_dir":"tests/fixtures/build-logs/20261117_041222","counts":{"success":1,"failed":2,"unknown":0},"failures":[{"target":"sapphirerapids","name":"hello-2.12.1-GCCcore-13.3.0","package":"hello/2.12.1-GCCcore-13.3.0","easyconfig":"/home/alice/corpus/cases/sanity/hello-2.12.1-GCCcore-13.3.0.eb","step":"sanitycheck","message":"Sanity check failed: no file found at 'lib/libhello.a' in /home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-13.3.0","duration_s":174,"log":"tests/fixtures/build-logs/20261117_041222/sapphirerapids/hello-2.12.1-GCCcore-13.3.0.failed.ebout.log","error":{"line":258,"text":"== 2026-11-17 04:17:57,955 build_log.py:233 ERROR EasyBuild encountered an error: Sanity check failed: no file found at 'lib/libhello.a' in /home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-13.3.0 (at easybuild/framework/easyblock.py:4753 in _sanity_check_step)","before":["\treadelf -d /home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-13.3.0/bin/hello","== 2026-11-17 04:17:57,895 run.py:650 INFO Shell command completed successfully","== 2026-11-17 04:17:57,896 easyblock.py:1995 INFO Restoring environment after unloading fake module"],"after":["Callstack:","\teasybuild/framework/easyblock.py:4753 in _sanity_check_step","\teasybuild/framework/easyblock.py:3688 in _dispatch_sanity_check_step"]}},{"target":"sapphirerapids","name":"hello-2.12.1-GCCcore-14.2.0","package":"hello/2.12.1-GCCcore-14.2.0","easyconfig":"/home/alice/corpus/cases/test/hello-2.12.1-GCCcore-14.2.0.eb","step":"test","message":"shell command 'make ...' failed in test step for hello-2.12.1-GCCcore-14.2.0.eb","duration_s":153,"log":"tests/fixtures/build-logs/20261117_041222/sapphirerapids/hello-2.12.1-GCCcore-14.2.0.failed.ebout.log","error":{"line":209,"text":"== 2026-11-17 04:14:59,217 build_log.py:233 ERROR EasyBuild encountered an error: shell command 'make ...' failed in test step for hello-2.12.1-GCCcore-14.2.0.eb (at easybuild/framework/easyblock.py:2829 in report_test_failure)","before":["make: *** [Makefile:2997: check] Error 2","","== 2026-11-17 04:14:59,213 easyblock.py:3357 WARNING shell command 'make check' failed in test step for hello-2.12.1-GCCcore-14.2.0.eb"],"after":["Callstack:","\teasybuild/framework/easyblock.py:2829 in report_test_failure","\teasybuild/framework/easyblock.py:3358 in _test_step"]}}]} diff --git a/tests/fixtures/why/history-hello-2.12.1-GCCcore-13.3.0.json b/tests/fixtures/why/history-hello-2.12.1-GCCcore-13.3.0.json new file mode 100644 index 0000000..cb811f7 --- /dev/null +++ b/tests/fixtures/why/history-hello-2.12.1-GCCcore-13.3.0.json @@ -0,0 +1 @@ +{"schema_version":1,"kind":"history","package":"hello-2.12.1-GCCcore-13.3.0","root":"tests/fixtures/build-logs","counts":{"success":1,"failed":1,"unknown":0},"builds":[{"run":"20261117_041222","target":"sapphirerapids","name":"hello-2.12.1-GCCcore-13.3.0","outcome":"failed","duration_s":174,"log":"tests/fixtures/build-logs/20261117_041222/sapphirerapids/hello-2.12.1-GCCcore-13.3.0.stdout.log"},{"run":"20261117_042207","target":"sapphirerapids","name":"hello-2.12.1-GCCcore-13.3.0","outcome":"success","duration_s":160,"log":"tests/fixtures/build-logs/20261117_042207/sapphirerapids/hello-2.12.1-GCCcore-13.3.0.stdout.log"}]} diff --git a/tests/fixtures/why/history-hello.txt b/tests/fixtures/why/history-hello.txt new file mode 100644 index 0000000..9ab1333 --- /dev/null +++ b/tests/fixtures/why/history-hello.txt @@ -0,0 +1,14 @@ +hello: 11 builds under tests/fixtures/build-logs: 3 succeeded, 8 failed + +RUN TARGET OUTCOME DURATION NAME +20261117_035825 sapphirerapids failed 48s hello-2.12.1-GCCcore-14.2.0 +20261117_040032 sapphirerapids failed 41s hello-2.12.1-GCCcore-14.2.0 +20261117_040119 sapphirerapids failed - hello-2.12.1-GCCcore-14.2.0 +20261117_040311 sapphirerapids failed 2m24s hello-2.12.1-GCCcore-14.2.0 +20261117_040615 sapphirerapids failed 3m06s hello-2.12.1-GCCcore-14.2.0 +20261117_040928 sapphirerapids failed 2m30s hello-2.12.1-GCCcore-14.2.0 +20261117_041222 generic success 2m50s hello-2.12.1-GCCcore-14.2.0 +20261117_041222 sapphirerapids failed 2m54s hello-2.12.1-GCCcore-13.3.0 +20261117_041222 sapphirerapids failed 2m33s hello-2.12.1-GCCcore-14.2.0 +20261117_042207 sapphirerapids success 2m40s hello-2.12.1-GCCcore-13.3.0 +20261117_042207 sapphirerapids success 2m52s hello-2.12.1-GCCcore-14.2.0 diff --git a/tests/test_eb_keep_logs.sh b/tests/test_eb_keep_logs.sh index 787d1e5..b00bc3b 100755 --- a/tests/test_eb_keep_logs.sh +++ b/tests/test_eb_keep_logs.sh @@ -343,12 +343,14 @@ check "help: the copy is the session log" "$("${tool}" --help | grep -c 'EasyBui check "help: EB_KEEP_LOGS_NOW" "$("${tool}" --help | grep -c 'EB_KEEP_LOGS_NOW')" "1" # --help lists every option either parser takes: the words starting with - # that the shell script's case patterns and the Zig build's comparisons of -# an argument name. An option that takes a value gives its default or says -# it is required, and the exit statuses are listed. +# an argument name, or its optionValue calls, which take NAME and NAME=, +# name. An option that takes a value gives its default or says it is +# required, and the exit statuses are listed. "${tool}" --help > "${work}/help" options=$({ grep -oE -- '^ *-[-a-z|=*]+\)' "${repo_root}/eb-keep-logs" | tr -d ' )*' | tr '|' '\n' | grep -vx -- - - grep -oE '\(u8, [a-z_]+, "-[^"]*"\)' "${repo_root}/src/main.zig" | cut -d '"' -f 2 + grep -ohE '\(u8, [a-z_]+, "-[^"]*"\)' "${repo_root}"/src/*.zig | cut -d '"' -f 2 + grep -ohE 'optionValue\([a-z_]+, &[a-z_]+, "-[^"]*"' "${repo_root}"/src/*.zig | cut -d '"' -f 2 | sed 'p; s/$/=/' } | LC_ALL=C sort -u) # listed OPT: whether --help names OPT as a word, or OPT= followed by a value. listed() { diff --git a/tests/test_why.sh b/tests/test_why.sh new file mode 100644 index 0000000..c549e56 --- /dev/null +++ b/tests/test_why.sh @@ -0,0 +1,215 @@ +#!/bin/bash +# Tests for eb-keep-logs why and history, on the kept logs of real +# EasyBuild 5.4.2 failures in tests/fixtures/build-logs. Both are in the +# Zig build only: +# TOOL_BIN=zig-out/bin/eb-keep-logs bash tests/test_why.sh +set -u + +repo_root=$(cd "$(dirname "$0")/.." && pwd) +tool="${TOOL_BIN:?TOOL_BIN names the Zig build}" +case "${tool}" in /*) ;; *) tool="${PWD}/${tool}" ;; esac +# Paths in the output are as given, so the expected ones are relative to +# the repository. +cd "${repo_root}" || exit 1 +logs=tests/fixtures/build-logs + +fails=0 +# Failures go to stderr: zig build test shows a script's stderr, not stdout. +check() { + if [ "$2" = "$3" ]; then + echo "ok $1" + else + { + echo "FAIL $1" + echo " expected: $3" + echo " got: $2" + } >&2 + fails=$((fails + 1)) + fi +} + +work=$(mktemp -d "${TMPDIR:-/tmp}/eb-keep-logs-why.XXXXXX") +trap 'rm -rf -- "${work}"' EXIT + +# expect LABEL RUN WHAT WHERE ERROR: why RUN says WHAT failed, with its log +# and line WHERE, under RUN, and the error line it shows ERROR. Each is one +# line per failure. +expect() { + local out + out=$("${tool}" why "${logs}/$2") + check "$1: what failed" "$(grep -E '^[^ ]+ failed (in|before) ' <<< "${out}")" "$3" + check "$1: where" "$(sed -n 's/^ log: *//p' <<< "${out}")" "$4" + check "$1: error line" "$(sed -n 's/^ > [0-9]* | //p' <<< "${out}")" "$5" +} + +b=hello-2.12.1-GCCcore-14.2.0 +s=sapphirerapids/${b} +# Without a compiler or linker error, the error line is EasyBuild's own. +r=${logs}/20261117_035825 +expect "wrong checksum" 20261117_035825 \ + "${s} failed in the fetch step, after 48s" \ + "${r}/${s}.failed.ebout.log.gz:61" \ + "== 2026-11-17 03:59:32,778 build_log.py:233 ERROR EasyBuild encountered an error: Checksum verification for /home/alice/sources/h/hello/hello-2.12.1.tar.gz using cf04af86dc085268c5f4470fbae49b18afbc221b78096aab842d934a76bad0ab failed. (at easybuild/framework/easyblock.py:3026 in checksum_step)" +r=${logs}/20261117_040032 +expect "broken patch" 20261117_040032 \ + "${s} failed in the patch step, after 41s" \ + "${r}/${s}.failed.ebout.log.gz:106" \ + "== 2026-11-17 04:01:16,936 build_log.py:233 ERROR EasyBuild encountered an error: Couldn't apply patch file /home/alice/corpus/cases/patch/hello-2.12.1_env-greeting.patch. Process exited with code 1: patching file src/hello.c" +r=${logs}/20261117_040119 +expect "missing dependency" 20261117_040119 \ + "${s} failed before its first step" \ + "${r}/${s}.failed.ebout.log.gz:29" \ + "== 2026-11-17 04:01:22,080 build_log.py:233 ERROR EasyBuild encountered an error: Missing dependencies: libgreet/1.0-GCCcore-14.2.0 (no easyconfig file or existing module found) (at easybuild/tools/robot.py:352 in raise_error_missing_deps)" +r=${logs}/20261117_040311 +expect "failing configure" 20261117_040311 \ + "${s} failed in the configure step, after 2m24s" \ + "${r}/${s}.failed.ebout.log.gz:134" \ + "== 2026-11-17 04:05:39,980 build_log.py:233 ERROR EasyBuild encountered an error: shell command 'configure ...' failed with exit code 77 in configure step for hello-2.12.1-GCCcore-14.2.0.eb (at easybuild/framework/easyblock.py:5266 in run_all_steps)" +r=${logs}/20261117_040615 +expect "compiler error" 20261117_040615 \ + "${s} failed in the build step, after 3m06s" \ + "${r}/${s}.failed.ebout.log:291" \ + "src/hello.c:149:18: error: 'site_greeting' undeclared (first use in this function); did you mean 'mb_greeting'?" +r=${logs}/20261117_040928 +expect "undefined reference" 20261117_040928 \ + "${s} failed in the build step, after 2m30s" \ + "${r}/${s}.failed.ebout.log:295" \ + "hello.c:(.text.startup+0x4a): undefined reference to \`site_greeting'" +r=${logs}/20261117_041222 +expect "failing sanity check and tests, in one run" 20261117_041222 \ + "sapphirerapids/hello-2.12.1-GCCcore-13.3.0 failed in the sanitycheck step, after 2m54s +${s} failed in the test step, after 2m33s" \ + "${r}/sapphirerapids/hello-2.12.1-GCCcore-13.3.0.failed.ebout.log:258 +${r}/${s}.failed.ebout.log:209" \ + "== 2026-11-17 04:17:57,955 build_log.py:233 ERROR EasyBuild encountered an error: Sanity check failed: no file found at 'lib/libhello.a' in /home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-13.3.0 (at easybuild/framework/easyblock.py:4753 in _sanity_check_step) +== 2026-11-17 04:14:59,217 build_log.py:233 ERROR EasyBuild encountered an error: shell command 'make ...' failed in test step for hello-2.12.1-GCCcore-14.2.0.eb (at easybuild/framework/easyblock.py:2829 in report_test_failure)" +check "a run without failures says so" "$("${tool}" why "${logs}/20261117_042207")" \ + "${logs}/20261117_042207: 0 failed builds of 2" + +check "the whole text report" "$("${tool}" why "${logs}/20261117_040615")" \ + "$(cat tests/fixtures/why/20261117_040615.txt)" +check "--json: schema 1, on one line" "$("${tool}" why --json "${logs}/20261117_041222")" \ + "$(cat tests/fixtures/why/20261117_041222.json)" + +# Which run and which builds. +check "--latest: the newest run" "$("${tool}" why --latest --root "${logs}" | head -1)" \ + "${logs}/20261117_042207: 0 failed builds of 2" +check "no RUN is --latest" "$(cd "${logs}" && "${tool}" why | head -1)" "20261117_042207: 0 failed builds of 2" +check "--latest --target: the newest run with that target" \ + "$("${tool}" why --latest --target generic --root "${logs}" | head -1)" \ + "${logs}/20261117_041222: 0 failed builds of 1" +check "--target: only its builds" \ + "$("${tool}" why --root="${logs}" --target=sapphirerapids 20261117_041222 | head -1)" \ + "${logs}/20261117_041222: 2 failed builds of 2" +check "--json counts every outcome" \ + "$("${tool}" why --json "${logs}/20261117_041222" | grep -o '"counts":{[^}]*}')" \ + '"counts":{"success":1,"failed":2,"unknown":0}' + +# A run read once as kept and once after rotate compressed it reports the +# same, its logs named .gz. +mkdir -p "${work}/rotated" +cp -R "${logs}/20261117_041222" "${work}/rotated/" +plain=$("${tool}" why --json --root "${work}/rotated" 20261117_041222) +plain_history=$("${tool}" history --json --root "${work}/rotated" hello) +EB_KEEP_LOGS_NOW=4102444800 "${tool}" rotate "${work}/rotated" --compress-after 1 > /dev/null +check "rotate compressed every log" "$(find "${work}/rotated" -type f -name '*.log' | wc -l | tr -d ' ')" "0" +check "compressed: the same report" \ + "$("${tool}" why --json --root "${work}/rotated" 20261117_041222 | sed 's/\.log\.gz"/.log"/g')" "${plain}" +check "compressed: the same history" \ + "$("${tool}" history --json --root "${work}/rotated" hello | sed 's/\.log\.gz"/.log"/g')" "${plain_history}" + +# A build that kept only its terminal output is read from that; 80-column +# wrapping is undone. +mkdir -p "${work}/stdout/20261117_041222/sapphirerapids" +cp "${logs}/20261117_041222/sapphirerapids/hello-2.12.1-GCCcore-13.3.0.stdout.log" "${work}/stdout/20261117_041222/sapphirerapids/" +out=$("${tool}" why --root "${work}/stdout" 20261117_041222) +check "terminal output only: what failed" "$(grep -E '^[^ ]+ failed ' <<< "${out}")" \ + "sapphirerapids/hello-2.12.1-GCCcore-13.3.0 failed in the sanitycheck step, after 2m54s" +check "terminal output only: EasyBuild's message unwrapped" "$(sed -n 's/^ EasyBuild: *//p' <<< "${out}")" \ + "Sanity check failed: no file found at 'lib/libhello.a' in /home/alice/eessi/versions/2025.06/software/linux/x86_64/intel/sapphirerapids/software/hello/2.12.1-GCCcore-13.3.0" +check "terminal output only: EasyBuild's FAILED entry" "$(sed -n 's/^ > //p' <<< "${out}")" \ + "181 | == FAILED: Installation ended unsuccessfully: Sanity check failed: no file found" + +# A run that keeps its builds in its own directory, as failed given the run +# as LOGDIR keeps them, is read as well; they have no target. +mkdir -p "${work}/flat/20261117_040615/easybuild-logs" +cp "${logs}/20261117_040615/sapphirerapids/"* "${work}/flat/20261117_040615/" +out=$("${tool}" why --root "${work}/flat" 20261117_040615) +check "the run's own directory: what failed" "$(grep -E '^[^ ]+ failed ' <<< "${out}")" \ + "${b} failed in the build step, after 3m06s" +check "the run's own directory: where" "$(sed -n 's/^ log: *//p' <<< "${out}")" \ + "${work}/flat/20261117_040615/${b}.failed.ebout.log:291" +check "the run's own directory: no target" \ + "$("${tool}" why --json --root "${work}/flat" 20261117_040615 | grep -o '"target":[^,]*')" '"target":null' + +# A log that cannot be read is reported, and the build still listed. +mkdir -p "${work}/broken/20261117_050000/node1" +echo "not gzip" > "${work}/broken/20261117_050000/node1/${b}.failed.ebout.log.gz" +out=$("${tool}" why --root "${work}/broken" 20261117_050000 2> "${work}/err") +check "unreadable log: exit 0" "$?" "0" +check "unreadable log: said on stderr" "$(cat "${work}/err")" \ + "eb-keep-logs: cannot read ${work}/broken/20261117_050000/node1/${b}.failed.ebout.log.gz: BadGzip" +check "unreadable log: the build is listed" "$(sed -n 's/^ log: *//p' <<< "${out}")" \ + "${work}/broken/20261117_050000/node1/${b}.failed.ebout.log.gz (no error recorded)" +# A build whose terminal output records no outcome is counted, not listed. +mkdir -p "${work}/broken/20261117_050000/node2" +echo "== building..." > "${work}/broken/20261117_050000/node2/${b}.stdout.log" +check "no outcome recorded: unknown" \ + "$("${tool}" why --json --root "${work}/broken" 20261117_050000 2> /dev/null | grep -o '"counts":{[^}]*}')" \ + '"counts":{"success":0,"failed":1,"unknown":1}' + +# history: every kept build of a package, oldest run first. +check "history: the whole text report" "$("${tool}" history hello --root "${logs}")" \ + "$(cat tests/fixtures/why/history-hello.txt)" +check "history --json: schema 1, on one line" \ + "$("${tool}" history --json --root "${logs}" hello-2.12.1-GCCcore-13.3.0)" \ + "$(cat tests/fixtures/why/history-hello-2.12.1-GCCcore-13.3.0.json)" +check "history: a module name is the easyconfig's" \ + "$("${tool}" history hello/2.12.1-GCCcore-13.3.0 --root "${logs}" | tail -n +2)" \ + "$("${tool}" history hello-2.12.1-GCCcore-13.3.0 --root "${logs}" | tail -n +2)" +check "history: the start of a name only up to a dash" "$("${tool}" history hell --root "${logs}")" \ + "hell: 0 builds under ${logs}" +check "history --target: only its builds" "$("${tool}" history --target=generic --root="${logs}" hello | tail -n 1)" \ + "20261117_041222 generic success 2m50s hello-2.12.1-GCCcore-14.2.0" +check "history: ROOT defaults to the current directory" "$(cd "${logs}" && "${tool}" history hello | head -1)" \ + "hello: 11 builds under .: 3 succeeded, 8 failed" +check "history: a build in the run's own directory has no target" \ + "$("${tool}" history hello --root "${work}/flat" | tail -n 1)" \ + "20261117_040615 - failed 3m06s ${b}" +check "history: a kept session log alone is a failure, unread" \ + "$("${tool}" history hello --root "${work}/broken" 2>&1)" \ + "hello: 2 builds under ${work}/broken: 0 succeeded, 1 failed, 1 unknown + +RUN TARGET OUTCOME DURATION NAME +20261117_050000 node1 failed - ${b} +20261117_050000 node2 unknown - ${b}" + +# refused LABEL MESSAGE ARGS...: eb-keep-logs ARGS exits 2 with MESSAGE on +# stderr. +refused() { + local label=$1 message=$2; shift 2 + "${tool}" "$@" > /dev/null 2> "${work}/err" + check "refused, ${label}: exit 2" "$?" "2" + check "refused, ${label}: message" "$(cat "${work}/err")" "eb-keep-logs: ${message}" +} +mkdir -p "${work}/empty" +refused "why, two runs" "why takes one RUN" why a b +refused "why, RUN and --latest" "why takes RUN or --latest, not both" why "${logs}/20261117_040615" --latest +refused "why, unknown option" "unknown option --bogus" why --bogus +refused "why, --target without a value" "--target needs a target" why --target +refused "why, empty --root" "--root needs a directory" why --root= +refused "why, empty RUN" "RUN must not be empty" why "" +refused "why, missing ROOT" "ROOT ${work}/nope is not a directory" why --root "${work}/nope" +refused "why, no run" "no run under ${work}/empty" why --root "${work}/empty" +refused "why, no run with the target" "no run under ${logs} has a target nope" why --latest --target nope --root "${logs}" +refused "why, missing RUN" "RUN ${work}/nope is not a directory" why "${work}/nope" +refused "why, missing TARGET" "TARGET nope is not a directory in ${logs}/20261117_040615" why "${logs}/20261117_040615" --target nope +refused "history, no PACKAGE" "history needs PACKAGE" history --root "${logs}" +refused "history, two packages" "history takes one PACKAGE" history a b +refused "history, empty PACKAGE" "PACKAGE must not be empty" history "" +refused "history, --latest" "unknown option --latest" history hello --latest +refused "history, --target without a value" "--target needs a target" history hello --target +refused "history, missing ROOT" "ROOT ${work}/nope is not a directory" history hello --root="${work}/nope" + +if [ "${fails}" -ne 0 ]; then echo "${fails} failed"; exit 1; fi +echo "all passed"