I get the following error when running the code on Mac:
$ cargo test
Blocking waiting for file lock on build directory
Compiling cfg-if v1.0.0
Compiling libc v0.2.139
Compiling memchr v2.5.0
Compiling bitflags v1.3.2
Compiling linux-raw-sys v0.1.4
Compiling serde v1.0.152
Compiling ppv-lite86 v0.2.17
Compiling ryu v1.0.12
Compiling itoa v1.0.5
Compiling regex-syntax v0.6.28
Compiling log v0.4.17
Compiling aho-corasick v0.7.20
Compiling num-traits v0.2.15
Compiling termcolor v1.2.0
Compiling io-lifetimes v1.0.5
Compiling getrandom v0.2.8
Compiling rand_core v0.6.4
Compiling rustix v0.36.8
Compiling rand_chacha v0.3.1
Compiling regex v1.7.1
Compiling hashbrown v0.12.3
Compiling humantime v2.1.0
Compiling rand v0.8.5
Compiling is-terminal v0.4.4
Compiling serde_json v1.0.93
Compiling env_logger v0.10.0
Compiling indexmap v1.9.2
Compiling ordered-float v3.4.0
Compiling anyhow v1.0.69
Compiling same-file v1.0.6
Compiling unsafe-libyaml v0.2.5
Compiling lazy_static v1.4.0
Compiling walkdir v2.3.2
Compiling regorus v0.1.0 (/Users/suraj/regorus)
Compiling serde_yaml v0.9.17
WARN rustc_codegen_ssa::back::link Linker does not support -static-pie command line option. Retrying with -static instead.
error: linking with `cc` failed: exit status: 1
|
= note: "cc" "-m64" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crt1.o" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crti.o" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crtbegin.o" "/var/folders/ls/csbb474j2r9__hhcvmxq0rfh0000gn/T/rustcnqCu9M/symbols.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/regorus-fcec70836da02bd4.26oy5xroe1j4uizr.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/regorus-fcec70836da02bd4.2al4rbod2d9ouijo.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/regorus-fcec70836da02bd4.2ell7l6z5e2ib1ww.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/regorus-fcec70836da02bd4.3dfnnzlc4ks2tmnc.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/regorus-fcec70836da02bd4.3tqzf0hnys57fi3b.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/regorus-fcec70836da02bd4.3zwjhdaxhp1yjnnm.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/regorus-fcec70836da02bd4.454ueeyu32ilswfv.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/regorus-fcec70836da02bd4.4kdq0gtkgmh1lj11.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/regorus-fcec70836da02bd4.4zzwzf8zq860h2ec.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/regorus-fcec70836da02bd4.5836ha2a7szqtn9b.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/regorus-fcec70836da02bd4.7djmpei4nvyela8.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/regorus-fcec70836da02bd4.he6eobjek6bvjb7.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/regorus-fcec70836da02bd4.ow62x8f73xh9oux.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/regorus-fcec70836da02bd4.qa6eayjupo3qekh.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/regorus-fcec70836da02bd4.3w5ijmrcl3hbb8h9.rcgu.o" "-Wl,--as-needed" "-L" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps" "-L" "/Users/suraj/regorus/target/debug/deps" "-L" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib" "-Wl,-Bstatic" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/libserde_json-cdcfbac8d3038cc5.rlib" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/libryu-b1b9f8d3fa76cb19.rlib" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/libitoa-e0dd1901b33b3a15.rlib" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/libtest-ad0f359ad33f9b7b.rlib" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/libgetopts-79eba14d9f034925.rlib" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/libunicode_width-afab047dd1b3ce90.rlib" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/librustc_std_workspace_std-842db571d17646c8.rlib" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/libserde-c4504a9a9e7f5d96.rlib" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/libordered_float-325f78850fa22743.rlib" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/libnum_traits-0c7dcfa51f336571.rlib" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/liblog-b357d2e8b2ee508d.rlib" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/liblazy_static-78967fb5a1b2ccae.rlib" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/librand-dc8da0f8c2953e14.rlib" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/librand_chacha-7a8120c61382777d.rlib" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/libppv_lite86-f174219c679d741c.rlib" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/librand_core-85cfaef9eabee4e3.rlib" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/libgetrandom-8a1e0d457729ec1d.rlib" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/liblibc-b47602084d6405af.rlib" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/libcfg_if-9474d645befae3f8.rlib" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/libanyhow-9157ae3575dd79b3.rlib" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/libprofiler_builtins-bd289e9e1d3116a4.rlib" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/libstd-86aefecbddda356d.rlib" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/libpanic_unwind-3d55d9622a2f5140.rlib" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/libobject-7aa31308145aea0a.rlib" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/libmemchr-8c385129ceceaff7.rlib" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/libaddr2line-3a9d0b46a4afc5ce.rlib" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/libgimli-5c4e1c7dd1c36634.rlib" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/librustc_demangle-85de0c518ec91e8f.rlib" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/libstd_detect-2eeeecc93705146d.rlib" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/libhashbrown-990303a257faf081.rlib" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/libminiz_oxide-3639a8245c3cc653.rlib" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/libadler-8dbe6ab28e534b48.rlib" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/librustc_std_workspace_alloc-dd6269f764aa51a6.rlib" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/libunwind-53c0377c886910ca.rlib" "-lunwind" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/libcfg_if-68da8aade85f8514.rlib" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/liblibc-f8cfdefff46a260d.rlib" "-lc" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/liballoc-d2c87b1633315b15.rlib" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/librustc_std_workspace_core-37886685c2c3c64f.rlib" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/libcore-5c96c3c09cedb260.rlib" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/libcompiler_builtins-8917dd2a6ba09b28.rlib" "-Wl,-Bdynamic" "-Wl,--eh-frame-hdr" "-Wl,-znoexecstack" "-nostartfiles" "-L" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib" "-L" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained" "-o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/regorus-fcec70836da02bd4" "-Wl,--gc-sections" "-static" "-Wl,-zrelro,-znow" "-nodefaultlibs" "-u" "__llvm_profile_runtime" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crtend.o" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crtn.o"
= note: ld: unknown option: --as-needed
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: could not compile `regorus` due to previous error
warning: build failed, waiting for other jobs to finish...
WARN rustc_codegen_ssa::back::link Linker does not support -static-pie command line option. Retrying with -static instead.
error: linking with `cc` failed: exit status: 1
|
= note: "cc" "-m64" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crt1.o" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crti.o" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crtbegin.o" "/var/folders/ls/csbb474j2r9__hhcvmxq0rfh0000gn/T/rustcezdAAE/symbols.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.10lbz54l10fy7bnj.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.14qdkywmskbufgzc.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.14x1578w73rs0t7g.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.15pang75rgcc2149.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.15ttnen1yodphh59.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.19qiu0vstc6blcoo.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.1chunr76iiltpbwh.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.1d5q024lzwtrjxc1.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.1drcbnq9dk8d16y9.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.1dtq9gsda3qt1569.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.1esr8c3vv575wkum.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.1gk4hluxuh3zfnt4.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.1iov375qof33xtth.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.1mlvsdh2p3rtl69a.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.1ncizjpmszhorze4.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.1qlk5wae1w1agfkv.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.1u46vy1nwnirjjgu.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.1v0fcbsxcm20a357.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.1v6w4vossqd9m9wx.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.1v9kxi413z2zvb37.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.1w54bwl3badzw2ui.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.1w7gmfjkhdppngnw.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.20ao07srkatsdi1a.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.20mk0g32l9hglkiu.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.21surqq5dprmlr7n.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.236ahaz3xdvx19vz.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.239og53s1h4sf4he.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.24bc8iduz0hpw1vv.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.278fswuw6juzym6z.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.292z02bdmwk82fkw.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.2dhcymdxg28stykj.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.2gx0zi7jtyafyap.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.2h151lwiifn8t2b8.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.2ici9tg27fg93szc.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.2ihl00rhn5w063xo.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.2k5geolxrpmtsrx1.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.2ky3qvmsunrmsuz5.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.2mkz35slr7u08tt2.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.2neziuzui60355f6.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.2o5wbrg0lh63d9rr.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.2t9dk78lxlh9z8t6.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.2tbgxkmc1p4usxru.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.2tqs1rtkjkcndkz3.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.2uqjhe8ydp5faoc9.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.2uu5wwwbcages3zz.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.2wba4gk4otk9a9cl.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.2wdrxpmvrj88arhb.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.31do7vn09jexws7a.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.32yvriltmj8las5i.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.36ab358g564vkadv.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.39sjso3eptiwkso3.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.39v3ijqe9ohdx6ix.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.3bnqese2dkk10qxb.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.3c0kwcmwuvdn0nwe.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.3cx6j9et76p6e8dr.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.3ewxvgxu7ntq7kak.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.3g4d52phcytf66e1.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.3jk00xc1l27y3cby.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.3ktgq3elm9xczl5s.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.3nay7aaq2o8dwp2.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.3qj5ythr684tme3f.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.3qvnf4i07hgdrkua.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.3vm3vhz51xqoolkm.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.41ee3azv9168g668.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.41ight3vjb60iss.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.42novq37zj9kk2iz.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.43hrmg2tdwdbz2tu.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.46sjiehwsngos927.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.4a1bopx8hdq8zitz.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.4c3bzkmkpqzsjk44.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.4cvv3qrxo7ucxr2b.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.4f9t18mqhvohsx7s.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.4gfly11vbz811auk.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.4h9plm51ncrcj3od.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.4i436tjojnxt7cyy.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.4igp5hcl8upsitcn.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.4p45qxhjnrsrvn7v.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.4rk03eexl33bipk3.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.4sk3841ngzoivdt8.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.4v05i0ipvhez0b7h.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.4v4xwnqfixyzp2gc.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.4vyjq0nhdlaxj77h.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.4w4x67d76bqfsud2.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.4wl0vgh2rzv7r5lc.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.4ww2zc4z3cipog6m.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.54i7dq1g3vasvvmp.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.57oci7izti4d3mhc.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.58yq1lbk0m2hpeq2.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.5cexk1c8q8j7zf46.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.5fjck2b3oj36ru6n.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.6jfmxsxw6bw8jlh.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.6vikuziay2a4kll.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.9reru6ioj34p3pr.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.d0y5x9anjldh59h.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.dhwg9sp9svbwafl.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.dw0guksm18tfhv9.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.fvhcb11tjjkg28x.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.fxaa8i4jalx23o.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.iv179gi6ew87u2u.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.ked6dapl1yydq12.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.ltrkj4sc07w9afm.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.lw3bf575jbf5niv.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.lypp958fqg0qquv.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.nzd85bdo9hx53pj.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.opjuftvetdalckf.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.q6valkxkn5aqvvq.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.q7vvvvks6l15x91.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.sd6c0si6nq56dgg.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.u4beonlsekqmaij.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.vyn2m1m2cq7xu1x.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.wn5l5h2mu2x96vv.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.x5pum6ohexqcreu.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.zg53v1wdz67ucak.rcgu.o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422.2ohczznkv083gq9.rcgu.o" "-Wl,--as-needed" "-L" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps" "-L" "/Users/suraj/regorus/target/debug/deps" "-L" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib" "-Wl,-Bstatic" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/libserde_yaml-10928f6a17d9ac05.rlib" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/libindexmap-ace3303970416a49.rlib" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/libhashbrown-6b1ed0f4c35f0529.rlib" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/libunsafe_libyaml-ba03e2fcbab3acc5.rlib" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/libenv_logger-d191049e22d18f84.rlib" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/libtermcolor-b14b6fb0486f23c6.rlib" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/libis_terminal-9f4d4e6a3f6cd08c.rlib" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/librustix-06f28caa09371fd8.rlib" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/libbitflags-4616e6d358ea76d6.rlib" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/liblinux_raw_sys-caa13804594638b4.rlib" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/libio_lifetimes-13f403714eb7d653.rlib" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/libhumantime-f15b169e767823af.rlib" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/libregex-dac92d386ed86f3f.rlib" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/libaho_corasick-ca0617db7b86d108.rlib" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/libmemchr-f38717440fcdc3d3.rlib" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/libregex_syntax-674614f1fdd60202.rlib" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/libtest-ad0f359ad33f9b7b.rlib" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/libgetopts-79eba14d9f034925.rlib" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/libunicode_width-afab047dd1b3ce90.rlib" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/librustc_std_workspace_std-842db571d17646c8.rlib" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/libregorus-51e3b06d197979a2.rlib" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/libserde_json-cdcfbac8d3038cc5.rlib" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/libryu-b1b9f8d3fa76cb19.rlib" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/libitoa-e0dd1901b33b3a15.rlib" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/libserde-c4504a9a9e7f5d96.rlib" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/libordered_float-325f78850fa22743.rlib" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/libnum_traits-0c7dcfa51f336571.rlib" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/liblog-b357d2e8b2ee508d.rlib" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/liblazy_static-78967fb5a1b2ccae.rlib" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/librand-dc8da0f8c2953e14.rlib" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/librand_chacha-7a8120c61382777d.rlib" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/libppv_lite86-f174219c679d741c.rlib" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/librand_core-85cfaef9eabee4e3.rlib" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/libgetrandom-8a1e0d457729ec1d.rlib" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/liblibc-b47602084d6405af.rlib" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/libcfg_if-9474d645befae3f8.rlib" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/libanyhow-9157ae3575dd79b3.rlib" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/libprofiler_builtins-bd289e9e1d3116a4.rlib" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/libstd-86aefecbddda356d.rlib" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/libpanic_unwind-3d55d9622a2f5140.rlib" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/libobject-7aa31308145aea0a.rlib" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/libmemchr-8c385129ceceaff7.rlib" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/libaddr2line-3a9d0b46a4afc5ce.rlib" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/libgimli-5c4e1c7dd1c36634.rlib" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/librustc_demangle-85de0c518ec91e8f.rlib" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/libstd_detect-2eeeecc93705146d.rlib" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/libhashbrown-990303a257faf081.rlib" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/libminiz_oxide-3639a8245c3cc653.rlib" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/libadler-8dbe6ab28e534b48.rlib" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/librustc_std_workspace_alloc-dd6269f764aa51a6.rlib" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/libunwind-53c0377c886910ca.rlib" "-lunwind" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/libcfg_if-68da8aade85f8514.rlib" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/liblibc-f8cfdefff46a260d.rlib" "-lc" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/liballoc-d2c87b1633315b15.rlib" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/librustc_std_workspace_core-37886685c2c3c64f.rlib" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/libcore-5c96c3c09cedb260.rlib" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/libcompiler_builtins-8917dd2a6ba09b28.rlib" "-Wl,-Bdynamic" "-Wl,--eh-frame-hdr" "-Wl,-znoexecstack" "-nostartfiles" "-L" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib" "-L" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained" "-o" "/Users/suraj/regorus/target/x86_64-unknown-linux-musl/debug/deps/tests-9550f7ae56217422" "-Wl,--gc-sections" "-static" "-Wl,-zrelro,-znow" "-nodefaultlibs" "-u" "__llvm_profile_runtime" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crtend.o" "/Users/suraj/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crtn.o"
= note: ld: unknown option: --as-needed
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: could not compile `regorus` due to previous error
But with the following change I can make it run on the OSX as well:
$ git diff
diff --git .cargo/config.toml .cargo/config.toml
index 997f237..8f70798 100644
--- .cargo/config.toml
+++ .cargo/config.toml
@@ -1,5 +1,5 @@
[build]
-target = "x86_64-unknown-linux-musl"
+# target = "x86_64-unknown-linux-musl"
# Flags to enable code-coverage for all builds.
# These can be removed later.
Or I can do that by manually specifying the target
$ cargo test --target aarch64-apple-darwin