From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 134.134.136.20, mailfrom: farrah.chen@intel.com) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by groups.io with SMTP; Thu, 15 Aug 2019 18:57:30 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Aug 2019 18:57:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,391,1559545200"; d="scan'208";a="206098343" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga002.fm.intel.com with ESMTP; 15 Aug 2019 18:57:19 -0700 Received: from fmsmsx116.amr.corp.intel.com (10.18.116.20) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 15 Aug 2019 18:57:19 -0700 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by fmsmsx116.amr.corp.intel.com (10.18.116.20) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 15 Aug 2019 18:57:19 -0700 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.112]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.139]) with mapi id 14.03.0439.000; Fri, 16 Aug 2019 09:57:17 +0800 From: "Chen, Farrah" To: Laszlo Ersek , "devel@edk2.groups.io" CC: "Hao, Xudong" Subject: Re: [edk2-devel] ovmf build fail with gcc 4.8.5 Thread-Topic: [edk2-devel] ovmf build fail with gcc 4.8.5 Thread-Index: AdVRcyx5bbDVqPtPS2S4UQG7tTk6LQAG6NGAAJHCcgA= Date: Fri, 16 Aug 2019 01:57:17 +0000 Message-ID: <1B925CC0CD9F3341B32D442251E7E1DC3E3127AB@SHSMSX104.ccr.corp.intel.com> References: <1B925CC0CD9F3341B32D442251E7E1DC3E3115C3@SHSMSX104.ccr.corp.intel.com> <1f5939cf-2429-7677-03b1-9a07bcf0ac48@redhat.com> In-Reply-To: <1f5939cf-2429-7677-03b1-9a07bcf0ac48@redhat.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMzUwNzMzODctNWQ1My00NjI5LWFiNjAtNzYwOTM1ZTEyOTA0IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiK2drWmRZSFZINjVtRHNjYklhSmc4UnlEYUZGVWdFOVJ6Z2pob0lRWDQ4d2hWbldSNW9vcTFmb3lnRUxUdzlrMyJ9 x-ctpclassification: CTP_NT x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Return-Path: farrah.chen@intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Thanks, we use the latest commit and it works well now. Thanks, Fan -----Original Message----- From: Laszlo Ersek [mailto:lersek@redhat.com]=20 Sent: Tuesday, August 13, 2019 8:23 PM To: devel@edk2.groups.io; Chen, Farrah Cc: Hao, Xudong Subject: Re: [edk2-devel] ovmf build fail with gcc 4.8.5 On 08/13/19 03:13, Chen, Farrah wrote: > Hi, >=20 > When build ovmf with the latest two commits of master branch, we meet err= or on Red Hat 7.6 with gcc version 4.8.5, but succeed on Red Hat 8.0 with g= cc version 8.2.1. >=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 64 >=20 > Error log: > ....... > /home/build/kvm_build/nightly/kvm_qemu/kvm-next-20190813010558-a738b5e7-5= e7bcdcf/edk2/MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.c:641:50: error= : 'PageMapLevel5Entry' may be used uninitialized in this function [-Werror= =3Dmaybe-uninitialized] > PAGE_MAP_AND_DIRECTORY_POINTER *PageMapLevel5Entry; > ^ > cc1: all warnings being treated as errors "objcopy" =20 > /home/build/kvm_build/nightly/kvm_qemu/kvm-next-20190813010558-a738b5e > 7-5e7bcdcf/edk2/Build/OvmfX64/DEBUG_GCC48/X64/MdeModulePkg/Bus/Pci/Pci > HostBridgeDxe/PciHostBridgeDxe/DEBUG/PciHostBridgeDxe.dll > "GenFw" -e UEFI_DRIVER -o=20 > /home/build/kvm_build/nightly/kvm_qemu/kvm-next-20190813010558-a738b5e > 7-5e7bcdcf/edk2/Build/OvmfX64/DEBUG_GCC48/X64/OvmfPkg/XenBusDxe/XenBus > Dxe/OUTPUT/XenBusDxe.efi=20 > /home/build/kvm_build/nightly/kvm_qemu/kvm-next-20190813010558-a738b5e > 7-5e7bcdcf/edk2/Build/OvmfX64/DEBUG_GCC48/X64/OvmfPkg/XenBusDxe/XenBus > Dxe/DEBUG/XenBusDxe.dll > make: ***=20 > [/home/build/kvm_build/nightly/kvm_qemu/kvm-next-20190813010558-a738b5 > e7-5e7bcdcf/edk2/Build/OvmfX64/DEBUG_GCC48/X64/MdeModulePkg/Core/DxeIp > lPeim/DxeIpl/OUTPUT/X64/VirtualMemory.obj] Error 1 cp -f=20 > /home/build/kvm_build/nightly/kvm_qemu/kvm-next-20190813010558-a738b5e > 7-5e7bcdcf/edk2/Build/OvmfX64/DEBUG_GCC48/X64/OvmfPkg/XenBusDxe/XenBus > Dxe/OUTPUT/XenBusDxe.efi=20 > /home/build/kvm_build/nightly/kvm_qemu/kvm-next-20190813010558-a738b5e > 7-5e7bcdcf/edk2/Build/OvmfX64/DEBUG_GCC48/X64/OvmfPkg/XenBusDxe/XenBus > Dxe/DEBUG >=20 >=20 > build.py... > : error 7000: Failed to execute command > make tbuild=20 > [/home/build/kvm_build/nightly/kvm_qemu/kvm-next-20190813010558-a738b5 > e7-5e7bcdcf/edk2/Build/OvmfX64/DEBUG_GCC48/X64/MdeModulePkg/Core/DxeIp > lPeim/DxeIpl] >=20 >=20 >=20 >=20 > build.py... > : error F002: Failed to build module > =20 > /home/build/kvm_build/nightly/kvm_qemu/kvm-next-20190813010558-a738b5e > 7-5e7bcdcf/edk2/MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf [X64, GCC48,=20 > DEBUG] >=20 > - Failed - > Build end time: 08:46:33, Aug.13 2019 > Build total time: 00:01:15 >=20 > GCC: > gcc --version > gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-36) Copyright (C) 2015 Free=20 > Software Foundation, Inc. > This is free software; see the source for copying conditions. There=20 > is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR = PURPOSE. This bug was introduced in commit b3527dedc395 ("MdeModulePkg/DxeIpl: Create 5-level page table for long mode", 2019-08-09). It's being addressed in the following (pending) patch: [edk2-devel] [PATCH 1/1] MdeModulePkg/DxeIplPeim: Relocate the operation of= PageMapLevel5Entry++ (I'm calling the issue a bug and not an invalid compiler warning because th= e patch looks like an actual fix.) Thanks Laszlo