We are building all our packages in Poudriere for a years. Today I was trying to rebuild all packages with new FreeBSD version 13.2 and quarterly branch 2023Q2 where MariaDB failed with the following error: /wrkdirs/usr/ports/databases/mariadb106-server/work/mariadb-10.6.12/storage/rocksdb/./ut0counter.h:64:10: error: incompatible pointer to integer conversion assigning to 'size_t' (aka 'unsigned long') from 'pthread_t' (aka 'pthread *') cpu = get_curr_thread_id(); ^~~~~~~~~~~~~~~~~~~~ /wrkdirs/usr/ports/databases/mariadb106-server/work/mariadb-10.6.12/storage/rocksdb/./ut0counter.h:34:30: note: expanded from macro 'get_curr_thread_id' #define get_curr_thread_id() pthread_self() ^~~~~~~~~~~~~~ 1 error generated. ninja: build stopped: subcommand failed. *** Error code 1 Building of 10.6.12 on 12.x and previous quarterly 2023Q1 was OK so this is some regression on 13.2 or 2023Q2 We have non-default options: ---Begin OPTIONS List--- ===> The following configuration options are available for mariadb106-server-10.6.12: CONNECT_EXTRA=off: Enable ODBC and XML in CONNECT engine DOCS=off: Build and/or install documentation WSREP=on: Build wsrep clustering ====> Optional page compression LZ4=on: LZ4 compression support LZO=on: LZO compression support SNAPPY=off: Snappy compression library support ====> Optional MariaDB storage engines COLUMNSTORE=off: Columnar storage egine (BETA) INNOBASE=on: InnoDB default engine MROONGA=off: Mroonga Full Text Search engine OQGRAPH=off: Open Query Graph Computation engine ROCKSDB=on: RocksDB LSM engine S3=off: S3 storage engine (Alpha) SPHINX=on: SphinxSE engine SPIDER=on: Partitioning and XA-transactions engine ====> Optional Mroonga features ZMQ=off: ZeroMQ support MSGPACK=off: MsgPack support ====> GSSAPI Security API support: you have to select exactly one of them GSSAPI_BASE=off: GSSAPI support via base system (needs Kerberos) GSSAPI_HEIMDAL=off: GSSAPI support via security/heimdal GSSAPI_MIT=off: GSSAPI support via security/krb5 GSSAPI_NONE=on: Disable GSSAPI support ===> Use 'make config' to modify these settings ---End OPTIONS List---
Created attachment 241730 [details] full Poudriere error log
this is a bug in upstream. they need to sort out their types
(In reply to Mina Galić from comment #2) Is it reported upstream?
it doesn't seem to be: https://jira.mariadb.org/issues/?jql=text%20~%20%22incompatible%20pointer%20to%20integer%20conversion%20assigning%20to%20%27size_t%27%20(aka%20%27unsigned%20long%27)%20from%20%27pthread_t%27%20(aka%20%27pthread%20*%27)%22 do you wanna do that: https://mariadb.com/kb/en/connection-string-in-mariadb-10-10/ (yes, that's the URL for MariaDB's knowledge base article on how "File a bug or feature request") and please link their issue back to ours here
there has been a related issue, https://jira.mariadb.org/browse/MDEV-23910 reported and fixed
(In reply to Mina Galić from comment #4) Thanks, I already reported some issues in MariaDB's JIRA (almost always without any progress for a long time - the last one is serious memory leak causing crashes). I will report this issue soon.
if there's no reaction, we can patch our ports to add -Wno-int-conversion for ROCKSDB=on. but: we'd be patching over a potential bug
(In reply to Mina Galić from comment #4) Reported upstream https://jira.mariadb.org/browse/MDEV-31129