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; Mon, 12 Aug 2019 18:13:17 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Aug 2019 18:13:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,379,1559545200"; d="scan'208,217";a="187618030" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga002.jf.intel.com with ESMTP; 12 Aug 2019 18:13:16 -0700 Received: from fmsmsx602.amr.corp.intel.com (10.18.126.82) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 12 Aug 2019 18:13:16 -0700 Received: from fmsmsx602.amr.corp.intel.com (10.18.126.82) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Mon, 12 Aug 2019 18:13:16 -0700 Received: from shsmsx105.ccr.corp.intel.com (10.239.4.158) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Mon, 12 Aug 2019 18:13:15 -0700 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.112]) by SHSMSX105.ccr.corp.intel.com ([169.254.11.15]) with mapi id 14.03.0439.000; Tue, 13 Aug 2019 09:13:14 +0800 From: "Chen, Farrah" To: "devel@edk2.groups.io" CC: "Hao, Xudong" Subject: ovmf build fail with gcc 4.8.5 Thread-Topic: ovmf build fail with gcc 4.8.5 Thread-Index: AdVRcyx5bbDVqPtPS2S4UQG7tTk6LQ== Date: Tue, 13 Aug 2019 01:13:13 +0000 Message-ID: <1B925CC0CD9F3341B32D442251E7E1DC3E3115C3@SHSMSX104.ccr.corp.intel.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: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNDUwMWNmYWItOGNmMC00OGYyLWEzODUtNjc2MTkyNjM5MGYyIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiOHBFMmJRZERLM0hsN1pKV1pvSUZvOGVaTkQ5QkZNSDlIZThLU3UzQkNJbG8ranJucnVyRk1WZHRBRklGYlwvWHUifQ== 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: multipart/alternative; boundary="_000_1B925CC0CD9F3341B32D442251E7E1DC3E3115C3SHSMSX104ccrcor_" --_000_1B925CC0CD9F3341B32D442251E7E1DC3E3115C3SHSMSX104ccrcor_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, When build ovmf with the latest two commits of master branch, we meet error= on Red Hat 7.6 with gcc version 4.8.5, but succeed on Red Hat 8.0 with gcc= version 8.2.1. 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 Error log: ....... /home/build/kvm_build/nightly/kvm_qemu/kvm-next-20190813010558-a738b5e7-5e7= bcdcf/edk2/MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.c:641:50: error: = 'PageMapLevel5Entry' may be used uninitialized in this function [-Werror=3D= maybe-uninitialized] PAGE_MAP_AND_DIRECTORY_POINTER *PageMapLevel5Entry; ^ cc1: all warnings being treated as errors "objcopy" /home/build/kvm_build/nightly/kvm_qemu/kvm-next-20190813010558-a= 738b5e7-5e7bcdcf/edk2/Build/OvmfX64/DEBUG_GCC48/X64/MdeModulePkg/Bus/Pci/Pc= iHostBridgeDxe/PciHostBridgeDxe/DEBUG/PciHostBridgeDxe.dll "GenFw" -e UEFI_DRIVER -o /home/build/kvm_build/nightly/kvm_qemu/kvm-next-2= 0190813010558-a738b5e7-5e7bcdcf/edk2/Build/OvmfX64/DEBUG_GCC48/X64/OvmfPkg/= XenBusDxe/XenBusDxe/OUTPUT/XenBusDxe.efi /home/build/kvm_build/nightly/kvm_= qemu/kvm-next-20190813010558-a738b5e7-5e7bcdcf/edk2/Build/OvmfX64/DEBUG_GCC= 48/X64/OvmfPkg/XenBusDxe/XenBusDxe/DEBUG/XenBusDxe.dll make: *** [/home/build/kvm_build/nightly/kvm_qemu/kvm-next-20190813010558-a= 738b5e7-5e7bcdcf/edk2/Build/OvmfX64/DEBUG_GCC48/X64/MdeModulePkg/Core/DxeIp= lPeim/DxeIpl/OUTPUT/X64/VirtualMemory.obj] Error 1 cp -f /home/build/kvm_build/nightly/kvm_qemu/kvm-next-20190813010558-a738b5= e7-5e7bcdcf/edk2/Build/OvmfX64/DEBUG_GCC48/X64/OvmfPkg/XenBusDxe/XenBusDxe/= OUTPUT/XenBusDxe.efi /home/build/kvm_build/nightly/kvm_qemu/kvm-next-201908= 13010558-a738b5e7-5e7bcdcf/edk2/Build/OvmfX64/DEBUG_GCC48/X64/OvmfPkg/XenBu= sDxe/XenBusDxe/DEBUG build.py... : error 7000: Failed to execute command make tbuild [/home/build/kvm_build/nightly/kvm_qemu/kvm-next-201908= 13010558-a738b5e7-5e7bcdcf/edk2/Build/OvmfX64/DEBUG_GCC48/X64/MdeModulePkg/= Core/DxeIplPeim/DxeIpl] build.py... : error F002: Failed to build module /home/build/kvm_build/nightly/kvm_qemu/kvm-next-20190813010558-a738= b5e7-5e7bcdcf/edk2/MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf [X64, GCC48, DEB= UG] - Failed - Build end time: 08:46:33, Aug.13 2019 Build total time: 00:01:15 GCC: gcc --version gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-36) Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Thanks, Fan --_000_1B925CC0CD9F3341B32D442251E7E1DC3E3115C3SHSMSX104ccrcor_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi,

 

When build ovmf with the latest two commits of maste= r branch, we meet error on Red Hat 7.6 with gcc version 4.8.5, but succeed = on Red Hat 8.0 with gcc version 8.2.1.

 

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

 

Error log:

…….

/home/build/kvm_build/nightly/kvm_qemu/kvm-next-2019= 0813010558-a738b5e7-5e7bcdcf/edk2/MdeModulePkg/Core/DxeIplPeim/X64/VirtualM= emory.c:641:50: error: ‘PageMapLevel5Entry’ may be used uniniti= alized in this function [-Werror=3Dmaybe-uninitialized]

   PAGE_MAP_AND_DIRECTORY_POINTER &nb= sp;            =   *PageMapLevel5Entry;

        &nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;   ^

cc1: all warnings being treated as errors=

"objcopy"  /home/build/kvm_build/nigh= tly/kvm_qemu/kvm-next-20190813010558-a738b5e7-5e7bcdcf/edk2/Build/OvmfX64/D= EBUG_GCC48/X64/MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe/DEBUG= /PciHostBridgeDxe.dll

"GenFw" -e UEFI_DRIVER -o /home/build/kvm_= build/nightly/kvm_qemu/kvm-next-20190813010558-a738b5e7-5e7bcdcf/edk2/Build= /OvmfX64/DEBUG_GCC48/X64/OvmfPkg/XenBusDxe/XenBusDxe/OUTPUT/XenBusDxe.efi /= home/build/kvm_build/nightly/kvm_qemu/kvm-next-20190813010558-a738b5e7-5e7b= cdcf/edk2/Build/OvmfX64/DEBUG_GCC48/X64/OvmfPkg/XenBusDxe/XenBusDxe/DEBUG/X= enBusDxe.dll

make: *** [/home/build/kvm_build/nightly/kvm_qemu/kv= m-next-20190813010558-a738b5e7-5e7bcdcf/edk2/Build/OvmfX64/DEBUG_GCC48/X64/= MdeModulePkg/Core/DxeIplPeim/DxeIpl/OUTPUT/X64/VirtualMemory.obj] Error 1

cp -f /home/build/kvm_build/nightly/kvm_qemu/kvm-nex= t-20190813010558-a738b5e7-5e7bcdcf/edk2/Build/OvmfX64/DEBUG_GCC48/X64/OvmfP= kg/XenBusDxe/XenBusDxe/OUTPUT/XenBusDxe.efi /home/build/kvm_build/nightly/k= vm_qemu/kvm-next-20190813010558-a738b5e7-5e7bcdcf/edk2/Build/OvmfX64/DEBUG_= GCC48/X64/OvmfPkg/XenBusDxe/XenBusDxe/DEBUG

 

 

build.py...

: error 7000: Failed to execute command

        make tbui= ld [/home/build/kvm_build/nightly/kvm_qemu/kvm-next-20190813010558-a738b5e7= -5e7bcdcf/edk2/Build/OvmfX64/DEBUG_GCC48/X64/MdeModulePkg/Core/DxeIplPeim/D= xeIpl]

 

 

 

 

build.py...

: error F002: Failed to build module

        /home/bui= ld/kvm_build/nightly/kvm_qemu/kvm-next-20190813010558-a738b5e7-5e7bcdcf/edk= 2/MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf [X64, GCC48, DEBUG]

 

- Failed -

Build end time: 08:46:33, Aug.13 2019

Build total time: 00:01:15

 

GCC:

gcc --version

gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-36)

Copyright (C) 2015 Free Software Foundation, Inc.

This is free software; see the source for copying co= nditions.  There is NO

warranty; not even for MERCHANTABILITY or FITNESS FO= R A PARTICULAR PURPOSE.

 

 

Thanks,

Fan

 

--_000_1B925CC0CD9F3341B32D442251E7E1DC3E3115C3SHSMSX104ccrcor_--