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

RocksDB build fails on riscv64

    XMLWordPrintable

Details

    Description

      When building on RiscV64 on Ubuntu/Debian this fails due to missing libatomic fixes.

      And example fromt he related bug/discussion at https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=933151:

      /usr/bin/ld: librocksdblib.a(memtable.cc.o): in function `.L0 ':
      ./builddir/storage/rocksdb/./storage/rocksdb/rocksdb/util/dynamic_bloom.h:177:
      undefined reference to `__atomic_fetch_or_1'
      /usr/bin/ld: librocksdblib.a(memtable.cc.o): in function `.LVL1731':
      ./builddir/storage/rocksdb/./storage/rocksdb/rocksdb/util/dynamic_bloom.h:179:
      undefined reference to `__atomic_fetch_or_1'
      /usr/bin/ld: librocksdblib.a(memtable.cc.o): in function `SaveValue':
      ./builddir/storage/rocksdb/./storage/rocksdb/rocksdb/db/memtable.cc:596:
      undefined reference to `__atomic_compare_exchange_1'
      /usr/bin/ld: librocksdblib.a(memtable.cc.o): in function `.L0 ':
      /usr/include/c++/8/bits/atomic_base.h:434: undefined reference to
      `__atomic_compare_exchange_1'
      /usr/bin/ld: /usr/include/c++/8/bits/atomic_base.h:434: undefined
      reference to `__atomic_compare_exchange_1'
      /usr/bin/ld: /usr/include/c++/8/bits/atomic_base.h:434: undefined
      reference to `__atomic_compare_exchange_1'
      /usr/bin/ld: /usr/include/c++/8/bits/atomic_base.h:434: undefined
      reference to `__atomic_compare_exchange_1'
      /usr/bin/ld: librocksdblib.a(memtable.cc.o):/usr/include/c++/8/bits/atomic_base.h:434:
      more undefined references to `__atomic_compare_exchange_1' follow
      collect2: error: ld returned 1 exit status

      Attachments

        1. screenshot-4.png
          screenshot-4.png
          65 kB
        2. screenshot-3.png
          screenshot-3.png
          97 kB
        3. screenshot-2.png
          screenshot-2.png
          46 kB
        4. screenshot-1.png
          screenshot-1.png
          105 kB

        Issue Links

          Activity

            People

              danblack Daniel Black
              cpaelzer Christian Ehrhardt
              Votes:
              1 Vote for this issue
              Watchers:
              6 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.