Uploaded image for project: 'Percona Server'
  1. Percona Server
  2. PS-5122

PS debug build creation displays rocksdb error: __no_sanitize_undefined__

    Details

    • Type: Bug
    • Status: Done
    • Priority: Critical
    • Resolution: Invalid
    • Affects Version/s: 8.0.12-2rc1
    • Fix Version/s: None
    • Component/s: MyRocks
    • Labels:
      None
    • Environment:

      CentOS7.5

      gcc version 4.8.5 20150623 (Red Hat 4.8.5-28) (GCC)

      Description

      Create a PS8 debug build as below:

      git clone --recursive --depth=1 https://github.com/georgelorchpercona/percona-server.git -b ps-8.0-5043 PS-8.0-trunk
      cd PS-8.0-trunk
      ~/percona-qa/build_psms_debug.sh
      

      Debug build creation fails and displays the following errors:

      [ 54%] Building CXX object storage/rocksdb/CMakeFiles/ldb.dir/rocksdb/tools/ldb_cmd.cc.o
      In file included from /home/mchawla/PS-8.0-trunk_dbg/storage/rocksdb/rocksdb/db/dbformat.h:22:0,
       from /home/mchawla/PS-8.0-trunk_dbg/storage/rocksdb/rocksdb/db/memtable_list.h:15,
       from /home/mchawla/PS-8.0-trunk_dbg/storage/rocksdb/rocksdb/db/column_family.h:17,
       from /home/mchawla/PS-8.0-trunk_dbg/storage/rocksdb/rocksdb/db/db_impl.h:22,
       from /home/mchawla/PS-8.0-trunk_dbg/storage/rocksdb/rocksdb/tools/ldb_cmd.cc:15:
      /home/mchawla/PS-8.0-trunk_dbg/storage/rocksdb/rocksdb/util/coding.h:362:51: error: '__no_sanitize_undefined__' attribute directive ignored [-Werror=attributes]
       inline void PutUnaligned(T *memory, const T &value) {
       ^
      /home/mchawla/PS-8.0-trunk_dbg/storage/rocksdb/rocksdb/util/coding.h:379:51: error: '__no_sanitize_undefined__' attribute directive ignored [-Werror=attributes]
       inline void GetUnaligned(const T *memory, T *value) {
       ^
      cc1plus: all warnings being treated as errors
      make[2]: *** [storage/rocksdb/CMakeFiles/ldb.dir/rocksdb/tools/ldb_cmd.cc.o] Error 1
      make[1]: *** [storage/rocksdb/CMakeFiles/ldb.dir/all] Error 2
      make: *** [all] Error 2
      CPack: Create package using TGZ
      CPack: Install projects
      CPack: - Run preinstall target for: MySQL
      CPack Error: Problem running install command: "/usr/bin/gmake" "preinstall"
      Please check /home/mchawla/PS-8.0-trunk_dbg/_CPack_Packages/Linux/TGZ/PreinstallOutput.log for errors
      CPack Error: Error when generating package: MySQL
      ls: cannot access *.tar.gz: No such file or directory
      There was some unknown build issue... Have a nice day!

      Debug options:

      MAKE_THREADS=1 # Number of build threads. There may be a bug for builds when setting this >1
      WITH_EMBEDDED_SERVER=0 # 0 or 1 # Include the embedder server (removed in 8.0)
      WITH_LOCAL_INFILE=1 # 0 or 1 # Include the possibility to use LOAD DATA LOCAL INFILE (LOCAL option was removed in 8.0?)
      USE_BOOST_LOCATION=0 # 0 or 1 # Use a custom boost location to avoid boost re-download
      BOOST_LOCATION=/git/boost_1_59_0-debug/
      USE_CUSTOM_COMPILER=0 # 0 or 1 # Use a customer compiler
      CUSTOM_COMPILER_LOCATION="/home/roel/GCC-5.5.0/bin"
      USE_CLANG=0 # 0 or 1 # Use the clang compiler instead of gcc
      USE_SAN=0 # 0 or 1 # Use ASAN, MSAN, UBSAN
      CLANG_LOCATION="/home/roel/third_party/llvm-build/Release+Asserts/bin/clang" # Should end in /clang (and assumes presence of /clang++)
      USE_AFL=0 # 0 or 1 # Use the American Fuzzy Lop gcc/g++ wrapper instead of gcc/g++
      AFL_LOCATION="$(cd `dirname $0` && pwd)/fuzzer/afl-2.52b
      CMD="cmake . $CLANG $AFL $SSL -DCMAKE_BUILD_TYPE=Debug -DBUILD_CONFIG=mysql_release -DFEATURE_SET=community -DDEBUG_EXTNAME=OFF -DWITH_EMBEDDED_SERVER=${WITH_EMBEDDED_SERVER} -DENABLE_DOWNLOADS=1 ${BOOST} -DENABLED_LOCAL_INFILE=${WITH_LOCAL_INFILE} -DENABLE_DTRACE=0 -DWITH_PERFSCHEMA_STORAGE_ENGINE=1 ${ZLIB} -DWITH_ROCKSDB=${WITH_ROCKSDB} -DWITH_PAM=ON ${SAN} ${FLAGS}"
      

       
      PS debug build cannot be created, hence this issue is important to get fixed.

        Smart Checklist

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  george.lorch George Lorch
                  Reporter:
                  manish.chawla Manish Chawla
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - Not Specified
                    Not Specified
                    Logged:
                    Time Spent - 1 hour, 12 minutes
                    1h 12m