Uploaded image for project: 'MariaDB Connector/C'
  1. MariaDB Connector/C
  2. CONC-668

32bit compile of 3.3.7 fails - error: right shift count >= width of type

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 3.3.7
    • 3.1.23, 3.3.8
    • Build
    • ARM 32bit

    Description

      Following compile error with 3.3.7 (issue was not there with 3.3.6)

      ```
      <<< mariadb-connector-c:target seq 231 <<<
      UNPACK mariadb-connector-c
      BUILD mariadb-connector-c (target)
      TOOLCHAIN cmake (auto-detect)
      Executing (target): cmake -GNinja -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_TOOLCHAIN_FILE=/build/build.LibreELEC-H3.arm-12.0-devel/toolchain/etc/cmake-armv7ve-libreelec-linux-gnueabihf.conf -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=MinSizeRel -DWITH_EXTERNAL_ZLIB=ON
      -DCLIENT_PLUGIN_DIALOG=STATIC
      -DCLIENT_PLUGIN_MYSQL_CLEAR_PASSWORD=STATIC
      -DCLIENT_PLUGIN_MYSQL_OLD_PASSWORD=STATIC
      -DCLIENT_PLUGIN_REMOTE_IO=OFF
      /build/build.LibreELEC-H3.arm-12.0-devel/build/mariadb-connector-c-3.3.7
      CMake Deprecation Warning at CMakeLists.txt:5 (CMAKE_MINIMUM_REQUIRED):
      Compatibility with CMake < 3.5 will be removed from a future version of
      CMake.

      Update the VERSION argument <min> value or use a ...<max> suffix to tell
      CMake that the project does not need compatibility with older versions.

      – The C compiler identification is GNU 13.2.0
      – Detecting C compiler ABI info
      – Detecting C compiler ABI info - done
      – Check for working C compiler: /build/build.LibreELEC-H3.arm-12.0-devel/toolchain/bin/armv7ve-libreelec-linux-gnueabihf-gcc - skipped
      – Detecting C compile features
      – Detecting C compile features - done
      – Found CURL: /build/build.LibreELEC-H3.arm-12.0-devel/toolchain/armv7ve-libreelec-linux-gnueabihf/sysroot/usr/lib/libcurl.so (found version "8.2.1")
      – Performing Test HAS_-Wunused_FLAG
      – Performing Test HAS_-Wunused_FLAG - Success
      – Performing Test HAS_-Wlogical-op_FLAG
      – Performing Test HAS_-Wlogical-op_FLAG - Success
      – Performing Test HAS_-Wno-uninitialized_FLAG
      – Performing Test HAS_-Wno-uninitialized_FLAG - Success
      – Performing Test HAS_-Wall_FLAG
      – Performing Test HAS_-Wall_FLAG - Success
      – Performing Test HAS_-Wextra_FLAG
      – Performing Test HAS_-Wextra_FLAG - Success
      – Performing Test HAS_-Wformat-security_FLAG
      – Performing Test HAS_-Wformat-security_FLAG - Success
      – Performing Test HAS_-Wno-init-self_FLAG
      – Performing Test HAS_-Wno-init-self_FLAG - Success
      – Performing Test HAS_-Wwrite-strings_FLAG
      – Performing Test HAS_-Wwrite-strings_FLAG - Success
      – Performing Test HAS_-Wshift-count-overflow_FLAG
      – Performing Test HAS_-Wshift-count-overflow_FLAG - Success
      – Performing Test HAS_-Wdeclaration-after-statement_FLAG
      – Performing Test HAS_-Wdeclaration-after-statement_FLAG - Success
      – Performing Test HAS_-Wno-undef_FLAG
      – Performing Test HAS_-Wno-undef_FLAG - Success
      – Performing Test HAS_-Wno-unknown-pragmas_FLAG
      – Performing Test HAS_-Wno-unknown-pragmas_FLAG - Success
      – Found Git: /usr/bin/git (found version "2.34.1")
      – MariaDB Connector C: INSTALL_BINDIR=bin
      – MariaDB Connector C: INSTALL_LIBDIR=lib/mariadb
      – MariaDB Connector C: INSTALL_PCDIR=lib/pkgconfig
      – MariaDB Connector C: INSTALL_INCLUDEDIR=include/mariadb
      – MariaDB Connector C: INSTALL_DOCSDIR=
      – MariaDB Connector C: INSTALL_PLUGINDIR=lib/mariadb/plugin
      – MariaDB Connector C: INSTALL_MANDIR=man
      – MariaDB Connector C: LIBMARIADB_STATIC_NAME mariadbclient
      – Could NOT find ZSTD (missing: ZSTD_LIBRARIES ZSTD_INCLUDE_DIRS)
      – Found ZLIB: /build/build.LibreELEC-H3.arm-12.0-devel/toolchain/armv7ve-libreelec-linux-gnueabihf/sysroot/usr/lib/libz.so (found version "1.3")
      – Looking for include file alloca.h
      – Looking for include file alloca.h - found
      – Looking for include file dlfcn.h
      – Looking for include file dlfcn.h - found
      – Looking for include file fcntl.h
      – Looking for include file fcntl.h - found
      – Looking for include file float.h
      – Looking for include file float.h - found
      – Looking for include file limits.h
      – Looking for include file limits.h - found
      – Looking for include file linux/limits.h
      – Looking for include file linux/limits.h - found
      – Looking for include file pwd.h
      – Looking for include file pwd.h - found
      – Looking for include file select.h
      – Looking for include file select.h - not found
      – Looking for include file signal.h
      – Looking for include file signal.h - found
      – Looking for include file stddef.h
      – Looking for include file stddef.h - found
      – Looking for include file stdint.h
      – Looking for include file stdint.h - found
      – Looking for include file stdlib.h
      – Looking for include file stdlib.h - found
      – Looking for include file string.h
      – Looking for include file string.h - found
      – Looking for include file sys/ioctl.h
      – Looking for include file sys/ioctl.h - found
      – Looking for include file sys/select.h
      – Looking for include file sys/select.h - found
      – Looking for include file sys/socket.h
      – Looking for include file sys/socket.h - found
      – Looking for include file sys/types.h
      – Looking for include file sys/types.h - found
      – Looking for include file sys/stat.h
      – Looking for include file sys/stat.h - found
      – Looking for include file sys/un.h
      – Looking for include file sys/un.h - found
      – Looking for include file unistd.h
      – Looking for include file unistd.h - found
      – Looking for include file ucontext.h
      – Looking for include file ucontext.h - found
      – Looking for alloca
      – Looking for alloca - not found
      – Looking for dlerror
      – Looking for dlerror - found
      – Looking for dlopen
      – Looking for dlopen - found
      – Looking for fcntl
      – Looking for fcntl - found
      – Looking for memcpy
      – Looking for memcpy - found
      – Looking for nl_langinfo
      – Looking for nl_langinfo - found
      – Looking for setlocale
      – Looking for setlocale - found
      – Looking for poll
      – Looking for poll - found
      – Looking for getpwuid
      – Looking for getpwuid - found
      – Looking for makecontext
      – Looking for makecontext - found
      – Looking for cuserid
      – Looking for cuserid - found
      – Check size of char *
      – Check size of char * - done
      – Check size of int
      – Check size of int - done
      – Check size of long
      – Check size of long - done
      – Check size of long long
      – Check size of long long - done
      – Check size of size_t
      – Check size of size_t - done
      – Check size of uint
      – Check size of uint - done
      – Check size of uint
      – Check size of uint - done
      – Check size of ulong
      – Check size of ulong - done
      [224/280] [FAIL] install mariadb-connector-c:target

      The following log for this failure is available:
      /build/build.LibreELEC-H3.arm-12.0-devel/.threads/logs/231.log

      – Check size of int8
      – Check size of int8 - failed
      – Check size of uint8
      – Check size of uint8 - failed
      – Check size of int16
      – Check size of int16 - failed
      – Check size of uint16
      – Check size of uint16 - failed
      – Check size of int32
      – Check size of int32 - failed
      – Check size of uint32
      – Check size of uint32 - failed
      – Check size of int64
      – Check size of int64 - failed
      – Check size of uint64
      – Check size of uint64 - failed
      – Check size of socklen_t
      – Check size of socklen_t - failed
      – Performing Test SOCKET_SIZE_FOUND_socklen_t
      – Performing Test SOCKET_SIZE_FOUND_socklen_t - Success
      – Looking for floor
      – Looking for floor - not found
      – Looking for floor in m
      – Looking for floor in m - found
      – Looking for pthread_getspecific
      – Looking for pthread_getspecific - found
      – Looking for gethostbyname_r
      – Looking for gethostbyname_r - found
      – Looking for setsockopt
      – Looking for setsockopt - found
      – Performing Test CMAKE_HAVE_LIBC_PTHREAD
      – Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
      – Found Threads: TRUE
      – Found OpenSSL: /build/build.LibreELEC-H3.arm-12.0-devel/toolchain/armv7ve-libreelec-linux-gnueabihf/sysroot/usr/lib/libcrypto.so (found version "3.1.2")
      – TLS library/version: OpenSSL 3.1.2
      – SYSTEM_LIBS /build/build.LibreELEC-H3.arm-12.0-devel/toolchain/armv7ve-libreelec-linux-gnueabihf/sysroot/usr/lib/libz.so;dl;m;dl;m;/build/build.LibreELEC-H3.arm-12.0-devel/toolchain/armv7ve-libreelec-linux-gnueabihf/sysroot/usr/lib/libssl.so;/build/build.LibreELEC-H3.arm-12.0-devel/toolchain/armv7ve-libreelec-linux-gnueabihf/sysroot/usr/lib/libcrypto.so
      – SYSTEM_LIBS: /build/build.LibreELEC-H3.arm-12.0-devel/toolchain/armv7ve-libreelec-linux-gnueabihf/sysroot/usr/lib/libz.so;dl;m;dl;m;/build/build.LibreELEC-H3.arm-12.0-devel/toolchain/armv7ve-libreelec-linux-gnueabihf/sysroot/usr/lib/libssl.so;/build/build.LibreELEC-H3.arm-12.0-devel/toolchain/armv7ve-libreelec-linux-gnueabihf/sysroot/usr/lib/libcrypto.so;/build/build.LibreELEC-H3.arm-12.0-devel/toolchain/armv7ve-libreelec-linux-gnueabihf/sysroot/usr/lib/libz.so
      – Dynamic column API support: ON
      – SYSTEM processor: arm
      – MariaDB Connector/c configuration:
      – Static PLUGINS mysql_native_password;dialog;mysql_old_password;mysql_clear_password;zlib;pvio_socket
      – Dynamic PLUGINS client_ed25519;caching_sha2_password;sha256_password
      – CPack generation: TGZ
      – SSL support: OPENSSL Libs: /build/build.LibreELEC-H3.arm-12.0-devel/toolchain/armv7ve-libreelec-linux-gnueabihf/sysroot/usr/lib/libssl.so;/build/build.LibreELEC-H3.arm-12.0-devel/toolchain/armv7ve-libreelec-linux-gnueabihf/sysroot/usr/lib/libcrypto.so
      – Zlib support: ON
      – ZStd support: FALSE
      – Installation layout: DEFAULT
      – Include files will be installed in include/mariadb
      – Libraries will be installed in lib/mariadb
      – Binaries will be installed in bin
      – Documentation included from
      – Required: /build/build.LibreELEC-H3.arm-12.0-devel/toolchain/armv7ve-libreelec-linux-gnueabihf/sysroot/usr/lib/libz.so;dl;m
      – Configuring done (17.3s)
      – Generating done (0.1s)
      – Build files have been written to: /build/build.LibreELEC-H3.arm-12.0-devel/build/mariadb-connector-c-3.3.7/.armv7ve-libreelec-linux-gnueabihf
      Executing (target): ninja
      [1/142] Building C object CMakeFiles/client_ed25519.dir/plugins/auth/ed25519.c.o
      [2/142] Building C object CMakeFiles/client_ed25519.dir/plugins/auth/ref10/fe_0.c.o
      [3/142] Building C object CMakeFiles/client_ed25519.dir/plugins/auth/ref10/fe_isnegative.c.o
      [4/142] Building C object CMakeFiles/client_ed25519.dir/plugins/auth/ref10/fe_sub.c.o
      [5/142] Building C object CMakeFiles/client_ed25519.dir/plugins/auth/ref10/ge_p1p1_to_p2.c.o
      [6/142] Building C object CMakeFiles/client_ed25519.dir/plugins/auth/ref10/ge_p3_to_cached.c.o
      [7/142] Building C object CMakeFiles/client_ed25519.dir/plugins/auth/ref10/open.c.o
      [8/142] Building C object CMakeFiles/client_ed25519.dir/plugins/auth/ref10/fe_1.c.o
      [9/142] Building C object CMakeFiles/client_ed25519.dir/plugins/auth/ref10/fe_isnonzero.c.o
      [10/142] Building C object CMakeFiles/client_ed25519.dir/plugins/auth/ref10/fe_tobytes.c.o
      [11/142] Building C object CMakeFiles/client_ed25519.dir/plugins/auth/ref10/ge_p1p1_to_p3.c.o
      [12/142] Building C object CMakeFiles/client_ed25519.dir/plugins/auth/ref10/ge_p3_to_p2.c.o
      [13/142] Building C object CMakeFiles/client_ed25519.dir/plugins/auth/ref10/sc_muladd.c.o
      [14/142] Building C object CMakeFiles/client_ed25519.dir/plugins/auth/ref10/fe_add.c.o
      [15/142] Building C object CMakeFiles/client_ed25519.dir/plugins/auth/ref10/fe_mul.c.o
      [16/142] Building C object CMakeFiles/client_ed25519.dir/plugins/auth/ref10/ge_add.c.o
      [17/142] Building C object CMakeFiles/client_ed25519.dir/plugins/auth/ref10/ge_p2_0.c.o
      [18/142] Building C object CMakeFiles/client_ed25519.dir/plugins/auth/ref10/ge_precomp_0.c.o
      [19/142] Building C object CMakeFiles/client_ed25519.dir/plugins/auth/ref10/sc_reduce.c.o
      [20/142] Building C object CMakeFiles/client_ed25519.dir/plugins/auth/ref10/fe_cmov.c.o
      [21/142] Building C object CMakeFiles/client_ed25519.dir/plugins/auth/ref10/fe_neg.c.o
      [22/142] Building C object CMakeFiles/client_ed25519.dir/plugins/auth/ref10/ge_double_scalarmult.c.o
      [23/142] Building C object CMakeFiles/client_ed25519.dir/plugins/auth/ref10/ge_p2_dbl.c.o
      [24/142] Building C object CMakeFiles/client_ed25519.dir/plugins/auth/ref10/ge_scalarmult_base.c.o
      [25/142] Building C object CMakeFiles/client_ed25519.dir/plugins/auth/ref10/sign.c.o
      [26/142] Building C object CMakeFiles/client_ed25519.dir/plugins/auth/ref10/fe_copy.c.o
      [27/142] Building C object CMakeFiles/client_ed25519.dir/plugins/auth/ref10/fe_pow22523.c.o
      [28/142] Building C object CMakeFiles/client_ed25519.dir/plugins/auth/ref10/ge_frombytes.c.o
      [29/142] Building C object CMakeFiles/client_ed25519.dir/plugins/auth/ref10/ge_p3_0.c.o
      [30/142] Building C object CMakeFiles/client_ed25519.dir/plugins/auth/ref10/ge_sub.c.o
      [31/142] Building C object CMakeFiles/client_ed25519.dir/plugins/auth/ref10/verify.c.o
      [32/142] Building C object CMakeFiles/client_ed25519.dir/plugins/auth/ref10/fe_frombytes.c.o
      [33/142] Building C object CMakeFiles/client_ed25519.dir/plugins/auth/ref10/fe_sq2.c.o
      [34/142] Building C object CMakeFiles/client_ed25519.dir/plugins/auth/ref10/ge_madd.c.o
      [35/142] Building C object CMakeFiles/client_ed25519.dir/plugins/auth/ref10/ge_p3_dbl.c.o
      [36/142] Building C object CMakeFiles/client_ed25519.dir/plugins/auth/ref10/ge_tobytes.c.o
      [37/142] Building C object CMakeFiles/client_ed25519.dir/plugins/auth/ref10/fe_invert.c.o
      [38/142] Building C object CMakeFiles/client_ed25519.dir/plugins/auth/ref10/fe_sq.c.o
      [39/142] Building C object CMakeFiles/client_ed25519.dir/plugins/auth/ref10/ge_msub.c.o
      [40/142] Building C object CMakeFiles/client_ed25519.dir/plugins/auth/ref10/ge_p3_tobytes.c.o
      [41/142] Building C object CMakeFiles/client_ed25519.dir/plugins/auth/ref10/keypair.c.o
      [42/142] Building C object CMakeFiles/client_ed25519.dir/libmariadb/secure/openssl_crypt.c.o
      [43/142] Linking C shared module client_ed25519.so
      [44/142] Building C object CMakeFiles/caching_sha2_password.dir/plugins/auth/caching_sha2_pw.c.o
      [45/142] Building C object CMakeFiles/caching_sha2_password.dir/libmariadb/secure/openssl_crypt.c.o
      [46/142] Linking C shared module caching_sha2_password.so
      [47/142] Building C object CMakeFiles/sha256_password.dir/plugins/auth/sha256_pw.c.o
      [48/142] Linking C shared module sha256_password.so
      [49/142] Building C object libmariadb/CMakeFiles/mariadb_obj.dir/__/plugins/auth/my_auth.c.o
      [50/142] Building C object libmariadb/CMakeFiles/mariadb_obj.dir/__/plugins/auth/dialog.c.o
      [51/142] Building C object libmariadb/CMakeFiles/mariadb_obj.dir/get_password.c.o
      [52/142] Building C object libmariadb/CMakeFiles/mariadb_obj.dir/__/plugins/auth/old_password.c.o
      [53/142] Building C object libmariadb/CMakeFiles/mariadb_obj.dir/__/plugins/auth/mariadb_cleartext.c.o
      [54/142] Building C object libmariadb/CMakeFiles/mariadb_obj.dir/__/plugins/compress/c_zlib.c.o
      [55/142] Building C object libmariadb/CMakeFiles/mariadb_obj.dir/__/plugins/pvio/pvio_socket.c.o
      [56/142] Building C object libmariadb/CMakeFiles/mariadb_obj.dir/ma_array.c.o
      [57/142] Building C object libmariadb/CMakeFiles/mariadb_obj.dir/ma_charset.c.o
      [58/142] Building C object libmariadb/CMakeFiles/mariadb_obj.dir/ma_decimal.c.o
      [59/142] Building C object libmariadb/CMakeFiles/mariadb_obj.dir/ma_hashtbl.c.o
      [60/142] Building C object libmariadb/CMakeFiles/mariadb_obj.dir/ma_net.c.o
      [61/142] Building C object libmariadb/CMakeFiles/mariadb_obj.dir/mariadb_charset.c.o
      [62/142] Building C object libmariadb/CMakeFiles/mariadb_obj.dir/ma_time.c.o
      [63/142] Building C object libmariadb/CMakeFiles/mariadb_obj.dir/ma_default.c.o
      [64/142] Building C object libmariadb/CMakeFiles/mariadb_obj.dir/ma_errmsg.c.o
      [65/142] Building C object libmariadb/CMakeFiles/mariadb_obj.dir/mariadb_lib.c.o
      [66/142] Building C object libmariadb/CMakeFiles/mariadb_obj.dir/ma_list.c.o
      [67/142] Building C object libmariadb/CMakeFiles/mariadb_obj.dir/ma_pvio.c.o
      [68/142] Building C object libmariadb/CMakeFiles/mariadb_obj.dir/ma_tls.c.o
      [69/142] Building C object libmariadb/CMakeFiles/mariadb_obj.dir/ma_alloc.c.o
      [70/142] Building C object libmariadb/CMakeFiles/mariadb_obj.dir/ma_compress.c.o
      [71/142] Building C object libmariadb/CMakeFiles/mariadb_obj.dir/ma_init.c.o
      [72/142] Building C object libmariadb/CMakeFiles/mariadb_obj.dir/ma_password.c.o
      [73/142] Building C object libmariadb/CMakeFiles/mariadb_obj.dir/ma_ll2str.c.o
      [74/142] Building C object libmariadb/CMakeFiles/mariadb_obj.dir/ma_sha1.c.o
      [75/142] Building C object libmariadb/CMakeFiles/mariadb_obj.dir/mariadb_stmt.c.o
      FAILED: libmariadb/CMakeFiles/mariadb_obj.dir/mariadb_stmt.c.o
      /build/build.LibreELEC-H3.arm-12.0-devel/toolchain/bin/armv7ve-libreelec-linux-gnueabihf-gcc -DHAVE_OPENSSL -DHAVE_REMOTEIO=1 -DHAVE_TLS -DLIBICONV_PLUG -DMARIADB_MACHINE_TYPE=\"arm\" -DMARIADB_SYSTEM_TYPE=\"Linux\" -I/build/build.LibreELEC-H3.arm-12.0-devel/build/mariadb-connector-c-3.3.7/.armv7ve-libreelec-linux-gnueabihf/include -I/build/build.LibreELEC-H3.arm-12.0-devel/build/mariadb-connector-c-3.3.7/plugins/auth -I/build/build.LibreELEC-H3.arm-12.0-devel/build/mariadb-connector-c-3.3.7/include -I/build/build.LibreELEC-H3.arm-12.0-devel/build/mariadb-connector-c-3.3.7/plugins/compress -I/build/build.LibreELEC-H3.arm-12.0-devel/build/mariadb-connector-c-3.3.7/plugins/pvio -I/build/build.LibreELEC-H3.arm-12.0-devel/build/mariadb-connector-c-3.3.7/libmariadb -march=armv7ve -mtune=cortex-a7 -mabi=aapcs-linux -Wno-psabi -Wa,-mno-warn-deprecated -mfloat-abi=hard -mfpu=neon-vfpv4 -Wall -pipe -O2 -fomit-frame-pointer -DNDEBUG -Wunused -Wlogical-op -Wno-uninitialized -Wall -Wextra -Wformat-security -Wno-init-self -Wwrite-strings -Wshift-count-overflow -Wdeclaration-after-statement -Wno-undef -Wno-unknown-pragmas -Werror -DDUMMYOPT -D HAVE_COMPRESS -D LIBMARIADB -D THREAD -fPIC -MD -MT libmariadb/CMakeFiles/mariadb_obj.dir/mariadb_stmt.c.o -MF libmariadb/CMakeFiles/mariadb_obj.dir/mariadb_stmt.c.o.d -o libmariadb/CMakeFiles/mariadb_obj.dir/mariadb_stmt.c.o -c /build/build.LibreELEC-H3.arm-12.0-devel/build/mariadb-connector-c-3.3.7/libmariadb/mariadb_stmt.c
      In file included from /build/build.LibreELEC-H3.arm-12.0-devel/build/mariadb-connector-c-3.3.7/libmariadb/mariadb_stmt.c:47:
      /build/build.LibreELEC-H3.arm-12.0-devel/build/mariadb-connector-c-3.3.7/libmariadb/mariadb_stmt.c: In function 'mysql_net_store_length':
      /build/build.LibreELEC-H3.arm-12.0-devel/build/mariadb-connector-c-3.3.7/include/ma_global.h:905:85: error: right shift count >= width of type [-Werror=shift-count-overflow]
      905 | #define int8store(T,A) do { uint def_temp= (uint) (A), def_temp2= (uint) ((A) >> 32); \

      ^~
      /build/build.LibreELEC-H3.arm-12.0-devel/build/mariadb-connector-c-3.3.7/libmariadb/mariadb_stmt.c:514:3: note: in expansion of macro 'int8store'
      514
      int8store(packet, length);
      ^~~~~~~~~
      cc1: all warnings being treated as errors
      ninja: build stopped: subcommand failed.
      ```

      Attachments

        Activity

          People

            georg Georg Richter
            heitbaum Rudi Heitbaum
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.