Skip to content
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

dlopen complains about x86_64 on arm64 processor #1861

Open
smol-ninja opened this issue Dec 31, 2024 · 0 comments
Open

dlopen complains about x86_64 on arm64 processor #1861

smol-ninja opened this issue Dec 31, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@smol-ninja
Copy link

Problem

On arm64 processor, snforge test complains through dlopen that it needs x86_64 on arm64 processor.

  1. See the warp output here
   Compiling snforge_scarb_plugin v0.35.1
    Finished `release` profile [optimized] target(s) in 0.07s
   Compiling test(sn_airdrops_unittest) sn_airdrops v0.1.0 (/Users/shubham/work/sn_airdrops/Scarb.toml)
error: dlopen(/Users/shubham/Library/Caches/com.swmansion.scarb/plugins/proc_macro/snforge_scarb_plugin-scarbs.xyz-9djtpev4jug5q/v0.35.1/target/release/libsnforge_scarb_plugin.dylib, 0x0005): tried: '/Users/shubham/Library/Caches/com.swmansion.scarb/plugins/proc_macro/snforge_scarb_plugin-scarbs.xyz-9djtpev4jug5q/v0.35.1/target/release/libsnforge_scarb_plugin.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/shubham/Library/Caches/com.swmansion.scarb/plugins/proc_macro/snforge_scarb_plugin-scarbs.xyz-9djtpev4jug5q/v0.35.1/target/release/libsnforge_scarb_plugin.dylib' (no such file), '/Users/shubham/Library/Caches/com.swmansion.scarb/plugins/proc_macro/snforge_scarb_plugin-scarbs.xyz-9djtpev4jug5q/v0.35.1/target/release/libsnforge_scarb_plugin.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))
[ERROR] Failed to build test artifacts with Scarb: `scarb` exited with error
  1. rustup show output:
Default host: aarch64-apple-darwin

installed toolchains
--------------------

stable-aarch64-apple-darwin  (default)
stable-x86_64-apple-darwin

active toolchain
----------------

stable-aarch64-apple-darwin (default)
rustc 1.83.0 (90b35a623 2024-11-26)
  1. zsh --version output
zsh 5.9 (arm64-apple-darwin24.0)

Steps

Install asdf, scarb and starknet-foundry from the installation instructions.

Possible Solution(s)

Changing default toolchain to stable-x86_64-apple-darwin fixes it.

rustup default stable-x86_64-apple-darwin

Notes

No response

Version

scarb 2.9.2 (5070ff374 2024-12-11)
cairo: 2.9.2 (https://crates.io/crates/cairo-lang-compiler/2.9.2)
sierra: 1.6.0
@smol-ninja smol-ninja added the bug Something isn't working label Dec 31, 2024
@github-project-automation github-project-automation bot moved this to Triage in Scarb Dec 31, 2024
@smol-ninja smol-ninja changed the title dlopen complaining about x86_64 on arm64 processor dlopen complains about x86_64 on arm64 processor Dec 31, 2024
@maciektr maciektr added this to the Procedural macros milestone Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Triage
Development

No branches or pull requests

2 participants