You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@kudu.apache.org by "Alexey Serbin (Code Review)" <ge...@cloudera.org> on 2019/11/01 06:15:41 UTC

[kudu-CR] KUDU-2724: binary jar build on OSX should specify target macOS version

Alexey Serbin has uploaded a new patch set (#2) to the change originally created by Mike Percy. ( http://gerrit.cloudera.org:8080/12655 )

Change subject: KUDU-2724: binary jar build on OSX should specify target macOS version
......................................................................

KUDU-2724: binary jar build on OSX should specify target macOS version

This patch specifies the environment variable MACOSX_DEPLOYMENT_TARGET
when building the binary test jar for macOS in order to specify the
macOS SDK version to build against.

The environment variable is set before calling
thirdparty/build-if-necessary.sh, however there is no logic to detect
whether a previous thirdparty build happened without the environment
variable set.

Maybe this flag should be incorporated into the macOS Kudu build at a
more fundamental level, rather than being tacked onto the binary jar
build script, or perhaps this script should run git clean -xdf
thirdparty or something similar when running on macOS to ensure that we
ship thirdparty shared objects targeted for the intended platform.

NOTE: trying to build third-party for MACOSX_DEPLOYMENT_TARGET=10.12
      on macOS 10.13 with development environment installed by Xcode 10,
      the following error surfaced:

thirdparty/src/gperftools-2.6.90/src/tests/tcmalloc_unittest.cc:1382:5: error:
    aligned deallocation function of type 'void (void *, std::size_t, std::align_val_t) throw()'
    is only available on macOS 10.13 or newer [-Waligned-allocation-unavailable]

Change-Id: Ib06fec3031e247498b4eefac672c7204a4b3ed61
---
M build-support/mini-cluster/build_mini_cluster_binaries.sh
1 file changed, 14 insertions(+), 6 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/55/12655/2
-- 
To view, visit http://gerrit.cloudera.org:8080/12655
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ib06fec3031e247498b4eefac672c7204a4b3ed61
Gerrit-Change-Number: 12655
Gerrit-PatchSet: 2
Gerrit-Owner: Mike Percy <mp...@apache.org>
Gerrit-Reviewer: Adar Dembo <ad...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Grant Henke <gr...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)