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

MyRocks linking fails with: Undefined reference to `ZDICT_trainFromBuffer'

    XMLWordPrintable

Details

    Description

      https://buildbot.askmonty.org/buildbot/builders/kvm-deb-stretch-amd64/builds/4213/steps/compile/logs/stdio

      librocksdblib.a(compaction_job.cc.o): In function `rocksdb::ZSTD_TrainDictionary(std::__cxx11::basic_string
      <char, std::char_traits<char>, std::allocator<char> > const&, std::vector<unsigned long,
       std::allocator<unsigned long> > const&, unsigned long)':
      ./builddir/storage/rocksdb/./storage/rocksdb/rocksdb/util/compression.h:812: undefined reference to `ZDICT_trainFromBuffer'
      ./builddir/storage/rocksdb/./storage/rocksdb/rocksdb/util/compression.h:813: undefined reference to `ZDICT_isError'
      collect2: error: ld returned 1 exit status
      storage/rocksdb/CMakeFiles/sst_dump.dir/build.make:98: recipe for target 'storage/rocksdb/sst_dump' failed
      

      It actually attempts to link with libzstd:

      /usr/bin/x86_64-linux-gnu-g++   -g -O2 
      -fdebug-prefix-map=/home/buildbot/buildbot/build/mariadb-10.2.16=. 
      -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security 
      -pie -fPIC -Wl,-z,relro,-z,now -fstack-protector --param=ssp-buffer-size=4 -fno-rtti -O3 -g -static-libgcc 
      -fno-omit-frame-pointer -fno-strict-aliasing -Wno-uninitialized -D_FORTIFY_SOURCE=2 -DDBUG_OFF
        -specs=/usr/share/dpkg/no-pie-link.specs -Wl,-z,relro -Wl,-z,now 
      CMakeFiles/sst_dump.dir/rocksdb/tools/sst_dump.cc.o  
      -o sst_dump  -lpthread librocksdblib.a -lsnappy -lzstd -lz -lpthread 
      

      but fails for some reason

      Attachments

        Issue Links

          Activity

            People

              cvicentiu Vicențiu Ciorbaru
              psergei Sergei Petrunia
              Votes:
              1 Vote for this issue
              Watchers:
              4 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.