From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=pass header.i=@broadcom.com header.s=google header.b=LIApHHiW; spf=pass (domain: broadcom.com, ip: 209.85.167.169, mailfrom: vladimir.olovyannikov@broadcom.com) Received: from mail-oi1-f169.google.com (mail-oi1-f169.google.com [209.85.167.169]) by groups.io with SMTP; Fri, 06 Sep 2019 13:45:38 -0700 Received: by mail-oi1-f169.google.com with SMTP id v12so6103789oic.12 for ; Fri, 06 Sep 2019 13:45:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=kFZPxoL9NGmQIFmrtxUQiwiYwHwhbUGv0iu73JK/eXM=; b=LIApHHiWwcCxUTfVN4xW3MIJKl16hLxSEWUAs4pplaBukc4nlGlNL6UlOHLCXyxS5a LCkYZ9rnNgiYEBkyRpsY1iTG3pBRP6FUvoRFMLDTrrjRw2TKrkjzUV3pnol7NSeGxc0t qR93+A2omIzs6zXy/qdRr5AYZlKgXWFKkerhI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=kFZPxoL9NGmQIFmrtxUQiwiYwHwhbUGv0iu73JK/eXM=; b=LYbh121hoM3jn4W9tktVo69mNPJbBBmPdMNg17lbgWcFrEDNKlew9h9VJpSJhP1tmT VJyfebvGZA1/wXXHloMdUC50lrsLl5P8VQriKfOuSbRuXPedTo1dGuTpKQMRm/hW2r55 y5bZgKTptLfHfAEM7kB7S2J08FBWA9qopoq+qGxDt+jWGjwAtMUFUmcM1VA29K3H/hEO TMNl7w09JR4bKcjUschd8MthW1uuHm4hz4m/w2GJgK/a4iXKoXd4gkm6NGClnTQYn5eR 8imgVuCEBK1Xwqwh0YPYUVQTN2ZdVMQ8i+4a7CkIIqR+1jITTNhThqhh5uk4zrTvjdUL tg5g== X-Gm-Message-State: APjAAAV/8KO+CFbU2AMM9UAlLEXD+zQK3sGClaKnsMf0uxuMvk+uH8Vk a4/XfgjQvIhsamsIxGYUO71weKV+S0MO7b1/KIIrAhexnUSU2w== X-Google-Smtp-Source: APXvYqxMPmgzP5N95TcjLzgwmlOTfbsxRgryRnW2PEbm5rxsOzp7BJUfkEmAcT98w/xRBE0GvHrIiucXz7gyorTRd/0= X-Received: by 2002:aca:5251:: with SMTP id g78mr8817601oib.49.1567802737240; Fri, 06 Sep 2019 13:45:37 -0700 (PDT) MIME-Version: 1.0 References: <20190808122519.25516-1-steven.shi@intel.com> <20190808122519.25516-2-steven.shi@intel.com> In-Reply-To: <20190808122519.25516-2-steven.shi@intel.com> From: vladimir.olovyannikov@broadcom.com Date: Fri, 6 Sep 2019 13:45:26 -0700 Message-ID: Subject: commit "BaseTools: Improve the cache hit in the edk2 build cache" causes build.py unknown fatal error To: devel@edk2.groups.io, steven.shi@intel.com Cc: "Gao, Liming" , Bob Feng , christian.rodriguez@intel.com, michael.johnson@intel.com Content-Type: multipart/alternative; boundary="0000000000003b587e0591e885bf" --0000000000003b587e0591e885bf Content-Type: text/plain; charset="UTF-8" Hi Steven, The commit 0e7e7a264cd80ab71ea0f9e9da2d0617d4b539c4 BaseTools: Improve the cache hit in the edk2 build cache Author: Shi, Steven 2019-08-15 07:26:17 Committer: Feng, Bob C 2019-08-19 23:06:05 Parent: 811328172841ce3f7ec1fe7033c130726ad189b7 (ShellPkg/UefiShellDriver1CommandsLib: Make array big enough) Child: 56c786b0a9fd4f08b1f0bc10b7718a7577cb0146 (BaseTools: Print first cache missing file for build cachle) Branches: master, remotes/origin/master Follows: edk2-stable201905 Precedes: edk2-stable201908 causes "unknown fatal error" in build.py when building our platform. Here is the log: ... build.py... : error C0DE: Unknown fatal error when processing [/home/volovyan/otherwork/sandbox/uefi-related/uefi-orig/ArmPkg/Library/ArmGicArchSecLib/ArmGicArchSecLib.inf] (Please send email to devel@edk2.groups.io for help, attaching following call stack trace!) (Python 3.6.8 on linux) Traceback (most recent call last): File "/home/volovyan/otherwork/sandbox/uefi-related/uefi-orig/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 2493, in Main MyBuild.Launch() File "/home/volovyan/otherwork/sandbox/uefi-related/uefi-orig/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 2287, in Launch self._BuildPlatform() File "/home/volovyan/otherwork/sandbox/uefi-related/uefi-orig/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 1742, in _BuildPlatform self._BuildPa(self.Target, Pa, FfsCommand=CmdListDict,PcdMaList=PcdMaList) File "/home/volovyan/otherwork/sandbox/uefi-related/uefi-orig/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 1236, in _BuildPa AutoGenObject.CreateCodeFile(True) File "/home/volovyan/otherwork/sandbox/uefi-related/uefi-orig/BaseTools/Source/Python/Common/caching.py", line 18, in CallMeHere Value = self._function(obj, *args,**kwargs) File "/home/volovyan/otherwork/sandbox/uefi-related/uefi-orig/BaseTools/Source/Python/AutoGen/PlatformAutoGen.py", line 171, in CreateCodeFile Ma.CreateCodeFile(CreateModuleCodeFile) File "/home/volovyan/otherwork/sandbox/uefi-related/uefi-orig/BaseTools/Source/Python/AutoGen/ModuleAutoGen.py", line 1841, in CreateCodeFile LibraryAutoGen.CreateCodeFile() File "/home/volovyan/otherwork/sandbox/uefi-related/uefi-orig/BaseTools/Source/Python/AutoGen/ModuleAutoGen.py", line 1886, in CreateCodeFile with GlobalData.cache_lock: AttributeError: __enter__ - Failed - Build end time: 13:31:30, Sep.06 2019 Build total time: 00:00:04 Builds before the above mentioned commit was pushed, were fine. Thank you, Vladimir --0000000000003b587e0591e885bf Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Steven,

The commit
<= div>0e7e7a264cd80ab71ea0f9e9da2d0617d4b539c4
BaseTools: Improve the cache hit in the edk2 build cache
Author: Shi, Steven <= steven.shi@intel.com> =C2=A02019-08-15 07:26:17
Committer: Feng, = Bob C <bob.c.feng@intel.com&= gt; =C2=A02019-08-19 23:06:05
Parent: 811328172841ce3f7ec1fe7033c130726a= d189b7 (ShellPkg/UefiShellDriver1CommandsLib: Make array big enough)
Chi= ld: =C2=A056c786b0a9fd4f08b1f0bc10b7718a7577cb0146 (BaseTools: Print first = cache missing file for build cachle)
Branches: master, remotes/origin/ma= ster
Follows: edk2-stable201905
Precedes: edk2-stable201908
=

causes "unknown fatal error" in build.py when= building our platform.

Here is the log:
=
...
build.py...
=C2=A0: error C0DE: Unknown fatal error when pro= cessing [/home/volovyan/otherwork/sandbox/uefi-related/uefi-orig/ArmPkg/Lib= rary/ArmGicArchSecLib/ArmGicArchSecLib.inf]

(Please send email to devel@edk2.groups.io for help, at= taching following call stack trace!)

(Python 3.6.8 on linux) Traceba= ck (most recent call last):
=C2=A0 File "/home/volovyan/otherwork/s= andbox/uefi-related/uefi-orig/BaseTools/BinWrappers/PosixLike/../../Source/= Python/build/build.py", line 2493, in Main
=C2=A0 =C2=A0 MyBuild.La= unch()
=C2=A0 File "/home/volovyan/otherwork/sandbox/uefi-related/u= efi-orig/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py= ", line 2287, in Launch
=C2=A0 =C2=A0 self._BuildPlatform()
=C2= =A0 File "/home/volovyan/otherwork/sandbox/uefi-related/uefi-orig/Base= Tools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line = 1742, in _BuildPlatform
=C2=A0 =C2=A0 self._BuildPa(self.Target, Pa, Ffs= Command=3DCmdListDict,PcdMaList=3DPcdMaList)
=C2=A0 File "/home/vol= ovyan/otherwork/sandbox/uefi-related/uefi-orig/BaseTools/BinWrappers/PosixL= ike/../../Source/Python/build/build.py", line 1236, in _BuildPa
=C2= =A0 =C2=A0 AutoGenObject.CreateCodeFile(True)
=C2=A0 File "/home/vo= lovyan/otherwork/sandbox/uefi-related/uefi-orig/BaseTools/Source/Python/Com= mon/caching.py", line 18, in CallMeHere
=C2=A0 =C2=A0 Value =3D sel= f._function(obj, *args,**kwargs)
=C2=A0 File "/home/volovyan/otherw= ork/sandbox/uefi-related/uefi-orig/BaseTools/Source/Python/AutoGen/Platform= AutoGen.py", line 171, in CreateCodeFile
=C2=A0 =C2=A0 Ma.CreateCod= eFile(CreateModuleCodeFile)
=C2=A0 File "/home/volovyan/otherwork/s= andbox/uefi-related/uefi-orig/BaseTools/Source/Python/AutoGen/ModuleAutoGen= .py", line 1841, in CreateCodeFile
=C2=A0 =C2=A0 LibraryAutoGen.Cre= ateCodeFile()
=C2=A0 File "/home/volovyan/otherwork/sandbox/uefi-re= lated/uefi-orig/BaseTools/Source/Python/AutoGen/ModuleAutoGen.py", lin= e 1886, in CreateCodeFile
=C2=A0 =C2=A0 with GlobalData.cache_lock:
A= ttributeError: __enter__


- Failed -
Build end time: 13:31:30,= Sep.06 2019
Build total time: 00:00:04

Builds = before the above mentioned commit was pushed, were fine.

=
Thank you,
Vladimir
--0000000000003b587e0591e885bf--