From: xiaokai-wang (@xiaokai-wang) <noreply+xiaokai-wang@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: [pgvector/pgvector] issue #817: Error loading pgvector-0.7.4 with PostgreSQL 12.12: undefined symbol _Z12l2_normalizeP24FunctionCallInfoBaseData
Date: Tue, 08 Apr 2025 09:50:14 +0000
Message-ID: <gh-pgvector-pgvector-817@github.com> (raw)
Hi,
I'm encountering an error when trying to use pgvector version 0.7.4 with PostgreSQL 12.12 on Ubuntu 22.04.
After compiling and installing the extension, running the following SQL:
```
CREATE EXTENSION vector;
```
Results in this error:
```
ERROR: could not load library "/usr/local/gpdb/lib/postgresql/vector.so": /usr/local/gpdb/lib/postgresql/vector.so: undefined symbol: _Z12l2_normalizeP24FunctionCallInfoBaseData
```
**Environment:**
- **OS:** Ubuntu 22.04
- **PostgreSQL:** 12.12
- **GCC/G++:** 12.3.0
- **pgvector:** 0.7.4 (built from source)
Is this a compatibility issue between pgvector 0.7.4 and PostgreSQL 12.12? Or could it be related to the build environment (e.g. compiler version or linking flags)?
Any help would be appreciated!
Thanks 🙏