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

prefschema, clang, UBSAN - fails to build - libperfschema.a(pfs_instr.cc.o):(.data+0x63b8): undefined reference to `typeinfo for THD'

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 10.5
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Fedora 31, x86_64, clang-9, UBAN, CMAKE_BUILD_TYPE=Debug

      Description

      10.5-605555fc31784302a54d398d9503ca1e9e4bdec9

      $ cmake -DWITH_UBSAN=ON .
      -- Running cmake version 3.17.3
      -- MariaDB 10.5.4
      -- Performing Test have_C__fsanitize_undefined__fno_sanitize_alignment__U_FORTIFY_SOURCE__DWITH_UBSAN
      -- Performing Test have_C__fsanitize_undefined__fno_sanitize_alignment__U_FORTIFY_SOURCE__DWITH_UBSAN - Success
      -- Performing Test have_CXX__fsanitize_undefined__fno_sanitize_alignment__U_FORTIFY_SOURCE__DWITH_UBSAN
      -- Performing Test have_CXX__fsanitize_undefined__fno_sanitize_alignment__U_FORTIFY_SOURCE__DWITH_UBSAN - Success
      -- Wsrep-lib version: 1.0.0
      ...
      [ 82%] Building CXX object storage/perfschema/unittest/CMakeFiles/pfs_user-oom-t.dir/pfs_user-oom-t.cc.o
      [ 82%] Linking CXX executable pfs_instr-oom-t
      /usr/bin/ld: ../libperfschema.a(pfs_instr.cc.o):(.data+0x63b8): undefined reference to `typeinfo for THD'
      /usr/bin/ld: ../libperfschema.a(pfs_instr.cc.o):(.data+0x6428): undefined reference to `typeinfo for THD'
      /usr/bin/ld: ../libperfschema.a(pfs_instr.cc.o):(.data+0x6498): undefined reference to `typeinfo for THD'
      

      $ clang++-9 --version
      clang version 9.0.1 (Fedora 9.0.1-2.fc31)
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            danblack Daniel Black
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: