[debian-mysql] Bug#754623: percona-xtradb-cluster-galera-2.x: FTBFS on many archs
Dejan Latinovic
Dejan.Latinovic at imgtec.com
Fri Aug 15 12:00:32 UTC 2014
Hi,
The reason for this failure is a difference
in alignment of long long for MIPS ISA and IA32.
This results that size of gu_rse structure on mips is 24,
instead of expected 20 (on ia32).
As long long is first attribute in structure,
so it is safe to use pack(4).
> struct gu_rse
> {
> long long time;
> const void* heap_ptr;
> const void* stack_ptr;
> long pid;
> };
I assume that this fix could be used for other architectures like:
armel, armhf, powerpc, sparc.
I did not have a chance to test it on those architectures,
so my changes affects only mips and mipsel.
Solving this issue, fallowing error appears:
> gcs/src/gcs.c:1161: undefined reference to `__sync_fetch_and_add_8'
Mips platform does not have 64-bit __sync_* operations.
To avoid this behaviuor it is needed to use
corresponding __atomic_* from libatomic library.
Patch that solves both issues for mips/mipsel is attached.
Could you please consider including this patch?
Best Regards,
Dejan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-mips.patch
Type: text/x-patch
Size: 3797 bytes
Desc: fix-mips.patch
URL: <http://lists.alioth.debian.org/pipermail/pkg-mysql-maint/attachments/20140815/bc7b6ccd/attachment.bin>
More information about the pkg-mysql-maint
mailing list