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

Build on AIX: my_atomic.h", line 121.2: 1506-205 (S) #error atomic ops for this platform are not implemented

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • 10.1.6
    • 10.3.0
    • Compiling
    • None

    Description

      Change optimization from O5 to O2 to see if could get past some errors but got this one

      [ 16%] Building C object mysys/CMakeFiles/mysys.dir/lf_alloc-pin.c.o
      "/home/buildsw/packages/mariadb-server-10.1.6/include/my_atomic.h", line 121.2: 1506-205 (S) #error atomic ops for this platform are not implemented
      "/home/buildsw/packages/mariadb-server-10.1.6/include/my_atomic.h", line 250.17: 1506-045 (S) Undeclared identifier ptr.
      mysys/CMakeFiles/mysys.dir/build.make:2198: recipe for target 'mysys/CMakeFiles/mysys.dir/lf_alloc-pin.c.o' failed
      make[2]: *** [mysys/CMakeFiles/mysys.dir/lf_alloc-pin.c.o] Error 1

      Found this in the cmake

      -- Performing Test HAVE_IB_GCC_ATOMIC_BUILTINS
      -- Performing Test HAVE_IB_GCC_ATOMIC_BUILTINS - Success
      -- Performing Test HAVE_IB_GCC_ATOMIC_BUILTINS_BYTE
      -- Performing Test HAVE_IB_GCC_ATOMIC_BUILTINS_BYTE - Failed
      -- Performing Test HAVE_IB_GCC_ATOMIC_BUILTINS_64
      -- Performing Test HAVE_IB_GCC_ATOMIC_BUILTINS_64 - Success
      -- Performing Test HAVE_IB_GCC_SYNC_SYNCHRONISE
      -- Performing Test HAVE_IB_GCC_SYNC_SYNCHRONISE - Success
      -- Performing Test HAVE_IB_GCC_ATOMIC_THREAD_FENCE
      -- Performing Test HAVE_IB_GCC_ATOMIC_THREAD_FENCE - Failed
      -- Performing Test HAVE_IB_ATOMIC_PTHREAD_T_GCC
      -- Performing Test HAVE_IB_ATOMIC_PTHREAD_T_GCC - Success
      -- Performing Test HAVE_C99_INITIALIZERS
      -- Performing Test HAVE_C99_INITIALIZERS - Success
      -- Looking for asprintf

      It looks like the tests for gcc are wrong, should not even be trying gcc since the compiler is xlc_r

      I have attached the output of the cmake pass

      Attachments

        1. cmake.out
          30 kB
          Pete Lancashire
        2. CMakeCache.txt
          70 kB
          Pete Lancashire
        3. env.out
          2 kB
          Pete Lancashire

        Issue Links

          Activity

            People

              svoj Sergey Vojtovich
              petepdx2 Pete Lancashire
              Votes:
              0 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.