From nobody Thu Sep 05 06:19:43 2024 X-Original-To: dev-commits-ports-main@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 4Wzq2l5yfPz5VH34; Thu, 05 Sep 2024 06:19:43 +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 4Wzq2l4Vxkz418k; Thu, 5 Sep 2024 06:19:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725517183; 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=Pjmv6EKQMZ03mvQXU/16dBmkwcl15m/6+7UDXU7p9Ks=; b=SI8AWmJhFQnodwUDOjrnx4H7/8Jfy4G1Lq9L4UmPj2wtZ0/tgcUBFob53SjadILYvOGZp/ ai1o1Xen6RW5HgQZC9WalRR/YOZ1JqtphiDRvhe3WASi9EOIojDUh00rHM9MmnB7IIG1zc A69Vi1syf2k7JKD2Xeigq61vX0WpavP5oUt6WBhavaw4tv1PsWsLR5FD53XJQXagH9NnjL Wl9DHy/bFzWkCRlRP7nFrS/OnrYTm7Ak5nCXJ1WcBZR//uQQN2BA47xBjnjE1Ip2OLlSVO +U5OPzjBOQ7A6/U6cLEH5TMEo9MXwCNIzhSYxS/nYvODRKSPbpW3UJx4ZBPYMQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1725517183; a=rsa-sha256; cv=none; b=utr0sbdZIt/6uJAgdv0sMGyOgRu4CRu4QRjORVu35c4mZJysk+i0qMaXZI7FGxsFzfAhUS DvdH8y1AjnIgnAcwJdFXwHZrj1NbHZtlbxXQfS3WGbcEukfHNa7xwBKYGVkydbMV+0MnHL 4KllAQW6iP4BQprvXg42OY3O5+9620nUhCxEj8pqoaVsy2ky1d5/a0mZYMi1Eoh9Fl6iTb VX+THGmjMEqBoJdfxyVWT5csbXLexuCR9lv/7hNwCmcCGB09Wx6hOEnPdB6dJZNteOAYJR JNBVGDMtFhZw9xdb0AdeNz2QKSx4eNPdrsQTlnq+yxdp46E8xyk7w6D+kjmOwA== 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=1725517183; 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=Pjmv6EKQMZ03mvQXU/16dBmkwcl15m/6+7UDXU7p9Ks=; b=hC+FHxsta2TYJoCBjDudy3/hCRlW6bEViPk02MQBbwlxl4L87eXgtqp3Etq1v3fHey7U/r wEHbZ0yJayRXHGfhwVnvomPIxBZOJVe0TCWmSuDGVwANJbGgtj5GFg3TeKATLo5aHUvvo+ USnMPT2mxWUEFqH9mfzD4l+bxz+c7yJaZuHrwxCl9A/Q/9IDIDG2G+XhZPuJNrfWmJJdxh 2nP1I/Gcem7506QCqocfryAHv/RV5eF7COGBHZmQuSzzvUuWzUIDZDCxg7iZ3WiWcYFuku ZqcvuaZwa36AY5MloI1FwRIOMHkY2x2HqbPqW4jcfanOqjPzJ+GnSEi3U6B1rA== 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 4Wzq2l46HDzwRl; Thu, 5 Sep 2024 06:19:43 +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 4856JhnX092127; Thu, 5 Sep 2024 06:19:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4856JhA8092124; Thu, 5 Sep 2024 06:19:43 GMT (envelope-from git) Date: Thu, 5 Sep 2024 06:19:43 GMT Message-Id: <202409050619.4856JhA8092124@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: ebdfcf26c93e - main - databases/rocksdb: Fix build on i386 with Clang 17+ List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@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/main X-Git-Reftype: branch X-Git-Commit: ebdfcf26c93e631c979ce0068ff7fb1ba4ba6d0f Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=ebdfcf26c93e631c979ce0068ff7fb1ba4ba6d0f commit ebdfcf26c93e631c979ce0068ff7fb1ba4ba6d0f Author: Po-Chuan Hsieh AuthorDate: 2024-09-05 05:24:43 +0000 Commit: Po-Chuan Hsieh CommitDate: 2024-09-05 06:11:22 +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 --- 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: