[debian-mysql] Bug#1071428: mariadb: FTBFS on x32: size of array compile_time_assert is negative

Otto Kekäläinen otto at debian.org
Sun May 19 05:58:21 BST 2024


Source: mariadb
Version: 1:10.11.8-1
Forwarded: https://jira.mariadb.org/browse/MDEV-34195
Tags: confirmed, help, ftbfs
User: debian-x32 at lists.debian.org
Usertags: x32
X-Debbugs-CC: debian-amd64 at lists.debian.org

After importing 10.11.8 in Debian, dropped the temporary patch and
uploaded with the result that x32 is now failing (it wasn't failing on
the previous 10.11.7-5 revision):

https://buildd.debian.org/status/fetch.php?pkg=mariadb&arch=x32&ver=1%3A10.11.8-1&stamp=1716020141&raw=0

[ 67%] Building C object
tests/CMakeFiles/mariadb-client-test.dir/mysql_client_test.c.o
cd /<<PKGBUILDDIR>>/builddir/tests && /usr/bin/cc -DHAVE_CONFIG_H
-DMYSQL_CLIENT -D_FILE_OFFSET_BITS=64
-I/<<PKGBUILDDIR>>/libmariadb/include
-I/<<PKGBUILDDIR>>/builddir/libmariadb/include
-I/<<PKGBUILDDIR>>/wsrep-lib/include
-I/<<PKGBUILDDIR>>/wsrep-lib/wsrep-API/v26
-I/<<PKGBUILDDIR>>/builddir/include
-I/<<PKGBUILDDIR>>/include/providers -I/<<PKGBUILDDIR>>/include
-I/<<PKGBUILDDIR>>/client -g -O2 -Werror=implicit-function-declaration
-ffile-prefix-map=/<<PKGBUILDDIR>>=.
-specs=/usr/share/dpkg/pie-compile.specs -fstack-protector-strong
-Wformat -Werror=format-security -fcf-protection -Wdate-time
-D_FORTIFY_SOURCE=2 -Wdate-time -D_FORTIFY_SOURCE=2 -pie -fPIC
-fstack-protector --param=ssp-buffer-size=4 -O2 -g -static-libgcc
-fno-omit-frame-pointer -fno-strict-aliasing  -Wno-uninitialized
-fno-omit-frame-pointer -D_FORTIFY_SOURCE=2 -DDBUG_OFF -Wall
-Wdeclaration-after-statement -Wenum-compare -Wenum-conversion -Wextra
-Wformat-security -Wmissing-braces -Wno-format-truncation
-Wno-init-self -Wno-nonnull-compare -Wno-unused-parameter -Wvla
-Wwrite-strings -std=gnu99   -Wdate-time -D_FORTIFY_SOURCE=2 -MD -MT
tests/CMakeFiles/mariadb-client-test.dir/mysql_client_test.c.o -MF
CMakeFiles/mariadb-client-test.dir/mysql_client_test.c.o.d -o
CMakeFiles/mariadb-client-test.dir/mysql_client_test.c.o -c
/<<PKGBUILDDIR>>/tests/mysql_client_test.c
In file included from /<<PKGBUILDDIR>>/tests/mysql_client_fw.c:16,
                 from /<<PKGBUILDDIR>>/tests/mysql_client_test.c:38:
/<<PKGBUILDDIR>>/tests/mysql_client_fw.c: In function ‘main’:
/<<PKGBUILDDIR>>/include/my_global.h:384:18: error: size of array
‘compile_time_assert’ is negative
  384 |     typedef char compile_time_assert[(X) ? 1 : -1]
__attribute__((unused)); \
      |                  ^~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/tests/mysql_client_fw.c:1442:3: note: in expansion of
macro ‘compile_time_assert’
 1442 |   compile_time_assert(sizeof(MYSQL) == 1272);
      |   ^~~~~~~~~~~~~~~~~~~
make[4]: *** [tests/CMakeFiles/mariadb-client-test.dir/build.make:79:
tests/CMakeFiles/mariadb-client-test.dir/mysql_client_test.c.o] Error
1
make[4]: Leaving directory '/<<PKGBUILDDIR>>/builddir'


This is a duplicate of
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1063738 for tracking
on x32 specifically as upstream fixed this issue on all other archs in
https://jira.mariadb.org/browse/MDEV-33429.



More information about the pkg-mysql-maint mailing list