Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 650758 - dev-db/mariadb-10.1.31-r1: "#error atomic ops for this platform are not implemented" on PPC
Summary: dev-db/mariadb-10.1.31-r1: "#error atomic ops for this platform are not imple...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: Normal normal
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 649038
  Show dependency tree
 
Reported: 2018-03-17 22:27 UTC by Matt Turner
Modified: 2018-11-25 01:06 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log.xz (build.log.xz,15.59 KB, application/x-xz)
2018-03-17 22:27 UTC, Matt Turner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Turner gentoo-dev 2018-03-17 22:27:06 UTC
Created attachment 524224 [details]
build.log.xz

#error atomic ops for this platform are not implemented
Comment 1 Matt Turner gentoo-dev 2018-03-17 22:37:08 UTC
Same problem, but different error on mariadb-10.3.5_rc

/var/tmp/portage/dev-db/mariadb-10.3.5_rc/work/mysql/unittest/mysys/my_atomic-t.c:29: undefined reference to `my_atomic_add32'
Comment 2 Brian Evans (RETIRED) gentoo-dev 2018-04-11 13:47:44 UTC
Do we need to do anything special to get HAVE_GCC_ATOMIC_BUILTINS defined on PPC?  This is required.
Comment 3 Brian Evans (RETIRED) gentoo-dev 2018-04-11 15:05:06 UTC
The strange part is that this last changed in 2015 on MariaDB 10.1. Perhaps something else changed with gcc then??
Comment 4 Larry the Git Cow gentoo-dev 2018-05-15 02:24:17 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=11f5c01e7786aaa77c2aa8691cdcbc0ac0d48b83

commit 11f5c01e7786aaa77c2aa8691cdcbc0ac0d48b83
Author:     Brian Evans <grknight@gentoo.org>
AuthorDate: 2018-05-15 02:23:55 +0000
Commit:     Brian Evans <grknight@gentoo.org>
CommitDate: 2018-05-15 02:23:55 +0000

    dev-db/mariadb: Add patch to 10.1 series for atomic detection
    
    Patch borrowed from Debian's build
    
    Bug: https://bugs.gentoo.org/650758
    Package-Manager: Portage-2.3.36, Repoman-2.3.9

 dev-db/mariadb/Manifest                  |  1 +
 dev-db/mariadb/mariadb-10.1.31-r1.ebuild |  5 +++--
 dev-db/mariadb/mariadb-10.1.33.ebuild    |  9 +++++++--
 dev-db/mariadb/mariadb-10.2.14.ebuild    | 13 +++++++++----
 4 files changed, 20 insertions(+), 8 deletions(-)
Comment 5 Brian Evans (RETIRED) gentoo-dev 2018-05-15 02:25:31 UTC
Please test 10.1.31 patch.

10.3.x is a rework and we will have to see if something can be done easily
Comment 6 Larry the Git Cow gentoo-dev 2018-05-15 14:01:13 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d72c80fdcbd10c59d8f1c4bc1f9370ccc1660ffc

commit d72c80fdcbd10c59d8f1c4bc1f9370ccc1660ffc
Author:     Brian Evans <grknight@gentoo.org>
AuthorDate: 2018-05-15 14:00:17 +0000
Commit:     Brian Evans <grknight@gentoo.org>
CommitDate: 2018-05-15 14:01:03 +0000

    dev-db/mariadb: Respin atomic detection patch for 10.2 and 10.3
    
    Closes: https://bugs.gentoo.org/650758
    Package-Manager: Portage-2.3.36, Repoman-2.3.9

 dev-db/mariadb/Manifest                 | 2 +-
 dev-db/mariadb/mariadb-10.2.14.ebuild   | 4 ++--
 dev-db/mariadb/mariadb-10.3.6_rc.ebuild | 9 +++++----
 3 files changed, 8 insertions(+), 7 deletions(-)