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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.5.25, 10.5
    • 10.5, 10.11
    • None
    • 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

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.