pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
[pgvector/pgvector] issue #70: Error building on windows
8+ messages / 5 participants
[nested] [flat]

* [pgvector/pgvector] issue #70: Error building on windows
@ 2023-03-15 10:55  "trrahul (@trrahul)" <noreply+trrahul@github.com>
  0 siblings, 0 replies; 8+ messages in thread

From: trrahul (@trrahul) @ 2023-03-15 10:55 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

Steps
1. Clone the repo
2. Launch the VS Developer command prompt
3. Run nmake /F Makefile.win




```

Microsoft (R) Program Maintenance Utility Version 14.35.32215.0
Copyright (C) Microsoft Corporation.  All rights reserved.

        cl /nologo /I"C:\Program Files\PostgreSQL\15\include\server\port\win32_msvc" /I"C:\Program Files\PostgreSQL\15\include\server\port\win32" /I"C:\Program Files\PostgreSQL\15\include\server" /I"C:\Program Files\PostgreSQL\15\include"   /O2 /fp:fast src\ivfbuild.obj src\ivfflat.obj src\ivfinsert.obj src\ivfkmeans.obj src\ivfscan.obj src\ivfutils.obj src\ivfvacuum.obj src\vector.obj "C:\Program Files\PostgreSQL\15\lib\postgres.lib" /link /DLL /OUT:vector.dll
   Creating library vector.lib and object vector.exp
ivfbuild.obj : error LNK2019: unresolved external symbol _pgwin32_dispatch_queued_signals referenced in function _InsertTuples
ivfkmeans.obj : error LNK2001: unresolved external symbol _pgwin32_dispatch_queued_signals
vector.obj : error LNK2001: unresolved external symbol _errstart
ivfbuild.obj : error LNK2001: unresolved external symbol _errstart
ivfinsert.obj : error LNK2001: unresolved external symbol _errstart
ivfkmeans.obj : error LNK2001: unresolved external symbol _errstart
ivfscan.obj : error LNK2001: unresolved external symbol _errstart
vector.obj : error LNK2001: unresolved external symbol _errfinish
ivfbuild.obj : error LNK2001: unresolved external symbol _errfinish
ivfinsert.obj : error LNK2001: unresolved external symbol _errfinish
ivfkmeans.obj : error LNK2001: unresolved external symbol _errfinish
ivfscan.obj : error LNK2001: unresolved external symbol _errfinish
vector.obj : error LNK2001: unresolved external symbol _errmsg_internal
ivfbuild.obj : error LNK2001: unresolved external symbol _errmsg_internal
ivfinsert.obj : error LNK2001: unresolved external symbol _errmsg_internal
ivfkmeans.obj : error LNK2001: unresolved external symbol _errmsg_internal
ivfscan.obj : error LNK2001: unresolved external symbol _errmsg_internal
vector.obj : error LNK2001: unresolved external symbol _palloc
ivfbuild.obj : error LNK2001: unresolved external symbol _palloc
ivfkmeans.obj : error LNK2001: unresolved external symbol _palloc
ivfscan.obj : error LNK2001: unresolved external symbol _palloc
ivfutils.obj : error LNK2001: unresolved external symbol _palloc
ivfbuild.obj : error LNK2019: unresolved external symbol _palloc0 referenced in function _InitBuildState
ivfutils.obj : error LNK2001: unresolved external symbol _palloc0
ivfvacuum.obj : error LNK2001: unresolved external symbol _palloc0
vector.obj : error LNK2001: unresolved external symbol _palloc0
vector.obj : error LNK2001: unresolved external symbol _pfree
ivfbuild.obj : error LNK2001: unresolved external symbol _pfree
ivfkmeans.obj : error LNK2001: unresolved external symbol _pfree
ivfscan.obj : error LNK2001: unresolved external symbol _pfree
ivfutils.obj : error LNK2001: unresolved external symbol _pfree
ivfbuild.obj : error LNK2019: unresolved external symbol _CreateTemplateTupleDesc referenced in function _InitBuildState
ivfscan.obj : error LNK2001: unresolved external symbol _CreateTemplateTupleDesc
ivfbuild.obj : error LNK2019: unresolved external symbol _TupleDescInitEntry referenced in function _InitBuildState
ivfscan.obj : error LNK2001: unresolved external symbol _TupleDescInitEntry
ivfbuild.obj : error LNK2019: unresolved external symbol _PageAddItemExtended referenced in function _BuildIndex
ivfinsert.obj : error LNK2001: unresolved external symbol _PageAddItemExtended
ivfbuild.obj : error LNK2019: unresolved external symbol _PageGetFreeSpace referenced in function _BuildIndex
ivfinsert.obj : error LNK2001: unresolved external symbol _PageGetFreeSpace
ivfbuild.obj : error LNK2019: unresolved external symbol _MakeSingleTupleTableSlot referenced in function _InitBuildState
ivfscan.obj : error LNK2001: unresolved external symbol _MakeSingleTupleTableSlot
ivfbuild.obj : error LNK2019: unresolved external symbol _ExecStoreVirtualTuple referenced in function _AddTupleToSort
ivfscan.obj : error LNK2001: unresolved external symbol _ExecStoreVirtualTuple
ivfbuild.obj : error LNK2019: unresolved external symbol _slot_getsomeattrs_int referenced in function _GetNextTuple
ivfscan.obj : error LNK2001: unresolved external symbol _slot_getsomeattrs_int
ivfbuild.obj : error LNK2019: unresolved external symbol _pg_detoast_datum referenced in function _AddSample
ivfinsert.obj : error LNK2001: unresolved external symbol _pg_detoast_datum
ivfutils.obj : error LNK2001: unresolved external symbol _pg_detoast_datum
vector.obj : error LNK2001: unresolved external symbol _pg_detoast_datum
ivfbuild.obj : error LNK2019: unresolved external symbol _FunctionCall2Coll referenced in function _AddTupleToSort
ivfinsert.obj : error LNK2001: unresolved external symbol _FunctionCall2Coll
ivfkmeans.obj : error LNK2001: unresolved external symbol _FunctionCall2Coll
ivfscan.obj : error LNK2001: unresolved external symbol _FunctionCall2Coll
ivfbuild.obj : error LNK2019: unresolved external symbol _index_form_tuple referenced in function _GetNextTuple
ivfinsert.obj : error LNK2001: unresolved external symbol _index_form_tuple
ivfbuild.obj : error LNK2019: unresolved external symbol _tuplesort_begin_heap referenced in function _BuildIndex
ivfscan.obj : error LNK2001: unresolved external symbol _tuplesort_begin_heap
ivfbuild.obj : error LNK2019: unresolved external symbol _tuplesort_puttupleslot referenced in function _AddTupleToSort
ivfscan.obj : error LNK2001: unresolved external symbol _tuplesort_puttupleslot
ivfbuild.obj : error LNK2019: unresolved external symbol _tuplesort_performsort referenced in function _BuildIndex
ivfscan.obj : error LNK2001: unresolved external symbol _tuplesort_performsort
ivfbuild.obj : error LNK2019: unresolved external symbol _tuplesort_gettupleslot referenced in function _GetNextTuple
ivfscan.obj : error LNK2001: unresolved external symbol _tuplesort_gettupleslot
ivfbuild.obj : error LNK2019: unresolved external symbol _tuplesort_end referenced in function _BuildIndex
ivfscan.obj : error LNK2001: unresolved external symbol _tuplesort_end
ivfbuild.obj : error LNK2019: unresolved external symbol _BuildIndexInfo referenced in function _ivfflatbuildempty
ivfutils.obj : error LNK2001: unresolved external symbol _index_getprocinfo
ivfbuild.obj : error LNK2001: unresolved external symbol _index_getprocinfo
ivfinsert.obj : error LNK2001: unresolved external symbol _index_getprocinfo
ivfkmeans.obj : error LNK2001: unresolved external symbol _index_getprocinfo
ivfscan.obj : error LNK2001: unresolved external symbol _index_getprocinfo
ivfbuild.obj : error LNK2019: unresolved external symbol _pg_prng_uint32 referenced in function _BuildIndex
ivfkmeans.obj : error LNK2001: unresolved external symbol _pg_prng_uint32
ivfbuild.obj : error LNK2019: unresolved external symbol _sampler_random_fract referenced in function _AddSample
ivfbuild.obj : error LNK2019: unresolved external symbol _BlockSampler_Init referenced in function _BuildIndex
ivfbuild.obj : error LNK2019: unresolved external symbol _BlockSampler_HasMore referenced in function _BuildIndex
ivfbuild.obj : error LNK2019: unresolved external symbol _BlockSampler_Next referenced in function _BuildIndex
ivfbuild.obj : error LNK2019: unresolved external symbol _reservoir_init_selection_state referenced in function _BuildIndex
ivfbuild.obj : error LNK2019: unresolved external symbol _reservoir_get_next_S referenced in function _AddSample
ivfbuild.obj : error LNK2019: unresolved external symbol _ProcessInterrupts referenced in function _InsertTuples
ivfkmeans.obj : error LNK2001: unresolved external symbol _ProcessInterrupts
ivfbuild.obj : error LNK2019: unresolved external symbol _BufferGetBlockNumber referenced in function _BuildIndex
ivfinsert.obj : error LNK2001: unresolved external symbol _BufferGetBlockNumber
ivfutils.obj : error LNK2001: unresolved external symbol _BufferGetBlockNumber
ivfbuild.obj : error LNK2019: unresolved external symbol _RelationGetNumberOfBlocksInFork referenced in function _BuildIndex
ivfvacuum.obj : error LNK2001: unresolved external symbol _RelationGetNumberOfBlocksInFork
ivfbuild.obj : error LNK2019: unresolved external symbol _MemoryContextReset referenced in function _BuildCallback
ivfbuild.obj : error LNK2019: unresolved external symbol _MemoryContextDelete referenced in function _BuildIndex
ivfinsert.obj : error LNK2001: unresolved external symbol _MemoryContextDelete
ivfbuild.obj : error LNK2019: unresolved external symbol _AllocSetContextCreateInternal referenced in function _InitBuildState
ivfinsert.obj : error LNK2001: unresolved external symbol _AllocSetContextCreateInternal
ivfbuild.obj : error LNK2019: unresolved external symbol _pgstat_progress_update_param referenced in function _BuildIndex
ivfbuild.obj : error LNK2019: unresolved external symbol __imp__pg_signal_queue referenced in function _InsertTuples
ivfkmeans.obj : error LNK2001: unresolved external symbol __imp__pg_signal_queue
ivfbuild.obj : error LNK2019: unresolved external symbol __imp__pg_signal_mask referenced in function _InsertTuples
ivfkmeans.obj : error LNK2001: unresolved external symbol __imp__pg_signal_mask
ivfbuild.obj : error LNK2019: unresolved external symbol __imp__CurrentMemoryContext referenced in function _BuildCallback
ivfflat.obj : error LNK2001: unresolved external symbol __imp__CurrentMemoryContext
ivfinsert.obj : error LNK2001: unresolved external symbol __imp__CurrentMemoryContext
ivfbuild.obj : error LNK2019: unresolved external symbol __imp__TTSOpsVirtual referenced in function _InitBuildState
ivfscan.obj : error LNK2001: unresolved external symbol __imp__TTSOpsVirtual
ivfbuild.obj : error LNK2019: unresolved external symbol __imp__TTSOpsMinimalTuple referenced in function _InsertTuples
ivfscan.obj : error LNK2001: unresolved external symbol __imp__TTSOpsMinimalTuple
ivfbuild.obj : error LNK2019: unresolved external symbol __imp__pg_global_prng_state referenced in function _BuildIndex
ivfkmeans.obj : error LNK2001: unresolved external symbol __imp__pg_global_prng_state
ivfbuild.obj : error LNK2019: unresolved external symbol __imp__InterruptPending referenced in function _InsertTuples
ivfkmeans.obj : error LNK2001: unresolved external symbol __imp__InterruptPending
ivfbuild.obj : error LNK2019: unresolved external symbol __imp__maintenance_work_mem referenced in function _BuildIndex
ivfkmeans.obj : error LNK2001: unresolved external symbol __imp__maintenance_work_mem
ivfflat.obj : error LNK2019: unresolved external symbol _MemoryContextAllocZeroAligned referenced in function _ivfflathandler
ivfflat.obj : error LNK2019: unresolved external symbol _index_open referenced in function _ivfflatcostestimate
ivfflat.obj : error LNK2019: unresolved external symbol _index_close referenced in function _ivfflatcostestimate
ivfflat.obj : error LNK2019: unresolved external symbol _add_reloption_kind referenced in function __PG_init
ivfflat.obj : error LNK2019: unresolved external symbol _add_int_reloption referenced in function __PG_init
ivfflat.obj : error LNK2019: unresolved external symbol _build_reloptions referenced in function _ivfflatoptions
ivfflat.obj : error LNK2019: unresolved external symbol _DefineCustomIntVariable referenced in function __PG_init
ivfflat.obj : error LNK2019: unresolved external symbol _genericcostestimate referenced in function _ivfflatcostestimate
ivfflat.obj : error LNK2019: unresolved external symbol __imp__newNodeMacroHolder referenced in function _ivfflathandler
ivfinsert.obj : error LNK2019: unresolved external symbol _GenericXLogStart referenced in function _InsertTuple
ivfutils.obj : error LNK2001: unresolved external symbol _GenericXLogStart
ivfvacuum.obj : error LNK2001: unresolved external symbol _GenericXLogStart
ivfinsert.obj : error LNK2019: unresolved external symbol _GenericXLogRegisterBuffer referenced in function _InsertTuple
ivfutils.obj : error LNK2001: unresolved external symbol _GenericXLogRegisterBuffer
ivfvacuum.obj : error LNK2001: unresolved external symbol _GenericXLogRegisterBuffer
ivfinsert.obj : error LNK2019: unresolved external symbol _GenericXLogFinish referenced in function _InsertTuple
ivfutils.obj : error LNK2001: unresolved external symbol _GenericXLogFinish
ivfvacuum.obj : error LNK2001: unresolved external symbol _GenericXLogFinish
ivfinsert.obj : error LNK2019: unresolved external symbol _GenericXLogAbort referenced in function _InsertTuple
ivfutils.obj : error LNK2001: unresolved external symbol _GenericXLogAbort
ivfvacuum.obj : error LNK2001: unresolved external symbol _GenericXLogAbort
ivfinsert.obj : error LNK2019: unresolved external symbol _ReadBuffer referenced in function _FindInsertPage
ivfscan.obj : error LNK2001: unresolved external symbol _ReadBuffer
ivfvacuum.obj : error LNK2001: unresolved external symbol _ReadBuffer
ivfinsert.obj : error LNK2019: unresolved external symbol _UnlockReleaseBuffer referenced in function _FindInsertPage
ivfscan.obj : error LNK2001: unresolved external symbol _UnlockReleaseBuffer
ivfutils.obj : error LNK2001: unresolved external symbol _UnlockReleaseBuffer
ivfvacuum.obj : error LNK2001: unresolved external symbol _UnlockReleaseBuffer
ivfinsert.obj : error LNK2019: unresolved external symbol _MarkBufferDirty referenced in function _InsertTuple
ivfutils.obj : error LNK2001: unresolved external symbol _MarkBufferDirty
ivfvacuum.obj : error LNK2001: unresolved external symbol _MarkBufferDirty
ivfinsert.obj : error LNK2019: unresolved external symbol _LockBuffer referenced in function _FindInsertPage
ivfscan.obj : error LNK2001: unresolved external symbol _LockBuffer
ivfutils.obj : error LNK2001: unresolved external symbol _LockBuffer
ivfvacuum.obj : error LNK2001: unresolved external symbol _LockBuffer
ivfinsert.obj : error LNK2019: unresolved external symbol __imp__BufferBlocks referenced in function _FindInsertPage
ivfscan.obj : error LNK2001: unresolved external symbol __imp__BufferBlocks
ivfvacuum.obj : error LNK2001: unresolved external symbol __imp__BufferBlocks
ivfinsert.obj : error LNK2019: unresolved external symbol __imp__LocalBufferBlockPointers referenced in function _FindInsertPage
ivfscan.obj : error LNK2001: unresolved external symbol __imp__LocalBufferBlockPointers
ivfvacuum.obj : error LNK2001: unresolved external symbol __imp__LocalBufferBlockPointers
ivfkmeans.obj : error LNK2019: unresolved external symbol _pg_qsort referenced in function _CheckCenters
ivfkmeans.obj : error LNK2019: unresolved external symbol _errcode referenced in function _ElkanKmeans
vector.obj : error LNK2001: unresolved external symbol _errcode
ivfkmeans.obj : error LNK2019: unresolved external symbol _errmsg referenced in function _ElkanKmeans
vector.obj : error LNK2001: unresolved external symbol _errmsg
ivfkmeans.obj : error LNK2019: unresolved external symbol _palloc_extended referenced in function _ElkanKmeans
ivfutils.obj : error LNK2001: unresolved external symbol _palloc_extended
ivfkmeans.obj : error LNK2019: unresolved external symbol _FunctionCall1Coll referenced in function _ApplyNorm
ivfutils.obj : error LNK2001: unresolved external symbol _FunctionCall1Coll
ivfkmeans.obj : error LNK2019: unresolved external symbol _pg_prng_double referenced in function _ElkanKmeans
ivfscan.obj : error LNK2019: unresolved external symbol _nocache_index_getattr referenced in function _GetScanItems
ivfscan.obj : error LNK2019: unresolved external symbol _pairingheap_allocate referenced in function _ivfflatbeginscan
ivfscan.obj : error LNK2019: unresolved external symbol _pairingheap_free referenced in function _ivfflatendscan
ivfscan.obj : error LNK2019: unresolved external symbol _pairingheap_add referenced in function _GetScanLists
ivfscan.obj : error LNK2019: unresolved external symbol _pairingheap_first referenced in function _GetScanLists
ivfscan.obj : error LNK2019: unresolved external symbol _pairingheap_remove_first referenced in function _GetScanItems
ivfscan.obj : error LNK2019: unresolved external symbol _RelationGetIndexScan referenced in function _ivfflatbeginscan
ivfscan.obj : error LNK2019: unresolved external symbol _tuplesort_reset referenced in function _ivfflatrescan
ivfscan.obj : error LNK2019: unresolved external symbol _pgstat_assoc_relation referenced in function _ivfflatgettuple
ivfscan.obj : error LNK2019: unresolved external symbol _ReadBufferExtended referenced in function _GetScanItems
ivfutils.obj : error LNK2001: unresolved external symbol _ReadBufferExtended
ivfvacuum.obj : error LNK2001: unresolved external symbol _ReadBufferExtended
ivfscan.obj : error LNK2019: unresolved external symbol _ReleaseBuffer referenced in function _ivfflatendscan
ivfscan.obj : error LNK2019: unresolved external symbol _GetAccessStrategy referenced in function _GetScanItems
ivfvacuum.obj : error LNK2001: unresolved external symbol _GetAccessStrategy
ivfscan.obj : error LNK2019: unresolved external symbol __imp__work_mem referenced in function _ivfflatbeginscan
ivfutils.obj : error LNK2019: unresolved external symbol _PageInit referenced in function _IvfflatAppendPage
ivfutils.obj : error LNK2019: unresolved external symbol _index_getprocid referenced in function _IvfflatOptionalProcInfo
ivfvacuum.obj : error LNK2019: unresolved external symbol _vacuum_delay_point referenced in function _ivfflatbulkdelete
ivfvacuum.obj : error LNK2019: unresolved external symbol _PageIndexMultiDelete referenced in function _ivfflatbulkdelete
ivfvacuum.obj : error LNK2019: unresolved external symbol _LockBufferForCleanup referenced in function _ivfflatbulkdelete
vector.obj : error LNK2019: unresolved external symbol _errdetail referenced in function _vector_in
vector.obj : error LNK2019: unresolved external symbol _DirectFunctionCall1Coll referenced in function _array_to_vector
vector.obj : error LNK2019: unresolved external symbol _initStringInfo referenced in function _PrintVector
vector.obj : error LNK2019: unresolved external symbol _appendStringInfoString referenced in function _PrintVector
vector.obj : error LNK2019: unresolved external symbol _appendStringInfoChar referenced in function _PrintVector
vector.obj : error LNK2019: unresolved external symbol _enlargeStringInfo referenced in function _pq_sendint
vector.obj : error LNK2019: unresolved external symbol _pq_sendfloat4 referenced in function _vector_send
vector.obj : error LNK2019: unresolved external symbol _pq_begintypsend referenced in function _vector_send
vector.obj : error LNK2019: unresolved external symbol _pq_endtypsend referenced in function _vector_send
vector.obj : error LNK2019: unresolved external symbol _pq_getmsgint referenced in function _vector_recv
vector.obj : error LNK2019: unresolved external symbol _pq_getmsgfloat4 referenced in function _vector_recv
vector.obj : error LNK2019: unresolved external symbol _construct_array referenced in function _vector_accum
vector.obj : error LNK2019: unresolved external symbol _deconstruct_array referenced in function _array_to_vector
vector.obj : error LNK2019: unresolved external symbol _ArrayGetIntegerTypmods referenced in function _vector_typmod_in
vector.obj : error LNK2019: unresolved external symbol _numeric_float4 referenced in function _array_to_vector
vector.obj : error LNK2019: unresolved external symbol _get_typlenbyvalalign referenced in function _array_to_vector
vector.obj : error LNK2019: unresolved external symbol _float_to_shortest_decimal_bufn referenced in function _vector_out
vector.obj : error LNK2019: unresolved external symbol _float_overflow_error referenced in function _vector_accum
vector.obj : error LNK2019: unresolved external symbol _float8out_internal referenced in function _PrintVector
C:\Program Files\PostgreSQL\15\lib\postgres.lib : warning LNK4272: library machine type 'x64' conflicts with target machine type 'x86'
vector.dll : fatal error LNK1120: 108 unresolved externals
NMAKE : fatal error U1077: 'cl /nologo /I"C:\Program Files\PostgreSQL\15\include\server\port\win32_msvc" /I"C:\Program Files\PostgreSQL\15\include\server\port\win32" /I"C:\Program Files\PostgreSQL\15\include\server" /I"C:\Program Files\PostgreSQL\15\include"   /O2 /fp:fast src\ivfbuild.obj src\ivfflat.obj src\ivfinsert.obj src\ivfkmeans.obj src\ivfscan.obj src\ivfutils.obj src\ivfvacuum.obj src\vector.obj "C:\Program Files\PostgreSQL\15\lib\postgres.lib" /link /DLL /OUT:vector.dll' : return code '0x2'
Stop.
```

^ permalink  raw  [nested|flat] 8+ messages in thread

* Re: [pgvector/pgvector] issue #70: Error building on windows
@ 2023-03-15 18:20  "ankane (@ankane)" <noreply+ankane@github.com>
  6 siblings, 0 replies; 8+ messages in thread

From: ankane (@ankane) @ 2023-03-15 18:20 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

Hey @trrahul, thinking it may be related to this warning: `library machine type 'x64' conflicts with target machine type 'x86'`. I'd confirm it's building for x64. Windows support is only experimental at this point, so you'll need to run with it from here.

^ permalink  raw  [nested|flat] 8+ messages in thread

* Re: [pgvector/pgvector] issue #70: Error building on windows
@ 2023-03-15 18:20  "ankane (@ankane)" <noreply+ankane@github.com>
  6 siblings, 0 replies; 8+ messages in thread

From: ankane (@ankane) @ 2023-03-15 18:20 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

@ankane closed this.

^ permalink  raw  [nested|flat] 8+ messages in thread

* Re: [pgvector/pgvector] issue #70: Error building on windows
@ 2023-03-16 10:29  "trrahul (@trrahul)" <noreply+trrahul@github.com>
  6 siblings, 0 replies; 8+ messages in thread

From: trrahul (@trrahul) @ 2023-03-16 10:29 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

Thanks, using x64 Native Tools Command Prompt fixed the issue.

^ permalink  raw  [nested|flat] 8+ messages in thread

* Re: [pgvector/pgvector] issue #70: Error building on windows
@ 2023-03-16 16:37  "ankane (@ankane)" <noreply+ankane@github.com>
  6 siblings, 0 replies; 8+ messages in thread

From: ankane (@ankane) @ 2023-03-16 16:37 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

Great, thanks for following up.

^ permalink  raw  [nested|flat] 8+ messages in thread

* Re: [pgvector/pgvector] issue #70: Error building on windows
@ 2024-12-03 10:18  "okutbay (@okutbay)" <noreply+okutbay@github.com>
  6 siblings, 0 replies; 8+ messages in thread

From: okutbay (@okutbay) @ 2024-12-03 10:18 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

Hello mates, I am having the same problem, and using x64 Native Tools Command Prompt did not fixed the issue for me? 
Also tried running nmake after running vcvars64.bat but no luck.

What might I have been missing? Thanks in advance.

![2024-12-03 13_15_34-x64 Native Tools Command Prompt for VS 2022 (2)](https://github.com/user-attachments/assets/20564625-3b59-485a-b094-c31cfea385f6)


^ permalink  raw  [nested|flat] 8+ messages in thread

* Re: [pgvector/pgvector] issue #70: Error building on windows
@ 2025-01-25 17:11  "rokbenko (@rokbenko)" <noreply+rokbenko@github.com>
  6 siblings, 0 replies; 8+ messages in thread

From: rokbenko (@rokbenko) @ 2025-01-25 17:11 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

@ankane I have an **identical** issue as @okutbay.

Using the x64 Native Tools Command Prompt for VS 2022 doesn't solve the issue. I'm still getting the `module machine type 'x64' conflicts with target machine type 'x86'` error.

I didn't include a screenshot because it's identical to the one above posted by @okutbay.

How do I solve this?

^ permalink  raw  [nested|flat] 8+ messages in thread

* Re: [pgvector/pgvector] issue #70: Error building on windows
@ 2025-02-20 21:51  "LZQCN (@LZQCN)" <noreply+LZQCN@github.com>
  6 siblings, 0 replies; 8+ messages in thread

From: LZQCN (@LZQCN) @ 2025-02-20 21:51 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>


If you have encountered the issue `library machine type 'x64' conflicts with target machine type 'x86'`, then you should delete the local pgvector repository. Next, find the x64 Native Tools Command Prompt for VS 2022 in the Start menu, and open it with **administrative privileges**.

like this lnk file:
```
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Visual Studio 2022\Visual Studio Tools\VC\x64 Native Tools Command Prompt for VS 2022.lnk
```

Then clone pgvector repository and execute the installation command again.

^ permalink  raw  [nested|flat] 8+ messages in thread


end of thread, other threads:[~2025-02-20 21:51 UTC | newest]

Thread overview: 8+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2023-03-15 10:55 [pgvector/pgvector] issue #70: Error building on windows "trrahul (@trrahul)" <noreply+trrahul@github.com>
2023-03-15 18:20 ` "ankane (@ankane)" <noreply+ankane@github.com>
2023-03-15 18:20 ` "ankane (@ankane)" <noreply+ankane@github.com>
2023-03-16 10:29 ` "trrahul (@trrahul)" <noreply+trrahul@github.com>
2023-03-16 16:37 ` "ankane (@ankane)" <noreply+ankane@github.com>
2024-12-03 10:18 ` "okutbay (@okutbay)" <noreply+okutbay@github.com>
2025-01-25 17:11 ` "rokbenko (@rokbenko)" <noreply+rokbenko@github.com>
2025-02-20 21:51 ` "LZQCN (@LZQCN)" <noreply+LZQCN@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