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

Getting build errors when compiling for ios in xcode #1127

Open
rubiktubik opened this issue Feb 8, 2025 · 2 comments
Open

Getting build errors when compiling for ios in xcode #1127

rubiktubik opened this issue Feb 8, 2025 · 2 comments

Comments

@rubiktubik
Copy link

rubiktubik commented Feb 8, 2025

Hi, @EricLBuehler first, thank you for the amazing library and your work.

I want to use mistral-rs on ios with flutter and https://cjycode.com/flutter_rust_bridge/ but getting the following build message:

Error (Xcode): instruction requires: fullfp16
Error (Xcode): could not compile `gemm-f16` (lib) due to 11 previous errors

I not sure if it is related to mistral-rs. But fp16 is mostly need for machine-learning i think.

I added mistral-rs like this to my cargo.toml:

mistralrs = { git = "https://github.com/EricLBuehler/mistral.rs.git", branch = "master", features = [
    "metal",
] }

I have also tried to use rust nightly with rustflags in the config.toml with (which is mentioned here sarah-quinones/gemm#31)

[build]
rustflags = [
    "-Ctarget-feature=+fp16,+fhm"
]

But still getting the same error

@EricLBuehler
Copy link
Owner

Hi @rubiktubik, thanks for the issue!

It appears that this issue is related to the upstream gemm crate. Could you please provide the full error/compilation log in pastebin or an equivalent? I haven't run into this error, it seems the issue you linked gemm contains the error.

@rubiktubik
Copy link
Author

rubiktubik commented Feb 18, 2025

I seems this error is also related to using a debug build with xcode.
A release build works without problems.
I will try to figure out more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants