Skip to content

Add support for QEMU-emulated builds in the EESSI bot - #356

Draft
casparvl wants to merge 1 commit into
EESSI:mainfrom
casparvl:Add_qemu_support_to_bot_builds
Draft

casparvl wants to merge 1 commit into
EESSI:mainfrom
casparvl:Add_qemu_support_to_bot_builds

Conversation

@casparvl

@casparvl casparvl commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Note: this is very much a draft PR - I had some interaction with Claude to come up with this approach. I think conceptually it should work, but I have yet to check everything that Claude came up with to implement my idea.

Allow e.g. 'bot:build on:arch=icelake for:arch=aarch64/neoverse_n1' to build aarch64/riscv64 software on an x86_64 node using qemu-user-static + binfmt_misc.

  • scripts/qemu_emulation.sh: eessi_setup_emulation checks the binfmt entry (incl. F flag), maps the target subdir to a QEMU CPU model, and exports EESSI_EMULATED, EESSI_TARGET_CPU_FAMILY, EESSI_CONTAINER_ARCH and EESSI_QEMU_CPU
  • bot/build.sh, bot/test.sh: call it, use a container cache per target CPU family, and use the target (not host) CPU family for EESSI_COMPAT_LAYER_DIR_OVERRIDE
  • eessi_container.sh: pull container for the target arch and pass QEMU_CPU into the container
  • EESSI-install-software.sh: verify archspec detects the target CPU on the emulated CPU

Allow e.g. 'bot:build on:arch=icelake for:arch=aarch64/neoverse_n1' to build
aarch64/riscv64 software on an x86_64 node using qemu-user-static + binfmt_misc.

- scripts/qemu_emulation.sh: eessi_setup_emulation checks the binfmt entry (incl. F flag),
  maps the target subdir to a QEMU CPU model, and exports EESSI_EMULATED, EESSI_TARGET_CPU_FAMILY,
  EESSI_CONTAINER_ARCH and EESSI_QEMU_CPU
- bot/build.sh, bot/test.sh: call it, use a container cache per target CPU family, and use the target
  (not host) CPU family for EESSI_COMPAT_LAYER_DIR_OVERRIDE
- eessi_container.sh: pull container for the target arch and pass QEMU_CPU into the container
- EESSI-install-software.sh: verify archspec detects the target CPU on the emulated CPU

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
bedroge added a commit to bedroge/software-layer that referenced this pull request Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant