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

Raspbian compilation failed on atomic ops

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 10.1.4
    • Fix Version/s: N/A
    • Component/s: Compiling
    • Labels:
      None
    • Environment:
      ARM Raspbian Linux

      Description

      I've try with additional flags

      -DWITH_ATOMIC_OPS=up
      -DWITH_ATOMIC_OPS=smp

      In file included from /root/mariadb-10.1.4/include/lf.h:19:0,
                       from /root/mariadb-10.1.4/mysys/lf_alloc-pin.c:104:
      /root/mariadb-10.1.4/include/my_atomic.h:121:2: error: #error atomic ops for this platform are not implemented
      /root/mariadb-10.1.4/include/my_atomic.h: In function ‘my_atomic_casptr’:
      /root/mariadb-10.1.4/include/my_atomic.h:250:1: error: ‘ptr’ undeclared (first use in this function)
      /root/mariadb-10.1.4/include/my_atomic.h:250:1: note: each undeclared identifier is reported only once for each function it appears in
      mysys/CMakeFiles/mysys.dir/build.make:2101: recipe for target 'mysys/CMakeFiles/mysys.dir/lf_alloc-pin.c.o' failed
      

      glibc:
      (Debian EGLIBC 2.13-38+rpi2+deb7u7) 2.13

      cpu:
      model name : ARMv7 Processor rev 5 (v7l)

      version:
      Linux version 3.18.7-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.8.3 20140303 (prerelease) (crosstool-NG linaro-1.13.1+bzr2650 - Linaro GCC 2014.03) ) #755 SMP PREEMPT Thu Feb 12 17:20:48 GMT 2015

      10.0 code based does not look affected

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            serg Sergei Golubchik added a comment -

            what gcc version was it?

            Show
            serg Sergei Golubchik added a comment - what gcc version was it?
            Hide
            stephane@skysql.com VAROQUI Stephane added a comment -

            gcc (Debian 4.6.3-14+rpi1) 4.6.3
            ldd (Debian EGLIBC 2.13-38+rpi2+deb7u7) 2.13

            Show
            stephane@skysql.com VAROQUI Stephane added a comment - gcc (Debian 4.6.3-14+rpi1) 4.6.3 ldd (Debian EGLIBC 2.13-38+rpi2+deb7u7) 2.13
            Hide
            serg Sergei Golubchik added a comment -

            It seems that you need at least gcc 4.8 to use atomics (in particular 64-bit compare-and-swap) on ARM. See gcc wiki https://gcc.gnu.org/wiki/Atomic

            Show
            serg Sergei Golubchik added a comment - It seems that you need at least gcc 4.8 to use atomics (in particular 64-bit compare-and-swap) on ARM. See gcc wiki https://gcc.gnu.org/wiki/Atomic
            Hide
            stephane@skysql.com VAROQUI Stephane added a comment -

            Thanks for the info

            Show
            stephane@skysql.com VAROQUI Stephane added a comment - Thanks for the info

              People

              • Assignee:
                serg Sergei Golubchik
                Reporter:
                stephane@skysql.com VAROQUI Stephane
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: