Quantcast
Channel: Recent Questions - Solana Stack Exchange
Viewing all articles
Browse latest Browse all 7961

Linker error when trying to run cargo test for the CLI in agave repository

$
0
0

Im trying to run the tests in https://github.com/anza-xyz/agave/tree/master/cli using cargo test

But i'm getting some linker errors:

--- stderr  ld: warning: -bind_at_load is deprecated on macOS  ld: multiple errors: archive member '/' not a mach-o file in '/Users/jonasmac2/Documents/GitHub/agave/target/debug/build/protobuf-src-787ce1ecf69b05bc/out/install/build/src/.libs/libprotobuf.a'; archive member '/' not a mach-o file in '/Users/jonasmac2/Documents/GitHub/agave/target/debug/build/protobuf-src-787ce1ecf69b05bc/out/install/build/src/.libs/libprotobuf.a'; archive member '/' not a mach-o file in '/Users/jonasmac2/Documents/GitHub/agave/target/debug/build/protobuf-src-787ce1ecf69b05bc/out/install/build/src/.libs/libprotoc.a'; archive member '/' not a mach-o file in '/Users/jonasmac2/Documents/GitHub/agave/target/debug/build/protobuf-src-787ce1ecf69b05bc/out/install/build/src/.libs/libprotoc.a'  clang: error: linker command failed with exit code 1 (use -v to see invocation)  make[1]: *** [protoc] Error 1  make: *** [install-recursive] Error 1  thread 'main' panicked at /Users/jonasmac2/.cargo/registry/src/index.crates.io-6f17d22bba15001f/autotools-0.2.5/src/lib.rs:715:5:  command did not execute successfully, got: exit status: 2  build script failed, must exit now  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Im on a mac M3.I guess it has something to do with protobuff so I installed it using hoomebrew.

protoc --versionlibprotoc 28.2

The file exists:file /Users/jonasmac2/Documents/GitHub/agave/target/debug/build/protobuf-src-787ce1ecf69b05bc/out/install/build/src/.libs/libprotoc.acurrent ar archive

cargo build works fine just cargo test fails

Not sure what to do else


Viewing all articles
Browse latest Browse all 7961

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>