Skip to content

[Bug]: Can not build on Mac OS X86. #155

@qianwch

Description

@qianwch

What happened?

I had to set RUSTFLAGS="-C target-feature=+avx2,+fma" to perform the build. But the building still failed:

  = note: Undefined symbols for architecture x86_64:
            "_AllocSetContextCreateInternal", referenced from:
                cee_scape::asm_based::call_with_sigsetjmp::call_from_c_to_rust::h2ed01fd6369823c8 in libpgrx-f450b0fe18c45ace.rlib[3](pgrx-f450b0fe18c45ace.pgrx.77db9fdf0f84df65-cgu.0.rcgu.o)
            "_BufferBlocks", referenced from:
                vectorscale::access_method::graph::Graph::prune_neighbors::h8a5b41a25296b520 in vectorscale.vectorscale.fdcca75cf4de3bfb-cgu.0.rcgu.o
                vectorscale::access_method::graph::Graph::prune_neighbors::h8a5b41a25296b520 in vectorscale.vectorscale.fdcca75cf4de3bfb-cgu.0.rcgu.o
                vectorscale::access_method::meta_page::MetaPage::overwrite::hce8ba90535a7927b in vectorscale.vectorscale.fdcca75cf4de3bfb-cgu.0.rcgu.o
                vectorscale::access_method::meta_page::MetaPage::fetch::hc9745515cd3e1e8f in vectorscale.vectorscale.fdcca75cf4de3bfb-cgu.0.rcgu.o

pgvectorscale extension affected

0.4.0

PostgreSQL version used

16.4

What operating system did you use?

macOS 15.0.1

What installation method did you use?

Source

What platform did you run on?

Other

Relevant log output and stack trace

No response

How can we reproduce the bug?

Use homebrew to install rust the current version is 1.8.1.
Follow the building steps.

RUSTFLAGS="-C target-feature=+avx2,+fma" cargo pgrx install --release

Are you going to work on the bugfix?

🆘 No, could someone else please work on the bugfix?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions