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

MariaDB 10.1.18 fails to build on PowerPC (ppc32)

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 10.1.18
    • N/A
    • Compiling
    • Linux, AOSC OS.

      GCC Version: 6.2.0.
    • 10.1.19, 10.1.21

    Description

      I wasn't able to build MariaDB 1.0.1.18, with the following CMake configuration:

                   -DCMAKE_AR=/usr/bin/gcc-ar \
                   -DCMAKE_RANLIB=/usr/bin/gcc-ranlib \
                   -DBUILD_CONFIG=mysql_release \
                   -DCMAKE_INSTALL_PREFIX=/usr \
                   -DSYSCONFDIR=/etc/mysql \
                   -DMYSQL_DATADIR=/var/lib/mysql \
                   -DMYSQL_UNIX_ADDR=/run/mysqld/mysqld.sock \
                   -DDEFAULT_CHARSET=utf8 \
                   -DDEFAULT_COLLATION=utf8_general_ci \
                   -DENABLED_LOCAL_INFILE=ON \
                   -DINSTALL_INFODIR=share/mysql/docs \
                   -DINSTALL_MANDIR=share/man \
                   -DINSTALL_PLUGINDIR=lib/mysql/plugin \
                   -DINSTALL_SCRIPTDIR=bin \
                   -DINSTALL_INCLUDEDIR=include/mysql \
                   -DINSTALL_DOCREADMEDIR=share/mysql \
                   -DINSTALL_SUPPORTFILESDIR=share/mysql \
                   -DINSTALL_MYSQLSHAREDIR=share/mysql \
                   -DINSTALL_DOCDIR=share/mysql/docs \
                   -DINSTALL_SHAREDIR=share/mysql \
                   -DWITH_READLINE=ON \
                   -DWITH_ZLIB=system \
                   -DWITH_SSL=system \
                   -DWITH_PCRE=system \
                   -DWITH_LIBWRAP=OFF \
                   -DWITH_JEMALLOC=ON \
                   -DCMAKE_EXE_LINKER_FLAGS=-ljemalloc \
                   -DWITH_EXTRA_CHARSETS=complex \
                   -DWITH_EMBEDDED_SERVER=ON \
                   -DWITH_ARCHIVE_STORAGE_ENGINE=1 \
                   -DWITH_BLACKHOLE_STORAGE_ENGINE=1 \
                   -DWITH_INNOBASE_STORAGE_ENGINE=1 \
                   -DWITH_PARTITION_STORAGE_ENGINE=1 \
                   -DWITH_TOKUDB=ON \
                   -DWITHOUT_EXAMPLE_STORAGE_ENGINE=1 \
                   -DWITHOUT_FEDERATED_STORAGE_ENGINE=1 \
                   -DWITHOUT_PBXT_STORAGE_ENGINE=1 \
                   -DWITH_MYSQLD_LDFLAGS=${LD_MYSQLD}"
      

      With the following error:

      In file included from /var/lib/abbs/build/tmp.Rqhno2Nn60/mariadb-10.1.18/include/lf.h:19:0,
                       from /var/lib/abbs/build/tmp.Rqhno2Nn60/mariadb-10.1.18/mysys/lf_alloc-pin.c:104:
      /var/lib/abbs/build/tmp.Rqhno2Nn60/mariadb-10.1.18/include/my_atomic.h:121:2: error: #error atomic ops for this platform are not implemented
       #error atomic ops for this platform are not implemented
        ^~~~~
      /var/lib/abbs/build/tmp.Rqhno2Nn60/mariadb-10.1.18/include/my_atomic.h: In function 'my_atomic_cas32':
      /var/lib/abbs/build/tmp.Rqhno2Nn60/mariadb-10.1.18/include/my_atomic.h:209:3: warning: implicit declaration of function 'make_atomic_cas_body' [-Wimplicit-function-declaration]
         make_atomic_cas_body(S);                                      \
         ^
      /var/lib/abbs/build/tmp.Rqhno2Nn60/mariadb-10.1.18/include/my_atomic.h:248:1: note: in expansion of macro 'make_atomic_cas'
       make_atomic_cas(32)
       ^~~~~~~~~~~~~~~
      /var/lib/abbs/build/tmp.Rqhno2Nn60/mariadb-10.1.18/include/my_atomic.h: In function 'my_atomic_casptr':
      /var/lib/abbs/build/tmp.Rqhno2Nn60/mariadb-10.1.18/include/my_atomic.h:250:17: error: 'ptr' undeclared (first use in this function)
       make_atomic_cas(ptr)
                       ^
      /var/lib/abbs/build/tmp.Rqhno2Nn60/mariadb-10.1.18/include/my_atomic.h:209:24: note: in definition of macro 'make_atomic_cas'
         make_atomic_cas_body(S);                                      \
                              ^
      /var/lib/abbs/build/tmp.Rqhno2Nn60/mariadb-10.1.18/include/my_atomic.h:250:17: note: each undeclared identifier is reported only once for each function it appears in
       make_atomic_cas(ptr)
                       ^
      /var/lib/abbs/build/tmp.Rqhno2Nn60/mariadb-10.1.18/include/my_atomic.h:209:24: note: in definition of macro 'make_atomic_cas'
         make_atomic_cas_body(S);                                      \
                              ^
      [ 14%] Building C object mysys/CMakeFiles/mysys.dir/lf_hash.c.o
      make[2]: *** [mysys/CMakeFiles/mysys.dir/build.make:2199: mysys/CMakeFiles/mysys.dir/lf_alloc-pin.c.o] Error 1
      make[2]: *** Waiting for unfinished jobs....
      

      GCC version info as follows:

      Using built-in specs.
      COLLECT_GCC=gcc
      COLLECT_LTO_WRAPPER=/usr/lib/gcc/powerpc-aosc-linux-gnu/6.2.0/lto-wrapper
      Target: powerpc-aosc-linux-gnu
      Configured with: /var/lib/abbs/build/tmp.4hpEfTAwvJ/gcc-6.2.0/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://github.com/AOSC-Dev/aosc-os-core --enable-languages=c,c++,fortran,lto,objc,obj-c++ --enable-shared --enable-threads=posix --with-system-zlib --enable-gnu-indirect-function --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --with-isl=/usr --enable-lto --enable-plugin --enable-install-libiberty --disable-multilib --disable-werror --enable-pie --enable-checking=release --with-default-libstdcxx-abi=gcc4-compatible --build=powerpc-aosc-linux-gnu --with-linker-hash-style=gnu --with-tune=G4 --with-long-double-128 --enable-secureplt --with-cpu=powerpc --with-tune=G4 --enable-secureplt
      Thread model: posix
      gcc version 6.2.0 20160822 (AOSC OS, Core) (GCC)
      

      Attachments

        Issue Links

          Activity

            People

              cvicentiu Vicențiu Ciorbaru
              MingcongBai Mingcong Bai
              Votes:
              1 Vote for this issue
              Watchers:
              8 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.