From nobody Sun Sep 08 19:24:28 2024 X-Original-To: dev-commits-ports-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4X20Jr4jlKz5VtPT; Sun, 08 Sep 2024 19:24:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4X20Jr2NdWz46d3; Sun, 8 Sep 2024 19:24:28 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725823468; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=vYgrfz5Blk5ktPBOspUjaPJI4MXVwvaqZhn5NRxrjn8=; b=Qectp/ILM1oum+SKQTowDJEl43UfThbOfXkr8k1NK1Rd56Xuk4gVS0A6zDjVg/L5VE3RgW APZyCcB7W9V/EqGhXs0I5/o+HcVmOG9Lu04aRloqwjac9A5s6vMqneM38vr2Z4c5NPECbO Q/8JF0X+95qQAIcJ34vDidwyc8reKKg5B22UhEJQZ/OdLahzCXzZQxLsaLu+5zd05OZsSk opSl+jJb2Tjii5g9ks30I0FYSL/Z+56uuICb8tbdTOPJDPxwgnfRAZLWWIayVk0RrQgXYw nYPJPZb8ueyvR5MysxdKUjfrMv+AH+ZzQ7UmPyRA+yjaHxa6r3LF2CXi/PGpJA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1725823468; a=rsa-sha256; cv=none; b=hFIXgWKljQ4Ujo23PmKzF3t6zRg7qekhYGZY2TMJLUwkGGdN+Y1MZgkskGjLikG8dP33lI V/jtK+yx+cFkhGdIvA+A0oGNaOF7Uy7+emn2KiJ4crRdysHd9UDqmiNnnZSs+/TT2GPO7s f0TruvnCD14aLGiI8mq+Y5KJ2mCaAhOdh4whhnWUg8oKPFL9DxuZYQD6wn1Z/wmwgQIu5B RqDx+RtifVPMfK6SVbPbCWByuhN/UydXaFQ9r/GO/pwt2h+2hiOz0+ikD4Tns83++MSaVp Oa69skht5EJE4oKCVFAEr+BcfQsPm1+IRccKBfm75S538ydwJ0VR6my4eB/awA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725823468; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=vYgrfz5Blk5ktPBOspUjaPJI4MXVwvaqZhn5NRxrjn8=; b=JzC3iUt5p4FDC18icg4EiCxh1oTyaCmg73yGO3XgmN+muSPRm/PT1DnYHNQeR2WjHEHX+z WvDfO5/bn3geOAlzy4rWbCMV2h/yVqRZFjHpqjZJMnmhnAKPMRL2z4ZSi9JA0RoOck5xeM eQADqP/H2YvC+yb3oTt1OvRLvRbKuq9ixDeS8MS4OCIC8GxEVDXlpnNmRLh7zXuRxmCQ8u 70JAa2UejaubPXCp6l2doBmWsLGmW74eG2QDZZyUHHOzIuxERbj+QxZEEi6mPUCzgfJ6Wx WrCXQsrY9Q0fPQU8CrQyD/PS8MhUZH6Ck5jhAsAX462TEuOjzCmYQSZPPGK5/Q== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4X20Jr2189zXW2; Sun, 8 Sep 2024 19:24:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 488JOSrq034919; Sun, 8 Sep 2024 19:24:28 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 488JOSJn034916; Sun, 8 Sep 2024 19:24:28 GMT (envelope-from git) Date: Sun, 8 Sep 2024 19:24:28 GMT Message-Id: <202409081924.488JOSJn034916@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org From: Po-Chuan Hsieh Subject: git: ca4e9a97dad3 - 2024Q3 - databases/rocksdb: Fix build on i386 with Clang 17+ List-Id: Commits to the quarterly branches of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-branches@freebsd.org Sender: owner-dev-commits-ports-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/2024Q3 X-Git-Reftype: branch X-Git-Commit: ca4e9a97dad3bea3100edff396e11ae405906067 Auto-Submitted: auto-generated The branch 2024Q3 has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=ca4e9a97dad3bea3100edff396e11ae405906067 commit ca4e9a97dad3bea3100edff396e11ae405906067 Author: Po-Chuan Hsieh AuthorDate: 2024-09-05 05:24:43 +0000 Commit: Po-Chuan Hsieh CommitDate: 2024-09-08 19:24:17 +0000 databases/rocksdb: Fix build on i386 with Clang 17+ mkdir -p utilities/transactions/lock/range/range_tree/lib/locktree && clang++ -O2 -pipe -DOS_FREEBSD -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -Wno-inconsistent-missing-override -Wno-unused-parameter -Wno-unused-variable -Wno-unused-private-field -isystem /usr/local/include -std=c++17 -fPIC -DROCKSDB_DLL -DROCKSDB_USE_RTTI -g -W -Wextra -Wall -Wsign-compare -Wshadow -Wunused-parameter -Werror -I. -I./include -std=c++17 -O2 -pipe -DOS_FREEBSD -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -Wno-inconsistent-missing-override -Wno-unused-parameter -Wno-unused-variable -Wno-unused-private-field -isystem /usr/local/include -std=c++17 -faligned-new -DHAVE_ALIGNED_NEW -DROCKSDB_PLATFORM_POSIX -DROCKSDB_LIB_IO_POSIX -O2 -pipe -DOS_FREEBSD -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -D_REENTRANT -DOS_FREEBSD -DSNAPPY -DGFLAGS=1 -DZLIB -DBZIP2 -DLZ4 -DZSTD -DROCKSDB_MALLOC_USABLE_SIZE -DROC KSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_BACKTRACE -DROCKSDB_SCHED_GETCPU_PRESENT -isystem third-party/gtest-1.8.1/fused-src -O2 -fno-omit-frame-pointer -momit-leaf-frame-pointer -DNDEBUG -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-invalid-offsetof -c utilities/transactions/lock/range/range_tree/lib/locktree/manager.cc -o utilities/transactions/lock/range/range_tree/lib/locktree/manager.o In file included from utilities/transactions/lock/range/range_tree/lib/locktree/manager.cc:58: In file included from utilities/transactions/lock/range/range_tree/lib/locktree/../portability/toku_pthread.h:60: In file included from utilities/transactions/lock/range/range_tree/lib/locktree/../portability/toku_portability.h:71: utilities/transactions/lock/range/range_tree/lib/locktree/../portability/toku_atomic.h:80:10: error: __sync builtin operation MUST have natural alignment (consider using __atomic). [-Werror,-Wsync-alignment] 80 | return __sync_fetch_and_add(addr, diff); | ^ utilities/transactions/lock/range/range_tree/lib/locktree/../portability/toku_atomic.h:92:10: error: __sync builtin operation MUST have natural alignment (consider using __atomic). [-Werror,-Wsync-alignment] 92 | return __sync_fetch_and_sub(addr, diff); | ^ 2 errors generated. gmake: *** [Makefile:2566: utilities/transactions/lock/range/range_tree/lib/locktree/manager.o] Error 1 Tested on: 13.3-RELEASE-p5 (17.0.6), 15.0-CURRENT (18.1.6) Reference: https://pkg-status.freebsd.org/beefy17/data/main-i386-default/p1963f6d23107_s10d5b43424d/logs/rocksdb-9.4.0.log https://github.com/llvm/llvm-project/issues/69146 (cherry picked from commit ebdfcf26c93e631c979ce0068ff7fb1ba4ba6d0f) --- databases/rocksdb/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/databases/rocksdb/Makefile b/databases/rocksdb/Makefile index 3ddeef8acdb7..e5fbf6d58669 100644 --- a/databases/rocksdb/Makefile +++ b/databases/rocksdb/Makefile @@ -60,6 +60,9 @@ ZSTD_MAKE_ENV_OFF= ROCKSDB_DISABLE_ZSTD=yes .if ${CHOSEN_COMPILER_TYPE} == clang CXXFLAGS+= -Wno-inconsistent-missing-override -Wno-unused-parameter -Wno-unused-variable -Wno-unused-private-field +.if ${COMPILER_VERSION} >= 170 +CXXFLAGS+= -Wno-sync-alignment +.endif .endif post-patch: