>lun. 06 juil. 2026 at 21:54, Andy Tai <[email protected]> wrote: > Is there a way to set up a cross compile environment via guix shell? > > By that I meant a `guix shell` environment where `gcc` or some > `arm-something-gcc` can compile C programs into ARM binaries, for > example. > > I know this can be achieved by > > guix shell -s armhf-linux gcc-toolchain > > This sets up an emulated environment of an ARM host, via qemu, which > generates ARM binaries slowly because it runs on top of emulation. > > Cross compile would avoid that.
Maybe ? guix shell -C -e '(use-modules (gnu packages cross-base))(cross-gcc-toolchain "riscv64-linux-gnu")' -- riscv64-linux-gnu-gcc --version C.
signature.asc
Description: PGP signature
