Closed Amandrs closed 8 months ago
Hi @Amandrs ,
Thank you for raising the issue. What is in your ~/.cargo/config.toml
? I think I resolved by adding some flags as shown below. There might be a better way to do this.
[target.'cfg(target_os="macos")']
rustflags = ["-Clink-arg=-Wl,-undefined,dynamic_lookup"]
I had nothing into my "~/.cargo/config.toml", but with your tip, I can now build this project.
I tried to put this into the project's "cargo.toml", but this does not work. It would be nice to have a project specific (cargo.toml) tip :) Thanks
Thats a good idea @Amandrs ! We'd accept a PR if you'd be so kind to take it. Otherwise we can get it pushed up too.
A project centric solution seems to :
this will provide a project centric rustflags information to be able to link the project
diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..132d9fd --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,3 @@ +[target.'cfg(target_os="macos")'] +rustflags = ["-Clink-arg=-Wl,-undefined,dynamic_lookup"] +
@Amandrs - are you going to contribute that in a PR? I can copy/paste that in if not...
pg_vectorize fails at linking step on macos with arm64 cpu
MacOS Ventura 13.5.2 postresql@16 from brew cargo-pgrx 0.11.3 pg_vectorize on main is π¦ v0.12.0 via π v3.12.2 via π¦ v1.76.0