From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=209.132.183.28; helo=mx1.redhat.com; envelope-from=lersek@redhat.com; receiver=edk2-devel@lists.01.org Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 9CCB921A09130 for ; Mon, 7 Jan 2019 11:04:36 -0800 (PST) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1D60B3DBFA; Mon, 7 Jan 2019 19:04:36 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (ovpn-126-62.rdu2.redhat.com [10.10.126.62]) by smtp.corp.redhat.com (Postfix) with ESMTP id C6B6B19744; Mon, 7 Jan 2019 19:04:34 +0000 (UTC) To: "Gao, Liming" , Gary Lin Cc: "edk2-devel@lists.01.org" , "Kinney, Michael D" References: <4A89E2EF3DFEDB4C8BFDE51014F606A14E39130F@SHSMSX104.ccr.corp.intel.com> <20181228103951.GN4206@GaryWorkstation> <4A89E2EF3DFEDB4C8BFDE51014F606A14E39F4E3@SHSMSX104.ccr.corp.intel.com> <3cd9946d-12e4-489e-605d-df7060f958e7@redhat.com> <4A89E2EF3DFEDB4C8BFDE51014F606A14E3A904F@SHSMSX152.ccr.corp.intel.com> From: Laszlo Ersek Message-ID: <5a0bce81-5cd0-1031-b214-103c327c4f21@redhat.com> Date: Mon, 7 Jan 2019 20:04:33 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <4A89E2EF3DFEDB4C8BFDE51014F606A14E3A904F@SHSMSX152.ccr.corp.intel.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Mon, 07 Jan 2019 19:04:36 +0000 (UTC) Subject: Re: [RFC] Edk2 BaseTools Python3 Migration Update X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jan 2019 19:04:36 -0000 X-List-Received-Date: Mon, 07 Jan 2019 19:04:36 -0000 X-List-Received-Date: Mon, 07 Jan 2019 19:04:36 -0000 X-List-Received-Date: Mon, 07 Jan 2019 19:04:36 -0000 X-List-Received-Date: Mon, 07 Jan 2019 19:04:36 -0000 X-List-Received-Date: Mon, 07 Jan 2019 19:04:36 -0000 X-List-Received-Date: Mon, 07 Jan 2019 19:04:36 -0000 X-List-Received-Date: Mon, 07 Jan 2019 19:04:36 -0000 X-List-Received-Date: Mon, 07 Jan 2019 19:04:36 -0000 X-List-Received-Date: Mon, 07 Jan 2019 19:04:36 -0000 X-List-Received-Date: Mon, 07 Jan 2019 19:04:36 -0000 X-List-Received-Date: Mon, 07 Jan 2019 19:04:36 -0000 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit On 01/04/19 04:29, Gao, Liming wrote: > Laszlo: > This issue has been fixed in edk2 master. I just cherry pick those fixes from edk2 master to my Python3 branch (https://github.com/lgao4/edk2/tree/Python3). Thank you, I'll try to return to this topic soon, and retest the branch. Cheers Laszlo > > Thanks > Liming >> -----Original Message----- >> From: Laszlo Ersek [mailto:lersek@redhat.com] >> Sent: Monday, December 31, 2018 8:16 AM >> To: Gao, Liming ; Gary Lin >> Cc: edk2-devel@lists.01.org; Kinney, Michael D >> Subject: Re: [edk2] [RFC] Edk2 BaseTools Python3 Migration Update >> >> On 12/29/18 07:07, Gao, Liming wrote: >>> Lin: >>> Thanks for your verification. This issue has been fixed in the >>> latest version of https://github.com/lgao4/edk2/tree/Python3. Could >>> you try again? >> >> At commit 4614985ec223 ("BaseTools:The binary data type is incorrect", >> 2018-12-29): >> >> >> (1) I tried to build OVMF as follows (using >> python-2.7.5-69.el7_5.x86_64): >> >> build \ >> -a IA32 \ >> -p OvmfPkg/OvmfPkgIa32.dsc \ >> -D SMM_REQUIRE \ >> -D SECURE_BOOT_ENABLE \ >> -D TLS_ENABLE \ >> -D NETWORK_IP6_ENABLE \ >> -t GCC48 \ >> -n 4 \ >> --report-file=/tmp/build.ovmf.32.report \ >> --log=/tmp/build.ovmf.32.log \ >> -b NOOPT \ >> -D HTTP_BOOT_ENABLE \ >> --cmd-len=65536 \ >> --hash \ >> --genfds-multi-thread >> >> This produced messages like: >> >>> BuildReport.py... >>> .../Build/OvmfIa32/NOOPT_GCC48/FV/FVMAIN_COMPACT.Fv.txt(...): >> warning: Fail to read report file >>> BuildReport.py... >>> .../Build/OvmfIa32/NOOPT_GCC48/FV/PEIFV.Fv.txt(...): warning: Fail to >> read report file >>> BuildReport.py... >>> .../Build/OvmfIa32/NOOPT_GCC48/FV/DXEFV.Fv.txt(...): warning: Fail to >> read report file >>> BuildReport.py... >>> .../Build/OvmfIa32/NOOPT_GCC48/FV/SECFV.Fv.txt(...): warning: Fail to >> read report file >>> BuildReport.py... >>> .../Build/OvmfIa32/NOOPT_GCC48/FV/FVMAIN_COMPACT.Fv.txt(...): >> warning: Fail to read report file >>> BuildReport.py... >>> .../Build/OvmfIa32/NOOPT_GCC48/FV/PEIFV.Fv.txt(...): warning: Fail to >> read report file >>> BuildReport.py... >>> .../Build/OvmfIa32/NOOPT_GCC48/FV/DXEFV.Fv.txt(...): warning: Fail to >> read report file >>> BuildReport.py... >>> .../Build/OvmfIa32/NOOPT_GCC48/FV/SECFV.Fv.txt(...): warning: Fail to >> read report file >>> BuildReport.py... >>> .../Build/OvmfIa32/NOOPT_GCC48/FV/PEIFV.Fv.txt(...): warning: Fail to >> read report file >>> BuildReport.py... >>> .../Build/OvmfIa32/NOOPT_GCC48/FV/DXEFV.Fv.txt(...): warning: Fail to >> read report file >> >> near the end of the build. >> >> >> (2) After I removed the "--report-file" switch, the warnings >> disappeared. >> >> However, neither of the expected output files >> >> - Build/OvmfIa32/NOOPT_GCC48/FV/OVMF.fd >> - Build/OvmfIa32/NOOPT_GCC48/FV/OVMF_CODE.fd >> >> existed. To be more precise, none of "OVMF.fd" and "OVMF_CODE.fd" >> existed anywhere in the "Build" directory. >> >> Judged from the build log, it seemed that at least some *.efi modules >> were compiled and linked, but FVs and FDs were not built. The following >> sections of the log were missing: >> >>> Fd File Name:OVMF_VARS >> (.../Build/OvmfIa32/NOOPT_GCC48/FV/OVMF_VARS.fd) >>> >>> Generate Region at Offset 0x0 >>> Region Size = 0x40000 >>> Region Name = DATA >>> >>> Generate Region at Offset 0x40000 >>> Region Size = 0x1000 >>> Region Name = None >>> >>> Generate Region at Offset 0x41000 >>> Region Size = 0x1000 >>> Region Name = DATA >>> >>> Generate Region at Offset 0x42000 >>> Region Size = 0x42000 >>> Region Name = None >>> >>> Fd File Name:MEMFD (.../Build/OvmfIa32/NOOPT_GCC48/FV/MEMFD.fd) >>> >>> Generate Region at Offset 0x0 >>> Region Size = 0x6000 >>> Region Name = None >>> >>> Generate Region at Offset 0x6000 >>> Region Size = 0x1000 >>> Region Name = None >>> >>> Generate Region at Offset 0x7000 >>> Region Size = 0x1000 >>> Region Name = None >>> Padding region starting from offset 0x8000, with size 0x8000 >>> >>> Generate Region at Offset 0x8000 >>> Region Size = 0x8000 >>> Region Name = None >>> >>> Generate Region at Offset 0x10000 >>> Region Size = 0x10000 >>> Region Name = None >>> >>> Generate Region at Offset 0x20000 >>> Region Size = 0xE0000 >>> Region Name = FV >>> >>> Generating PEIFV FV >>> >>> Generate Region at Offset 0x100000 >>> Region Size = 0xB00000 >>> Region Name = FV >>> >>> Generating DXEFV FV >>> >>> Fd File Name:OVMF (.../Build/OvmfIa32/NOOPT_GCC48/FV/OVMF.fd) >>> >>> Generate Region at Offset 0x0 >>> Region Size = 0x40000 >>> Region Name = DATA >>> >>> Generate Region at Offset 0x40000 >>> Region Size = 0x1000 >>> Region Name = None >>> >>> Generate Region at Offset 0x41000 >>> Region Size = 0x1000 >>> Region Name = DATA >>> >>> Generate Region at Offset 0x42000 >>> Region Size = 0x42000 >>> Region Name = None >>> >>> Generate Region at Offset 0x84000 >>> Region Size = 0x348000 >>> Region Name = FV >>> >>> Generating FVMAIN_COMPACT FV >>> >>> Generate Region at Offset 0x3CC000 >>> Region Size = 0x34000 >>> Region Name = FV >>> >>> Generating SECFV FV >>> >>> Fd File Name:OVMF_CODE >> (.../Build/OvmfIa32/NOOPT_GCC48/FV/OVMF_CODE.fd) >>> >>> Generate Region at Offset 0x0 >>> Region Size = 0x348000 >>> Region Name = FV >>> >>> Generate Region at Offset 0x348000 >>> Region Size = 0x34000 >>> Region Name = FV >> >> and >> >>> FV Space Information >>> SECFV [19%Full] 212992 total, 42208 used, 170784 free >>> FVMAIN_COMPACT [52%Full] 3440640 total, 1820408 used, 1620232 free >>> DXEFV [86%Full] 11534336 total, 9928672 used, 1605664 free >>> PEIFV [43%Full] 917504 total, 395944 used, 521560 free >>> Build report can be found at .../build.ovmf.32.report >> >> Interestingly, the line >> >>> GUID cross reference file can be found >> at .../Build/OvmfIa32/NOOPT_GCC48/FV/Guid.xref >> >> which is normally printed between the two listings above, was still >> printed, but alone. >> >> Thanks, >> Laszlo