Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-34195

Compilation of MariaDB 10.11.8 fails on x32, sizeof(MYSQL) is wrong

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • Compiling
    • None
    • x32

    Description

      This is a follow-up of MDEV-33429 but now only affecting x32.

      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'
      make[3]: *** [CMakeFiles/Makefile2:10668: tests/CMakeFiles/mariadb-client-test.dir/all] Error 2
      

      for reference

      X32 is an ABI for amd64/x86_64 CPUs using 32-bit integers, longs and pointers.

      https://wiki.debian.org/X32Port

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              otto Otto Kekäläinen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.