mozilla / cargo-vet

supply-chain security for Rust
Apache License 2.0
649 stars 43 forks source link

cargo-vet on riscv64 platform #488

Open kush930 opened 1 year ago

kush930 commented 1 year ago

Hi all,

I am building cargo-vet from link: https://github.com/mozilla/cargo-veton target board having riscv64 platform, with gcc-10.2.0 and glibc-3.2.

previous i was facing issue of ring v0.16.20 that is resolved after changing inside source path-.cargo/registry/src/github.com-1ecc6299db9ec823/ring-0.16.20

now ring issue is resolved and getting output-

root@kush-Linux-1:~/.cargo/registry/src/github.com-1ecc6299db9ec823/ring-0.16.20# cargo build -v
       Fresh cc v1.0.72
       Fresh autocfg v1.0.1
       Fresh pkg-config v0.3.24
       Fresh foreign-types-shared v0.1.1
       Fresh foreign-types v0.3.2
       Fresh libc v0.2.112
       Fresh bitflags v1.3.2
       Fresh openssl-sys v0.9.72
       Fresh cfg-if v1.0.0
       Fresh once_cell v1.8.0
       Fresh openssl v0.10.38
       Fresh untrusted v0.9.0
       Fresh base64 v0.13.0
       Fresh hex v0.4.3
       Fresh ring v0.17.0-not-released-yet (/home/root/.cargo/registry/src/github.com-1ecc6299db9ec823/ring-0.16.20)
warning: field `cpu_features` is never read
  --> src/digest.rs:50:5
   |
39 | pub(crate) struct BlockContext {
   |                   ------------ field in this struct
...
50 |     cpu_features: cpu::Features,
   |     ^^^^^^^^^^^^
   |
   = note: `#[warn(dead_code)]` on by default
   = note: `BlockContext` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis

warning: `ring` (lib) generated 1 warning
    Finished dev [unoptimized + debuginfo] target(s) in 0.36s

After ring build i want to build cargo-vet when i am running cargo build inside cargo-vet source, its giving error-

root@kush-Linux-1:~/cargo-vet# cargo build   
error: failed to download `ring v0.16.20`

Caused by:
  unable to get packages from source

Caused by:
  failed to find ring v0.16.20 in path source
note: this is an unexpected cargo internal error
note: we would appreciate a bug report: https://github.com/rust-lang/cargo/issues/
note: cargo 1.65.0 (4bc8f24d3 2022-10-20)
I checked inside Cargo.lock-

[[package]]   
name = "ring"  
version = "0.16.20"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3053cf52e236a3ed746dfc745aa9cacf1b791d846bdaf412f60a8d7d6e17c8fc"
dependencies = [  
 "cc",                                                          
 "libc",                                                                     
 "once_cell",                                                                
 "spin",        
 "untrusted",
 "web-sys",
 "winapi", 
]           

Can anyone suggest me to build cargo-vet on riscv64 target board.

T&R luvkush

repi commented 1 year ago

linking the issue you filed on the ring project to add support for this platform as that is what would need to be resolved first: