Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDEV-9128 - Compiling on IBM System Z fails
Provided IBM System Z have outdated compiler version, which supports gcc sync builtins but not gcc atomic builtins. It also has weak memory model. InnoDB attempted to verify if __sync_lock_test_and_set() is available by checking IB_STRONG_MEMORY_MODEL. This macro has nothing to do with availability of __sync_lock_test_and_set(), the right one is HAVE_ATOMIC_BUILTINS.
- Loading branch information
edf6354
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This also needs to be copied over to storage/xtradb/include/os0sync.h.
edf6354
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We didn't have this code in XtraDB at the time of fixing. Now we have it and indeed it has to be fixed. Thanks for pointing this out!
edf6354
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also back port this fix for both InnoDB and XtraDB to the 10.0 branch and ensure it goes into 10.2.
edf6354
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This also fixes building 5.5 series on my FreeBSD 9.3 box on sparc64, please backport it there as well.