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

Performance schema fails to compile on AIX

    XMLWordPrintable

Details

    • Sprint 7 (07.04.2025), Sprint 8 (21.04.2025), Sprint 9 (05.05.2025)

    Description

      10.6

      -- Performing Test HAVE_PTHREAD_THREADID_NP
      -- Performing Test HAVE_PTHREAD_THREADID_NP - Success
      -- Looking for gettid
      -- Looking for gettid - not found
      -- Performing Test HAVE_SYS_GETTID
      -- Performing Test HAVE_SYS_GETTID - Failed
      -- Performing Test HAVE_GETTHRID
      -- Performing Test HAVE_GETTHRID - Success
      -- Performing Test HAVE_PTHREAD_GETTHREADID_NP
      -- Performing Test HAVE_PTHREAD_GETTHREADID_NP - Failed
      -- Performing Test HAVE_INTEGER_PTHREAD_SELF
      -- Performing Test HAVE_INTEGER_PTHREAD_SELF - Success
       
      note HAVE_GETTHRID is passing on a warning meaning it isn't there
              /opt/freeware/bin/cc -DHAVE_GETTHRID  -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -maix64 -pthread -mcmodel=large -pie -fPIC  -std=gnu99 -o CMakeFiles/cmTC_f4e56.dir/src.c.o -c /home/buildbot/build_10.6/CMakeFiles/CMakeScratch/TryCompile-p35qgP/src.c
              /home/buildbot/build_10.6/CMakeFiles/CMakeScratch/TryCompile-p35qgP/src.c: In function 'main':
              /home/buildbot/build_10.6/CMakeFiles/CMakeScratch/TryCompile-p35qgP/src.c:5:28: warning: implicit declaration of function 'getthrid'; did you mean 'getsid'? [-Wimplicit-function-declaration]
                  5 |   unsigned long long tid = getthrid();
                    |                            ^~~~~~~~
                    |                            getsid
      

      Error obvious during compulation:

      [ 70%] Building CXX object storage/perfschema/CMakeFiles/perfschema.dir/pfs_program.cc.o
      In file included from /home/buildbot/server_10.6/storage/perfschema/pfs.h:34,
                       from /home/buildbot/server_10.6/storage/perfschema/pfs_account.cc:30:
      /home/buildbot/server_10.6/storage/perfschema/my_thread.h: In function 'my_thread_os_id_t my_thread_os_id()':
      /home/buildbot/server_10.6/storage/perfschema/my_thread.h:64:3: error: 'pthread_threadid_np' was not declared in this scope
         64 |   pthread_threadid_np(nullptr, &tid64);
            |   ^~~~~~~~~~~~~~~~~~~
      

      Attachments

        Issue Links

          Activity

            People

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