Ld: warning: ignoring file /Users/peterweyand/Code/rust-bert/target/debug/build/torch-sys-d926b35b7e909d7c/out/libtorch/libtorch/lib/libtorch_cpu.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64 Here is the error snippet including the libraries that are built incorrectly - = note: ld: warning: ignoring file /Users/peterweyand/Code/rust-bert/target/debug/build/torch-sys-d926b35b7e909d7c/out/libtorch/libtorch/lib/libtorch.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64 ![]() I've installed the library via homebrew, via during downling and installing pytorch and through anaconda. It wold be super useful to the Rust community if we could have a solution that works as this looks like an exciting library with a large number of applications.ĮDIT - A full description of the problem - I can't make install the library because the library says that libtorch is not available for mac arm64. I've followed the advice in the thread and neither proposed solution works. The error is described in this github issue. Specifically, the pytorch and libtorch libraries aren't linked. Unfortunately, I have an Apple M1 and the library isn't designed for the new ARM chip.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |