-
Notifications
You must be signed in to change notification settings - Fork 784
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
Error when building mdbx-sys #4280
Comments
Yeah this is unfortunately a C compiler incompatibility. We're stuck on the current version of MDBX, but it's only used for the slasher so you can disable it with We should probably disable it by default, as more and more people are having this issue Which Linux distro are you on, and what does |
I'm using Fedora 38 (Workstation Edition)
|
If I run:
Also, I don't know if this will make any of the tests fail. |
the libpq thing is for postgres, you need to the |
We should add libpq-devel to the list of additional requirements for developers in the book. There are some tests using slasher logic outside of the slasher module, specifically in
This happens because they are not marked as part of the slasher feature. I added
|
I think the real problem is that we don't have a way to share a reliable development environment. Docker could be used for this but there are some details I don't like about it for this purpose. I've heard Nix is a great tool for this. I'll give it a try and see if I can come up with something useful. |
That's a great idea. Would you mind opening a PR? This, and the other issues are fallout from merging a rather major new component, the
This is also beacon.watch related. Do you have Docker/Podman installed? I think the new
We kind of do have a standard environment: it's the Github runner image used by CI. It would be possible to use this locally, but as you say, but probably not particularly fun (I would also prefer not to use Docker for my dev environment).
I'd be wary of going too deep on this, just because for it to be effective it would need to be adopted as our primary CI. If we added a Nix env that wasn't tested on CI it would be prone to bitrot. To keep CI fast, it would probably mean our only CI run would have to use Nix. As far as I know none of the main Lighthouse devs use Nix at all, so it's also an issue of familiarity (I've used it very briefly several years ago). Related to this we also have some in-progress work to further Docker-ify CI so that it runs on a bare metal machine owned by SigP: #4115. Those images could potentially be used for standardised local dev environments by people who are interested. In summary I think we should:
|
Turns out you need docker installed and running. Added that to the PR. I opened a second PR adding the slasher feature flag to the slasher tests I mentioned in a previous comment. With those changes made I successfully compiled and passed all tests using:
|
How to install this |
@zhiqiangxu I think it's just |
@michaelsproul UPDATE This is what I got after |
Same issue occurs: the build fails on the latest Ubuntu 24.04, but works correctly on the latest Debian bookworm.
The exact same build script is used in both cases, with the only difference being the distribution. Other users have also reported this issue. |
@eenagy Thanks for the info about Ubuntu 24.04. We are deprecating the MDBX backend in the slasher, so nobody is working on keeping it up to date. If you would like to see the MDBX backend maintained we would consider a PR to switch over to the Reth team's bindings: https://github.com/paradigmxyz/reth/tree/main/crates/storage/libmdbx-rs |
@eenagy I've just looked at your project and realised you're maintaining packages for Debian & Ubuntu! Thanks for doing that. I think it would be reasonable for your tools to turn off the |
All right, that's sounds good. I will note this, when I release the next version or patch. |
Were you able to solve this? |
@varun-doshi unless you need If you build Lighthouse from source using |
I'm trying to run tests using cargo test with logging features enabled. |
|
I'm going to close this issue as it was solved by: If you continue having issues with |
Description
I'm getting this error:
In two scenarios:
make test
.Version
rustc 1.69.0 (84c898d65 2023-04-16)
Trying to test: Lighthouse unstable branch @ b7b4549
Trying to build: Lighthouse stable branch @ 693886b
Present Behaviour
I pulled the unstable branch and tried to run
make test
(in my development folder):Then, I pulled the stable branch and tried to install using make (in a folder generated by git-cloning
sigp/lighthouse
):Expected Behaviour
I expected the tests to start running in one scenario and to have lighthouse v4.1.0 installed in the other.
The text was updated successfully, but these errors were encountered: