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

Building as described in README fails #3

Open
Saikrishna-Achalla opened this issue Dec 6, 2024 · 4 comments
Open

Building as described in README fails #3

Saikrishna-Achalla opened this issue Dec 6, 2024 · 4 comments

Comments

@Saikrishna-Achalla
Copy link

image image Attached above are the images for the build error I get. Ran the above in a fresh EC2 instance and still failed. Any help would be appreciated!
@sga001
Copy link
Owner

sga001 commented Dec 6, 2024

It's been a really long time since I've looked into this. Nobody really uses this version of SealPIR. Getting Rust and C++ to be happy is really hard, especially as compilers keep changing.

If you used the exact same version of gcc and rust, maybe there is some hope. Otherwise, it seems like it'll be a pain.

I suggest that you either:

(1) Use the official version of SealPIR (C++): https://github.com/Microsoft/SealPIR

(2) Use Apple's version of SealPIR (Swift): https://github.com/apple/swift-homomorphic-encryption/blob/main/Sources/PrivateInformationRetrieval/IndexPirProtocol.swift#L23

(3) Try Tancrede's version of SealPIR (Rust): https://github.com/tlepoint/fhe.rs/blob/c02cde75a52437bc23f49ebfda084ec152b61248/crates/fhe/examples/sealpir.rs#L4

@Saikrishna-Achalla
Copy link
Author

Thank you for the response. I was mainly asking about this as I'm interested in looking into the mPIR work and that relies on this version of sealPIR. Would pointing the mPIR cargo file to one of the versions of SealPIR above work instead?

@sga001
Copy link
Owner

sga001 commented Dec 6, 2024

No, because that version is C++, not Rust.

When you tried compiling the code in this repo, were you using the exact same gcc version and rust version that we tested with?

gcc/g++ version 11.3
Rust version 1.66

?

@Saikrishna-Achalla
Copy link
Author

Yes, I used the same gcc and rust versions you used but the build still fails

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

2 participants