From nobody Sat Nov 25 19:21:45 2023 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 4Sd1td4kQdz52rK6; Sat, 25 Nov 2023 19:21:45 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Sd1td4Hfpz4NbX; Sat, 25 Nov 2023 19:21:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1700940105; 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=WhvE/5fLMIFzW3ajFiGYU6DMyRRytpWo/xdK17lLNYc=; b=qaQfbf5BcoHG08DHfzUr3uLHlUCPa155+jNpHXMXUgs5DsT4Zvk+EpXka8JZCtS1b6xWNq lup23/2CYcSmoYc01Wh2ClJchepEVaXhuUhSHHw6YkKCxvObi9fhIoU6KBzUG9EHfFSWnj Euw5GmwA8ejX31+oJFZMdyuHd1mmXdhhu0oZbyJxeu63AIDPIQCMIeBPwz71FDpkTMsdti 0uaQ42ORF44YOj7l3z2xk2Jh0VP9YTS+DI7U2kx/Z69ZhzF3Cw+Xmt8KIhPQjgzWOeCsoz sVQj1T4edENKVcU/Kr+3qV38iX2WYtcuvYT9bjSA99Gd2OHXi/+tpdSZrSYgYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1700940105; 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=WhvE/5fLMIFzW3ajFiGYU6DMyRRytpWo/xdK17lLNYc=; b=bmhfJATrOs5ZmUCyN0txm191RUJUPWjeNRSXlqFFVZAoVhceemHe1w+ZGtSXO2OKZqlILB L389P9LipTjGXmUOjU5pIRNSJVBeBusKOH5AerlXgXN2z44AsqGn6uwdxR+tJeU8DYIRIZ N8IerrObpCLJfnwhOYM6fJ7VXQxN4BFcoag4zwoZEkjdwmx3k5kE1nMP5o8NEIQmVbSIH7 1zYjOYZN2XDC6PeFrHY1WvfQcwXhubO2i4fb1aMw/7MUjvfYPX7jHsmtgfbOOOwMUxQaYv 8ICpa2YMWFMUKT54QU43UztSKUzGPWqUWqA7wTb5EISsyzhLrgNFMIFNWRw6MA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1700940105; a=rsa-sha256; cv=none; b=CsbDx4uYLEYxnBhUpP7hh15xApxrSj9q8X1kU+yaL80h05eHrw6XDcHJjKUskOrEHEdCoz OJ1tWTGuRdzQ2ydRQgXLGreo2Xe4o4zffzQP/nLUVi1fPr3YDEW3a7bs3mKKvu1A4Oqdh2 gcKS7ty59BTWjm+DB08NXheXh2gm31z15LVx+29wFNm9/y0b1GGX1dbSkuTLx8LXoIB9sf Q5ijgEruEhHIusu2qmLRR++4qJPbdMb8K7xvkPgTnY4HQNp6lAqRmy9FGBIvS9Ayk5w3TY 8Mb6LBKK7eoYKFuNpLPiQZ4djzu8mk1Zw1Vh+dhkPbXiecFX14DYmliopTYPSA== 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 4Sd1td3LVcz903; Sat, 25 Nov 2023 19:21:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3APJLj48052471; Sat, 25 Nov 2023 19:21:45 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3APJLja7052468; Sat, 25 Nov 2023 19:21:45 GMT (envelope-from git) Date: Sat, 25 Nov 2023 19:21:45 GMT Message-Id: <202311251921.3APJLja7052468@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Dimitry Andric Subject: git: a864243fb7ae - main - sysutils/opensbi: fix build 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: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a864243fb7ae1932341fce17598cfc588150156d Auto-Submitted: auto-generated The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/ports/commit/?id=a864243fb7ae1932341fce17598cfc588150156d commit a864243fb7ae1932341fce17598cfc588150156d Author: Dimitry Andric AuthorDate: 2023-11-25 19:15:54 +0000 Commit: Dimitry Andric CommitDate: 2023-11-25 19:21:34 +0000 sysutils/opensbi: fix build with clang 17 Building sysutils/opensbi with clang 17 results in the following errors: clang: error: unsupported option '-mno-unaligned-access' for target 'riscv64-unknown-elf' clang: error: unsupported option '-mno-unaligned-access' for target 'riscv64-unknown-elf' [... many more times...] The target-specific option -mno-unaligned-access (which is emitted from the compiler driver when -mstrict-align is used) did not do anything for riscv64, but clang 17 is now more strict about reporting unsupported options. Remove the -mstrict-align option from the Makefile's CFLAGS and ASFLAGS to fix it. PR: 273753 MFH: 2023Q4 --- sysutils/opensbi/files/patch-Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/sysutils/opensbi/files/patch-Makefile b/sysutils/opensbi/files/patch-Makefile new file mode 100644 index 000000000000..e98a465c25da --- /dev/null +++ b/sysutils/opensbi/files/patch-Makefile @@ -0,0 +1,20 @@ +--- Makefile.orig 2023-07-19 06:21:59 UTC ++++ Makefile +@@ -337,7 +337,7 @@ endif + else + CFLAGS += -O2 + endif +-CFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls -mstrict-align ++CFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls + # enable -m(no-)save-restore option by CC_SUPPORT_SAVE_RESTORE + ifeq ($(CC_SUPPORT_SAVE_RESTORE),y) + CFLAGS += -mno-save-restore +@@ -355,7 +355,7 @@ ASFLAGS = -g -Wall -nostdlib + CPPFLAGS += $(firmware-cppflags-y) + + ASFLAGS = -g -Wall -nostdlib +-ASFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls -mstrict-align ++ASFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls + # enable -m(no-)save-restore option by CC_SUPPORT_SAVE_RESTORE + ifeq ($(CC_SUPPORT_SAVE_RESTORE),y) + ASFLAGS += -mno-save-restore