pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
From: lmores (@lmores) <noreply+lmores@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: [pgvector/pgvector] issue #884: Compiling pgvector on Ubuntu arm64 inside a VM on M4 Mac leads to crash after installation
Date: Fri, 08 Aug 2025 16:15:02 +0000
Message-ID: <gh-pgvector-pgvector-884@github.com> (raw)

I have successfully compiled and installed pgvector version 0.8.0 on Ubuntu 24.04 LTS for arm64 running inside an UTM virtual machine on a Macbook Pro with a M4 processor.

However, when I tried to run `CREATE EXTENSION pgvector;` inside a psql session I always got: 

```text
server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request.
```

In postgres log file I found :

```text
2025-08-08 17:02:54.557 CEST [11319] LOG:  server process (PID 11909) was terminated by signal 4: Illegal instruction
2025-08-08 17:02:54.557 CEST [11319] DETAIL:  Failed process was running: CREATE EXTENSION vector;
2025-08-08 17:02:54.557 CEST [11319] LOG:  terminating any other active server processes
```

As suggested in #389, I solved this issue by commenting this line in the Makefile before recompiling pgvector:
https://github.com/pgvector/pgvector/blob/2627c5ff775ae6d7aef0c430121ccf857842d2f2/Makefile#L15

The bottom line is: if you are compiling on a VM and the host OS is MacOS, then compilation should use the same `OPTFLAGS` as if it was running on a native MacOS: https://github.com/pgvector/pgvector/blob/2627c5ff775ae6d7aef0c430121ccf857842d2f2/Makefile#L17C1-L2...

However, I do not know how to detect in the Makefile that compilation takes place in a virtualized os hosted by MacOS.

view thread (4+ messages)  latest in thread

Message-ID: <gh-pgvector-pgvector-884@github.com>
Permalink:  ../gh-pgvector-pgvector-884@github.com/

 · 


This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox