-
Notifications
You must be signed in to change notification settings - Fork 30
fix: build error on Apple Silicon due to ambiguous call to svwhilelt
functions
#260
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
fix: build error on Apple Silicon due to ambiguous call to svwhilelt
functions
#260
Conversation
I have read the CLA Document and I hereby sign the CLA zebrapurring seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. |
There is no need to add the second commit. Flags are specified in https://github.com/tensorchord/VectorChord/blob/main/build.rs. Can you add an email to the commit, sign the commit and the CLA? |
I saw them, but without specifying the linker flags in
With my update the library builds without errors, but
So something still seems to be missing... However I found that the built binary seems to work fine with Postgres. @usamoi Have you been able to build and run the library on Apple Silicon? |
It's rust-lang/rust#139744, fixed in rust-lang/rust#139752. Please use a newer nightly compiler by changing |
I don't have MacOS machines at hand right now, but I make CI work on MacOS. See https://github.com/usamoi/VectorChord/tree/fix-macos and https://github.com/usamoi/VectorChord/actions/runs/15236146848/job/42850260009. |
Looks great! I tested your branch in my machine and the library builds without any errors. I'll close my PR then, feel free to integrate your branch instead. Will you release next version's prebuilt binaries for macOS as well? Thank you! |
I don't think so. I know little about macOS so I'm not sure what potential issues there might be with releasing precompiled binaries. |
I'm using PostgreSQL 17 from Homebrew (
brew install postgresql@17
) and I ran the following steps to build VectorChord:cargo install cargo-pgrx@"$(sed -n 's/.*pgrx = { version = "\(=.*\)",.*/\1/p' Cargo.toml)" --locked cargo pgrx init --pg17=pg_config-17 cargo pgrx install --release --sudo --pg-config pg_config-17
However
cargo pgrx install
returns the following error:This change fixes the error above and makes sure the correct function is picked by the compiler.