[package - 140arm64-default][databases/pgvector] Failed for postgresql15-pgvector-0.7.2 in build

From: <pkg-fallout_at_FreeBSD.org>
Date: Sun, 23 Jun 2024 03:28:28 UTC
You are receiving this mail as a port that you maintain
is failing to build on the FreeBSD package build server.
Please investigate the failure and submit a PR to fix
build.

Maintainer:     tz@FreeBSD.org
Log URL:        https://pkg-status.freebsd.org/ampere3/data/140arm64-default/95a8887627ca/logs/postgresql15-pgvector-0.7.2.log
Build URL:      https://pkg-status.freebsd.org/ampere3/build.html?mastername=140arm64-default&build=95a8887627ca
Log:

=>> Building databases/pgvector
build started at Sun Jun 23 03:28:16 UTC 2024
port directory: /usr/ports/databases/pgvector
package name: postgresql15-pgvector-0.7.2
building for: FreeBSD 140arm64-default-job-08 14.0-RELEASE-p6 FreeBSD 14.0-RELEASE-p6 arm64
maintained by: tz@FreeBSD.org
Makefile datestamp: -rw-r--r--  1 root wheel 502 Jun 16 01:05 /usr/ports/databases/pgvector/Makefile
Ports top last git commit: 95a8887627c
Ports top unclean checkout: no
Port dir last git commit: 489a66d3687
Port dir unclean checkout: no
Poudriere version: poudriere-git-3.4.1-30-g79e3edcd
Host OSVERSION: 1500018
Jail OSVERSION: 1400097
Job Id: 08

---Begin Environment---
SHELL=/bin/sh
OSVERSION=1400097
UNAME_v=FreeBSD 14.0-RELEASE-p6
UNAME_r=14.0-RELEASE-p6
BLOCKSIZE=K
MAIL=/var/mail/root
MM_CHARSET=UTF-8
LANG=C.UTF-8
STATUS=1
HOME=/root
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
MAKE_OBJDIR_CHECK_WRITABLE=0
LOCALBASE=/usr/local
USER=root
POUDRIERE_NAME=poudriere-git
LIBEXECPREFIX=/usr/local/libexec/poudriere
POUDRIERE_VERSION=3.4.1-30-g79e3edcd
MASTERMNT=/usr/local/poudriere/data/.m/140arm64-default/ref
LC_COLLATE=C
POUDRIERE_BUILD_TYPE=bulk
PACKAGE_BUILDING=yes
SAVED_TERM=
OUTPUT_REDIRECTED_STDERR=4
OUTPUT_REDIRECTED=1
PWD=/usr/local/poudriere/data/.m/140arm64-default/08/.p
OUTPUT_REDIRECTED_STDOUT=3
P_PORTS_FEATURES=FLAVORS SUBPACKAGES SELECTED_OPTIONS
MASTERNAME=140arm64-default
SCRIPTPREFIX=/usr/local/share/poudriere
SCRIPTNAME=bulk.sh
OLDPWD=/usr/local/poudriere/data/.m/140arm64-default/ref/.p/pool
POUDRIERE_PKGNAME=poudriere-git-3.4.1-30-g79e3edcd
SCRIPTPATH=/usr/local/share/poudriere/bulk.sh
POUDRIEREPATH=/usr/local/bin/poudriere
---End Environment---

---Begin Poudriere Port Flags/Env---
PORT_FLAGS=
PKGENV=
FLAVOR=
MAKE_ARGS=
---End Poudriere Port Flags/Env---

---Begin OPTIONS List---
---End OPTIONS List---

--MAINTAINER--
tz@FreeBSD.org
--End MAINTAINER--

--CONFIGURE_ARGS--

--End CONFIGURE_ARGS--

--CONFIGURE_ENV--
MAKE=gmake XDG_DATA_HOME=/wrkdirs/usr/ports/databases/pgvector/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/databases/pgvector/work  XDG_CACHE_HOME=/wrkdirs/usr/ports/databases/pgvector/work/.cache  HOME=/wrkdirs/usr/ports/databases/pgvector/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/databases/pgvector/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/databases/pgvector/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig SHELL=/bin/sh CONFIG_SHELL=/bin/sh
--End CONFIGURE_ENV--

--MAKE_ENV--
USE_PGXS=1 XDG_DATA_HOME=/wrkdirs/usr/ports/databases/pgvector/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/databases/pgvector/work  XDG_CACHE_HOME=/wrkdirs/usr/ports/databases/pgvector/work/.cache  HOME=/wrkdirs/usr/ports/databases/pgvector/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/databases/pgvector/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/databases/pgvector/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local  LOCALBASE=/usr/local  CC="cc" CFLAGS="-O2 -pipe  -fstack-protector-strong -fno-strict-aliasing "  CPP="cpp" CPPFLAGS="-I/usr/local/include"  LDFLAGS=" -L/usr/local/lib -fstack-protector-strong " LIBS=""  CXX="c++" CXXFLAGS="-O2 -pipe -fstack-protector-strong -fno-strict-aliasing  " BSD_INSTALL_PROGRAM="install  -s -m 555"  BSD_INSTALL_LIB="install  -s -m 0644"  BSD_INSTA
LL_SCRIPT="install  -m 555"  BSD_INSTALL_DATA="install  -m 0644"  BSD_INSTALL_MAN="install  -m 444"
--End MAKE_ENV--

--PLIST_SUB--
OSREL=14.0 PREFIX=%D LOCALBASE=/usr/local  RESETPREFIX=/usr/local LIB32DIR=lib DOCSDIR="share/doc/pgvector"  EXAMPLESDIR="share/examples/pgvector"  DATADIR="share/pgvector"  WWWDIR="www/pgvector"  ETCDIR="etc/pgvector"
--End PLIST_SUB--

--SUB_LIST--
PREFIX=/usr/local LOCALBASE=/usr/local  DATADIR=/usr/local/share/pgvector DOCSDIR=/usr/local/share/doc/pgvector EXAMPLESDIR=/usr/local/share/examples/pgvector  WWWDIR=/usr/local/www/pgvector ETCDIR=/usr/local/etc/pgvector
--End SUB_LIST--

---Begin make.conf---
USE_PACKAGE_DEPENDS=yes
BATCH=yes
WRKDIRPREFIX=/wrkdirs
PORTSDIR=/usr/ports
PACKAGES=/packages
DISTDIR=/distfiles
PACKAGE_BUILDING=yes
PACKAGE_BUILDING_FLAVORS=yes
####  ####
# XXX: We really need this but cannot use it while 'make checksum' does not
# try the next mirror on checksum failure.  It currently retries the same
# failed mirror and then fails rather then trying another.  It *does*
# try the next if the size is mismatched though.
#MASTER_SITE_FREEBSD=yes
# Build ALLOW_MAKE_JOBS_PACKAGES with 3 jobs
MAKE_JOBS_NUMBER=3
#### Misc Poudriere ####
.include "/etc/make.conf.ports_env"
GID=0
UID=0
---End make.conf---
--Resource limits--
cpu time               (seconds, -t)  unlimited
file size           (512-blocks, -f)  unlimited
data seg size           (kbytes, -d)  1048576
stack size              (kbytes, -s)  1048576
core file size      (512-blocks, -c)  unlimited
max memory size         (kbytes, -m)  unlimited
locked memory           (kbytes, -l)  unlimited
max user processes              (-u)  89999
open files                      (-n)  8192
virtual mem size        (kbytes, -v)  unlimited
swap limit              (kbytes, -w)  unlimited
socket buffer size       (bytes, -b)  unlimited
pseudo-terminals                (-p)  unlimited
kqueues                         (-k)  unlimited
umtx shared locks               (-o)  unlimited
--End resource limits--
=======================<phase: check-sanity   >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  License PostgreSQL accepted by the user
===========================================================================
=======================<phase: pkg-depends    >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===>   postgresql15-pgvector-0.7.2 depends on file: /usr/local/sbin/pkg - not found
===>   Installing existing package /packages/All/pkg-1.21.3.pkg
[140arm64-default-job-08] Installing pkg-1.21.3...
[140arm64-default-job-08] Extracting pkg-1.21.3: .......... done
===>   postgresql15-pgvector-0.7.2 depends on file: /usr/local/sbin/pkg - found
===>   Returning to build of postgresql15-pgvector-0.7.2
===========================================================================
=======================<phase: fetch-depends  >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===========================================================================
=======================<phase: fetch          >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  License PostgreSQL accepted by the user
===> Fetching all distfiles required by postgresql15-pgvector-0.7.2 for building
===========================================================================
=======================<phase: checksum       >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  License PostgreSQL accepted by the user
===> Fetching all distfiles required by postgresql15-pgvector-0.7.2 for building
=> SHA256 Checksum OK for pgvector-pgvector-v0.7.2_GH0.tar.gz.
===========================================================================
=======================<phase: extract-depends>============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===========================================================================
=======================<phase: extract        >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  License PostgreSQL accepted by the user
===> Fetching all distfiles required by postgresql15-pgvector-0.7.2 for building
===>  Extracting for postgresql15-pgvector-0.7.2
=> SHA256 Checksum OK for pgvector-pgvector-v0.7.2_GH0.tar.gz.
===========================================================================
=======================<phase: patch-depends  >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===========================================================================
=======================<phase: patch          >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  Patching for postgresql15-pgvector-0.7.2
===========================================================================
=======================<phase: build-depends  >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===>   postgresql15-pgvector-0.7.2 depends on package: gmake>=4.4.1 - not found
===>   Installing existing package /packages/All/gmake-4.4.1.pkg
[140arm64-default-job-08] Installing gmake-4.4.1...
[140arm64-default-job-08] `-- Installing gettext-runtime-0.22.5...
[140arm64-default-job-08] |   `-- Installing indexinfo-0.3.1...
[140arm64-default-job-08] |   `-- Extracting indexinfo-0.3.1: .... done
[140arm64-default-job-08] `-- Extracting gettext-runtime-0.22.5: .......... done
[140arm64-default-job-08] Extracting gmake-4.4.1: .......... done
===>   postgresql15-pgvector-0.7.2 depends on package: gmake>=4.4.1 - found
===>   Returning to build of postgresql15-pgvector-0.7.2
===>   postgresql15-pgvector-0.7.2 depends on executable: postgres - not found
===>   Installing existing package /packages/All/postgresql15-server-15.7.pkg
[140arm64-default-job-08] Installing postgresql15-server-15.7...
[140arm64-default-job-08] `-- Installing icu-74.2_1,1...
[140arm64-default-job-08] `-- Extracting icu-74.2_1,1: .......... done
[140arm64-default-job-08] `-- Installing liblz4-1.9.4_1,1...
[140arm64-default-job-08] `-- Extracting liblz4-1.9.4_1,1: .......... done
[140arm64-default-job-08] `-- Installing llvm15-15.0.7_10...
[140arm64-default-job-08] |   `-- Installing libedit-3.1.20240517,1...
[140arm64-default-job-08] |   `-- Extracting libedit-3.1.20240517,1: .......... done
[140arm64-default-job-08] |   `-- Installing lua53-5.3.6_1...
[140arm64-default-job-08] |   `-- Extracting lua53-5.3.6_1: .......... done
[140arm64-default-job-08] |   `-- Installing perl5-5.36.3_1...
[140arm64-default-job-08] |   `-- Extracting perl5-5.36.3_1: .......... done
[140arm64-default-job-08] |   `-- Installing python311-3.11.9...
[140arm64-default-job-08] |   | `-- Installing libffi-3.4.6...
[140arm64-default-job-08] |   | `-- Extracting libffi-3.4.6: .......... done
[140arm64-default-job-08] |   | `-- Installing mpdecimal-4.0.0...
[140arm64-default-job-08] |   | `-- Extracting mpdecimal-4.0.0: .......... done
[140arm64-default-job-08] |   | `-- Installing readline-8.2.10...
[140arm64-default-job-08] |   | `-- Extracting readline-8.2.10: .......... done
[140arm64-default-job-08] |   `-- Extracting python311-3.11.9: .......... done
[140arm64-default-job-08] |   `-- Installing zstd-1.5.6...
[140arm64-default-job-08] |   `-- Extracting zstd-1.5.6: .......... done
[140arm64-default-job-08] `-- Extracting llvm15-15.0.7_10: .......... done
[140arm64-default-job-08] `-- Installing postgresql15-client-15.7...
[140arm64-default-job-08] `-- Extracting postgresql15-client-15.7: .......... done
===> Creating groups
Creating group 'postgres' with gid '770'
===> Creating users
Creating user 'postgres' with uid '770'
===> Creating homedir(s)

  =========== BACKUP YOUR DATA! =============
  As always, backup your data before
  upgrading. If the upgrade leads to a higher
  major revision (e.g. 9.6 -> 10), a dump
  and restore of all databases is
  required. This is *NOT* done by the port!
  See https://www.postgresql.org/docs/current/upgrading.html
  ===========================================
[140arm64-default-job-08] Extracting postgresql15-server-15.7: .......... done
=====
Message from python311-3.11.9:

--
Note that some standard Python modules are provided as separate ports
as they require additional dependencies. They are available as:

py311-gdbm       databases/py-gdbm@py311
py311-sqlite3    databases/py-sqlite3@py311
py311-tkinter    x11-toolkits/py-tkinter@py311
=====
Message from postgresql15-client-15.7:

--
The PostgreSQL port has a collection of "side orders":

postgresql-docs
  For all of the html documentation

p5-Pg
  A perl5 API for client access to PostgreSQL databases.

postgresql-tcltk
  If you want tcl/tk client support.

postgresql-jdbc
  For Java JDBC support.

postgresql-odbc
  For client access from unix applications using ODBC as access
  method. Not needed to access unix PostgreSQL servers from Win32
  using ODBC. See below.

ruby-postgres, py-psycopg2
  For client access to PostgreSQL databases using the ruby & python
  languages.

postgresql-plperl, postgresql-pltcl & postgresql-plruby
  For using perl5, tcl & ruby as procedural languages.

postgresql-contrib
  Lots of contributed utilities, postgresql functions and
  datatypes. There you find pg_standby, pgcrypto and many other cool
  things.

etc...
=====
Message from postgresql15-server-15.7:

--
For procedural languages and postgresql functions, please note that
you might have to update them when updating the server.

If you have many tables and many clients running, consider raising
kern.maxfiles using sysctl(8), or reconfigure your kernel
appropriately.

The port is set up to use autovacuum for new databases, but you might
also want to vacuum and perhaps backup your database regularly. There
is a periodic script, /usr/local/etc/periodic/daily/502.pgsql, that
you may find useful. You can use it to backup and perform vacuum on all
databases nightly. Per default, it performs `vacuum analyze'. See the
script for instructions. For autovacuum settings, please review
~postgres/data/postgresql.conf.

If you plan to access your PostgreSQL server using ODBC, please
consider running the SQL script /usr/local/share/postgresql/odbc.sql
to get the functions required for ODBC compliance.

Please note that if you use the rc script,
/usr/local/etc/rc.d/postgresql, to initialize the database, unicode
(UTF-8) will be used to store character data by default.  Set
postgresql_initdb_flags or use login.conf settings described below to
alter this behaviour. See the start rc script for more info.

To set limits, environment stuff like locale and collation and other
things, you can set up a class in /etc/login.conf before initializing
the database. Add something similar to this to /etc/login.conf:
---
postgres:\
	:lang=en_US.UTF-8:\
	:setenv=LC_COLLATE=C:\
	:tc=default:
---
and run `cap_mkdb /etc/login.conf'.
Then add 'postgresql_login_class="postgres"' to /etc/rc.conf, or
set it as the postgres user's login class in /etc/passwd.

======================================================================

To use PostgreSQL, enable it in rc.conf using

  sysrc postgresql_enable=yes

To initialize the database, run

  service postgresql initdb

You can then start PostgreSQL by running:

  service postgresql start

For postmaster settings, see ~postgres/data/postgresql.conf

NB. FreeBSD's PostgreSQL port logs to syslog by default
    See ~postgres/data/postgresql.conf for more info

NB. If you're not using a checksumming filesystem like ZFS, you might
    wish to enable data checksumming. It can be enabled during
    the initdb phase, by adding the "--data-checksums" flag to
    the postgresql_initdb_flags rcvar. Otherwise you can enable it later by
    using pg_checksums.  Check the initdb(1) manpage for more info
    and make sure you understand the performance implications.

======================================================================

SECURITY ADVICE

If upgradring from a version 15.x < 15.7:
A security vulnerability was found in the system views pg_stats_ext
and pg_stats_ext_exprs, potentially allowing authenticated database
users to see data they shouldn't.  If this is of concern in your
installation, run the SQL script /usr/local/share/postgresql/fix-CVE-2024-4317.sql
for each of your databases. For details, see
https://www.postgresql.org/support/security/CVE-2024-4317/
===>   postgresql15-pgvector-0.7.2 depends on executable: postgres - found
===>   Returning to build of postgresql15-pgvector-0.7.2
===========================================================================
=======================<phase: lib-depends    >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===========================================================================
=======================<phase: configure      >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  Configuring for postgresql15-pgvector-0.7.2
===========================================================================
=======================<phase: build          >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  Building for postgresql15-pgvector-0.7.2
cc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Werror=unguarded-availability-new -Wendif-labels -Wmissing-format-attribute -Wcast-function-type -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-unused-command-line-argument -Wno-compound-token-split-by-macro -Wno-deprecated-non-prototype -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing   -ftree-vectorize -fassociative-math -fno-signed-zeros -fno-trapping-math -fPIC -DPIC -I. -I./ -I/usr/local/include/postgresql/server -I/usr/local/include/postgresql/internal  -I/usr/local/include -I/usr/local/include -I/usr/local/include  -c -o src/bitutils.o src/bitutils.c
cc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Werror=unguarded-availability-new -Wendif-labels -Wmissing-format-attribute -Wcast-function-type -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-unused-command-line-argument -Wno-compound-token-split-by-macro -Wno-deprecated-non-prototype -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing   -ftree-vectorize -fassociative-math -fno-signed-zeros -fno-trapping-math -fPIC -DPIC -I. -I./ -I/usr/local/include/postgresql/server -I/usr/local/include/postgresql/internal  -I/usr/local/include -I/usr/local/include -I/usr/local/include  -c -o src/bitvec.o src/bitvec.c
cc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Werror=unguarded-availability-new -Wendif-labels -Wmissing-format-attribute -Wcast-function-type -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-unused-command-line-argument -Wno-compound-token-split-by-macro -Wno-deprecated-non-prototype -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing   -ftree-vectorize -fassociative-math -fno-signed-zeros -fno-trapping-math -fPIC -DPIC -I. -I./ -I/usr/local/include/postgresql/server -I/usr/local/include/postgresql/internal  -I/usr/local/include -I/usr/local/include -I/usr/local/include  -c -o src/halfutils.o src/halfutils.c
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
gmake: *** Waiting for unfinished jobs....
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make: stopped in /usr/ports/databases/pgvector