pg.ddx.io pgvector/pgvector GitHub issues and pull requests
help / color / mirror / Atom feed[pgvector/pgvector] issue #669: Fails to nmake on PostgreSQL 17 RC1 [Windows]
22+ messages / 9 participants
[nested] [flat]
* [pgvector/pgvector] issue #669: Fails to nmake on PostgreSQL 17 RC1 [Windows]
@ 2024-09-11 09:53 "dmm-l-mediehus (@dmm-l-mediehus)" <noreply+dmm-l-mediehus@github.com>
0 siblings, 0 replies; 22+ messages in thread
From: dmm-l-mediehus (@dmm-l-mediehus) @ 2024-09-11 09:53 UTC (permalink / raw)
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Tried installing pgvector on my new PostgreSQL 17 RC1.
It fails to install on Windows when doing nmake:
```
Creating library vector.lib and object vector.exp
halfvec.obj : error LNK2019: unresolved external symbol float_to_shortest_decimal_bufn referenced in function halfvec_out
sparsevec.obj : error LNK2001: unresolved external symbol float_to_shortest_decimal_bufn
vector.obj : error LNK2001: unresolved external symbol float_to_shortest_decimal_bufn
halfvec.obj : error LNK2019: unresolved external symbol float_to_shortest_decimal_buf referenced in function Float4ToHalf
vector.dll : fatal error LNK1120: 2 unresolved externals
NMAKE : fatal error U1077: 'cl /nologo /I"C:\PostgreSQL\include\server\port\win32_msvc" /I"C:\PostgreSQL\include\server\port\win32" /I"C:\PostgreSQL\include\server" /I"C:\PostgreSQL\include" /O2 /fp:fast src\bitutils.obj src\bitvec.obj src\halfutils.obj src\halfvec.obj src\hnsw.obj src\hnswbuild.obj src\hnswinsert.obj src\hnswscan.obj src\hnswutils.obj src\hnswvacuum.obj src\ivfbuild.obj src\ivfflat.obj src\ivfinsert.obj src\ivfkmeans.obj src\ivfscan.obj src\ivfutils.obj src\ivfvacuum.obj src\sparsevec.obj src\vector.obj "C:\PostgreSQL\lib\postgres.lib" /link /DLL /OUT:vector.dll' : return code '0x2'
Stop.
```
Works fine using PostgreSQL 16
^ permalink raw [nested|flat] 22+ messages in thread
* Re: [pgvector/pgvector] issue #669: Fails to nmake on PostgreSQL 17 RC1 [Windows]
@ 2024-09-11 11:38 "pradeepdev-1995 (@pradeepdev-1995)" <noreply+pradeepdev-1995@github.com>
20 siblings, 0 replies; 22+ messages in thread
From: pradeepdev-1995 (@pradeepdev-1995) @ 2024-09-11 11:38 UTC (permalink / raw)
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
facing the same issue on Windows.
Following these instructions to enable vector extension on windows os -https://github.com/pgvector/pgvector?tab=readme-ov-file#windows
as part of that
I'm trying to run the command - ```F Makefile.win install```
But it shows
```
C:\Users\PRADEEP\AppData\Local\Temp\pgvector>nmake /F Makefile.win install
Microsoft (R) Program Maintenance Utility Version 14.41.34120.0
Copyright (C) Microsoft Corporation. All rights reserved.
cl /nologo /I"C:\Program Files\PostgreSQL\16\include\server\port\win32_msvc" /I"C:\Program Files\PostgreSQL\16\include\server\port\win32" /I"C:\Program Files\PostgreSQL\16\include\server" /I"C:\Program Files\PostgreSQL\16\include" /O2 /fp:fast /c src\bitutils.c /Fosrc\bitutils.obj
bitutils.c
src\bitutils.c(1): fatal error C1083: Cannot open include file: 'postgres.h': No such file or directory
NMAKE : fatal error U1077: 'cl /nologo /I"C:\Program Files\PostgreSQL\16\include\server\port\win32_msvc" /I"C:\Program Files\PostgreSQL\16\include\server\port\win32" /I"C:\Program Files\PostgreSQL\16\include\server" /I"C:\Program Files\PostgreSQL\16\include" /O2 /fp:fast /c src\bitutils.c /Fosrc\bitutils.obj' : return code '0x2'
Stop.
```
^ permalink raw [nested|flat] 22+ messages in thread
* Re: [pgvector/pgvector] issue #669: Fails to nmake on PostgreSQL 17 RC1 [Windows]
@ 2024-09-11 11:42 "jkatz (@jkatz)" <noreply+jkatz@github.com>
20 siblings, 0 replies; 22+ messages in thread
From: jkatz (@jkatz) @ 2024-09-11 11:42 UTC (permalink / raw)
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Builds for PostgreSQL on Windows changed in PostgreSQL 17; please see: [https://www.postgresql.org/docs/17/installation-platform-notes.html#INSTALLATION-NOTES-VISUAL-STUDIO](https://www.postgresql.org/docs/17/installation-platform-notes.html#INSTALLATION-NOTES-VISUAL-STUDIO)
^ permalink raw [nested|flat] 22+ messages in thread
* Re: [pgvector/pgvector] issue #669: Fails to nmake on PostgreSQL 17 RC1 [Windows]
@ 2024-09-11 18:57 "ankane (@ankane)" <noreply+ankane@github.com>
20 siblings, 0 replies; 22+ messages in thread
From: ankane (@ankane) @ 2024-09-11 18:57 UTC (permalink / raw)
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Hi @dmm-l-mediehus, thanks for reporting! I'm able to reproduce the error, but still trying to figure out a fix.
^ permalink raw [nested|flat] 22+ messages in thread
* Re: [pgvector/pgvector] issue #669: Fails to nmake on PostgreSQL 17 RC1 [Windows]
@ 2024-09-19 20:58 "ankane (@ankane)" <noreply+ankane@github.com>
20 siblings, 0 replies; 22+ messages in thread
From: ankane (@ankane) @ 2024-09-19 20:58 UTC (permalink / raw)
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Quick update: I think this will need to be addressed upstream ([pgsql-hackers thread](https://www.postgresql.org/message-id/flat/CAOdR5yF0krWrxycA04rgUKCgKugRvGWzzGLAhDZ9bzNv8g0Lag%40mai...)).
^ permalink raw [nested|flat] 22+ messages in thread
* Re: [pgvector/pgvector] issue #669: Fails to nmake on PostgreSQL 17 RC1 [Windows]
@ 2024-09-27 20:54 "ankane (@ankane)" <noreply+ankane@github.com>
20 siblings, 0 replies; 22+ messages in thread
From: ankane (@ankane) @ 2024-09-27 20:54 UTC (permalink / raw)
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Confirmed this is still an issue with Postgres 17.0.
^ permalink raw [nested|flat] 22+ messages in thread
* Re: [pgvector/pgvector] issue #669: Fails to nmake on PostgreSQL 17 RC1 [Windows]
@ 2024-09-30 19:24 "freyfrey01 (@freyfrey01)" <noreply+freyfrey01@github.com>
20 siblings, 0 replies; 22+ messages in thread
From: freyfrey01 (@freyfrey01) @ 2024-09-30 19:24 UTC (permalink / raw)
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
@ankane is this an issue with Postgres or pgvector? If with pgvector, is there an ETA to get it resolved? If it is with Postgres 17, will pgvector documentation be updated when issue is resolved for installation steps with PG 17?
^ permalink raw [nested|flat] 22+ messages in thread
* Re: [pgvector/pgvector] issue #669: Fails to nmake on PostgreSQL 17 RC1 [Windows]
@ 2024-09-30 20:22 "ankane (@ankane)" <noreply+ankane@github.com>
20 siblings, 0 replies; 22+ messages in thread
From: ankane (@ankane) @ 2024-09-30 20:22 UTC (permalink / raw)
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
It's an issue with Postgres (see the link above), and yes, the documentation will be updated when it's resolved.
^ permalink raw [nested|flat] 22+ messages in thread
* Re: [pgvector/pgvector] issue #669: Fails to nmake on PostgreSQL 17 RC1 [Windows]
@ 2024-12-23 10:46 "VladlenPopolitov (@VladlenPopolitov)" <noreply+VladlenPopolitov@github.com>
20 siblings, 0 replies; 22+ messages in thread
From: VladlenPopolitov (@VladlenPopolitov) @ 2024-12-23 10:46 UTC (permalink / raw)
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
@ankane I did the patch to fix this issue in PostgreSQL master https://commitfest.postgresql.org/51/5457/ . Now it depends on community when it will be applied.
^ permalink raw [nested|flat] 22+ messages in thread
* Re: [pgvector/pgvector] issue #669: Fails to nmake on PostgreSQL 17 RC1 [Windows]
@ 2024-12-23 14:42 "ankane (@ankane)" <noreply+ankane@github.com>
20 siblings, 0 replies; 22+ messages in thread
From: ankane (@ankane) @ 2024-12-23 14:42 UTC (permalink / raw)
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Awesome, thanks @VladlenPopolitov!
^ permalink raw [nested|flat] 22+ messages in thread
* Re: [pgvector/pgvector] issue #669: Fails to nmake on PostgreSQL 17 RC1 [Windows]
@ 2024-12-25 17:46 "VladlenPopolitov (@VladlenPopolitov)" <noreply+VladlenPopolitov@github.com>
20 siblings, 0 replies; 22+ messages in thread
From: VladlenPopolitov (@VladlenPopolitov) @ 2024-12-25 17:46 UTC (permalink / raw)
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
@ankane this bug fixed, the patch commited to master. Tomorrow I will see what to do with version 17.
^ permalink raw [nested|flat] 22+ messages in thread
* Re: [pgvector/pgvector] issue #669: Fails to nmake on PostgreSQL 17 RC1 [Windows]
@ 2025-01-01 12:36 "andreiramani (@andreiramani)" <noreply+andreiramani@github.com>
20 siblings, 0 replies; 22+ messages in thread
From: andreiramani (@andreiramani) @ 2025-01-01 12:36 UTC (permalink / raw)
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
> Tried installing pgvector on my new PostgreSQL 17 RC1.
>
> It fails to install on Windows when doing nmake:
>
> ```
> Creating library vector.lib and object vector.exp
> halfvec.obj : error LNK2019: unresolved external symbol float_to_shortest_decimal_bufn referenced in function halfvec_out
> sparsevec.obj : error LNK2001: unresolved external symbol float_to_shortest_decimal_bufn
> vector.obj : error LNK2001: unresolved external symbol float_to_shortest_decimal_bufn
> halfvec.obj : error LNK2019: unresolved external symbol float_to_shortest_decimal_buf referenced in function Float4ToHalf
> vector.dll : fatal error LNK1120: 2 unresolved externals
> NMAKE : fatal error U1077: 'cl /nologo /I"C:\PostgreSQL\include\server\port\win32_msvc" /I"C:\PostgreSQL\include\server\port\win32" /I"C:\PostgreSQL\include\server" /I"C:\PostgreSQL\include" /O2 /fp:fast src\bitutils.obj src\bitvec.obj src\halfutils.obj src\halfvec.obj src\hnsw.obj src\hnswbuild.obj src\hnswinsert.obj src\hnswscan.obj src\hnswutils.obj src\hnswvacuum.obj src\ivfbuild.obj src\ivfflat.obj src\ivfinsert.obj src\ivfkmeans.obj src\ivfscan.obj src\ivfutils.obj src\ivfvacuum.obj src\sparsevec.obj src\vector.obj "C:\PostgreSQL\lib\postgres.lib" /link /DLL /OUT:vector.dll' : return code '0x2'
> Stop.
> ```
>
> Works fine using PostgreSQL 16
Issue still exist, at least in our PostgreSQL 17.2.3 (using Win 11 x64 24H2, OS build 26100.2605)
^ permalink raw [nested|flat] 22+ messages in thread
* Re: [pgvector/pgvector] issue #669: Fails to nmake on PostgreSQL 17 RC1 [Windows]
@ 2025-01-01 13:51 "ankane (@ankane)" <noreply+ankane@github.com>
20 siblings, 0 replies; 22+ messages in thread
From: ankane (@ankane) @ 2025-01-01 13:51 UTC (permalink / raw)
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
@andreiramani There hasn't been a Postgres release since the patch was committed. It should be part of 17.3.
^ permalink raw [nested|flat] 22+ messages in thread
* Re: [pgvector/pgvector] issue #669: Fails to nmake on PostgreSQL 17 RC1 [Windows]
@ 2025-01-10 09:52 "mibaitwo (@mibaitwo)" <noreply+mibaitwo@github.com>
20 siblings, 0 replies; 22+ messages in thread
From: mibaitwo (@mibaitwo) @ 2025-01-10 09:52 UTC (permalink / raw)
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
This is also the case for me
^ permalink raw [nested|flat] 22+ messages in thread
* Re: [pgvector/pgvector] issue #669: Fails to nmake on PostgreSQL 17 RC1 [Windows]
@ 2025-01-10 10:11 "andreiramani (@andreiramani)" <noreply+andreiramani@github.com>
20 siblings, 0 replies; 22+ messages in thread
From: andreiramani (@andreiramani) @ 2025-01-10 10:11 UTC (permalink / raw)
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
It should be part of the next version of postgresql ....
if you need pgvector binary compile for postgresql 16 in microsoft windows - you can try this https://github.com/andreiramani/pgvector_pgsql_windows
> This is also the case for me
^ permalink raw [nested|flat] 22+ messages in thread
* Re: [pgvector/pgvector] issue #669: Fails to nmake on PostgreSQL 17 RC1 [Windows]
@ 2025-01-18 17:01 "sanjayk0508 (@sanjayk0508)" <noreply+sanjayk0508@github.com>
20 siblings, 0 replies; 22+ messages in thread
From: sanjayk0508 (@sanjayk0508) @ 2025-01-18 17:01 UTC (permalink / raw)
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
@andreiramani could you please confirm if pgvector v0.8.0 is incompatible with PostgreSQL 17.2? If so, would pgvector v0.7.0 be compatible with PostgreSQL 17.2, or does it have the same issue?
^ permalink raw [nested|flat] 22+ messages in thread
* Re: [pgvector/pgvector] issue #669: Fails to nmake on PostgreSQL 17 RC1 [Windows]
@ 2025-02-04 03:20 "andreiramani (@andreiramani)" <noreply+andreiramani@github.com>
20 siblings, 0 replies; 22+ messages in thread
From: andreiramani (@andreiramani) @ 2025-02-04 03:20 UTC (permalink / raw)
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
> [@andreiramani](https://github.com/andreiramani) could you please confirm if pgvector v0.8.0 is incompatible with PostgreSQL 17.2? If so, would pgvector v0.7.0 be compatible with PostgreSQL 17.2, or does it have the same issue?
specifically, I'm unable compile any pgvector>=0.7.0 in PostgreSQL 17.2 (windows version)
^ permalink raw [nested|flat] 22+ messages in thread
* Re: [pgvector/pgvector] issue #669: Fails to nmake on PostgreSQL 17 RC1 [Windows]
@ 2025-02-05 06:43 "VladlenPopolitov (@VladlenPopolitov)" <noreply+VladlenPopolitov@github.com>
20 siblings, 0 replies; 22+ messages in thread
From: VladlenPopolitov (@VladlenPopolitov) @ 2025-02-05 06:43 UTC (permalink / raw)
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
> [@andreiramani](https://github.com/andreiramani) could you please confirm if pgvector v0.8.0 is incompatible with PostgreSQL 17.2? If so, would pgvector v0.7.0 be compatible with PostgreSQL 17.2, or does it have the same issue?
@sanjayk0508 It is not "pgvector is not compatible". It is PostgreSQL 16 and 17 builds made by meson under Windows (only meson not make, only Windows) have bug (floating format functions were included into the code, but not added to export lib). If provider of the PostgreSQL build make fix for library, pgvector and other extensions can be compiled with this build. Or needed object file can be included into your pgvector build manually.
^ permalink raw [nested|flat] 22+ messages in thread
* Re: [pgvector/pgvector] issue #669: Fails to nmake on PostgreSQL 17 RC1 [Windows]
@ 2025-02-05 19:57 "ankane (@ankane)" <noreply+ankane@github.com>
20 siblings, 0 replies; 22+ messages in thread
From: ankane (@ankane) @ 2025-02-05 19:57 UTC (permalink / raw)
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
From my understanding, there will likely be a Postgres release this month that includes @VladlenPopolitov's fix.
> The target date for these releases are, unless otherwise stated, the second Thursday of February, May, August, and November. The current schedule for upcoming releases is:
>
> - February 13th, 2025
https://www.postgresql.org/developer/roadmap/
^ permalink raw [nested|flat] 22+ messages in thread
* Re: [pgvector/pgvector] issue #669: Fails to nmake on PostgreSQL 17 RC1 [Windows]
@ 2025-02-13 18:04 "ankane (@ankane)" <noreply+ankane@github.com>
20 siblings, 0 replies; 22+ messages in thread
From: ankane (@ankane) @ 2025-02-13 18:04 UTC (permalink / raw)
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
@ankane closed this.
^ permalink raw [nested|flat] 22+ messages in thread
* Re: [pgvector/pgvector] issue #669: Fails to nmake on PostgreSQL 17 RC1 [Windows]
@ 2025-02-13 18:10 "ankane (@ankane)" <noreply+ankane@github.com>
20 siblings, 0 replies; 22+ messages in thread
From: ankane (@ankane) @ 2025-02-13 18:10 UTC (permalink / raw)
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Postgres 17.3 [has been released](https://www.postgresql.org/about/news/postgresql-173-167-1511-1416-and-1319-released-3015/) with the patch.
Thanks again @VladlenPopolitov!
^ permalink raw [nested|flat] 22+ messages in thread
* Re: [pgvector/pgvector] issue #669: Fails to nmake on PostgreSQL 17 RC1 [Windows]
@ 2025-02-14 01:37 "andreiramani (@andreiramani)" <noreply+andreiramani@github.com>
20 siblings, 0 replies; 22+ messages in thread
From: andreiramani (@andreiramani) @ 2025-02-14 01:37 UTC (permalink / raw)
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Yes .... issues has been solved.
I have successfully compile pgvector v0.8 in Windows environment
^ permalink raw [nested|flat] 22+ messages in thread
end of thread, other threads:[~2025-02-14 01:37 UTC | newest]
Thread overview: 22+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2024-09-11 09:53 [pgvector/pgvector] issue #669: Fails to nmake on PostgreSQL 17 RC1 [Windows] "dmm-l-mediehus (@dmm-l-mediehus)" <noreply+dmm-l-mediehus@github.com>
2024-09-11 11:38 ` "pradeepdev-1995 (@pradeepdev-1995)" <noreply+pradeepdev-1995@github.com>
2024-09-11 11:42 ` "jkatz (@jkatz)" <noreply+jkatz@github.com>
2024-09-11 18:57 ` "ankane (@ankane)" <noreply+ankane@github.com>
2024-09-19 20:58 ` "ankane (@ankane)" <noreply+ankane@github.com>
2024-09-27 20:54 ` "ankane (@ankane)" <noreply+ankane@github.com>
2024-09-30 19:24 ` "freyfrey01 (@freyfrey01)" <noreply+freyfrey01@github.com>
2024-09-30 20:22 ` "ankane (@ankane)" <noreply+ankane@github.com>
2024-12-23 10:46 ` "VladlenPopolitov (@VladlenPopolitov)" <noreply+VladlenPopolitov@github.com>
2024-12-23 14:42 ` "ankane (@ankane)" <noreply+ankane@github.com>
2024-12-25 17:46 ` "VladlenPopolitov (@VladlenPopolitov)" <noreply+VladlenPopolitov@github.com>
2025-01-01 12:36 ` "andreiramani (@andreiramani)" <noreply+andreiramani@github.com>
2025-01-01 13:51 ` "ankane (@ankane)" <noreply+ankane@github.com>
2025-01-10 09:52 ` "mibaitwo (@mibaitwo)" <noreply+mibaitwo@github.com>
2025-01-10 10:11 ` "andreiramani (@andreiramani)" <noreply+andreiramani@github.com>
2025-01-18 17:01 ` "sanjayk0508 (@sanjayk0508)" <noreply+sanjayk0508@github.com>
2025-02-04 03:20 ` "andreiramani (@andreiramani)" <noreply+andreiramani@github.com>
2025-02-05 06:43 ` "VladlenPopolitov (@VladlenPopolitov)" <noreply+VladlenPopolitov@github.com>
2025-02-05 19:57 ` "ankane (@ankane)" <noreply+ankane@github.com>
2025-02-13 18:04 ` "ankane (@ankane)" <noreply+ankane@github.com>
2025-02-13 18:10 ` "ankane (@ankane)" <noreply+ankane@github.com>
2025-02-14 01:37 ` "andreiramani (@andreiramani)" <noreply+andreiramani@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