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

Compilation of MariaDB 10.11.7 fails on arm32, sizeof(MYSQL) is wrong

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Blocker
    • Resolution: Fixed
    • 10.11.7
    • 10.11.8
    • Compiling
    • None
    • Ubuntu 20.04 - 32 bit

    Description

      After compiling mariadb 10.11.7 source with

      cmake . -DINSTALL_MYSQLTESTDIR=
      make
      make package

      make package fails

      Pls advice?

      [  0%] Built target libfmt
      [  0%] Built target abi_check
      ...
      [ 99%] Built target mariadb-admin
      [100%] Built target mariadb-conv
      [100%] Built target my_print_defaults
      [100%] Built target resolveip
      [100%] Built target innochecksum
      [100%] Built target mariadbd-safe-helper
      [100%] Built target replace
      [100%] Built target resolve_stack_dump
      [100%] Built target mariadb-waitpid
      [100%] Built target perror
      [100%] Built target bug25714
      [100%] Building C object tests/CMakeFiles/mariadb-client-test.dir/mysql_client_test.c.o
      In file included from /ssd/mariadb-10.11.7/tests/mysql_client_fw.c:16,
                       from /ssd/mariadb-10.11.7/tests/mysql_client_test.c:38:
      /ssd/mariadb-10.11.7/tests/mysql_client_fw.c: In function ‘main’:
      /ssd/mariadb-10.11.7/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)); \
            |                  ^~~~~~~~~~~~~~~~~~~
      /ssd/mariadb-10.11.7/tests/mysql_client_fw.c:1438:3: note: in expansion of macro ‘compile_time_assert’
       1438 |   compile_time_assert(sizeof(MYSQL) == 77*sizeof(void*)+656);
            |   ^~~~~~~~~~~~~~~~~~~
      make[2]: *** [tests/CMakeFiles/mariadb-client-test.dir/build.make:63: tests/CMakeFiles/mariadb-client-test.dir/mysql_client_test.c.o] Error 1
      make[1]: *** [CMakeFiles/Makefile2:10675: tests/CMakeFiles/mariadb-client-test.dir/all] Error 2
      make: *** [Makefile:163: all] Error 2
      

      Attachments

        Issue Links

          Activity

            People

              serg Sergei Golubchik
              vincent.lemoine@iwa-consult.nl V H Lemoine
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

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