Bug #75975 | Armv7h - compilation error (mysql-cluster 7.3.8) | ||
---|---|---|---|
Submitted: | 20 Feb 2015 9:13 | Modified: | 8 Oct 2015 7:46 |
Reporter: | sebekk23 _ | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Cluster: Cluster (NDB) storage engine | Severity: | S4 (Feature request) |
Version: | 7.3.8 | OS: | Linux (Allwinner A20 (Armv7ve hardfloat)) |
Assigned to: | CPU Architecture: | Any | |
Tags: | arm, Compilation |
[20 Feb 2015 9:13]
sebekk23 _
[20 Feb 2015 9:16]
sebekk23 _
Full error log
Attachment: full_log.txt (text/plain), 7.93 KiB.
[20 Feb 2015 9:17]
sebekk23 _
And one more little thing: even with only cmake . -BUILD_CONFIG=mysql_release and make -j1 error occurs
[20 Feb 2015 17:52]
sebekk23 _
I think that severit S4 is little bit too low ;) - update to S2
[23 Feb 2015 17:59]
sebekk23 _
mysql-cluster-gpl-7.3.0 builds without problems.
[5 Mar 2015 10:53]
Mikael Ronström
In order to compile MySQL Cluster one have to add support for memory barriers. The current level support is found in the file mt-asm.h in the directory storage/ndb/src/kernel/vm I don't know how to implement memory barriers in ARM v7 but this is what is required to get it to compile on ARM v7.
[5 Mar 2015 11:07]
Mikael Ronström
A bit of googling on the topic found the following: For armv6 need use: static inline void memory_barrier() { asm volatile ("mcr p15, 0, %0, c7, c10, 5" : : "r" (0) : "memory"); } For armv7 need use: static inline void memory_barrier() { asm volatile ("dmb" : : : "memory"); } Universal embedded gcc full memory barrier: static inline void memory_barrier() { __sync_synchronize(); } This was found at: https://github.com/genodelabs/genode/issues/692 Check mt-asm.h for examples of how other architectures are supported, obviously also requires understanding the proper #ifdef flags in the compiler for ASM v7.
[25 Apr 2015 18:37]
Gustaf Thorslund
Hi Sebo, Did you make any progress using Mikael's comments? Also note that ARM is not a supported platform for MySQL Cluster, so I'm changing the severity back to S4 (Feature request). For a list of supported platforms, please have a look at: https://www.mysql.com/support/supportedplatforms/cluster.html Regards, Gustaf
[26 May 2015 1:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".
[8 Oct 2015 7:46]
Gustaf Thorslund
Verified as described using: * MySQL Cluster 7.4.7 (from github) * Community maintained Ubuntu 14.04 for RPi2 from https://wiki.ubuntu.com/ARM/RaspberryPi * A RaspberryPi 2