Open pablo-abc opened 1 year ago
I'm currently on an M1, and although I've installed it differently, it definitely builds for arm64.
Have you tried without the --target
arg? It should work and build arm64 binaries that do not need rosetta. I've tested locally on my M1 macbook with a fresh checkout:
[nix-shell:~/src/parinfer-rust]$ cargo build --release
Compiling proc-macro2 v1.0.24
Compiling ryu v1.0.5
Compiling serde v1.0.123
Compiling syn v1.0.60
Compiling serde_derive v1.0.123
Compiling serde_json v1.0.64
Compiling libc v0.2.87
Compiling quote v1.0.9
Compiling parinfer_rust v0.4.3 (/Users/jfelice/src/parinfer-rust)
Finished release [optimized] target(s) in 9.03s
[nix-shell:~/src/parinfer-rust]$ ls
CHANGELOG.adoc LICENSE.md Web.toml derivation.nix extra-docs package.json release.nix src tests
Cargo.lock Makefile benches dist nixpkgs.nix plugin script static
Cargo.toml README.adoc default.nix doc overlay.nix rc shell.nix target
[nix-shell:~/src/parinfer-rust]$ ls target/
CACHEDIR.TAG release
[nix-shell:~/src/parinfer-rust]$ ls target/release/
build deps examples incremental libparinfer_rust.d libparinfer_rust.dylib libparinfer_rust.rlib parinfer-rust parinfer-rust.d
[nix-shell:~/src/parinfer-rust]$ ls -l target/release/
total 2352
drwxr-xr-x 16 jfelice 151928526 512 Dec 8 16:54 build
drwxr-xr-x 45 jfelice 151928526 1440 Dec 8 16:55 deps
drwxr-xr-x 2 jfelice 151928526 64 Dec 8 16:54 examples
drwxr-xr-x 2 jfelice 151928526 64 Dec 8 16:54 incremental
-rw-r--r-- 1 jfelice 151928526 363 Dec 8 16:55 libparinfer_rust.d
-rwxr-xr-x 1 jfelice 151928526 557232 Dec 8 16:55 libparinfer_rust.dylib
-rw-r--r-- 1 jfelice 151928526 1124984 Dec 8 16:55 libparinfer_rust.rlib
-rwxr-xr-x 1 jfelice 151928526 710256 Dec 8 16:55 parinfer-rust
-rw-r--r-- 1 jfelice 151928526 500 Dec 8 16:55 parinfer-rust.d
[nix-shell:~/src/parinfer-rust]$ file ./target/release/libparinfer_rust.dylib
./target/release/libparinfer_rust.dylib: Mach-O 64-bit arm64 dynamically linked shared library, flags:<NOUNDEFS|DYLDLINK|TWOLEVEL|NO_REEXPORTED_DYLIBS|HAS_TLV_DESCRIPTORS>
[nix-shell:~/src/parinfer-rust]$ file ./target/release/parinfer-rust
./target/release/parinfer-rust: Mach-O 64-bit arm64 executable, flags:<NOUNDEFS|DYLDLINK|TWOLEVEL|PIE|HAS_TLV_DESCRIPTORS>
[nix-shell:~/src/parinfer-rust]$
I also verified the version I use regularly is arm64.
Hello! I've been setting up Neovim lately in an M1 MacBook (using both iTerm and Neovide without Rosetta).
I've installed this plugin using Packer. And the installation + build work without any issues. But whenever I try to open a Clojure/Fennel/ClojureScript file, the following error appears:
I've tried to run
cargo build --release --target=x86_64-apple-darwin
and to replace therelease
folder with its output. But the same error is happening. Would love some help!Info on my system: