Package Details: pgvecto.rs 0.2.0-5

Git Clone URL: https://aur.archlinux.org/pgvecto.rs.git (read-only, click to copy)
Package Base: pgvecto.rs
Description: Postgres extension that provides vector similarity search functions. It is written in Rust and based on pgrx.
Upstream URL: https://github.com/tensorchord/pgvecto.rs
Licenses: Apache-2.0
Conflicts: pgvecto.rs
Provides: pgvecto.rs
Submitter: pikl
Maintainer: pikl
Last Packager: pikl
Votes: 2
Popularity: 0.73
First Submitted: 2023-12-16 16:45 (UTC)
Last Updated: 2024-02-26 10:32 (UTC)

Dependencies (16)

Required by (1)

Sources (1)

Latest Comments

feedc0de commented on 2024-03-28 17:00 (UTC)

I had to add the following lines in build() to avoid compiler errors: + unset CPPFLAGS + unset CFLAGS + unset CXXFLAGS

without this, I get these compiler errors:

cargo:warning=./src/c.c:83:15: error: always_inline function '_mm512_set1_ps' requires target feature 'avx512f', but would be inlined into function 'v_f16_cosine_v4' that is compiled without support for 'avx512f'

Koli commented on 2024-02-27 16:12 (UTC)

Thanks for the update!

I am still having some issues with the build, unfortunately I'm also not very familiar with compiling rust.

   Compiling service v0.2.0 (/home/koli/.cache/yay/pgvecto.rs/src/pgvecto.rs-0.2.0/crates/service)
error: could not compile `pgrx-pg-sys` (lib)

Caused by:
  process didn't exit successfully: `/home/koli/.rustup/toolchains/nightly-2024-01-14-x86_64-unknown-linux-gnu/bin/rustc --crate-name pgrx_pg_sys --edition=2021 /home/koli/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pgrx-pg-sys-0.11.2/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=160 --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C codegen-units=1 -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="pg16"' -C metadata=5ce43ef528332f29 -C extra-filename=-5ce43ef528332f29 --out-dir /home/koli/.cache/yay/pgvecto.rs/src/pgvecto.rs-0.2.0/target/release/deps -L dependency=/home/koli/.cache/yay/pgvecto.rs/src/pgvecto.rs-0.2.0/target/release/deps --extern libc=/home/koli/.cache/yay/pgvecto.rs/src/pgvecto.rs-0.2.0/target/release/deps/liblibc-86ca433f93e1dd3e.rmeta --extern memoffset=/home/koli/.cache/yay/pgvecto.rs/src/pgvecto.rs-0.2.0/target/release/deps/libmemoffset-13a0c947dec41489.rmeta --extern pgrx_macros=/home/koli/.cache/yay/pgvecto.rs/src/pgvecto.rs-0.2.0/target/release/deps/libpgrx_macros-e712b4e63ee7015a.so --extern pgrx_sql_entity_graph=/home/koli/.cache/yay/pgvecto.rs/src/pgvecto.rs-0.2.0/target/release/deps/libpgrx_sql_entity_graph-64f7a66c23bb7f9a.rmeta --extern serde=/home/koli/.cache/yay/pgvecto.rs/src/pgvecto.rs-0.2.0/target/release/deps/libserde-2ecc78d3c3480847.rmeta --extern sptr=/home/koli/.cache/yay/pgvecto.rs/src/pgvecto.rs-0.2.0/target/release/deps/libsptr-ab7c9586a3cb591e.rmeta --cap-lints allow --cfg nightly` (signal: 9, SIGKILL: kill)
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: pgvecto.rs-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
pgvecto.rs - exit status 4

pikl commented on 2024-02-25 11:03 (UTC) (edited on 2024-02-25 14:46 (UTC) by pikl)

@krutoileshii, @Koli now bumped to v0.2.0 and the problem generating error: multiple input filenames provided (first two filenames are '' and/home/XXXXXX/.pgrx/postmaster_stubs/usr/bin/postmaster_stub.rs is fixed.

Apologies it took a while, this is the first rust package I've maintained so it took me a little while to understand what was going on. Turned out to be defined but empty RUSTFLAGS= env variable - as is usual for makepkg environment, creating an empty argument for the compiler command. Will report to upstream.

pohl7589 commented on 2024-02-24 20:20 (UTC) (edited on 2024-02-24 20:21 (UTC) by pohl7589)

bump version to 0.2.0 (required for immich v1.95.0). Cargo.toml has version 0.0.0 for some reason. I think it needs to be changed to 0.2.0, otherwise the sql schema cannot be found.

--- a/PKGBUILD  2024-02-24 21:14:16.701714663 +0100
+++ b/PKGBUILD  2024-02-24 21:16:03.835440349 +0100
@@ -1,23 +1,24 @@
 # Maintainer: pikl <me@pikl.uk>
 _pgver=16  # postgresql version
 pkgname=pgvecto.rs
-pkgver=0.1.13
-pkgrel=2
+pkgver=0.2.0
+pkgrel=1
 pkgdesc="Postgres extension that provides vector similarity search functions. It is written in Rust and based on pgrx."
-arch=(x86_64)
+arch=('x86_64' 'aarch64')
 url="https://github.com/tensorchord/pgvecto.rs"
 license=('Apache-2.0')
 makedepends=('cargo-nightly' 'clang' "postgresql>=${_pgver}" 'openssl' 'readline'  'libxml2' 'libxslt' 'zlib' 'ccache' 'git')
 # build fails with LTO enabled
 options=('!lto')
 source=("${pkgname}-${pkgver}.tar.gz::https://github.com/tensorchord/pgvecto.rs/archive/refs/tags/v${pkgver}.tar.gz")
-sha256sums=('e78105b94b20f072d1330c9e5dead1f91b3e210f9f824afe858f2b10d5a9d2a6')
+sha256sums=('671bfe39a3b87d5dfa5229ab0beffff1bd09686b53779dc511248e79aa4b2646')

 # https://github.com/tensorchord/pgvecto.rs/blob/main/docs/installation.md

 prepare() {
     cd $pkgname-$pkgver
-    cargo install cargo-pgrx --git https://github.com/tensorchord/pgrx.git --rev $(cat Cargo.toml | grep "pgrx =" | awk -F'rev = "' '{print $2}' | cut -d'"' -f1)
+    sed -i -e "s/version = \"0.0.0\"/version = \"${pkgver}\"/" Cargo.toml
+    cargo install cargo-pgrx@$(grep 'pgrx = {' Cargo.toml | cut -d '"' -f 2)
 }

 build() {

Koli commented on 2024-02-23 16:35 (UTC)

@krutoileshii Can confirm, I am getting the same error. Have you found any solution yet?

krutoileshii commented on 2024-02-14 04:24 (UTC) (edited on 2024-02-14 04:40 (UTC) by krutoileshii)

Keep getting the below error trying to compile:

error: multiple input filenames provided (first two filenames are ` and/home/XXXXXX/.pgrx/postmaster_stubs/usr/bin/postmaster_stub.rs`)

Error: 0: rustc exited with code 1

Location: cargo-pgrx/src/command/schema.rs:554