From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: suse.com, ip: 15.124.64.68, mailfrom: glin@suse.com) Received: from m9a0003g.houston.softwaregrp.com (m9a0003g.houston.softwaregrp.com [15.124.64.68]) by groups.io with SMTP; Fri, 05 Jul 2019 00:34:11 -0700 Received: FROM m9a0003g.houston.softwaregrp.com (15.121.0.191) BY m9a0003g.houston.softwaregrp.com WITH ESMTP; Fri, 5 Jul 2019 07:34:09 +0000 Received: from M9W0068.microfocus.com (2002:f79:bf::f79:bf) by M9W0068.microfocus.com (2002:f79:bf::f79:bf) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Fri, 5 Jul 2019 07:33:18 +0000 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (15.124.72.12) by M9W0068.microfocus.com (15.121.0.191) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10 via Frontend Transport; Fri, 5 Jul 2019 07:33:18 +0000 Received: from DM6PR18MB2489.namprd18.prod.outlook.com (20.179.105.16) by DM6PR18MB2426.namprd18.prod.outlook.com (20.179.104.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2052.18; Fri, 5 Jul 2019 07:33:17 +0000 Received: from DM6PR18MB2489.namprd18.prod.outlook.com ([fe80::c953:1927:cc0a:dcae]) by DM6PR18MB2489.namprd18.prod.outlook.com ([fe80::c953:1927:cc0a:dcae%7]) with mapi id 15.20.2032.019; Fri, 5 Jul 2019 07:33:17 +0000 From: "Gary Lin" To: "devel@edk2.groups.io" , "liming.gao@intel.com" CC: Farrah Chen , Danmei Wei , Xudong Hao Subject: Re: [edk2-devel] Make edk2 fail on Red Hat 8.0 Thread-Topic: [edk2-devel] Make edk2 fail on Red Hat 8.0 Thread-Index: AdUy/foPd3/thalCQDW9+wH/wOHzdwABMX9QAABIYwA= Date: Fri, 5 Jul 2019 07:33:17 +0000 Message-ID: <20190705073304.GA5004@GaryWorkstation> References: <1B925CC0CD9F3341B32D442251E7E1DC3E2E31ED@SHSMSX104.ccr.corp.intel.com> <4A89E2EF3DFEDB4C8BFDE51014F606A14E4A2C83@SHSMSX104.ccr.corp.intel.com> In-Reply-To: <4A89E2EF3DFEDB4C8BFDE51014F606A14E4A2C83@SHSMSX104.ccr.corp.intel.com> Accept-Language: zh-TW, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: LO2P265CA0114.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:c::30) To DM6PR18MB2489.namprd18.prod.outlook.com (2603:10b6:5:184::16) authentication-results: spf=none (sender IP is ) smtp.mailfrom=GLin@suse.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [202.47.205.198] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 0086aada-1790-43ee-f0a0-08d7011b0be1 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020);SRVR:DM6PR18MB2426; x-ms-traffictypediagnostic: DM6PR18MB2426: x-ms-exchange-purlcount: 4 x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:326; x-forefront-prvs: 008960E8EC x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(7916004)(4636009)(39860400002)(136003)(376002)(396003)(346002)(366004)(189003)(199004)(478600001)(2906002)(33716001)(99286004)(8936002)(53936002)(305945005)(6116002)(52116002)(76176011)(3846002)(72206003)(5660300002)(14454004)(66066001)(71190400001)(71200400001)(86362001)(66556008)(66446008)(73956011)(6486002)(1076003)(66476007)(66946007)(64756008)(229853002)(6306002)(5024004)(14444005)(256004)(26005)(476003)(446003)(11346002)(6436002)(25786009)(9686003)(186003)(6512007)(33656002)(316002)(102836004)(53546011)(6506007)(110136005)(80792005)(966005)(54906003)(2501003)(386003)(68736007)(8676002)(7736002)(6246003)(486006)(4326008)(81156014)(81166006);DIR:OUT;SFP:1102;SCL:1;SRVR:DM6PR18MB2426;H:DM6PR18MB2489.namprd18.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: suse.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: RekLWg8tComTv8e84jffK9+B3M4JLgSXy6GacrRkLMPrxksftcNMLAPEdwdV1ImfN/g8v8rsMKqfsH3vo+M+18YO+q42+hqHWQdW2qxg3J3xKdOv5JDZYCJe6EH++67WwzjrAlnXfK8ZxduaTv9nQrl1H2WelfFf10qUqdUviS/sEXBkkHeZ7XKZ51A2ht8MGt5E/DGOQqJzgLkWP8d4FHyJWd0HpvKH4dfgTO531dAzxJXa44R1jpxvGaeLg/Qe00bdED+QWwWM9hwj1HMsRiXMRaQXyGM88SEQEpL7gj8jFSoDiB/kQc9yxaXyXGOcCwwzfJgjjwZekNyyF++p0aeyqJbPdtuc1GVhrE0EMhnJ+YA4efRSwKpqF13e0GWdcC6nZyWxufpkU18Ac9PXcvEfnb01ghKD3G0DedxjX8Y= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 0086aada-1790-43ee-f0a0-08d7011b0be1 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Jul 2019 07:33:17.4623 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 856b813c-16e5-49a5-85ec-6f081e13b527 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: GLin@suse.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR18MB2426 Return-Path: GLin@suse.com X-OriginatorOrg: suse.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable On Fri, Jul 05, 2019 at 07:25:18AM +0000, Liming Gao wrote: > Can you let me know your GCC compiler version? >=20 I also encountered the error. My system is openSUSE Tumbleweed, and the gcc version is 9.1.1. It seems the new gcc is restricter on memset and strncat. Gary Lin > From: devel@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf Of Ch= en, Farrah > Sent: Friday, July 05, 2019 3:10 PM > To: devel@edk2.groups.io > Cc: Hao, Xudong ; Wei, Danmei > Subject: [edk2-devel] Make edk2 fail on Red Hat 8.0 >=20 > Hi, >=20 > I tried to make ovmf with the latest commit: 0a487ef96bd6d2e0ac23323adab= 86f9949068ed6 on Red Hat 8.0, it failed, while it succeed on Red Hat 7.6. > With commit 4b04d9d73604080a42daf737c39b98d4e1245a51 I used several days= ago, it works well on both RHEL8.0 and RHEL7.6. >=20 > Steps: > git clone https://github.com/tianocore/edk2.git > cd edk2 > git submodule init > git submodule update -recursive > OvmfPkg/build.sh -a X64 -n 40 > ............... > make -C FMMT > make[2]: Entering directory '/home/build/fan/edk2/BaseTools/Source/C/FMM= T' > gcc -c -I .. -I ../Include/Common -I ../Include/ -I ../Include/Industr= yStandard -I ../Common/ -I .. -I . -I ../Include/X64/ -MD -fshort-wchar -f= no-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -W= no-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unus= ed-result -nostdlib -g -O2 FmmtLib.c -o FmmtLib.o > FmmtLib.c: In function 'LibInitializeFvStruct': > FmmtLib.c:158:5: error: 'memset' used with length equal to number of ele= ments without multiplication by element size [-Werror=3Dmemset-elt-size] > memset (Fv->FfsAttuibutes[Index].UiName, '\0', _MAX_PATH); > ^~~~~~ > FmmtLib.c: In function 'LibFvHeaderAttributeToStr': > FmmtLib.c:2521:47: error: argument to 'sizeof' in 'strncat' call is the = same expression as the source; did you mean to use the size of the destinat= ion? [-Werror=3Dsizeof-pointer-memaccess] > strncat (LocalStr, "[attributes] \n", sizeof("[attributes] \n")); > ^ > FmmtLib.c:2524:66: error: argument to 'sizeof' in 'strncat' call is the = same expression as the source; did you mean to use the size of the destinat= ion? [-Werror=3Dsizeof-pointer-memaccess] > strncat (LocalStr, "EFI_READ_DISABLED_CAP =3D TRUE \n", sizeof ("EF= I_READ_DISABLED_CAP =3D TRUE \n")); > ..................... >=20 > And detailed log attached. > Could anyone provide some advice? >=20 >=20 > Thanks, > Fan >=20 >=20 >=20 >=20 >=20