[MDEV-8403] Build on AIX: my_atomic.h", line 121.2: 1506-205 (S) #error atomic ops for this platform are not implemented Created: 2015-06-30 Updated: 2016-12-21 Resolved: 2016-12-21 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Compiling |
| Affects Version/s: | 10.1.6 |
| Fix Version/s: | 10.3.0 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Pete Lancashire | Assignee: | Sergey Vojtovich |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
oslevel -s 7100-03-05-1524 |
||
| Attachments: |
|
||||||||||||
| Issue Links: |
|
||||||||||||
| Description |
|
Change optimization from O5 to O2 to see if could get past some errors but got this one
Found this in the cmake
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 |
| Comments |
| Comment by Pete Lancashire [ 2015-07-10 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Same result
I've attached CMakeCache.txt BTW even more cut down CFLAGS
same | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Sergey Vojtovich [ 2015-07-22 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||
|
We'd gladly fix this if we had AIX hosts around. The fact that gcc tests succeed are actually good news: xlc_r has support for "GCC atomic memory access built-in functions". That is there is no need to implement special code for xlc. But it looks like include/atomic/nolock.h didn't like this fact: it only accepts GCC sync built-ins when compiler is gcc. See also: http://www-01.ibm.com/support/docview.wss?uid=swg27024742&aid=1 | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2015-08-03 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||
|
you can try this patch:
but make sure to run all related unit tests (my_atomic-t and lf-t) after your changes. | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Aurélien LEQUOY [ 2015-08-27 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||
|
this patch failed on BananaPi (ARM v7)
| |||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Aurélien LEQUOY [ 2015-08-27 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||
|
after dunno why gcc broken lol
| |||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Aurélien LEQUOY [ 2015-08-27 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||
|
you forgot one #endif but it's work finally | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Aurélien LEQUOY [ 2015-11-28 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||
|
this is still open ? on MariaDB 10.1.8 & 10.1.9 + Galera this work perfectly on ARM v71 without any patch | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Daniel Black [ 2015-11-29 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||
|
current implementation: include/atomic/nolock.h
glad it works for you. | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Nathan Malinoski [ 2016-08-11 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I'm also experiencing this error building mariadb-10.1.16 on Gentoo sparc. System uname: Linux-4.7.0-gentoo-sparc64-sun4u-with-gentoo-2.2 | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Sergey Vojtovich [ 2016-12-21 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||
|
This was fixed in |