[MDEV-9348] XtraDB 5.6.27 merge breaks IBM System z builds Created: 2015-12-30  Updated: 2015-12-31  Resolved: 2015-12-31

Status: Closed
Project: MariaDB Server
Component/s: Storage Engine - InnoDB, Storage Engine - XtraDB
Affects Version/s: 10.1.10
Fix Version/s: 10.1.10

Type: Bug Priority: Critical
Reporter: Kolbe Kegel (Inactive) Assignee: Jan Lindström (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Environment:

SLES 11 IBM System z



 Description   

commit 1e270d504d56cb015efe060b319e3a5b9bc6513f to merge 5.6.27-76.0 includes a change to b/storage/xtradb/include/os0sync.h that breaks builds on IBM System z:

In file included from /home/buildbot/maria-slave/ibmz-sles11-rpm/build/storage/xtradb/include/ut0ut.h:36,
                 from /home/buildbot/maria-slave/ibmz-sles11-rpm/build/storage/xtradb/include/univ.i:658,
                 from /home/buildbot/maria-slave/ibmz-sles11-rpm/build/storage/xtradb/api/api0api.cc:27:
/home/buildbot/maria-slave/ibmz-sles11-rpm/build/storage/xtradb/include/os0sync.h:522:4: error: #error "Unsupported platform"



 Comments   
Comment by Jan Lindström (Inactive) [ 2015-12-31 ]

Cherry-picked the missing commit from 10.1 to 10.1e

commit ee8a0b71d3a08e1ae4b524b8324fdcb3768b29e7
Author: Sergey Vojtovich <svoj@mariadb.org>
Date: Sun Dec 27 15:40:34 2015 +0400

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.

Generated at Thu Feb 08 07:33:59 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.