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

10.2.11 hits gcc bug and does not compile on ubuntu16 arm64

    XMLWordPrintable

Details

    Description

      Tried to build 10.2.11 from source tag mariadb-10.2.11 and this hits a gcc compiler bug on ubuntu16. This does not occur on centos 7. I also re-verified that mariadb-10.2.10 still builds fine so this appears to be a gcc 5 bug in conjunction with a code change in 10.2.11.

      This is one of the build failures (will attach the gcc dump file too):

      [ 53%] Building C object storage/myisam/CMakeFiles/myisam.dir/sp_key.c.o
      cd /home/ubuntu/server/builddir/storage/myisam && /usr/bin/aarch64-linux-gnu-gcc  -DHAVE_CONFIG_H -DHAVE_SYSTEMD -D_FILE_OFFSET_BITS=64 -I/home/ubuntu/server/builddir/include -I/home/ubuntu/server/include -I/home/ubuntu/server/sql -I/home/ubuntu/server/builddir/pcre -I/home/ubuntu/server/pcre  -g -O2 -fstack-protector-strong -Wformat -Werror=format-security  -pie -fPIC -Wl,-z,relro,-z,now -fstack-protector --param=ssp-buffer-size=4 -DWITH_INNODB_DISALLOW_WRITES -O3 -g -static-libgcc -fno-omit-frame-pointer -fno-strict-aliasing  -Wno-uninitialized -D_FORTIFY_SOURCE=2 -DDBUG_OFF   -Wdate-time -D_FORTIFY_SOURCE=2  -fvisibility=hidden -o CMakeFiles/myisam.dir/sp_key.c.o   -c /home/ubuntu/server/storage/myisam/sp_key.c
      Preprocessed source stored into /tmp/cc8Erc9A.out file, please attach this to your bugreport.
       
      === BEGIN GCC DUMP ===
      // Target: aarch64-linux-gnu
      // Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.5' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libquadmath --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-arm64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-arm64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-arm64 --with-arch-directory=aarch64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-multiarch --enable-fix-cortex-a53-843419 --disable-werror --enable-checking=release --build=aarch64-linux-gnu --host=aarch64-linux-gnu --target=aarch64-linux-gnu
      // Thread model: posix
      // gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.5)
      //
      // /home/ubuntu/server/storage/mroonga/vendor/groonga/lib/ts/ts_expr_node.c: In function 'grn_ts_op_not_equal_evaluate':
      // /home/ubuntu/server/storage/mroonga/vendor/groonga/lib/ts/ts_expr_node.c:3824:18: internal compiler error: in gen_aarch64_vcond_internalv2div2df, at config/aarch64/aarch64-simd.md:2353
      //        out_ptr[i] = grn_ts_op_ ## type ## _ ## kind(buf_ptrs[0][i],\
      //                   ^
      // /home/ubuntu/server/storage/mroonga/vendor/groonga/lib/ts/ts_expr_node.c:3863:5: note: in expansion of macro 'GRN_TS_OP_CHK_EVALUATE_CASE'
      //      GRN_TS_OP_CHK_EVALUATE_CASE(type, FLOAT, float)\
      //      ^
      // /home/ubuntu/server/storage/mroonga/vendor/groonga/lib/ts/ts_expr_node.c:3893:3: note: in expansion of macro 'GRN_TS_OP_CHK_EVALUATE'
      //    GRN_TS_OP_CHK_EVALUATE(not_equal)
      //    ^
      // Please submit a full bug report,
      // with preprocessed source if appropriate.
      // See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
      

      Attachments

        Issue Links

          Activity

            People

              svoj Sergey Vojtovich
              dthompson David Thompson (Inactive)
              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.