We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there a documented process for getting this to work on Apple M1? (fyi, had no issues on a linux box)
$ file lib/libtorch.dylib lib/libtorch.dylib: Mach-O 64-bit dynamically linked shared library arm64
Fresh tch v0.7.2 Fresh cached-path v0.5.3 Compiling rust-bert v0.18.0 (/Users/sunilmallya/workspace/rust-pt/rust-bert) Running `rustc --crate-name convert_tensor --edition=2018 src/convert-tensor.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C split-debuginfo=unpacked -C debuginfo=2 --cfg 'feature="cached-path"' --cfg 'feature="default"' --cfg 'feature="dirs"' --cfg 'feature="lazy_static"' --cfg 'feature="remote"' -C metadata=425f4ffddd02ff0f -C extra-filename=-425f4ffddd02ff0f --out-dir /Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps -C incremental=/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/incremental -L dependency=/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps --extern cached_path=/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libcached_path-fa0ee0e8ceb31786.rlib --extern dirs=/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libdirs-22f4234bc0e96655.rlib --extern half=/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libhalf-04ea81a7551f1201.rlib --extern lazy_static=/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/liblazy_static-ba938f5ec70a57c1.rlib --extern ordered_float=/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libordered_float-c2b3d4f10cf70e48.rlib --extern rust_bert=/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/librust_bert-fbdf85e612d62d66.rlib --extern rust_tokenizers=/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/librust_tokenizers-1d12935b9848b95d.rlib --extern serde=/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libserde-b82d1a14a3c89389.rlib --extern serde_json=/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libserde_json-42fe5e7cb44713d6.rlib --extern tch=/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libtch-de55c6417283d9f5.rlib --extern thiserror=/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libthiserror-dccbdceebd19f1b2.rlib --extern uuid=/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libuuid-bed0d19bf89cf1bb.rlib -L native=/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/build/bzip2-sys-2a5c385deffa0d30/out/lib -L native=/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/build/torch-sys-0b34b98942258b3c/out/libtorch/libtorch/lib -L native=/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/build/torch-sys-0b34b98942258b3c/out` error: linking with `cc` failed: exit status: 1 | = note: "cc" "-arch" "arm64" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.107x2ex0skmtixbg.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.156cw313yoedt84b.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.15fgl0s29a1r5nuh.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.1ae2lo4co2o8je78.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.1c207vnjcg29pgwf.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.1gjyfp8l8ubwwjpc.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.1h474991lv82t9tm.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.1nfv8yguvth7muwh.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.1ujyw2pdehnarojk.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.1x1q50g43oms08a7.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.24w1ncxy4weysb84.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.285y76gz27w2pqne.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.2hwst5get5wdmfpx.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.2i5mqzo7l0lhl8aw.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.2jcesa93ps8uy5lk.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.2n0w74rqqg73cuwc.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.2xolaoi4efyx9kkw.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.2ye5wsad6jmagflb.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.30zt5s99ohzwdqyy.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.312hb078auhs0lio.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.38mktjt4fc89hayq.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.39njdjqd9uz5ar4y.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.3alij2ieu4gl065s.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.3bku6nzmcif82l8x.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.3cg9f4vpngvv0ny9.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.3g86uho3h9wirt66.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.3moweja5qjihnt1.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.3nqwyvkv5tqbrmg7.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.3q5cpxw1ok3yh2vs.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.3sohv0jdixp84644.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.3t7iagq24ffl44b8.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.4112t8qymyukq9de.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.49azh7vi03ft5n82.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.49d32wq5ninbu9uy.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.4c31532ws12839es.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.4cvupz3ucprsh899.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.4do0m9m0xqyxvj3u.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.4dpkllpsjoibpmfm.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.4fauez7usxcokplc.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.4fzabco503h1fwj1.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.4gx2p59jltid4big.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.4imzzwvu5spebr4n.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.4in3gw43tl7q1xak.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.4n812spu41a8hh01.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.4qkqvv6gb0dha1bj.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.4vsrpdzfz19hy7xm.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.50cmglayyrhx71ha.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.54xjtdoyolztw7sb.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.570wwm30dq3yxepc.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.57mruwydctw9cmd.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.5c23mcxcfde7k16b.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.5cscnj52u1bqvurl.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.5f7go1ktvm29tefi.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.7a36o3jdbg2endt.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.di3mkwiljktu13.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.gxcdcp48h8jt0n0.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.i2xwkdl7zc50t3.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.isb7lw2uhjltdza.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.jr3utk2x75wrrv7.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.ko27p1qdhl1qips.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.lltsl261ydglpis.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.npre8gw7w40dtbe.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.q7o1buqz9t1w2cy.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.qzz63hmeqwhwzwl.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.t4iugm0uqaznts0.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.uzk3dzi4vgtk8wb.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.xpp3qcc0qgkxjge.rcgu.o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f.31adwcm5j60rn0iv.rcgu.o" "-L" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps" "-L" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/build/bzip2-sys-2a5c385deffa0d30/out/lib" "-L" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/build/torch-sys-0b34b98942258b3c/out/libtorch/libtorch/lib" "-L" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/build/torch-sys-0b34b98942258b3c/out" "-L" "/Users/sunilmallya/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/librust_bert-fbdf85e612d62d66.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libuuid-bed0d19bf89cf1bb.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libdirs-22f4234bc0e96655.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libdirs_sys-a858a503c488cc61.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libcached_path-fa0ee0e8ceb31786.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libindicatif-5a56a4b4e8197889.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libconsole-2480f242445816b6.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libterminal_size-7bcc74907c0d5d9a.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libnumber_prefix-93ad8c0bd9082c6e.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libtar-e7fae4256d6d4a7e.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libxattr-228e5befe0d293db.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libfiletime-b1ba98c3c54758ce.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libsha2-dd0879452bb75453.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libdigest-988afdc8925a6e69.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libblock_buffer-f54273737d6de1b2.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libcrypto_common-bc3bd77bb264baf9.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libgeneric_array-563b62949122b4af.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libtypenum-aa2f122305fdf787.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libreqwest-1d57d8c2b202786b.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libhyper_tls-54e68382187ab7fd.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libipnet-22debf8bc1b5b651.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libtokio_native_tls-2d94f33fd2223c24.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libserde_urlencoded-042f75b823223c4a.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libmime-50c5424226543ba8.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libencoding_rs-821f570a7d593826.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libbase64-81d4e4ca2c0f0b24.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libnative_tls-559747450595ce67.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libsecurity_framework-7f2198d957898717.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libbitflags-50eae86ffee465d9.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libsecurity_framework_sys-6631bd77acf32e51.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libcore_foundation-863cfe659a8b0b6b.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libcore_foundation_sys-74718db3a9047322.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libhyper-a56fa86014a8b5d9.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libwant-ed0722e5ebce7b2e.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libtry_lock-031a55d1493ec1f6.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libhttparse-c2e3e893d52e6230.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libh2-c6e2a1a52544780b.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libindexmap-4e568fdf1e3766fd.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libtokio_util-4a098d8506f6911f.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libfutures_sink-a4e0c7d6cdb35936.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libtower_service-9a6abce429e00741.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libtracing-051587f853cefc13.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libtracing_core-c55946fa7d4c212e.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libfutures_channel-b7525555f25aa5bb.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libtokio-19351c0e59b39ded.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libsocket2-b4c8eada4bfc4d54.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libmio-ede3780e886481f9.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libhttp_body-55b3435910c6901f.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libfutures_util-454108a4557d15a4.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libfutures_io-013d949c38bc0056.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libslab-042918f3447b9c3a.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libpin_project_lite-366ca0604c4df568.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libfutures_task-93273ef414d74cbd.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libpin_utils-1093229fca4f6d01.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libfutures_core-b7c55e3683beae58.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/liburl-9201a8dcf8ca5a37.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libidna-193a60e8b8197f65.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libunicode_bidi-27c07dc765c8cac2.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libform_urlencoded-48092412ba5c727f.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libpercent_encoding-832050049fe56058.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libmatches-561063d335e43823.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libhttp-83308dc8f08e897d.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libbytes-ed757ca31c5ca453.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libfnv-71c52b770205257b.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/liblog-4905d1fa77bdeffb.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libglob-6c72ca3f214dc197.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libfs2-9b63b388a596cee3.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libzip_extensions-ec6f6490a0c69aec.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libtempfile-c65b656d3b4c8968.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libfastrand-47748720a8633040.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libremove_dir_all-d0d4acc51b2d3914.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/librust_tokenizers-1d12935b9848b95d.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libcsv-d6624649d629554d.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libitoa-a0f898ab135fd5c3.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libcsv_core-873f83e9810f3c62.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libbstr-c8ffd8e94c0129e4.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libregex_automata-fba0d1a94a1358e6.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libserde_json-42fe5e7cb44713d6.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libryu-de2b3f8250d937ec.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libitoa-4625c2881b8caba8.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libhashbrown-dcc21d85ad0578fb.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libahash-a2cb445af39e2669.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libprotobuf-ba6c158482cb20b4.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libunicode_normalization_alignments-da6befbf7e0f6439.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libsmallvec-59ba9c6d79050039.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libunicode_normalization-0a782adf23e46c08.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libtinyvec-c403553713510f27.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libtinyvec_macros-4cbcf3d014010145.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libregex-a2338977ddb2bc6c.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libaho_corasick-c988b918cfcc5374.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libmemchr-f912f178ce2d82f5.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libregex_syntax-ae73c65073fe7a5c.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/librayon-e28a1b8df28cda71.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/librayon_core-0f24261c636cf7a5.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libnum_cpus-a7c632e2e5c95652.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libcrossbeam_deque-e5cf797da58cb08e.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libcrossbeam_epoch-94df3c6adc14070b.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libmemoffset-9887927115a02ef4.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libscopeguard-fe5f5a49d0f53c66.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libcrossbeam_channel-6d845cbb995ae9f0.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libcrossbeam_utils-12314ea30fc8e771.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libonce_cell-fdf9d8ade8fe4133.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libitertools-05f7beefe14dcdd5.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libeither-0729b3c10e4343b8.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libserde-b82d1a14a3c89389.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libordered_float-c2b3d4f10cf70e48.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libtch-de55c6417283d9f5.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libndarray-9c4cf27c7dc52fc5.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libmatrixmultiply-b173c41cbd55322c.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libnum_complex-27cb7df4309c0cd2.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libnum_integer-a97ee62ece0072d0.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libnum_traits-298313e904cfa2a6.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/librawpointer-66c99eb7b5655ac9.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/librand-b17dda555429bf2d.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/librand_chacha-821a553ef2fa0491.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libppv_lite86-784a3895339fb238.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/librand_core-cb617018643aa650.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libgetrandom-46b6cd654432d777.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libhalf-04ea81a7551f1201.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libtorch_sys-edde38876f7b245e.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libzip-7ccd392344b2fd10.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libtime-2fd42a88c9e7fd90.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libbzip2-588d2ec02f9b8a96.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libbzip2_sys-25d00b93dff70340.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/liblibc-328af413f54fc012.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libflate2-cbdc011f454d9e50.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libminiz_oxide-fe5be2037a803a52.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libadler-11ae91d0f025b259.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libbyteorder-f7d764f048556f29.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libcrc32fast-7c5f7c668fe2e835.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libcfg_if-d0836c23492025b1.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libthiserror-dccbdceebd19f1b2.rlib" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/liblazy_static-ba938f5ec70a57c1.rlib" "/Users/sunilmallya/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd-0dd069df8d91d43f.rlib" "/Users/sunilmallya/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libpanic_unwind-7cbaf788dfce5d66.rlib" "/Users/sunilmallya/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libobject-af5296f79b444c55.rlib" "/Users/sunilmallya/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libmemchr-f15ae47b27e6c368.rlib" "/Users/sunilmallya/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libaddr2line-3e9ec6def1f5cffe.rlib" "/Users/sunilmallya/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libgimli-302f1e935cf05b0d.rlib" "/Users/sunilmallya/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_demangle-bb4e9f007ffeee2c.rlib" "/Users/sunilmallya/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd_detect-c9d4bbaea0812982.rlib" "/Users/sunilmallya/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libhashbrown-69fbf5632ee1531d.rlib" "/Users/sunilmallya/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libminiz_oxide-d0d3793083fe7a23.rlib" "/Users/sunilmallya/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libadler-e9688be92d7fdfea.rlib" "/Users/sunilmallya/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_alloc-1a07d2235b647a42.rlib" "/Users/sunilmallya/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libunwind-f4705be43877013e.rlib" "/Users/sunilmallya/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcfg_if-218bb6979b4b9957.rlib" "/Users/sunilmallya/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liblibc-5f8d5e70b747a13a.rlib" "/Users/sunilmallya/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liballoc-8a2a692899862816.rlib" "/Users/sunilmallya/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_core-b8205ba56f89023d.rlib" "/Users/sunilmallya/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcore-76ce7e0c1f6d7b3f.rlib" "/Users/sunilmallya/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcompiler_builtins-4014697324d67e93.rlib" "-framework" "Security" "-framework" "CoreFoundation" "-lc++" "-ltorch_cpu" "-ltorch" "-lc10" "-liconv" "-lSystem" "-lresolv" "-lc" "-lm" "-liconv" "-L" "/Users/sunilmallya/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "-o" "/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/convert_tensor-425f4ffddd02ff0f" "-Wl,-dead_strip" "-nodefaultlibs" = note: ld: warning: ignoring file /Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/build/torch-sys-0b34b98942258b3c/out/libtorch/libtorch/lib/libtorch_cpu.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64 ld: warning: ignoring file /Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/build/torch-sys-0b34b98942258b3c/out/libtorch/libtorch/lib/libtorch.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64 ld: warning: ignoring file /Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/build/torch-sys-0b34b98942258b3c/out/libtorch/libtorch/lib/libc10.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64 Undefined symbols for architecture arm64: "c10::impl::ExcludeDispatchKeyGuard::~ExcludeDispatchKeyGuard()", referenced from: at::AutoDispatchBelowADInplaceOrView::~AutoDispatchBelowADInplaceOrView() in libtorch_sys-edde38876f7b245e.rlib(torch_api.o) "c10::impl::ExcludeDispatchKeyGuard::ExcludeDispatchKeyGuard(c10::DispatchKeySet)", referenced from: at::AutoDispatchBelowADInplaceOrView::AutoDispatchBelowADInplaceOrView() in libtorch_sys-edde38876f7b245e.rlib(torch_api.o) "c10::AutogradMetaInterface::~AutogradMetaInterface()", referenced from: torch::autograd::AutogradMeta::AutogradMeta(c10::TensorImpl*, bool, torch::autograd::Edge) in libtorch_sys-edde38876f7b245e.rlib(torch_api.o) "c10::detail::torchInternalAssertFail(char const*, char const*, unsigned int, char const*, char const*)", referenced from: c10::intrusive_ptr<c10::VariableVersion::VersionCounter, c10::detail::intrusive_target_default_null_type<c10::VariableVersion::VersionCounter> >::intrusive_ptr(c10::VariableVersion::VersionCounter*) in libtorch_sys-edde38876f7b245e.rlib(torch_api.o) c10::intrusive_ptr_target::~intrusive_ptr_target() in libtorch_sys-edde38876f7b245e.rlib(torch_api.o) c10::intrusive_ptr<c10::TensorImpl, c10::UndefinedTensorImpl>::retain_() in libtorch_sys-edde38876f7b245e.rlib(torch_api.o) c10::ArrayRef<long long>::debugCheckNullptrInvariant() in libtorch_sys-edde38876f7b245e.rlib(torch_api.o) c10::ArrayRef<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >::debugCheckNullptrInvariant() in libtorch_sys-edde38876f7b245e.rlib(torch_api.o) "vtable for c10::AutogradMetaInterface", referenced from: c10::AutogradMetaInterface::AutogradMetaInterface() in libtorch_sys-edde38876f7b245e.rlib(torch_api.o) NOTE: a missing vtable usually means the first non-inline virtual member function has no definition. "caffe2::TypeMeta::error_unsupported_typemeta(caffe2::TypeMeta)", referenced from: caffe2::TypeMeta::toScalarType() in libtorch_sys-edde38876f7b245e.rlib(torch_api.o) "c10::detail::torchCheckFail(char const*, char const*, unsigned int, char const*)", referenced from: torch::autograd::AutogradMeta::AutogradMeta(c10::TensorImpl*, bool, torch::autograd::Edge) in libtorch_sys-edde38876f7b245e.rlib(torch_api.o) c10::detail::torchInternalAssertFail(char const*, char const*, unsigned int, char const*, c10::detail::CompileTimeEmptyString) in libtorch_sys-edde38876f7b245e.rlib(torch_api.o) c10::TensorImpl::itemsize() const in libtorch_sys-edde38876f7b245e.rlib(torch_api.o) c10::TensorImpl::data() const in libtorch_sys-edde38876f7b245e.rlib(torch_api.o) c10::QualifiedName::QualifiedName(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in libtorch_sys-edde38876f7b245e.rlib(torch_api.o) "c10::detail::torchInternalAssertFail(char const*, char const*, unsigned int, char const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from: c10::Device::validate() in libtorch_sys-edde38876f7b245e.rlib(torch_api.o) caffe2::TypeMeta::fromScalarType(c10::ScalarType) in libtorch_sys-edde38876f7b245e.rlib(torch_api.o) c10::intrusive_ptr_target::~intrusive_ptr_target() in libtorch_sys-edde38876f7b245e.rlib(torch_api.o) c10::QualifiedName::QualifiedName(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in libtorch_sys-edde38876f7b245e.rlib(torch_api.o) "c10::detail::torchCheckFail(char const*, char const*, unsigned int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from: c10::ArrayRef<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >::slice(unsigned long, unsigned long) const in libtorch_sys-edde38876f7b245e.rlib(torch_api.o) "c10::UndefinedTensorImpl::_singleton", referenced from: c10::UndefinedTensorImpl::singleton() in libtorch_sys-edde38876f7b245e.rlib(torch_api.o) "caffe2::TypeMeta::typeMetaDatas()", referenced from: caffe2::TypeMeta::data() const in libtorch_sys-edde38876f7b245e.rlib(torch_api.o) "c10::TensorImpl::set_autograd_meta(std::__1::unique_ptr<c10::AutogradMetaInterface, std::__1::default_delete<c10::AutogradMetaInterface> >)", referenced from: torch::autograd::make_variable(at::Tensor, bool, bool) in libtorch_sys-edde38876f7b245e.rlib(torch_api.o) "at::_ops::zeros::call(c10::ArrayRef<long long>, c10::optional<c10::ScalarType>, c10::optional<c10::Layout>, c10::optional<c10::Device>, c10::optional<bool>)", referenced from: at::zeros(c10::ArrayRef<long long>, c10::TensorOptions) in libtorch_sys-edde38876f7b245e.rlib(torch_api.o) "vtable for torch::autograd::AutogradMeta", referenced from: torch::autograd::AutogradMeta::AutogradMeta(c10::TensorImpl*, bool, torch::autograd::Edge) in libtorch_sys-edde38876f7b245e.rlib(torch_api.o) NOTE: a missing vtable usually means the first non-inline virtual member function has no definition. "torch::jit::Module::Module(c10::QualifiedName, std::__1::shared_ptr<torch::jit::CompilationUnit>, bool)", referenced from: torch::serialize::OutputArchive::OutputArchive() in libtorch_sys-edde38876f7b245e.rlib(torch_api.o) "torch::serialize::OutputArchive::write(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, at::Tensor const&, bool)", referenced from: _at_save_multi in libtorch_sys-edde38876f7b245e.rlib(torch_api.o) "torch::serialize::OutputArchive::save_to(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from: _at_save_multi in libtorch_sys-edde38876f7b245e.rlib(torch_api.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 `rust-bert` due to previous error Caused by: process didn't exit successfully: `rustc --crate-name convert_tensor --edition=2018 src/convert-tensor.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C split-debuginfo=unpacked -C debuginfo=2 --cfg 'feature="cached-path"' --cfg 'feature="default"' --cfg 'feature="dirs"' --cfg 'feature="lazy_static"' --cfg 'feature="remote"' -C metadata=425f4ffddd02ff0f -C extra-filename=-425f4ffddd02ff0f --out-dir /Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps -C incremental=/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/incremental -L dependency=/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps --extern cached_path=/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libcached_path-fa0ee0e8ceb31786.rlib --extern dirs=/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libdirs-22f4234bc0e96655.rlib --extern half=/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libhalf-04ea81a7551f1201.rlib --extern lazy_static=/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/liblazy_static-ba938f5ec70a57c1.rlib --extern ordered_float=/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libordered_float-c2b3d4f10cf70e48.rlib --extern rust_bert=/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/librust_bert-fbdf85e612d62d66.rlib --extern rust_tokenizers=/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/librust_tokenizers-1d12935b9848b95d.rlib --extern serde=/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libserde-b82d1a14a3c89389.rlib --extern serde_json=/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libserde_json-42fe5e7cb44713d6.rlib --extern tch=/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libtch-de55c6417283d9f5.rlib --extern thiserror=/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libthiserror-dccbdceebd19f1b2.rlib --extern uuid=/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/deps/libuuid-bed0d19bf89cf1bb.rlib -L native=/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/build/bzip2-sys-2a5c385deffa0d30/out/lib -L native=/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/build/torch-sys-0b34b98942258b3c/out/libtorch/libtorch/lib -L native=/Users/sunilmallya/workspace/rust-pt/rust-bert/target/debug/build/torch-sys-0b34b98942258b3c/out` (exit status: 1)
specs:
Model Name: MacBook Pro Model Identifier: MacBookPro18,3 Chip: Apple M1 Pro Total Number of Cores: 8 (6 performance and 2 efficiency) Memory: 32 GB
Pytorch Build instructions
$ git clone -b master --recurse-submodule https://github.com/pytorch/pytorch.git $ mkdir pytorch-build $ cd pytorch-build $ cmake -DBUILD_SHARED_LIBS:BOOL=ON -DCMAKE_BUILD_TYPE:STRING=Release -DPYTHON_EXECUTABLE:PATH=`which python3` -DCMAKE_INSTALL_PREFIX:PATH=../pytorch-install ../pytorch $ cmake --build . --target install
The text was updated successfully, but these errors were encountered:
Although I had set the LD_LIBRARY_PATH, Turns out that the torch-sys/build.rs was downloading the intel build anyways. https://github.com/LaurentMazare/tch-rs/blob/main/torch-sys/build.rs.
Sorry, something went wrong.
Hello @sunilmallya ,
I unfortunately don't have a M1 Apple device to help troubleshooting. Maybe this LaurentMazare/tch-rs#488 would help ?
closing this since this is not issue with rust-bert, but actually with tch-rs. I'm diving into few issues open re: M1. Thanks!
No branches or pull requests
Is there a documented process for getting this to work on Apple M1? (fyi, had no issues on a linux box)
specs:
Pytorch Build instructions
The text was updated successfully, but these errors were encountered: