-
Notifications
You must be signed in to change notification settings - Fork 73
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
Add FreeBSD support #210
Comments
Thanks for raising this! cc @VoVAllen |
Thanks! I'm still seeing errors related to "use of unstable library feature" and "
|
Ah I see now, I was getting Rust 1.72 (https://www.freshports.org/lang/rust-nightly/) because
installed Build logs for completeness:
Thank you for the help, this issue can be closed! |
Maybe we could support pkg-install in the future. |
What
Add FreeBSD support.
How
The required changes are detailed here in short and a patch is provided below. The patch definitely needs more work (e.g. I'm not sure if my
futex_wake
andfutex_wake
are correct, they are adapted from Rust source code). The patch is provided an example on how to get the project built on FreeBSD.pgvecto.rs/crates/c/build.rs
Line 5 in 4f60c4c
#![feature(...
where the compiler complained about missing featuresfutex_wait
,futex_wake
functions for FreeBSDmemfd_create
andmmap_populate
to support FreeBSDFreeBSD patch
freebsd.patch.txt.
futex_wake
andfutex_wake
are adapted from information from this Rust issue on FreeBSDfutex
support rust-lang/rust#93740 (comment) and Rust source code.With the above changes
cargo pgrx install --sudo --release
succeeds but the post build scripts fail withlibintl.h
not found (Relatedpgrx
issue pgcentralfoundation/pgrx#470):fatal error: 'libintl.h' file not found
The extension can be installed by manually copying the build artifacts from
target/
with:After that the extension can be tested using the Get started instructions provided in this repo.
The text was updated successfully, but these errors were encountered: