-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
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
macOS ARM compiling error #326
Comments
I had a bunch of errors trying to install it from source, what seemed to work was the following:
That should give you something like this:
You want this part:
That worked for me after everything else I tried was failing with random errors. I don't think it's with the MPS enabled stuff to utilize the M1 GPU, because some translation I did that took ~5-6 seconds on a server running Cuda 11.7 on a Tesla T4, took ~52 seconds on my mac. This was the same amount of time that running the same model via Python was taking, so no performance gains, but I think it was a little faster than python on the T4, but not by a lot. |
Building on what @pejrich, the following worked for me with no warnings, no need for manually copying the output of
Then you can run the examples, e.g.:
|
I've installed and linked pytorch and libtorch - neither manages to make this work. I don't have any overwrites, so it should be that from all of this I just added more symlinks. I also installed via anaconda, but installing via homebrew overwrote that the first time when I was following the advice in another thread. Doesn't work for me. I still have the "cc linking" error although I ran the three previous lines. I still have the "cc" error Here is my installation (base) peterweyand@Peters-MacBook-Pro hello % pip3 show torch I ran the exports by using I was working on a minor implementation on a project I was working on, and just to double check that this doesn't work I ran it with the example (cargo run as you said). It doesn't work. here's the terminal output
I opened a stackoverflow issue here https://stackoverflow.com/questions/75752140/installation-of-transformer-library-not-working-in-apple-m1. And I've asked here https://discord.com/channels/273534239310479360/818964227783262209 and here https://discord.com/channels/442252698964721669/448238009733742612. If someone can fix this please @ me as I'd like to know. I'd be excited to be able to use this library. |
I've tried the last three versions of pytorch (1.13.0, 1.13.1, and 2.0.0) using pip3 install torch===1.13.0 with the same errors. So it doesn't look like it's a versioning issue. |
@patientplatypus6 I'm not sure what to suggest there. I avoid Anaconda more than I avoid the plague, because it seems to destroy my system the two times I tried installing something with it. It doesn't seem to mix well with anything non-anaconda. |
Yeah - I wrote a comment here (pytorch/pytorch#96959) - I've deleted my Anaconda directory and reinstalled all of the homebrew, rustup, and python. This still doesn't work. Also - after deleting and re-installing homebrew this no should be -
Can someone just link the macos arm-64 versions of these files - |
@patientplatypus6 making the libtorch libraries available system-wide as mentioned is also possible, but I would recommend the following::
use std::env;
fn add_libs(location: impl AsRef<str>, names: Vec<impl AsRef<str>>, all_static_link: bool) {
println!("cargo:rustc-link-search={}",location.as_ref());
names.iter().for_each(|name|{
println!(
"cargo:rustc-link-lib={}{}",
if all_static_link { "static=" } else { "" },
name.as_ref()
)
})
}
fn main() {
let target = env::var("TARGET").unwrap();
match target.as_str() {
"aarch64-apple-darwin" => add_libs(
"./lib",
vec!["torch_cpu", "torch", "c10", "torch_global_deps", "torch_cpu"],
false
),
_ => {}
}
println!("cargo:rerun-if-changed=src");
}
|
It's working for me now! The installation error changed - and sent me to another repo - user First Then save the following script as
|
I'm glad you found a couple of solutions to make it work. If you can cross-validate that a solution works consistently, it'd be great if you could write a small section for the readme for installation tips for M1/M2 devices |
The current installation of tch-rs on Apple Silicon returns the following error -
which references this github issue Thanks for the help. |
Has anyone found a reliable way to get this to work? I'm trying to use
I'm able to successfully clone this repo and run |
It's remarkably non-trivial to get rust-bert working on m3 with Sonoma 14.5, my successful path:
|
Facing the same issue as @michael-long88. Created another issue. |
Figured out the issue for me in this comment. @michael-long88 |
Hello Team,
I have the following error when running cargo build - - release, I am pretty sure that libtorch are installed via brew install PyTorch. I do not have any problems on intel macOS
Compiling rust-bert v0.19.0 (/Users/jianshuzhao/Github/rust-bert)
error: linking with
cc
failed: exit status: 1|
= note: LC_ALL="C" PATH="/Users/jianshuzhao/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/bin:/Users/jianshuzhao/Github/bowtie2-2.5.0-macos-arm64:/opt/homebrew/bin:/Users/jianshuzhao/bin:/opt/homebrew/opt/bzip2/bin:/Users/jianshuzhao/Github/mummer-4.0.0beta5/bin:/Users/jianshuzhao/go/bin:/Users/jianshuzhao/Github/hmmer-h3-arm/bin:/opt/homebrew/opt/llvm/bin:/opt/homebrew/opt/openjdk/bin:/opt/homebrew/Cellar/coreutils/9.0/bin:/opt/homebrew/opt/ruby/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Users/jianshuzhao/.cargo/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/usr/local/go/bin:/opt/X11/bin" VSLANG="1033" ZERO_AR_DATE="1" "cc" "-arch" "arm64" "/var/folders/mr/8qybn91j5fgdbrcdmq7ckftw0000gn/T/rustcAP7Cth/symbols.o" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/convert_tensor-87379f38cef18962.convert_tensor.79ce315b-cgu.0.rcgu.o" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/convert_tensor-87379f38cef18962.convert_tensor.79ce315b-cgu.1.rcgu.o" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/convert_tensor-87379f38cef18962.convert_tensor.79ce315b-cgu.10.rcgu.o" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/convert_tensor-87379f38cef18962.convert_tensor.79ce315b-cgu.11.rcgu.o" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/convert_tensor-87379f38cef18962.convert_tensor.79ce315b-cgu.12.rcgu.o" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/convert_tensor-87379f38cef18962.convert_tensor.79ce315b-cgu.13.rcgu.o" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/convert_tensor-87379f38cef18962.convert_tensor.79ce315b-cgu.14.rcgu.o" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/convert_tensor-87379f38cef18962.convert_tensor.79ce315b-cgu.15.rcgu.o" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/convert_tensor-87379f38cef18962.convert_tensor.79ce315b-cgu.2.rcgu.o" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/convert_tensor-87379f38cef18962.convert_tensor.79ce315b-cgu.3.rcgu.o" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/convert_tensor-87379f38cef18962.convert_tensor.79ce315b-cgu.4.rcgu.o" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/convert_tensor-87379f38cef18962.convert_tensor.79ce315b-cgu.5.rcgu.o" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/convert_tensor-87379f38cef18962.convert_tensor.79ce315b-cgu.6.rcgu.o" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/convert_tensor-87379f38cef18962.convert_tensor.79ce315b-cgu.7.rcgu.o" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/convert_tensor-87379f38cef18962.convert_tensor.79ce315b-cgu.8.rcgu.o" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/convert_tensor-87379f38cef18962.convert_tensor.79ce315b-cgu.9.rcgu.o" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/convert_tensor-87379f38cef18962.4hilfw2knwbjjb3v.rcgu.o" "-L" "/Users/jianshuzhao/Github/rust-bert/target/release/deps" "-L" "/Users/jianshuzhao/Github/rust-bert/target/release/build/bzip2-sys-cbdbb6651a43e8cb/out/lib" "-L" "/Users/jianshuzhao/Github/rust-bert/target/release/build/zstd-sys-02faa9c384ac6a7d/out" "-L" "/Users/jianshuzhao/Github/rust-bert/target/release/build/torch-sys-dfad9b078cf4fcfc/out/libtorch/libtorch/lib" "-L" "/Users/jianshuzhao/Github/rust-bert/target/release/build/torch-sys-dfad9b078cf4fcfc/out" "-L" "/Users/jianshuzhao/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/librust_bert-32fca9169b432c86.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libhalf-8f67b1f26b693526.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libuuid-6ade69e2fe8f81cc.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libdirs-d6d0ec03a9fc0fdb.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libdirs_sys-bfca19a8f2c53a30.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libcached_path-49c30aa8832a7eab.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libindicatif-2e62890a4732a914.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libconsole-876e04d81afca60e.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libnumber_prefix-6bfca70a357266ef.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libtar-e63024df07b24d69.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libxattr-64090153947075fa.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libfiletime-136b0fad69844494.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libreqwest-b615ccb123b99daf.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libhyper_tls-10fe5ef2a2a50917.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libbase64-c62ff6f91641b82b.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libipnet-9d32b9619a7fcc99.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libtokio_native_tls-17e4af650b57b9a3.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libserde_urlencoded-cd62e543f3932aac.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libmime-0743e0418a5ee599.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libencoding_rs-d2841f759c09e426.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libnative_tls-81c18b10f2ac1c31.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libsecurity_framework-3f6667e1144db1f0.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libbitflags-2bbfbfade6407190.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libsecurity_framework_sys-af5d01c1f27616ca.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libcore_foundation-8b281bec36c7057d.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libcore_foundation_sys-81f076a79a89cd6c.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libhyper-0877f65102bc81b1.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libwant-9b3184993407900d.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libtry_lock-b8df31e932a54c13.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libhttparse-247aa33d08052553.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libh2-1e6f0fac05151c3a.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libindexmap-b7faf498210573a4.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libtokio_util-71b55b62a5f3f88e.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libfutures_sink-41a12e8531e046b4.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libtower_service-86f7669c57af8511.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libtracing-e7f09387bed478c5.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libtracing_core-c372f4d92bc329e4.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libfutures_channel-cdd878194155d5b0.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libtokio-0b628332267adb9a.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libsocket2-a28ded1022ce0fac.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libmio-9647800e56858cfe.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libhttp_body-d48a72f966e0d7f9.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libfutures_util-15f739ba0425fb9f.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libfutures_io-0cd1412a51a48fcb.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libslab-0c9f25ca10511b98.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libpin_project_lite-329566b13e6e45f0.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libfutures_task-2789fafbc44f5e1d.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libpin_utils-f629fb86d1cbfb4d.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libfutures_core-73e77728ac8dd423.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/liburl-fe46f095861a0247.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libidna-8ffe74c5a6c0d7a5.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libunicode_bidi-7dbe1b2e8f6a471b.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libform_urlencoded-32bf11090fdb154b.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libpercent_encoding-f826ffdab1c80872.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libhttp-57f4553ddf4c5c26.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libbytes-ec9755da07ca81a7.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libfnv-0419508d61057d71.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/liblog-1986ba526b7bc84d.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libglob-879f755822df7039.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libfs2-35321b713bb99a68.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libzip_extensions-6c1826541c27e8e2.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libzip-bc1dbe8ba0632043.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libtime-de32e3de2ceb1f37.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libtempfile-4bc1a1e3f8bfd4d4.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libfastrand-fcefc726ebcf7521.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libremove_dir_all-5ec04e9bf355307f.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/librust_tokenizers-c009bd44f2db3aab.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libcsv-2648897d3e54d137.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libitoa-e54ec4b96ab73274.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libcsv_core-264eaa5b173218b5.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libbstr-b098920f2c037e75.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libregex_automata-244c1290d25e1bff.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libserde_json-07bfdb252402eec3.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libryu-1854acda574e24a0.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libhashbrown-ee33cfa1179a5f85.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libahash-52cc8c040364673b.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libonce_cell-83a0413f4d1c285a.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libprotobuf-5dbb19d90464d164.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libunicode_normalization_alignments-915306d6dac1c771.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libsmallvec-f8d5ff83c040a46c.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libunicode_normalization-ee648b9945147e9c.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libtinyvec-578cef4b7f7be158.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libtinyvec_macros-b04713a4a486580f.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libregex-50f06fea868859a0.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libaho_corasick-8eeda7432d268d83.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libmemchr-b9afceb11d89c5ca.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libregex_syntax-faba5c9c583a3a9b.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/librayon-b48ca69d3b966d8b.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/librayon_core-1ea7b083f51b8c2d.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libnum_cpus-ad0a157e2e5313d0.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libcrossbeam_deque-3d7daaf516279189.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libcrossbeam_epoch-3222921ff03e505f.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libmemoffset-d6471a3976b13309.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libscopeguard-15e20c72e8a90004.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libcrossbeam_channel-2a81eef04c2c8abe.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libcrossbeam_utils-ed9c65eaf2a78abe.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libitertools-dd634c1bb60f04aa.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libeither-e010383f73d8ad9f.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libserde-3058061dbb7fd7a9.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libordered_float-2839804764c0802a.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libtch-67a02d8c4e9fd23e.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libndarray-2e2eab41a924a089.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libmatrixmultiply-e89c629343d5cba6.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libnum_complex-3a2dff7350528a9b.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libnum_integer-55553d2a26bfd1fa.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libnum_traits-2950bcf483969631.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/librawpointer-15a6731e43da61f9.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/librand-6e09188e4ea99b46.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/librand_chacha-e15af77539f63212.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libppv_lite86-d0a5fa375fbcbedd.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libhalf-095c82dc4377813f.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libtorch_sys-d2e7f6b7852a90d0.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libzip-5fda128572e13f5f.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libpbkdf2-6517525ba57194b4.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libsha2-f49096aa93fec163.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libpassword_hash-86e7efaca1356cf5.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libbase64ct-40e9e96a12161b5e.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/librand_core-130546b3a19a05cb.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libgetrandom-14def4c7db906f1f.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libtime-c5425e10f5ce8733.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libitoa-d32ec8651c94bddb.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libtime_core-6c52639db87bab94.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libzstd-d9e112690abefe5a.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libzstd_safe-fbc8b41c371c81e6.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libzstd_sys-e32bdf3ad55d8bd1.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libbzip2-e55933a3777d489a.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libbzip2_sys-c32fda39196b6869.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/liblibc-1443ffe862df56a3.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libflate2-dfb802bfcc35305d.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libminiz_oxide-d28b718d5c9349b7.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libadler-39b2c7213db41305.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libcrc32fast-54beddddea2cb5fc.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libbyteorder-feb8a6d8cd38719b.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libaes-447439e9903e8b30.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libopaque_debug-e50119b40cb8b20b.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libcipher-daf589444397f491.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libsha1-1c47fd5295a4d8cd.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libcfg_if-0692cee5d0087e61.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libhmac-c402e3e8cf3aaa60.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libdigest-d55c5982e13e3515.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libsubtle-cca7bb8e7471c2a2.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libblock_buffer-7f65cef8f15453f2.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libcrypto_common-5bedc5b4692c4680.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libgeneric_array-54339a31f4836524.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libtypenum-88dc288c98f0df60.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libconstant_time_eq-0e23ac03864ec140.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/libthiserror-31e74de6e9ee7063.rlib" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/liblazy_static-ebd75cc0f36ef66d.rlib" "/Users/jianshuzhao/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd-65231eff973b4392.rlib" "/Users/jianshuzhao/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libpanic_unwind-c702f95a79b6a8c7.rlib" "/Users/jianshuzhao/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libobject-a11910e6b39a313d.rlib" "/Users/jianshuzhao/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libmemchr-98e2432a46ce6838.rlib" "/Users/jianshuzhao/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libaddr2line-f5edf9223bdf3271.rlib" "/Users/jianshuzhao/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libgimli-2ed9e16d77ae2572.rlib" "/Users/jianshuzhao/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_demangle-ebe023ba90cb145c.rlib" "/Users/jianshuzhao/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd_detect-51a1bb03a9e9d927.rlib" "/Users/jianshuzhao/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libhashbrown-f503a537f1b253d1.rlib" "/Users/jianshuzhao/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libminiz_oxide-84ee9cafbd4fd057.rlib" "/Users/jianshuzhao/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libadler-d137511abda54d92.rlib" "/Users/jianshuzhao/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_alloc-7aebb49ef1eedb7b.rlib" "/Users/jianshuzhao/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libunwind-bd5d5720720598df.rlib" "/Users/jianshuzhao/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcfg_if-190c7abd6e8e03ea.rlib" "/Users/jianshuzhao/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liblibc-c881fe47a0a6ef18.rlib" "/Users/jianshuzhao/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liballoc-26076234e596ba3a.rlib" "/Users/jianshuzhao/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_core-a8a859a864856684.rlib" "/Users/jianshuzhao/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcore-908209eee60fb642.rlib" "/Users/jianshuzhao/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcompiler_builtins-5aa4ec02992215b2.rlib" "-framework" "Security" "-framework" "CoreFoundation" "-lc++" "-ltorch_cpu" "-ltorch" "-lc10" "-liconv" "-lSystem" "-lc" "-lm" "-L" "/Users/jianshuzhao/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "-o" "/Users/jianshuzhao/Github/rust-bert/target/release/deps/convert_tensor-87379f38cef18962" "-Wl,-dead_strip" "-nodefaultlibs"
= note: ld: warning: ignoring file /Users/jianshuzhao/Github/rust-bert/target/release/build/torch-sys-dfad9b078cf4fcfc/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/jianshuzhao/Github/rust-bert/target/release/build/torch-sys-dfad9b078cf4fcfc/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/jianshuzhao/Github/rust-bert/target/release/build/torch-sys-dfad9b078cf4fcfc/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:
"__ZN2at4_ops5zeros4callEN3c108ArrayRefINS2_6SymIntEEENS2_8optionalINS2_10ScalarTypeEEENS6_INS2_6LayoutEEENS6_INS2_6DeviceEEENS6_IbEE", referenced from:
_at_tensor_of_data in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
"__ZN3c1010TensorImpl17set_autograd_metaESt10unique_ptrINS_21AutogradMetaInterfaceESt14default_deleteIS2_EE", referenced from:
__ZN5torch8autograd13make_variableEN2at6TensorEbb in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
"__ZN3c1019UndefinedTensorImpl10_singletonE", referenced from:
__ZN3c1013intrusive_ptrINS_10TensorImplENS_19UndefinedTensorImplEE7retain_Ev.isra.0 in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c106IValue7destroyEv in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c106ivalue6ObjectD1Ev in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c106ivalue6ObjectD0Ev in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c1013intrusive_ptrINS_10TensorImplENS_19UndefinedTensorImplEE6reset_Ev in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
_ZSt11make_uniqueIN5torch8autograd12AutogradMetaEJPN3c1010TensorImplERbEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0 in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
_at_save_multi in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
...
"__ZN3c1021AutogradMetaInterfaceD2Ev", referenced from:
_ZSt11make_uniqueIN5torch8autograd12AutogradMetaEJPN3c1010TensorImplERbEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0 in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN5torch8autograd13make_variableEN2at6TensorEbb in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
"__ZN3c104impl23ExcludeDispatchKeyGuardC1ENS_14DispatchKeySetE", referenced from:
_at_tensor_of_data in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
"__ZN3c104impl23ExcludeDispatchKeyGuardD1Ev", referenced from:
_at_tensor_of_data in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
"__ZN3c106detail14torchCheckFailEPKcS2_jRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", referenced from:
__ZN3c1013QualifiedName14cacheAccessorsEv in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c1015fromIntArrayRefENS_8ArrayRefIxEE in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
"_ZN3c106detail14torchCheckFailEPKcS2_jS2", referenced from:
__ZNK3c1010TensorImpl4dataEv in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c1013QualifiedNameC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
_ZSt11make_uniqueIN5torch8autograd12AutogradMetaEJPN3c1010TensorImplERbEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0 in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN5torch8autograd13make_variableEN2at6TensorEbb in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
_at_tensor_of_data in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
"__ZN3c106detail23torchInternalAssertFailEPKcS2_jS2_RKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", referenced from:
__ZN3c106IValue7destroyEv in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c1020intrusive_ptr_targetD1Ev in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZNR3c1013TensorOptions9set_dtypeENS_8optionalINS_10ScalarTypeEEE.constprop.0 in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c1020intrusive_ptr_targetD2Ev in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c106ivalue6ObjectD1Ev in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c106ivalue6ObjectD0Ev in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c106Device8validateEv.isra.0 in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
...
"_ZN3c106detail23torchInternalAssertFailEPKcS2_jS2_S2", referenced from:
__ZN3c108ArrayRefIxE26debugCheckNullptrInvariantEv.part.0.isra.0 in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c1013intrusive_ptrINS_10TensorImplENS_19UndefinedTensorImplEE7retain_Ev.isra.0 in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c1020intrusive_ptr_targetD1Ev in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c1013QualifiedName14cacheAccessorsEv in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c1015fromIntArrayRefENS_8ArrayRefIxEE in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c1020intrusive_ptr_targetD2Ev in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN5torch8autograd13make_variableEN2at6TensorEbb in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
...
"__ZN5torch3jit6ModuleC1EN3c1013QualifiedNameESt10shared_ptrINS0_15CompilationUnitEEb", referenced from:
_at_save_multi in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
"__ZN5torch9serialize13OutputArchive5writeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKN2at6TensorEb", referenced from:
_at_save_multi in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
"__ZN5torch9serialize13OutputArchive7save_toERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", referenced from:
_at_save_multi in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
"__ZN6caffe28TypeMeta13typeMetaDatasEv", referenced from:
__ZNK3c1010TensorImpl4dataEv in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
_at_tensor_of_data in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
"_ZN6caffe28TypeMeta26error_unsupported_typemetaES0", referenced from:
_ZSt11make_uniqueIN5torch8autograd12AutogradMetaEJPN3c1010TensorImplERbEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0 in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN5torch8autograd13make_variableEN2at6TensorEbb in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
_at_tensor_of_data in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
"__ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm", referenced from:
__ZN3c1013QualifiedNameC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
"__ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv", referenced from:
__ZN3c1020intrusive_ptr_targetD1Ev in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZNR3c1013TensorOptions9set_dtypeENS_8optionalINS_10ScalarTypeEEE.constprop.0 in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c1013QualifiedName14cacheAccessorsEv in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c1020intrusive_ptr_targetD2Ev in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c106Device8validateEv.isra.0 in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c1013QualifiedNameC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
"_ZNSo9_M_insertImEERSoT", referenced from:
__ZN3c1020intrusive_ptr_targetD1Ev in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c1013QualifiedName14cacheAccessorsEv in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c1020intrusive_ptr_targetD2Ev in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
"_ZNSo9_M_insertIxEERSoT", referenced from:
__ZN3c1015fromIntArrayRefENS_8ArrayRefIxEE in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
"__ZNSolsEi", referenced from:
_ZN3c106detail12_str_wrapperIJPKcRKiEE4callB5cxx11ERKS3_S5 in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c106Device8validateEv.isra.0 in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
"__ZNSt16invalid_argumentC1EPKc", referenced from:
_at_tensor_of_data in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
"__ZNSt6localeC1Ev", referenced from:
_ZN3c106detail12_str_wrapperIJPKcRKiEE4callB5cxx11ERKS3_S5 in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c1015fromIntArrayRefENS_8ArrayRefIxEE in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
_ZN3c106detail12_str_wrapperIJPKcRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES3_EE4callERKS3_SB_SE in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
"__ZNSt6localeD1Ev", referenced from:
__ZNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEED1Ev in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
_ZN3c106detail12_str_wrapperIJPKcRKiEE4callB5cxx11ERKS3_S5 in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c1015fromIntArrayRefENS_8ArrayRefIxEE in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c106Device8validateEv.isra.0 in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
_ZN3c106detail12_str_wrapperIJPKcRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES3_EE4callERKS3_SB_SE in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c1013QualifiedNameC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
"__ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm", referenced from:
_ZN3c106detail12_str_wrapperIJPKcRKiEE4callB5cxx11ERKS3_S5 in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c1015fromIntArrayRefENS_8ArrayRefIxEE in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
_ZN3c106detail12_str_wrapperIJPKcRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES3_EE4callERKS3_SB_SE in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
"__ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm", referenced from:
__ZN3c1013QualifiedName14cacheAccessorsEv in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
"__ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm", referenced from:
__ZN3c1013QualifiedName14cacheAccessorsEv in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
"_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4", referenced from:
_ZN3c106detail12_str_wrapperIJPKcRKiEE4callB5cxx11ERKS3_S5 in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c1013QualifiedName14cacheAccessorsEv in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c1015fromIntArrayRefENS_8ArrayRefIxEE in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
_ZN3c106detail12_str_wrapperIJPKcRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES3_EE4callERKS3_SB_SE in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
"__ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_createERmm", referenced from:
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1EPKcRKS3.constprop.0 in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c1013QualifiedNameC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
_at_save_multi in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
"__ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_mutateEmmPKcm", referenced from:
__ZN3c1013QualifiedName14cacheAccessorsEv in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
"_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1EOS4", referenced from:
__ZN3c1013QualifiedNameC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
"__ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev", referenced from:
__ZN3c1020intrusive_ptr_targetD1Ev in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZNR3c1013TensorOptions9set_dtypeENS_8optionalINS_10ScalarTypeEEE.constprop.0 in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c1013QualifiedName14cacheAccessorsEv in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c1020intrusive_ptr_targetD2Ev in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c106Device8validateEv.isra.0 in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c1013QualifiedNameC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
"__ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev", referenced from:
_ZN3c106detail12_str_wrapperIJPKcRKiEE4callB5cxx11ERKS3_S5 in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c1020intrusive_ptr_targetD1Ev in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZNR3c1013TensorOptions9set_dtypeENS_8optionalINS_10ScalarTypeEEE.constprop.0 in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c1013QualifiedName14cacheAccessorsEv in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c1015fromIntArrayRefENS_8ArrayRefIxEE in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c1020intrusive_ptr_targetD2Ev in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c106Device8validateEv.isra.0 in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
...
"__ZNSt8ios_base4InitC1Ev", referenced from:
__GLOBAL__sub_I_torch_api.cpp in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
"__ZNSt8ios_base4InitD1Ev", referenced from:
__GLOBAL__sub_I_torch_api.cpp in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
"__ZNSt8ios_baseC2Ev", referenced from:
_ZN3c106detail12_str_wrapperIJPKcRKiEE4callB5cxx11ERKS3_S5 in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c1015fromIntArrayRefENS_8ArrayRefIxEE in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
_ZN3c106detail12_str_wrapperIJPKcRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES3_EE4callERKS3_SB_SE in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
"__ZNSt8ios_baseD2Ev", referenced from:
_ZN3c106detail12_str_wrapperIJPKcRKiEE4callB5cxx11ERKS3_S5 in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c1015fromIntArrayRefENS_8ArrayRefIxEE in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c106Device8validateEv.isra.0 in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
_ZN3c106detail12_str_wrapperIJPKcRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES3_EE4callERKS3_SB_SE in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c1013QualifiedNameC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
"__ZNSt9basic_iosIcSt11char_traitsIcEE4initEPSt15basic_streambufIcS1_E", referenced from:
_ZN3c106detail12_str_wrapperIJPKcRKiEE4callB5cxx11ERKS3_S5 in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c1015fromIntArrayRefENS_8ArrayRefIxEE in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
_ZN3c106detail12_str_wrapperIJPKcRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES3_EE4callERKS3_SB_SE in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
"__ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate", referenced from:
_ZN3c106detail12_str_wrapperIJPKcRKiEE4callB5cxx11ERKS3_S5 in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
_ZN3c106detail12_str_wrapperIJPKcRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES3_EE4callERKS3_SB_SE in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
"__ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l", referenced from:
_ZN3c106detail12_str_wrapperIJPKcRKiEE4callB5cxx11ERKS3_S5 in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c1015fromIntArrayRefENS_8ArrayRefIxEE in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c106Device8validateEv.isra.0 in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
_ZN3c106detail12_str_wrapperIJPKcRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES3_EE4callERKS3_SB_SE in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c1013QualifiedNameC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
"__ZSt19__throw_logic_errorPKc", referenced from:
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1EPKcRKS3.constprop.0 in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
_at_save_multi in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
"__ZSt20__throw_length_errorPKc", referenced from:
__ZN3c1013QualifiedName14cacheAccessorsEv in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
"__ZSt24__throw_out_of_range_fmtPKcz", referenced from:
__ZN3c1013QualifiedNameC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
"__ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc", referenced from:
__ZN3c1020intrusive_ptr_targetD1Ev in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZNR3c1013TensorOptions9set_dtypeENS_8optionalINS_10ScalarTypeEEE.constprop.0 in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c1013QualifiedName14cacheAccessorsEv in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c1020intrusive_ptr_targetD2Ev in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
"__ZTTNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE", referenced from:
_ZN3c106detail12_str_wrapperIJPKcRKiEE4callB5cxx11ERKS3_S5 in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c1015fromIntArrayRefENS_8ArrayRefIxEE in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c106Device8validateEv.isra.0 in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
_ZN3c106detail12_str_wrapperIJPKcRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES3_EE4callERKS3_SB_SE in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c1013QualifiedNameC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
"__ZTVN5torch8autograd12AutogradMetaE", referenced from:
_ZSt11make_uniqueIN5torch8autograd12AutogradMetaEJPN3c1010TensorImplERbEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0 in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN5torch8autograd13make_variableEN2at6TensorEbb in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
"__ZTVNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEEE", referenced from:
__ZNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEED1Ev in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
_ZN3c106detail12_str_wrapperIJPKcRKiEE4callB5cxx11ERKS3_S5 in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c1015fromIntArrayRefENS_8ArrayRefIxEE in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c106Device8validateEv.isra.0 in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
_ZN3c106detail12_str_wrapperIJPKcRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES3_EE4callERKS3_SB_SE in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c1013QualifiedNameC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
"__ZTVNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE", referenced from:
_ZN3c106detail12_str_wrapperIJPKcRKiEE4callB5cxx11ERKS3_S5 in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c1015fromIntArrayRefENS_8ArrayRefIxEE in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c106Device8validateEv.isra.0 in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
_ZN3c106detail12_str_wrapperIJPKcRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES3_EE4callERKS3_SB_SE in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c1013QualifiedNameC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
"__ZTVSt15basic_streambufIcSt11char_traitsIcEE", referenced from:
__ZNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEED1Ev in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
_ZN3c106detail12_str_wrapperIJPKcRKiEE4callB5cxx11ERKS3_S5 in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c1015fromIntArrayRefENS_8ArrayRefIxEE in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c106Device8validateEv.isra.0 in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
_ZN3c106detail12_str_wrapperIJPKcRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES3_EE4callERKS3_SB_SE in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c1013QualifiedNameC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
"__ZTVSt9basic_iosIcSt11char_traitsIcEE", referenced from:
_ZN3c106detail12_str_wrapperIJPKcRKiEE4callB5cxx11ERKS3_S5 in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c1015fromIntArrayRefENS_8ArrayRefIxEE in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c106Device8validateEv.isra.0 in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
_ZN3c106detail12_str_wrapperIJPKcRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES3_EE4callERKS3_SB_SE in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c1013QualifiedNameC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
"___aarch64_ldadd4_acq_rel", referenced from:
__ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE24_M_release_last_use_coldEv in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZNSt23_Sp_counted_ptr_inplaceIN5torch3jit15CompilationUnitESaIvELN9__gnu_cxx12_Lock_policyE2EE10_M_disposeEv in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c106ivalue6ObjectD1Ev in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c106ivalue6ObjectD0Ev in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE15_M_weak_releaseEv in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN5torch9serialize13OutputArchiveD1Ev in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
...
"___aarch64_ldadd8_acq_rel", referenced from:
__ZN3c1013intrusive_ptrINS_10TensorImplENS_19UndefinedTensorImplEE7retain_Ev.isra.0 in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c106IValue7destroyEv in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c106ivalue6ObjectD1Ev in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c106ivalue6ObjectD0Ev in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c1013intrusive_ptrINS_15VariableVersion14VersionCounterENS_6detail34intrusive_target_default_null_typeIS2_EEE6reset_Ev in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN3c1013intrusive_ptrINS_10TensorImplENS_19UndefinedTensorImplEE6reset_Ev in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
__ZN5torch9serialize13OutputArchiveD1Ev in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
...
"___emutls_get_address", referenced from:
_get_and_reset_last_err in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
_at_save_multi in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
_at_tensor_of_data in libtorch_sys-d2e7f6b7852a90d0.rlib(torch_api.o)
ld: symbol(s) not found for architecture arm64
collect2: error: ld returned 1 exit status
error: could not compile
rust-bert
due to previous errorAny idea why?
Thanks,
Jianshu
The text was updated successfully, but these errors were encountered: