pg.ddx.io pgvector/pgvector GitHub issues and pull requestshelp / color / mirror / Atom feed
[pgvector/pgvector] issue #884: Compiling pgvector on Ubuntu arm64 inside a VM on M4 Mac leads to crash after installation 4+ messages / 2 participants [nested] [flat]
* [pgvector/pgvector] issue #884: Compiling pgvector on Ubuntu arm64 inside a VM on M4 Mac leads to crash after installation @ 2025-08-08 16:15 "lmores (@lmores)" <noreply+lmores@github.com> 0 siblings, 0 replies; 4+ messages in thread From: lmores (@lmores) @ 2025-08-08 16:15 UTC (permalink / raw) To: pgvector/pgvector <noreply+pgvector-pgvector@github.com> 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. ^ permalink raw [nested|flat] 4+ messages in thread
* Re: [pgvector/pgvector] issue #884: Compiling pgvector on Ubuntu arm64 inside a VM on M4 Mac leads to crash after installation @ 2025-08-08 20:06 ` "ankane (@ankane)" <noreply+ankane@github.com> 2 siblings, 0 replies; 4+ messages in thread From: ankane (@ankane) @ 2025-08-08 20:06 UTC (permalink / raw) To: pgvector/pgvector <noreply+pgvector-pgvector@github.com> Hi @lmores, see the [docs on portability](https://github.com/pgvector/pgvector?tab=readme-ov-file#portability). ^ permalink raw [nested|flat] 4+ messages in thread
* Re: [pgvector/pgvector] issue #884: Compiling pgvector on Ubuntu arm64 inside a VM on M4 Mac leads to crash after installation @ 2025-08-08 20:06 ` "ankane (@ankane)" <noreply+ankane@github.com> 2 siblings, 0 replies; 4+ messages in thread From: ankane (@ankane) @ 2025-08-08 20:06 UTC (permalink / raw) To: pgvector/pgvector <noreply+pgvector-pgvector@github.com> @ankane closed this. ^ permalink raw [nested|flat] 4+ messages in thread
* Re: [pgvector/pgvector] issue #884: Compiling pgvector on Ubuntu arm64 inside a VM on M4 Mac leads to crash after installation @ 2025-08-09 20:55 ` "lmores (@lmores)" <noreply+lmores@github.com> 2 siblings, 0 replies; 4+ messages in thread From: lmores (@lmores) @ 2025-08-09 20:55 UTC (permalink / raw) To: pgvector/pgvector <noreply+pgvector-pgvector@github.com> I admit I did not notice that section of the docs, however, I did compile the extension inside _the same_ guest OS (Ubuntu) where I tried to install pgvector. I am not an expert at all in architectures, portability and compilers, but I guess it should have worked, or not? Maybe it is worth to add a note in the docs explicitly mentioning the case of VMs? ^ permalink raw [nested|flat] 4+ messages in thread
end of thread, other threads:[~2025-08-09 20:55 UTC | newest] Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2025-08-08 16:15 [pgvector/pgvector] issue #884: Compiling pgvector on Ubuntu arm64 inside a VM on M4 Mac leads to crash after installation "lmores (@lmores)" <noreply+lmores@github.com> 2025-08-08 20:06 ` "ankane (@ankane)" <noreply+ankane@github.com> 2025-08-08 20:06 ` "ankane (@ankane)" <noreply+ankane@github.com> 2025-08-09 20:55 ` "lmores (@lmores)" <noreply+lmores@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