8000 Deterministic cross-compilation with Guix · Issue #22 · halseth/elftrace · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Deterministic cross-compilation with Guix #22

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Sjors opened this issue Mar 28, 2025 · 1 comment
Open

Deterministic cross-compilation with Guix #22

Sjors opened this issue Mar 28, 2025 · 1 comment

Comments

@Sjors
Copy link
Sjors commented Mar 28, 2025

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.

@Sjors
Copy link
Author
Sjors commented Mar 28, 2025

I suppose this could be an entirely separate project.

Though on the other hand, if someone were to build a full stack system including all the challenge-response bitcoin scripts, you'd probably want the whole thing to be deterministic.

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

No branches or pull requests

1 participant
0