Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.
This repository has been archived by the owner on May 3, 2022. It is now read-only.

Can't compile native library since V0.8.0 #18

Closed
bublath opened this issue Oct 26, 2021 · 2 comments
Closed

Can't compile native library since V0.8.0 #18

bublath opened this issue Oct 26, 2021 · 2 comments

Comments

@bublath
Copy link

bublath commented Oct 26, 2021

signal-cli requires the native libzkgroup.so, so to create a distribution for Raspberry (armv7l) I typically do

git clone git@github.com:signalapp/zkgroup.git
cd zkgroup/ffi/java
make

This worked fine with all 0.7.x version, but with every branch starting from 0.8.x I'm getting an error:

....
Compiling cfg-if v1.0.0
thread 'rustc' panicked at 'called Result::unwrap() on an Err value: "Provided allocation has wrong size for slot count 65536"', compiler/rustc_metadata/src/rmeta/decoder.rs:263:29

Any idea how to fix this?

@jrose-signal
Copy link
Contributor

Looks like we might have picked a bad nightly for some architectures! rust-lang/rust#89749 describes the same issue, on this very repository. Leaving this open while I discuss with other Signal folks.

@jrose-signal
Copy link
Contributor

After some discussion we've decided this falls under the general policy that uses outside of Signal's aren't officially supported. Given the timing (signalapp/libsignal#392), I don't think we'll do another zkgroup release just to step past the bad nightly, but you can override it locally if you need to build for a platform that Signal doesn't. (That said, if libsignal-client has the same problem, that's worth fixing going forward.)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants