From nobody Sun Mar 26 11:58:16 2023 X-Original-To: dev-commits-ports-all@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 4Pkvbg4wF5z41kBD; Sun, 26 Mar 2023 11:58:23 +0000 (UTC) (envelope-from diizzy@FreeBSD.org) Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::221]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Pkvbg0RBTz4Tbj; Sun, 26 Mar 2023 11:58:22 +0000 (UTC) (envelope-from diizzy@FreeBSD.org) Authentication-Results: mx1.freebsd.org; none Received: (Authenticated sender: daniel.engberg@pyret.net) by mail.gandi.net (Postfix) with ESMTPA id 4A9AA240003; Sun, 26 Mar 2023 11:58:16 +0000 (UTC) List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Date: Sun, 26 Mar 2023 13:58:16 +0200 From: Daniel Engberg To: Luca Pizzamiglio Cc: ports-committers@freebsd.org, dev-commits-ports-all@freebsd.org, dev-commits-ports-main@freebsd.org Subject: Re: git: 1453ec9ec99d - main - benchmarks/unixbench: Fix arm64 build In-Reply-To: <202303261149.32QBnc5d024941@gitrepo.freebsd.org> References: <202303261149.32QBnc5d024941@gitrepo.freebsd.org> Message-ID: <906fc94ce07248d8aa56678fcc1b178b@FreeBSD.org> X-Sender: diizzy@FreeBSD.org Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4Pkvbg0RBTz4Tbj X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:29169, ipnet:2001:4b98::/32, country:FR] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On 2023-03-26 13:49, Luca Pizzamiglio wrote: > The branch main has been updated by pizzamig: > > URL: > https://cgit.FreeBSD.org/ports/commit/?id=1453ec9ec99d5025678acb403c9f84c7beb6dbd5 > > commit 1453ec9ec99d5025678acb403c9f84c7beb6dbd5 > Author: Luca Pizzamiglio > AuthorDate: 2023-03-26 11:49:14 +0000 > Commit: Luca Pizzamiglio > CommitDate: 2023-03-26 11:49:14 +0000 > > benchmarks/unixbench: Fix arm64 build > > On arm64, some cflags are not supported. > --- > benchmarks/unixbench/files/patch-Makefile | 21 +++++++-------------- > 1 file changed, 7 insertions(+), 14 deletions(-) > > diff --git a/benchmarks/unixbench/files/patch-Makefile > b/benchmarks/unixbench/files/patch-Makefile > index 282945fef972..3c2539dc046d 100644 > --- a/benchmarks/unixbench/files/patch-Makefile > +++ b/benchmarks/unixbench/files/patch-Makefile > @@ -1,5 +1,5 @@ > --- Makefile.orig 2023-02-07 23:18:07.000000000 +0100 > -+++ Makefile 2023-02-09 21:57:42.966634000 +0100 > ++++ Makefile 2023-03-26 13:40:57.699042000 +0200 > @@ -46,7 +46,7 @@ > # X11 libraries on your system. (e.g. libX11-devel mesa-libGL-devel) > # > @@ -18,22 +18,15 @@ > > # OPTIMISATION SETTINGS: > # Use gcc option if defined UB_GCC_OPTIONS via "Environment > variable" or "Command-line arguments". > -@@ -87,7 +87,7 @@ > - ## (-ffast-math) disables strict IEEE or ISO rules/specifications > for math funcs > - OPTON = -O3 -ffast-math > - > -- ## OS detection. Comment out if gmake syntax not supported by > other 'make'. > -+ ## OS detection. Comment out if gmake syntax not supported by > other 'make'. > - OSNAME:=$(shell uname -s) > - ARCH := $(shell uname -p) > - ifeq ($(OSNAME),Linux) > -@@ -113,6 +113,9 @@ > +@@ -113,6 +113,13 @@ > CFLAGS += -Wa,-q > endif > > + ifeq ($(OSNAME),FreeBSD) > -+ OPTON += -march=native -mtune=native -fomit-frame-pointer > ++ ifeq ($(ARCH),aarch64) > ++ OPTON += -fomit-frame-pointer > ++ else > ++ OPTON += -march=native -mtune=native -fomit-frame-pointer > ++ endif > + endif > endif > - > - Hi, Please remove -march=native as it will break on x86/amd64 for packaging. Either add it as a menu option or just rely on ports framework (CPUTYPE in make.conf). Best regards, Daniel