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
Compile problem on MACOS #1258
Comments
This works on my macbook with rust 1.72.0. Do you happen to have an older version of the rust toolchain installed that is also rusty? Another thing to check is that you installed the developer dependencies on mac with |
My guess is you don't have llvm installed from brew (https://users.rust-lang.org/t/bindgen-seems-using-wrong-infrastructure/85122) Use our brew bundle to install everything you need to compile from source on Mac. |
Hi,
My Rust is 1.74 and I believe I did the brew bundle install ...I checked,
reran the rustc and the issue still persists unfortunately. I was too late
in commenting before it got closed :) So had to open a new #1268.
Regards, Palle
…On Wed, Jan 3, 2024 at 6:25 AM Lev Kokotov ***@***.***> wrote:
My guess is you don't have llvm installed from brew (
https://users.rust-lang.org/t/bindgen-seems-using-wrong-infrastructure/85122
)
Use our brew bundle to install everything you need to compile from source
on Mac.
—
Reply to this email directly, view it on GitHub
<#1258 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAP6EPMVPKCQM6DAYM426RLYMTMT5AVCNFSM6AAAAABBJEZLLCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZUHAZTGMBTGI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Hi , So I perused https://github.com/Homebrew/homebrew-core/blob/master/Formula/r/rust.rb and saw that 1.75.0 had been poured two days ago and tried again after 'brew upgrade rust' ... alas it re-compiled everything until it ran into the same problem the same place. I'll have to call it a day - being some timezones ahead of gmt - but will try a completely fresh install in the morning. Best Regards, Palle |
Never tried the brew Rust version, I always get mine from rust-lang.org. Doubtful there is a difference, but worth a shot. |
Hi, Thanks for the tip @levkk I switched to rustup and tried with the default (1.75.0) - same result. Downgraded to 1.72.0 - same result Could it be that the change from 'cargo install cargo-pgrx --version 0.9.8' to 'cargo install cargo-pgrx --version 0.11.2' discussed earlier in this thread is the culprit? Anyway that must be a task for tomorrow to give that one a go :) |
I just updated my macbook to rust 1.75.0 as well as all our dependencies in #1270 and everything still compiled cleanly for me. The error you're getting is from rust bindgen, which builds xgboost-sys in the rust-xgboost project. Can you build this rust project: https://github.com/postgresml/rust-xgboost |
I tried - here is an excerpt:
...
My workstation is a 16G M1 Pro running Sonoma 14.2.1 w Xcode 14. Will update Xcode |
Didn't help with updated Xcode ... and cmake is present
Did of course try to see if I could build something - and it did say 'Hello, world!' :)
|
I think something is broken with your buildchain. What is the output of
|
I do have unlinked Python kegs:
cmake looks like yours:
I'll link 'em and see what gives :) |
@psimondk Did you ever figure it out? |
Hi,
Happy new year 👍
After having installed per the instructions (https://postgresml.org/docs/resources/developer-docs/installation) I ran into this:
Error
error[E0412]: cannot find type
_Tp
in this scope<full_path>/postgresml/pgml-extension/target/debug/build/xgboost-sys-fa51aa703434d75f/out/bindings.rs:452:27
Offending lines (line 452 mentioned in the error is 'pub static std_value: _Tp;'):
Amendments
I had to amend the installation instructions as follows:
change 'cargo-pgrx --version 0.9.8' to ' cargo install cargo-pgrx --version 0.11.2' (toml mentions 0.11.2 not 0.9.8)
git submodule update --init --recursive (to get linfa dependencies)
I'm a bit 'rusty' on 'Rust' so I have no idea on how to proceed ...
The text was updated successfully, but these errors were encountered: