Skip to content

Compile problem on MACOS #1258

Open
Open
@psimondk

Description

@psimondk

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;'):

pub type std_integral_constant_value_type<_Tp> = _Tp;
pub type std_integral_constant_type = u8;
extern "C" {
    #[link_name = "\u{1}value"]
    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 ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions