-
-
Notifications
You must be signed in to change notification settings - Fork 94
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
zvariant v3.14.0: test failures on 32-bit x86 (i686-unknown-linux-gnu) #357
Comments
@decathorpe Ooh interesting. Thanks so much for filing these. Obviously I never tested on 32-bit machines. 😆 I'll check it out.. |
This is very strange. It seems the bytes are being read as big endian by glib, which uses the host endian. If this was just i686 machine, the native encoding should be little endian. 🤔 |
Ah, I know what happened. You mixed up the error message of this issue with #358. 😆 |
If the native pointer size is 32-bit, then the 64-bit offset support is not needed. This also fixes the assumption that when a 32-bit offset is bumped, we end up with a 64-bit offset. This is not true on 32-bit systems because we use `usize` for offsets, which is 32-bit on 32-bit systems. Fixes dbus2#357.
Oh, this is embarassing. You're indeed right. I had both logs open in browser tabs and pasted the wrong one into the issues. :( I'll test the PR, and report back. |
I can confirm that this PR fixes the failure I saw on i686. |
It's ok. It happens. 😊 Thanks for testing! I wish there was an i686 runner available from GH. |
With the most recent release, the dev-dependency on a git snapshot of the
glib
crate was replaced with a normal dependency, which allowed me to run test suite of zvariant during package builds for Fedora Linux - which in turn has surfaced a few test failures on 32-bit x86 (i.e. i686).This is the output (truncated to only
--lib
results, doc-tests all passed) fromcargo test --release
(with a few more distro-specific flags which should not affect results):It's not easy to reproduce this on a x86_64 host system because you need a cross-compiler setup for 32-bit GLib, but I can try to provide reproducing steps that use containers / VMs of some sort if that helps.
The text was updated successfully, but these errors were encountered: