Repository navigation
Required environment variable CPPFLAGS not found on risc-v while using EESSI-extend #1508
Copy link
Copy link
Closed
Description
Trying to build HPL through EESSI-extend, but failing with:
== processing EasyBuild easyconfig /cvmfs/dev.eessi.io/riscv/versions/2025.06-001/software/linux/riscv64/generic/software/EasyBuild/5.3.0/easybuild/easyconfigs/h/HPL/HPL-2.3-foss-2025b.eb
== building and installing HPL/2.3-foss-2025b...
>> installation prefix: /home/ubuntu/eessi/versions/2025.06-001/software/linux/riscv64/generic/software/HPL/2.3-foss-2025b
== fetching files and verifying checksums...
== Running pre-fetch hook...
>> sources:
>> /tmp/ubuntu/easybuild/sources/h/HPL/hpl-2.3.tar.gz [SHA256: 32c5c17d22330e6f2337b681aded51637fb6008d3f0eb7c277b163fadd612830]
>> patches:
>> /cvmfs/dev.eessi.io/riscv/versions/2025.06-001/software/linux/riscv64/generic/software/EasyBuild/5.3.0/easybuild/easyconfigs/h/HPL/HPL_parallel-make.patch [SHA256: 2a5bf9c4f328049828ddecec7ba3f05a9e25d236f4212747c53bd22fea80c5e6]
== ... (took < 1 sec)
== creating build dir, resetting environment...
>> build dir: /tmp/ubuntu/easybuild/build/HPL/2.3/foss-2025b
== Running post-ready hook...
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
== ... (took < 1 sec)
== unpacking...
>> running shell command:
tar xzf /tmp/ubuntu/easybuild/sources/h/HPL/hpl-2.3.tar.gz
[started at: 2026-05-28 06:02:28]
[working dir: /tmp/ubuntu/easybuild/build/HPL/2.3/foss-2025b]
[output and state saved to /tmp/eb-_rp9ofw5/run-shell-cmd-output/tar-d0y3_hk0]
>> command completed: exit 0, ran in < 1s
== ... (took < 1 sec)
== patching...
>> applying patch HPL_parallel-make.patch
== ... (took < 1 sec)
== preparing...
== Running pre-prepare hook...
== Updated rpath_override_dirs (to allow overriding MPI family OpenMPI):
/cvmfs/dev.eessi.io/riscv/host_injections/2025.06-001/software/linux/riscv64/generic/rpath_overrides/OpenMPI/system/lib:/cvmfs/dev.eessi.io/riscv/host_injections/2025.06-001/software/linux/riscv64/generic/rpath_overrides/OpenMPI/system/lib64
>> loading toolchain module: foss/2025b
>> defining build environment for foss/2025b toolchain
== Running post-prepare hook...
== Resetting rpath_override_dirs to original value: None
== ... (took 3 secs)
== configuring...
== Running pre-configure hook...
>> running shell command:
/bin/bash make_generic
[started at: 2026-05-28 06:02:32]
[working dir: /tmp/ubuntu/easybuild/build/HPL/2.3/foss-2025b/hpl-2.3/setup]
[output and state saved to /tmp/eb-_rp9ofw5/run-shell-cmd-output/bash-hvzqsmwt]
>> command completed: exit 0, ran in < 1s
== ... (took < 1 sec)
== building...
== ... (took < 1 sec)
== FAILED: Installation ended unsuccessfully: Required environment variable CPPFLAGS not found (no toolchain used?). (took 5 secs)
== Results of the build can be found in the log file(s) /tmp/eb-_rp9ofw5/easybuild-HPL-2.3-20260528.060227.yvonl.log
== Running post-easyblock hook...
== Summary:
* [FAILED] HPL/2.3-foss-2025b
ERROR: Installation of HPL-2.3-foss-2025b.eb failed: Required environment variable CPPFLAGS not found (no toolchain used?).
building without EESSI-extend works fine...
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Activity
hugomeiland commentedon May 28, 2026
env.sh:
bedroge commentedon May 28, 2026
The error is raised here: https://github.com/easybuilders/easybuild-easyblocks/blob/develop/easybuild/easyblocks/h/hpl.py#L89. That seems related to our EasyBuild CPP search path setting in EESSI-extend, and the HPL easyblock does not seem to support that. We recently switched that setting back to the default, though, so I was surprised why it still doesn't work for you. But then I figured that we haven't rebuilt the EESSI-extend module in the RISC-V repo yet, so it's still using the non-default value. We can fix that by rebuilding EESSI-extend for RISC-V, but it would also be good to fix the easyblock and take the different values for this setting into account there.
hugomeiland commentedon May 29, 2026
Will this work: EESSI/dev.eessi.io-riscv#124?
bedroge commentedon May 29, 2026
I wasn't completely sure (we usually deploy EESSI-extend from the software-layer-scripts repo: https://github.com/EESSI/software-layer-scripts), but gave it a try anyway, and it failed:
Instead, we should make a small change to https://github.com/EESSI/software-layer-scripts/blob/main/EESSI-extend-easybuild.eb, and then trigger a build from the corresponding PR in that repo. Or we can combine it with for instance EESSI/software-layer-scripts#235 and make sure that gets built for the RISC-V repo as well. Let me already trigger a build there so we won't forget about it.
julianmorillo commentedon May 29, 2026
I'm getting the same error in EESSI/dev.eessi.io-riscv#125:
I'm just trying to install HPL on the RISC-V (generic) report, so no use of EESSI-extend here.
hugomeiland commentedon May 29, 2026
but if this is through the bot: it uses EESSI-extend; so that error is to be expected at this moment....
bedroge commentedon May 29, 2026
Fixing this in EESSI/software-layer-scripts#240.
bedroge commentedon Jun 2, 2026
#240 has been ingested, I've triggered a new build in EESSI/dev.eessi.io-riscv#125 to check if HPL can be built now.
hugomeiland commentedon Jun 2, 2026
confirmed this works now!