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

gcc 16.1 compiler error

    XMLWordPrintable

Details

    • Not for Release Notes

    Description

      my setup: debian sid up 2 date

      alternative glibc path with latest glibc master git
      gcc comes from debian sid with 16.1
      gcc --version
      gcc (Debian 16.1.0-3) 16.1.0
      Copyright (C) 2026 Free Software Foundation, Inc.
      This is free software; see the source for copying conditions. There is NO
      warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

      $GLIBC_INSTALL/bin/ldd --version
      ldd 2.44.9000
      Copyright (C) 2024 Free Software Foundation, Inc.
      This is free software; see the source for copying conditions. There is NO
      warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
      Written by Roland McGrath and Ulrich Drepper.

      version compatiblity for older maraidb version and new ones is important: im using still this version commit id f5821aaf7731e1f74b970fdaf186b945ae012c9d

      my personal fix is removing this part inside .cc code for making code ready for gcc 16.1
      sed -i 's/,evex512//' mysys/crc32/crc32c_x86.cc

      this is compile error

      mariadb mit latest toolchain also glibc und gcc 16.1 compile schlägt fehl: 128/1822] /usr/bin/cc -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -I/root/compile/mariadb/wsrep-lib/include -I/root/compile/mariadb/wsrep-lib/wsrep-API/v26 -I/root/compile/mariadb/build/include -I/root/compile/mariadb/include/providers -I/>
      [129/1822] /usr/bin/cc -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -I/root/compile/mariadb/wsrep-lib/include -I/root/compile/mariadb/wsrep-lib/wsrep-API/v26 -I/root/compile/mariadb/build/include -I/root/compile/mariadb/include/providers -I/>
      [130/1822] /usr/bin/cc -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -I/root/compile/mariadb/wsrep-lib/include -I/root/compile/mariadb/wsrep-lib/wsrep-API/v26 -I/root/compile/mariadb/build/include -I/root/compile/mariadb/include/providers -I/>
      [131/1822] /usr/bin/cc -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -I/root/compile/mariadb/wsrep-lib/include -I/root/compile/mariadb/wsrep-lib/wsrep-API/v26 -I/root/compile/mariadb/build/include -I/root/compile/mariadb/include/providers -I/>
      [132/1822] /usr/bin/cc -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -I/root/compile/mariadb/wsrep-lib/include -I/root/compile/mariadb/wsrep-lib/wsrep-API/v26 -I/root/compile/mariadb/build/include -I/root/compile/mariadb/include/providers -I/>
      [133/1822] /usr/bin/cc -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -I/root/compile/mariadb/wsrep-lib/include -I/root/compile/mariadb/wsrep-lib/wsrep-API/v26 -I/root/compile/mariadb/build/include -I/root/compile/mariadb/include/providers -I/>
      [134/1822] /usr/bin/cc -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -I/root/compile/mariadb/wsrep-lib/include -I/root/compile/mariadb/wsrep-lib/wsrep-API/v26 -I/root/compile/mariadb/build/include -I/root/compile/mariadb/include/providers -I/>
      [135/1822] /usr/bin/c++ -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -I/root/compile/mariadb/wsrep-lib/include -I/root/compile/mariadb/wsrep-lib/wsrep-API/v26 -I/root/compile/mariadb/build/include -I/root/compile/mariadb/include/providers -I>
      [136/1822] /usr/bin/c++ -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -I/root/compile/mariadb/wsrep-lib/include -I/root/compile/mariadb/wsrep-lib/wsrep-API/v26 -I/root/compile/mariadb/build/include -I/root/compile/mariadb/include/providers -I>
      [137/1822] /usr/bin/cc -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -I/root/compile/mariadb/wsrep-lib/include -I/root/compile/mariadb/wsrep-lib/wsrep-API/v26 -I/root/compile/mariadb/build/include -I/root/compile/mariadb/include/providers -I/>
      [138/1822] /usr/bin/c++ -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -I/root/compile/mariadb/wsrep-lib/include -I/root/compile/mariadb/wsrep-lib/wsrep-API/v26 -I/root/compile/mariadb/build/include -I/root/compile/mariadb/include/providers -I>
      [139/1822] /usr/bin/c++ -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -I/root/compile/mariadb/wsrep-lib/include -I/root/compile/mariadb/wsrep-lib/wsrep-API/v26 -I/root/compile/mariadb/build/include -I/root/compile/mariadb/include/providers -I>
      [140/1822] /usr/bin/c++ -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -I/root/compile/mariadb/wsrep-lib/include -I/root/compile/mariadb/wsrep-lib/wsrep-API/v26 -I/root/compile/mariadb/build/include -I/root/compile/mariadb/include/providers -I>
      [141/1822] /usr/bin/cc -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -I/root/compile/mariadb/wsrep-lib/include -I/root/compile/mariadb/wsrep-lib/wsrep-API/v26 -I/root/compile/mariadb/build/include -I/root/compile/mariadb/include/providers -I/>
      [142/1822] /usr/bin/cc -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -I/root/compile/mariadb/wsrep-lib/include -I/root/compile/mariadb/wsrep-lib/wsrep-API/v26 -I/root/compile/mariadb/build/include -I/root/compile/mariadb/include/providers -I/>
      [143/1822] /usr/bin/c++ -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -I/root/compile/mariadb/wsrep-lib/include -I/root/compile/mariadb/wsrep-lib/wsrep-API/v26 -I/root/compile/mariadb/build/include -I/root/compile/mariadb/include/providers -I>
      FAILED: [code=1] mysys/CMakeFiles/mysys.dir/crc32/crc32c_x86.cc.o
      /usr/bin/c++ -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -I/root/compile/mariadb/wsrep-lib/include -I/root/compile/mariadb/wsrep-lib/wsrep-API/v26 -I/root/compile/mariadb/build/include -I/root/compile/mariadb/include/providers -I/root/compi>
      /root/compile/mariadb/mysys/crc32/crc32c_x86.cc:134:23: error: attribute ‘target’ argument ‘evex512’ is unknown
        134 | static inline __m128i xor3_128(__m128i a, __m128i b, __m128i c)
            |                       ^~~~~~~~
      /root/compile/mariadb/mysys/crc32/crc32c_x86.cc:141:23: error: attribute ‘target’ argument ‘evex512’ is unknown
        141 | static inline __m128i xnor3_128(__m128i a, __m128i b, __m128i c)
            |                       ^~~~~~~~~
      /root/compile/mariadb/mysys/crc32/crc32c_x86.cc:148:23: error: attribute ‘target’ argument ‘evex512’ is unknown
        148 | static inline __m512i xor3_512(__m512i a, __m512i b, __m512i c)
            |                       ^~~~~~~~
      /root/compile/mariadb/mysys/crc32/crc32c_x86.cc:155:23: error: attribute ‘target’ argument ‘evex512’ is unknown
        155 | static inline __m128i xor2_and_128(__m128i a, __m128i b, __m128i c)
            |                       ^~~~~~~~~~~~
      /root/compile/mariadb/mysys/crc32/crc32c_x86.cc:162:23: error: attribute ‘target’ argument ‘evex512’ is unknown
        162 | static inline __m512i load512(const char *b) { return _mm512_loadu_epi8(b); }
            |                       ^~~~~~~
      /root/compile/mariadb/mysys/crc32/crc32c_x86.cc:166:23: error: attribute ‘target’ argument ‘evex512’ is unknown
        166 | static inline __m128i load128(const char *b) { return _mm_loadu_epi64(b); }
            |                       ^~~~~~~
      /root/compile/mariadb/mysys/crc32/crc32c_x86.cc:170:23: error: attribute ‘target’ argument ‘evex512’ is unknown
        170 | static inline __m512i combine512(__m512i a, __m512i tab, __m512i b)
            |                       ^~~~~~~~~~
      /root/compile/mariadb/mysys/crc32/crc32c_x86.cc:183:23: error: attribute ‘target’ argument ‘evex512’ is unknown
        183 | static inline __m512i extract512_128(__m512i a)
            |                       ^~~~~~~~~~~~~~
      /root/compile/mariadb/mysys/crc32/crc32c_x86.cc:210:17: error: attribute ‘target’ argument ‘evex512’ is unknown
        210 | static unsigned crc32_avx512(unsigned crc, const char *buf, size_t size,
            |                 ^~~~~~~~~~~~
      [144/1822] /usr/bin/cc -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -I/root/compile/mariadb/wsrep-lib/include -I/root/compile/mariadb/wsrep-lib/wsrep-API/v26 -I/root/compile/mariadb/build/include -I/root/compile/mariadb/include/providers -I/>
      ninja: build stopped: subcommand failed.
      

      btw please open this issue again for more attention and this is still persistent in 2026

      i need more compiling help and new opinions because my vps cannot run 24h with compiling , to figure out which commit exacatly this regression made in past
      https://jira.mariadb.org/browse/MDEV-36035?filter=-2

      Thanks and

      Best Regards

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mariadbcomplain mariadbcomplain
              Votes:
              0 Vote for this issue
              Watchers:
              3 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.