Skip to content
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

Build fails due to missing size_of function #1925

Open
estelsmith opened this issue Jan 17, 2025 · 0 comments
Open

Build fails due to missing size_of function #1925

estelsmith opened this issue Jan 17, 2025 · 0 comments

Comments

@estelsmith
Copy link

estelsmith commented Jan 17, 2025

Running a simple cargo build from the latest main (and libsql-server-v0.24.31) results in the following error:

error[E0425]: cannot find function `size_of` in this scope
   --> libsql-wal/src/shared_wal.rs:419:80
    |
419 |                 let buf = unsafe { ZeroCopyBoxIoBuf::new_uninit_partial(frame, size_of::<FrameHeader>()) };
    |                                                                                ^^^^^^^ not found in this scope
    |
help: consider importing one of these items
    |
1   + use core::mem::size_of;
    |
1   + use std::mem::size_of;

Importing use std::mem::size_of; in shared_wal.rs seems to allow the build to complete. I'm not a rust dev and I don't really understand the difference between the two imports, so I figured I'd open an issue rather than a pull request.

EDIT: Running latest docker almalinux:9-minimal (eec681af155e) on linux/arm64

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