git: 704997f3dd64 - main - databases/pgvector: Exclude from i386

From: Torsten Zuehlsdorff <tz_at_FreeBSD.org>
Date: Thu, 13 Jun 2024 11:51:57 UTC
The branch main has been updated by tz:

URL: https://cgit.FreeBSD.org/ports/commit/?id=704997f3dd641c6aa386271dd4f7f869f0bd6bbd

commit 704997f3dd641c6aa386271dd4f7f869f0bd6bbd
Author:     Torsten Zuehlsdorff <tz@FreeBSD.org>
AuthorDate: 2024-06-13 11:50:48 +0000
Commit:     Torsten Zuehlsdorff <tz@FreeBSD.org>
CommitDate: 2024-06-13 11:50:48 +0000

    databases/pgvector: Exclude from i386
    
      It does not compile on i386. Error message is:
    
      In file included from src/halfutils.c:3:
      src/halfutils.h:27:9: error: controlling expression type '_Float16' not compatible with any generic association type
              return isnan(num);
                     ^~~~~~~~~~
      /usr/include/math.h:103:2: note: expanded from macro 'isnan'
              __fp_type_select(x, __inline_isnanf, __inline_isnan, __inline_isnanl)
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      /usr/include/math.h:80:62: note: expanded from macro '__fp_type_select'
      #define __fp_type_select(x, f, d, ld) __extension__ _Generic((x),       \
                                                                   ^~~
      1 error generated.
      gmake: *** [<builtin>: src/halfutils.o] Error 1
      *** Error code 1
    
    Sponsored by:   P. Variablis
---
 databases/pgvector/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/databases/pgvector/Makefile b/databases/pgvector/Makefile
index 430cf36db417..411a8adef0c1 100644
--- a/databases/pgvector/Makefile
+++ b/databases/pgvector/Makefile
@@ -9,6 +9,8 @@ COMMENT=	PostgreSQL extension for vector similarity search
 
 LICENSE=	PostgreSQL
 
+NOT_FOR_ARCHS=		i386
+
 USES=		gmake pgsql:12+
 WANT_PGSQL=	server