Skip to content

Deterministic cross-compilation with Guix #22

@Sjors

Description

@Sjors

Different versions of GCC, as well as differences optimization settings and RISC-V target platform can result in different ELF files. See #16.

This seems like a great use case for Guix deterministic builds.

Some parts of Bitcoin Core's Guix build may be of use: https://github.com/bitcoin/bitcoin/tree/master/contrib/guix

Especially since Bitcoin Core already has some support for 32-bit RISC-V cross-compilation: https://github.com/bitcoin/bitcoin/tree/master/depends

Though the Guix build system only supports riscv64-linux-gnu, not 32 bit:

https://github.com/bitcoin/bitcoin/blob/master/contrib/guix/guix-build#L78-L80

But maybe it's not difficult to figure out how to make it work for a 32 bit unknown-elf target.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions