Search code examples
mysqlcmakecentos7rpmrpmbuild

Unable to cmake mysql for ARM


I'm trying to build MySQL client for CentOS7 - (aarch64) by using this guide: Building MySQL from Source.

On this step $> rpmbuild --rebuild --clean MySQL-VERSION.src.rpm towards the end of the command I get the following error;

  [ 82%] Built target mysqlpump_lib
make[2]: Leaving directory `/root/rpmbuild/BUILD/mysql-5.7.39/debug'
make[1]: *** [libmysqld/CMakeFiles/sql_embedded.dir/all] Error 2
make[1]: Leaving directory `/root/rpmbuild/BUILD/mysql-5.7.39/debug'
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.MolOTB (%build)


RPM build errors:
    mysql-community-5.7.39-1.el7.src.rpm: Header V4 RSA/SHA256 Signature, key ID 3a79bd29: NOKEY
    user pb2user does not exist - using root
    group common does not exist - using root
    user pb2user does not exist - using root
    group common does not exist - using root
    user pb2user does not exist - using root
    group common does not exist - using root
    user pb2user does not exist - using root
    group common does not exist - using root
    user pb2user does not exist - using root
    group common does not exist - using root
    user pb2user does not exist - using root
    group common does not exist - using root
    Bad exit status from /var/tmp/rpm-tmp.MolOTB (%build)

What could be causing this ?

Thanks in advance!


Solution

  • Okay!

    I was able to move forward with by installing newer gnu compiler.

    [root@2e509877c7be mysql]# gcc --version
    

    gcc (GCC) 7.3.1 20180303 (Red Hat 7.3.1-5) Copyright (C) 2017 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

    [root@2e509877c7be mysql]#