Skip to content

Required environment variable CPPFLAGS not found on risc-v while using EESSI-extend #1508

Description

@hugomeiland

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...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions