From nobody Mon Feb 9 22:20:25 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+99009+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+99009+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=arm.com ARC-Seal: i=1; a=rsa-sha256; t=1674642517; cv=none; d=zohomail.com; s=zohoarc; b=In+Rud8nva9TgAusu5lh+6AqmTy6rRg6taHoJfFIrOsbCvtN10acfM9CKMRnBgoimJCYRNeZUIpdqnUk5OoBw/rUF+ahk4oWI/PixcrnD3eZWGVImvdkFNSWW/hZG50o+AVvMP9B4n+2lQqNOPL5SlUlIeFL5VGzaXcMcEu2tgg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1674642517; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=itIIltKJSvHunVDW868HiKw7VYS7L65XWyEjQoySGqI=; b=PYVT+jEGqKXVSN/2pp1GQ8TRaVF+6J3JSuk5UQFp1+5lnxS6r6zhMBqqIXAKZzsCqKA9WN4Y5ITYjNhKs7JODE9j4h7HhYAiy5eU7SiqDSzfspsXYSI5UyvEN0S9ZiAJwq4wFiQXHkX/Nd33T+AJmePTKWCLjqZfsa7CuAOfHT4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+99009+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1674642517494370.65983200468975; Wed, 25 Jan 2023 02:28:37 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id oNCKYY1788612xQLOESLTYGf; Wed, 25 Jan 2023 02:28:37 -0800 X-Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web11.42334.1674642515991591105 for ; Wed, 25 Jan 2023 02:28:36 -0800 X-Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 557C7C14; Wed, 25 Jan 2023 02:29:17 -0800 (PST) X-Received: from cam-smtp0.cambridge.arm.com (pierre123.nice.arm.com [10.34.100.128]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id DA7D43F71E; Wed, 25 Jan 2023 02:28:33 -0800 (PST) From: "PierreGondois" To: devel@edk2.groups.io Cc: Ard Biesheuvel , Thomas Abraham , Sami Mujawar , Leif Lindholm , Wenyi Xie , Ilias Apalodimas , Omkar Anand Kulkarni , Pranav Madhu , Sayanta Pattanayak , Pierre Gondois Subject: [edk2-devel] [PATCH edk2-platforms 1/5] Platform/ARM/SgiPkg: Remove '-march=armv8-a+nofp' flag Date: Wed, 25 Jan 2023 11:27:58 +0100 Message-Id: <20230125102802.663790-2-Pierre.Gondois@arm.com> In-Reply-To: <20230125102802.663790-1-Pierre.Gondois@arm.com> References: <20230125102802.663790-1-Pierre.Gondois@arm.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,pierre.gondois@arm.com X-Gm-Message-State: g7tV3u6QnaSumqUMycwPjTgmx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1674642517; bh=N/yx43N922kTV27ePHyjhZnj+KQSS3kJRW4R832MUE0=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=iT3OO1cOYaWojKg5FsR/xbbYA2K31J/SmCOSCYMeocRmNDEWuk6FMAS0VKpUrU6+wya nlTgbKmwEF68m96Yej/W16xklTB36kwoRDWOBZd49FsO08/uRL0SLubn90nFcEiWtVCB+ opUVTJp7XjE16qSrAtx7rWkKV08hwFO6cBE= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1674642517976100005 Content-Type: text/plain; charset="utf-8" From: Pierre Gondois The '-march=3Darmv8-a+nofp' flag abort the following build: build -a AARCH64 -p Platform/ARM/SgiPkg/PlatformStandaloneMm.dsc -t GCC5 -D SECURE_STORAGE_ENABLE Error message: CryptoPkg/Library/OpensslLib/openssl/crypto/rand/drbg_lib.c:1009:12: error: =E2=80=98+nofp=E2=80=99 feature modifier is incompatible with the = use of floating-point types static int drbg_add(const void *buf, int num, double randomness) ^~~~~~~~ In SgiPlatformMm.dsc.inc, the '-march=3Darmv8-a+nofp' flag was originally added in: commit 1974293d1975 ("Platform/ARM/SgiPkg: Build infrastructure for StandaloneMm image") as a linker flag. The flag seem to have been added to avoid triggering an exception due to the floating point unit missing in RTL. With the latest RTL, the exception is not triggered anymore. commit 936e8dd57524 ("Platform/Sgi: Cleanup build options for StandaloneMM context") moves the flag from the linker to the compiler, making the build fail. Remove the '-march=3Darmv8-a+nofp' flag as it is not necessary anymore for SgiPlatformMm.dsc.inc, and is probably not necessary for PlatformStandaloneMmRpmb.dsc. CC: Omkar Anand Kulkarni CC: Pranav Madhu CC: Sayanta Pattanayak Signed-off-by: Pierre Gondois Reviewed-by: Sami Mujawar Reviewed-by: Thomas Abraham --- Platform/ARM/SgiPkg/SgiPlatformMm.dsc.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Platform/ARM/SgiPkg/SgiPlatformMm.dsc.inc b/Platform/ARM/SgiPk= g/SgiPlatformMm.dsc.inc index 01f0a7657c51..f9a516b341f0 100644 --- a/Platform/ARM/SgiPkg/SgiPlatformMm.dsc.inc +++ b/Platform/ARM/SgiPkg/SgiPlatformMm.dsc.inc @@ -146,5 +146,5 @@ [Components.AARCH64] # ##########################################################################= ######################### [BuildOptions.AARCH64] - GCC:*_*_*_CC_FLAGS =3D -mstrict-align -march=3Darmv8-a+nofp -D DISABLE_N= EW_DEPRECATED_INTERFACES + GCC:*_*_*_CC_FLAGS =3D -mstrict-align -D DISABLE_NEW_DEPRECATED_INTERFAC= ES GCC:*_*_*_DLINK_FLAGS =3D -z common-page-size=3D0x1000 --=20 2.25.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#99009): https://edk2.groups.io/g/devel/message/99009 Mute This Topic: https://groups.io/mt/96518042/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-