tikv/grpc-rs

Running example on macOS (M1) issue

uzador opened this issue · 4 comments

… grpc-rs % cargo xtask submodule                                                       
    Finished dev [unoptimized + debuginfo] target(s) in 0.11s
     Running `xtask/target/debug/xtask submodule`
HEAD is now at 996605a5e6 Merge pull request #48 from BusyJay/rs-release-1.46.5
… grpc-rs % cargo b
warning: patch for `grpcio-compiler` uses the features mechanism. default-features and features will not take effect because the patch dependency does not support this mechanism
    Finished dev [unoptimized + debuginfo] target(s) in 0.32s
… tests-and-examples % cargo r --example lb_greeter_server
warning: patch for `grpcio-compiler` uses the features mechanism. default-features and features will not take effect because the patch dependency does not support this mechanism
   Compiling tests-and-examples v0.1.0 (/Users/.../IdeaProjects/grpc-rs/tests-and-examples)
error: linking with `cc` failed: exit status: 1
  |
  = note: "cc" "-arch" "arm64" "/var/folders/75/zhdmjhsd4svgjtv3281gbcxm0000gp/T/rustcP2Hfkf/symbols.o" "/Users/…/IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.157okt27ecsv5bux.rcgu.o" "/Users/…/IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.17yi5eg47dpffb9j.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.18ianf0si9pat0dr.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.19c42nkjalejthkd.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.19culqfvobglxy9v.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.1bm9k5p987b3c9ol.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.1cobbob5dbvgp301.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.1e39kdmlh5w2h77t.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.1epxafrqld13s06l.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.1es3xh226x2ssxu8.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.1fvysgwy60c3es7e.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.1g8x22gzpo54wbt4.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.1ikemvhye3m37wkt.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.1j1mpi96wnm3m6kq.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.1jck9si90dhbuka4.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.1kl33x5lpz46f8ln.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.1ogokt963lfckc5x.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.1oyhwrvcpoyqpsyk.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.1p03zzg7n1hunjqv.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.1pltwcagih3rapam.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.1sub5n9yacs0jcg8.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.1vvlpn3c1txp53u3.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.1wf447jyh5uwpnlx.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.1wzqsi0uf1nfq9i2.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.20ftow37s2h8wpo.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.20n8dw7zw5f6enzq.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.214ivnmkjcptc5t.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.22uu9b6adu91u5y1.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.2567h2wn9o27vqvt.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.25wredjdggxm1joi.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.278sbjn8eh8uo5j0.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.292c71vssbgghoms.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.29ki8bntbobwe49v.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.2db5o8hhy7gvfr5m.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.2ddzik2yweteszen.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.2duzap2jofo9nlta.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.2fm4z75t7om2vea1.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.2hl9x3qe7tc3sdap.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.2jtiklpsihcfb8sg.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.2mbvanv51jggz2rw.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.2ri211etwnc1foi0.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.2ymq5vpu00ojslsx.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.2yt6dvo6sn6y9flk.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.2yzidcd9rvlwxsac.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.312zjtdb74j2vphh.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.33kq4q7v0iclqyo7.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.35qro8vrelicwuf1.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.36nntiez3zrypgt8.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.3agkl8tdb64bfbxa.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.3azj3npxx70yz0op.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.3b9c8odya91y2qbn.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.3e4b60k46vpus8qr.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.3ft0ajfium6kpz0p.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.3kan1bk4qk7pr7t.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.3kz4lzac9an9n7mk.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.3m16qo0abk4peqc4.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.3oxqyea94fts1ym0.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.3oziv3fk2vlzui5m.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.3p60grdmlwgawja9.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.3pjq7s8d0k5of2yh.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.3prepat8ky3kb1qs.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.3pyojgjnhv01w5qq.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.3wz80emqbl8mntf8.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.3y6x0lxjdfernbpq.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.3ygutlinur27kwdg.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.3z7g9e69nnwdrd3a.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.40u5n2uktidd28se.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.43kaoj5hwjgqaajo.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.488ho9rfktk4rufy.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.4cmn9ucm10sf7vay.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.4hibw9b5oa3xhkb6.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.4hq2u142c9iq1lzc.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.4hwxm9vwqse0wm4r.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.4iisqyms7lqmnfe.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.4j8t1r4fv5u7akau.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.4k1nd8kuuqdew4ky.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.4k774meh6b8m8a6d.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.4ki7xkfgntw47oe5.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.4lvhc75s0f8usktz.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.4n6sb8cckii9s0hp.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.4nwu9ajl6b5kfo4g.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.4r2mfq81f6b5f3xk.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.4s3eulsme0lbfzgd.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.4tsvuohqk9u8jdrr.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.4vitvc8kroiywbm5.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.4wqqcqa38s97qd58.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.4xr2s02yj8b73ul5.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.53vqg6fbzb2dmwis.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.55083lwlya6vnszm.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.57fdncuz42be16vr.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.583gfl0clde980oq.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.58h3qpuax3zautgj.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.5bki3chwmv7d5afa.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.5bzmk5gaacf6unc5.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.5ejqv4d7tpiwh6ye.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.7yznwoteqf20dh8.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.8dkpie2djwyez8p.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.ap4war7szu2op9o.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.bpwoz39pfb4jnpd.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.c1e9maeecvbtttg.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.g5vldjgi9emc6pm.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.k14908u8eb3xnkb.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.k22s9825okdna02.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.lge71mgxjdl2r19.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.s7iy57nlcpb09qz.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.sy1jbbd3zjm9ofi.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.tpyx9hl4pfffz9q.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.uji37vfwrx0t88z.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.vj5zarmbwc58z2b.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.wdhgqyp4zlcvowv.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.x3l2f2vctqoq5zp.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.y0njpn2n9mmbrf5.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.yziczal36ee60yw.rcgu.o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d.55icbjcso7h28c46.rcgu.o" "-L" "/Users/.../IdeaProjects/grpc-rs/target/debug/deps" "-L" "/Users/.../IdeaProjects/grpc-rs/target/debug/build/grpcio-sys-aa1775204c4b2d23/out/boringssl-build/lib" "-L" "/Users/.../IdeaProjects/grpc-rs/target/debug/build/libz-sys-aa02c4250e7bfed2/out/build" "-L" "/Users/.../IdeaProjects/grpc-rs/target/debug/build/libz-sys-aa02c4250e7bfed2/out/lib" "-L" "/Users/.../IdeaProjects/grpc-rs/target/debug/build/grpcio-sys-aa1775204c4b2d23/out/build" "-L" "/Users/.../IdeaProjects/grpc-rs/target/debug/build/grpcio-sys-aa1775204c4b2d23/out/build" "-L" "/Users/.../IdeaProjects/grpc-rs/target/debug/build/grpcio-sys-aa1775204c4b2d23/out/build/third_party/abseil-cpp/absl/strings" "-L" "/Users/.../IdeaProjects/grpc-rs/target/debug/build/grpcio-sys-aa1775204c4b2d23/out/build/third_party/abseil-cpp/absl/strings" "-L" "/Users/.../IdeaProjects/grpc-rs/target/debug/build/grpcio-sys-aa1775204c4b2d23/out/build/third_party/abseil-cpp/absl/strings" "-L" "/Users/.../IdeaProjects/grpc-rs/target/debug/build/grpcio-sys-aa1775204c4b2d23/out/build/third_party/abseil-cpp/absl/strings" "-L" "/Users/.../IdeaProjects/grpc-rs/target/debug/build/grpcio-sys-aa1775204c4b2d23/out/build/third_party/abseil-cpp/absl/strings" "-L" "/Users/.../IdeaProjects/grpc-rs/target/debug/build/grpcio-sys-aa1775204c4b2d23/out/build/third_party/abseil-cpp/absl/strings" "-L" "/Users/.../IdeaProjects/grpc-rs/target/debug/build/grpcio-sys-aa1775204c4b2d23/out/build/third_party/abseil-cpp/absl/strings" "-L" "/Users/.../IdeaProjects/grpc-rs/target/debug/build/grpcio-sys-aa1775204c4b2d23/out/build/third_party/abseil-cpp/absl/strings" "-L" "/Users/.../IdeaProjects/grpc-rs/target/debug/build/grpcio-sys-aa1775204c4b2d23/out/build/third_party/abseil-cpp/absl/types" "-L" "/Users/.../IdeaProjects/grpc-rs/target/debug/build/grpcio-sys-aa1775204c4b2d23/out/build/third_party/abseil-cpp/absl/types" "-L" "/Users/.../IdeaProjects/grpc-rs/target/debug/build/grpcio-sys-aa1775204c4b2d23/out/build/third_party/abseil-cpp/absl/synchronization" "-L" "/Users/.../IdeaProjects/grpc-rs/target/debug/build/grpcio-sys-aa1775204c4b2d23/out/build/third_party/abseil-cpp/absl/synchronization" "-L" "/Users/.../IdeaProjects/grpc-rs/target/debug/build/grpcio-sys-aa1775204c4b2d23/out/build/third_party/abseil-cpp/absl/hash" "-L" "/Users/.../IdeaProjects/grpc-rs/target/debug/build/grpcio-sys-aa1775204c4b2d23/out/build/third_party/abseil-cpp/absl/hash" "-L" "/Users/.../IdeaProjects/grpc-rs/target/debug/build/grpcio-sys-aa1775204c4b2d23/out/build/third_party/abseil-cpp/absl/hash" "-L" "/Users/.../IdeaProjects/grpc-rs/target/debug/build/grpcio-sys-aa1775204c4b2d23/out/build/third_party/abseil-cpp/absl/debugging" "-L" "/Users/.../IdeaProjects/grpc-rs/target/debug/build/grpcio-sys-aa1775204c4b2d23/out/build/third_party/abseil-cpp/absl/debugging" "-L" "/Users/.../IdeaProjects/grpc-rs/target/debug/build/grpcio-sys-aa1775204c4b2d23/out/build/third_party/abseil-cpp/absl/debugging" "-L" "/Users/.../IdeaProjects/grpc-rs/target/debug/build/grpcio-sys-aa1775204c4b2d23/out/build/third_party/abseil-cpp/absl/debugging" "-L" "/Users/.../IdeaProjects/grpc-rs/target/debug/build/grpcio-sys-aa1775204c4b2d23/out/build/third_party/abseil-cpp/absl/status" "-L" "/Users/.../IdeaProjects/grpc-rs/target/debug/build/grpcio-sys-aa1775204c4b2d23/out/build/third_party/abseil-cpp/absl/status" "-L" "/Users/.../IdeaProjects/grpc-rs/target/debug/build/grpcio-sys-aa1775204c4b2d23/out/build/third_party/abseil-cpp/absl/time" "-L" "/Users/.../IdeaProjects/grpc-rs/target/debug/build/grpcio-sys-aa1775204c4b2d23/out/build/third_party/abseil-cpp/absl/time" "-L" "/Users/.../IdeaProjects/grpc-rs/target/debug/build/grpcio-sys-aa1775204c4b2d23/out/build/third_party/abseil-cpp/absl/time" "-L" "/Users/.../IdeaProjects/grpc-rs/target/debug/build/grpcio-sys-aa1775204c4b2d23/out/build/third_party/abseil-cpp/absl/container" "-L" "/Users/.../IdeaProjects/grpc-rs/target/debug/build/grpcio-sys-aa1775204c4b2d23/out/build/third_party/abseil-cpp/absl/container" "-L" "/Users/.../IdeaProjects/grpc-rs/target/debug/build/grpcio-sys-aa1775204c4b2d23/out/build/third_party/abseil-cpp/absl/numeric" "-L" "/Users/.../IdeaProjects/grpc-rs/target/debug/build/grpcio-sys-aa1775204c4b2d23/out/build/third_party/abseil-cpp/absl/profiling" "-L" "/Users/.../IdeaProjects/grpc-rs/target/debug/build/grpcio-sys-aa1775204c4b2d23/out/build/third_party/abseil-cpp/absl/random" "-L" "/Users/.../IdeaProjects/grpc-rs/target/debug/build/grpcio-sys-aa1775204c4b2d23/out/build/third_party/abseil-cpp/absl/random" "-L" "/Users/.../IdeaProjects/grpc-rs/target/debug/build/grpcio-sys-aa1775204c4b2d23/out/build/third_party/abseil-cpp/absl/random" "-L" "/Users/.../IdeaProjects/grpc-rs/target/debug/build/grpcio-sys-aa1775204c4b2d23/out/build/third_party/abseil-cpp/absl/random" "-L" "/Users/.../IdeaProjects/grpc-rs/target/debug/build/grpcio-sys-aa1775204c4b2d23/out/build/third_party/abseil-cpp/absl/random" "-L" "/Users/.../IdeaProjects/grpc-rs/target/debug/build/grpcio-sys-aa1775204c4b2d23/out/build/third_party/abseil-cpp/absl/random" "-L" "/Users/.../IdeaProjects/grpc-rs/target/debug/build/grpcio-sys-aa1775204c4b2d23/out/build/third_party/abseil-cpp/absl/random" "-L" "/Users/.../IdeaProjects/grpc-rs/target/debug/build/grpcio-sys-aa1775204c4b2d23/out/build/third_party/abseil-cpp/absl/random" "-L" "/Users/.../IdeaProjects/grpc-rs/target/debug/build/grpcio-sys-aa1775204c4b2d23/out/build/third_party/abseil-cpp/absl/random" "-L" "/Users/.../IdeaProjects/grpc-rs/target/debug/build/grpcio-sys-aa1775204c4b2d23/out/build/third_party/abseil-cpp/absl/random" "-L" "/Users/.../IdeaProjects/grpc-rs/target/debug/build/grpcio-sys-aa1775204c4b2d23/out/build/third_party/abseil-cpp/absl/base" "-L" "/Users/.../IdeaProjects/grpc-rs/target/debug/build/grpcio-sys-aa1775204c4b2d23/out/build/third_party/abseil-cpp/absl/base" "-L" "/Users/.../IdeaProjects/grpc-rs/target/debug/build/grpcio-sys-aa1775204c4b2d23/out/build/third_party/abseil-cpp/absl/base" "-L" "/Users/.../IdeaProjects/grpc-rs/target/debug/build/grpcio-sys-aa1775204c4b2d23/out/build/third_party/abseil-cpp/absl/base" "-L" "/Users/.../IdeaProjects/grpc-rs/target/debug/build/grpcio-sys-aa1775204c4b2d23/out/build/third_party/abseil-cpp/absl/base" "-L" "/Users/.../IdeaProjects/grpc-rs/target/debug/build/grpcio-sys-aa1775204c4b2d23/out/build/third_party/abseil-cpp/absl/base" "-L" "/Users/.../IdeaProjects/grpc-rs/target/debug/build/grpcio-sys-aa1775204c4b2d23/out/build/third_party/re2" "-L" "/Users/.../IdeaProjects/grpc-rs/target/debug/build/grpcio-sys-aa1775204c4b2d23/out/build/third_party/cares/cares/lib" "-L" "/Users/.../IdeaProjects/grpc-rs/target/debug/build/grpcio-sys-aa1775204c4b2d23/out/build" "-L" "/Users/.../IdeaProjects/grpc-rs/target/debug/build/grpcio-sys-aa1775204c4b2d23/out/build" "-L" "/Users/.../IdeaProjects/grpc-rs/target/debug/build/grpcio-sys-aa1775204c4b2d23/out" "-L" "/Users/.../IdeaProjects/grpc-rs/target/debug/build/libz-sys-aa02c4250e7bfed2/out/lib" "-L" "/Users/.../IdeaProjects/grpc-rs/target/debug/build/libz-sys-aa02c4250e7bfed2/out/lib" "-L" "/Users/.../.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "/Users/.../IdeaProjects/grpc-rs/target/debug/deps/libgrpcio_proto-4e2ab48df03a6c07.rlib" "/Users/.../IdeaProjects/grpc-rs/target/debug/deps/libgrpcio-fee204b428dd2df0.rlib" "/Users/.../IdeaProjects/grpc-rs/target/debug/deps/libprotobuf-535e5ccbbf75927c.rlib" "/Users/.../IdeaProjects/grpc-rs/target/debug/deps/libparking_lot-b29a7bd39b624422.rlib" "/Users/.../IdeaProjects/grpc-rs/target/debug/deps/libparking_lot_core-9f4c48015c5cb9f8.rlib" "/Users/.../IdeaProjects/grpc-rs/target/debug/deps/libsmallvec-2f02ddcbd54d9ddc.rlib" "/Users/.../IdeaProjects/grpc-rs/target/debug/deps/liblock_api-aefd6ed82f4ed634.rlib" "/Users/.../IdeaProjects/grpc-rs/target/debug/deps/libscopeguard-eb1e61010332a1cf.rlib" "/Users/.../IdeaProjects/grpc-rs/target/debug/deps/libgrpcio_sys-03a1c8b58b5d0474.rlib" "/Users/.../IdeaProjects/grpc-rs/target/debug/deps/libfutures_executor-2f73358e11dbc391.rlib" "/Users/.../IdeaProjects/grpc-rs/target/debug/deps/libfutures_util-eedfd920ab7b016a.rlib" "/Users/.../IdeaProjects/grpc-rs/target/debug/deps/libslab-91d7113d15f6c35a.rlib" "/Users/.../IdeaProjects/grpc-rs/target/debug/deps/libpin_project_lite-b7768fffd0c2e379.rlib" "/Users/.../IdeaProjects/grpc-rs/target/debug/deps/libpin_utils-e95d96519fa19afe.rlib" "/Users/.../IdeaProjects/grpc-rs/target/debug/deps/libfutures_task-bc41a902bd5dd401.rlib" "/Users/.../IdeaProjects/grpc-rs/target/debug/deps/libfutures_channel-2ce73a3b3903ad0b.rlib" "/Users/.../IdeaProjects/grpc-rs/target/debug/deps/libfutures_sink-f7177841f2ac43a9.rlib" "/Users/.../IdeaProjects/grpc-rs/target/debug/deps/libfutures_core-9dee7904512ce86d.rlib" "/Users/.../IdeaProjects/grpc-rs/target/debug/deps/libslog_term-129a8edebdb2658c.rlib" "/Users/.../IdeaProjects/grpc-rs/target/debug/deps/libatty-cce8ae19a1501972.rlib" "/Users/.../IdeaProjects/grpc-rs/target/debug/deps/libterm-76cc01b1f52578c4.rlib" "/Users/.../IdeaProjects/grpc-rs/target/debug/deps/libdirs_next-1cb5e9fe9abfe5d5.rlib" "/Users/.../IdeaProjects/grpc-rs/target/debug/deps/libdirs_sys_next-a78c82077e0ebd90.rlib" "/Users/.../IdeaProjects/grpc-rs/target/debug/deps/libtime-92638e3f49aa4a3d.rlib" "/Users/.../IdeaProjects/grpc-rs/target/debug/deps/libnum_threads-b59a9b469b775ca1.rlib" "/Users/.../IdeaProjects/grpc-rs/target/debug/deps/liblibc-512be92c59b8177c.rlib" "/Users/.../IdeaProjects/grpc-rs/target/debug/deps/libitoa-7bc6d1a4fa7787bf.rlib" "/Users/.../IdeaProjects/grpc-rs/target/debug/deps/libtime_core-a966c3bb9800668e.rlib" "/Users/.../IdeaProjects/grpc-rs/target/debug/deps/libslog_stdlog-f4e12afb096487b4.rlib" "/Users/.../IdeaProjects/grpc-rs/target/debug/deps/libslog_scope-749662375f2a9f11.rlib" "/Users/.../IdeaProjects/grpc-rs/target/debug/deps/libarc_swap-1a906209890cf4bc.rlib" "/Users/.../IdeaProjects/grpc-rs/target/debug/deps/liblazy_static-f75dab69ff4510ec.rlib" "/Users/.../IdeaProjects/grpc-rs/target/debug/deps/libslog_async-9553aa86e431a8b7.rlib" "/Users/.../IdeaProjects/grpc-rs/target/debug/deps/libthread_local-df4adc949a80fb8c.rlib" "/Users/.../IdeaProjects/grpc-rs/target/debug/deps/libonce_cell-a50890e42af3f299.rlib" "/Users/.../IdeaProjects/grpc-rs/target/debug/deps/libtake_mut-8247bad7c59b259a.rlib" "/Users/.../IdeaProjects/grpc-rs/target/debug/deps/libcrossbeam_channel-b3d85da118aff396.rlib" "/Users/.../IdeaProjects/grpc-rs/target/debug/deps/libcrossbeam_utils-8dcf4d53da288f8f.rlib" "/Users/.../IdeaProjects/grpc-rs/target/debug/deps/libslog-4bf570d2bea85b07.rlib" "/Users/.../IdeaProjects/grpc-rs/target/debug/deps/liblog-8aaf2fada90fd261.rlib" "/Users/.../IdeaProjects/grpc-rs/target/debug/deps/libcfg_if-e6509c5f025d8702.rlib" "/Users/.../.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd-bc66f40cdb19a7b5.rlib" "/Users/.../.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libpanic_unwind-82744e00eb67d2cd.rlib" "/Users/.../.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libobject-687c35e73da80a26.rlib" "/Users/.../.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libmemchr-8763a2dbee186cdb.rlib" "/Users/.../.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libaddr2line-8429266bec145faf.rlib" "/Users/.../.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libgimli-8d61cdb577563b85.rlib" "/Users/.../.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_demangle-778598e0d10758f6.rlib" "/Users/.../.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd_detect-aa27b90bf7fd1432.rlib" "/Users/.../.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcfg_if-d1a0ff487d6d4d55.rlib" "/Users/.../.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libhashbrown-3e59a62b515378ce.rlib" "/Users/.../.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libminiz_oxide-fbff8af2ae7354cf.rlib" "/Users/.../.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libadler-60690200e8d95cee.rlib" "/Users/.../.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_alloc-af17eba547e34f93.rlib" "/Users/.../.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libunwind-a2d3fb1c6098ba0b.rlib" "/Users/.../.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcfg_if-631867edff21efa9.rlib" "/Users/.../.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liblibc-1432fbf85665684e.rlib" "/Users/.../.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liballoc-e26d2fb48c01825f.rlib" "/Users/.../.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_core-a8a859a864856684.rlib" "/Users/.../.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcore-908209eee60fb642.rlib" "/Users/.../.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcompiler_builtins-d567ed3625eefebc.rlib" "-framework" "CoreFoundation" "-lc++" "-liconv" "-lSystem" "-lc" "-lm" "-L" "/Users/.../.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "-o" "/Users/.../IdeaProjects/grpc-rs/target/debug/examples/lb_greeter_server-a63690b5afccce8d" "-Wl,-dead_strip" "-nodefaultlibs"
  = note: ld: warning: directory not found for option '-L/Users/.../IdeaProjects/grpc-rs/target/debug/build/libz-sys-aa02c4250e7bfed2/out/build'
          Undefined symbols for architecture arm64:
            "_res_9_getservers", referenced from:
                _init_by_resolv_conf in libgrpcio_sys-03a1c8b58b5d0474.rlib(ares_init.c.o)
            "_res_9_ndestroy", referenced from:
                _init_by_resolv_conf in libgrpcio_sys-03a1c8b58b5d0474.rlib(ares_init.c.o)
            "_res_9_ninit", referenced from:
                _init_by_resolv_conf in libgrpcio_sys-03a1c8b58b5d0474.rlib(ares_init.c.o)
          ld: symbol(s) not found for architecture arm64
          clang: error: linker command failed with exit code 1 (use -v to see invocation)
          

error: could not compile `tests-and-examples` due to previous error
...@MacBook-Pro-MacBook tests-and-examples % 

My machine:

… % gcc --version
gcc (Homebrew GCC 12.2.0) 12.2.0
…
… % g++ --version
g++ (Homebrew GCC 12.2.0) 12.2.0
…
… % cmake --version
cmake version 3.24.2
…
.. % rustc --version
rustc 1.66.0-nightly (1898c34e9 2022-10-26)

...@MacBook-Pro-MacBook tests-and-examples % ld -v
@(#)PROGRAM:ld  PROJECT:ld64-819.6
BUILD 14:58:44 Aug  5 2022
configured to support archs: armv6 armv7 armv7s arm64 arm64e arm64_32 i386 x86_64 x86_64h armv6m armv7k armv7m armv7em
LTO support using: LLVM version 14.0.0, (clang-1400.0.29.102) (static support for 29, runtime is 29)
TAPI support using: Apple TAPI version 14.0.0 (tapi-1400.0.11)

Could you pls advice what I did wrong?

I believe it's because nightly rustc introduce some minimal linking again. It should work with stable rust.

@BusyJay you are right! I even couldn't think that nightly version could break it :) Thanks!

Got same error with Rust 1.66(current stable version)

FYI: maybe this PR (included in 1.66 milestone) is related.