Skip to content

debian12: Install RISCV64 cross-compiler and Qemu

Sven Tennie requested to merge supersven/ci-images:wip/riscv64 into master

Add Gnu cross-toolchain for RISCV64 and Qemu. https://gitlab.haskell.org/ghc/ghc/-/jobs/1984824#L11315 show that this can be used to build a GHC cross-compiler and executed the tests in Qemu. Though, the testsuite needs some more love to run completely green.

Basically, I just fixed @bgamari 's MR: !148

Usage

RISCV64 cross building/testing with the registry.gitlab.haskell.org/supersven/ci-images/x86_64-linux-deb12image:

configure && build

./boot
./configure --target=riscv64-linux-gnu CC=riscv64-linux-gnu-gcc
hadrian/build -j --docs=none --flavour=validate --bignum=native

Run tests

CROSS_EMULATOR="qemu-riscv64 -L /usr/riscv64-linux-gnu/" EXTRA_HC_OPTS='-fexternal-interpreter' hadrian/build -j2 --docs=none --flavour=validate --bignum=native --test-speed=fast test
Edited by Sven Tennie

Merge request reports