-
Notifications
You must be signed in to change notification settings - Fork 20
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
Enable RISC-V build #8
Conversation
I think we may be able to get Lighthouse building without this change, because the dep is already marked |
I tried to build the stable branch of Lighthouse and it failed with trying to build the cpufeatures package which is a dependency of ethereum_hashing. Is the |
Ah, you obviously mean that cpufeatures is optional in the ethereum_hashing Cargo.toml. Unfortunately that does not seem to work, as the build of this package fails on my RISC-V board without explicitly limiting this dependency to a specific plattform. No idea how the optional flag is supposed to work though. |
Now that I read into
Building still works on both platforms x86_64 and RISC-V and I guess it makes more sense with the features already defined and in place. |
Yeah, and we could try this out in Lighthouse immediately by changing the ethereum_hashing dep to build with I suspect there will be other deps that block a successful RISC-V build, but we will see |
Actually I think the default features thing won't work, so yeah, we will need something like this change a new release. I can help get that out tomorrow |
I tested a full lighthouse build once with my locally fixed ethereum_hashing repo and also once with the vanilla lighthouse stable version but using the |
Lots of Lighthouse deps depend on |
Some of them like |
Would be great to have this PR merged, thanks. slowly, we will try to fix the proper upstream issues, but first we need to see how far we can get with the current status quo of the risc-v assembly based support. |
Co-authored-by: Leonardo Arias <leo@flashbots.net>
Merged! I had to make a bunch of other changes to actually prevent the
This will be a breaking change due to the removal of a |
That is great. Thanks for fixing and including this PR. As mentioned we are looking into getting lighthouse to compile on risc-v and there are a lot smaller and larger issues along the way which will probably make it necessary to update a quite few dependencies in Lighthouse. We will open an issue over there as soon as we have a good overview of how to get a build running. |
Sounds good. We are in the process of a big dep upgrade to switch from |
Building lighthouse on RISC-V fails building this library which has cpufeatures as a hard dependency even though it only uses it on x86-64. See for the bug report and analysis in cpufeatures github: RustCrypto/utils#1087
Tested fix on a RISC-V board (lichee Pi 4a) and works. It also still builds on my x86_64 PC.
To incorporate this change in Lighthouse itself we need a new release of this package and updates in the lighthouse Cargo.toml as well.