Decentration
Decentration

Reputation: 51

Polkadot error: could not compile `zeroize` OR file too small to be an archive, could not compile `ring`

I'm going through the "Hacking on Polkadot" section of the read me of Polkadot repo, I try to cargo build --release which didn't work so i tried cargo build here are the respective errors i got:

After cargo build --release i get this error:

error: failed to add native library /Users/Decentration/polkadot-clone/polkadot/target/release/build/ring-75cdcd2b7eadbbe2/out/libring-core.a: 

file too small to be an archive error: aborting due to previous error

error: could not compile ring


  1. Instead of cargo build --release i tried cargo build then i got this error:
220 | pub use zeroize_derive::Zeroize;
   |         ^^^^^^^^^^^^^^
   error: aborting due to previous error 
   error: could not compile zeroize

Any ideas here?

Upvotes: 0

Views: 570

Answers (1)

Decentration
Decentration

Reputation: 51

if there is a build failed make sure you cargo clean before recompiling in case there are artifiacts causing problems. I recompiled successfully with cargo build --release then cargo run -- --dev afterwards.

Thanks to @NukaManDan who helped me in comments.

Upvotes: 2

Related Questions