-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Problem with ffi
on mac m1
#6517
Comments
Can’t reproduce this no probs here using dlopen on M1 or M2, with bun 1.0.5, 1.0.6, 1.0.7 Using both Zig and Rust dynamic libs .. in production can the OP please check the original post - it says your platform is Darwin x86, and not M1 as per the title ? Can you check that your dynlib is the same architecture as your system please. |
I'm seeing this too |
This also occurs on arch linux using both |
https://github.com/zigster64/bun-issue-6517 Just for testing. Wouldn't mind some more data points on this, would be good to fix, thx |
Still doesn't work even with new version of bun |
I just fought through this on my Mac; it turned out that there were lurking x86 executables in ~/.cargo/bin. By deleting ~/.cargo and ~/.rustup completely and reinstalling Rust from scratch the problem went away. To see if this is your problem type:
and if you see anything that says x86 that's probably your issue. |
What version of Bun is running?
1.0.6
What platform is your computer?
Darwin 22.6.0 x86_64 i386
What steps can reproduce the bug?
Create
main.rs
with some simple rust function likeRun this command
rustc --crate-type cdylib ./math.rs
Create
index.ts
with following codeRun this command
bun .
What is the expected behavior?
Should be ok.
What do you see instead?
But I got this error
Additional information
No response
The text was updated successfully, but these errors were encountered: