public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* OVMF will not start to build using "OvmfPkg/build.sh -a X64 -n 40"
@ 2019-05-09  2:31 Chen, Farrah
  2019-05-09  3:20 ` [edk2-devel] " Gary Lin
  0 siblings, 1 reply; 13+ messages in thread
From: Chen, Farrah @ 2019-05-09  2:31 UTC (permalink / raw)
  To: devel@edk2.groups.io; +Cc: Hao, Xudong, Wei, Danmei

[-- Attachment #1: Type: text/plain, Size: 818 bytes --]

Hi,

We build the latest OVMF and found that it doesn't start to build using "OvmfPkg/build.sh -a X64 -n 40" actually.

Step:
git clone https://github.com/tianocore/edk2.git
cd  edk2
git submodule init
git submodule update -recursive
OvmfPkg/build.sh -a X64 -n 40
Then it didn't start to build.

log:
[vmm@vmm-build edk2]$ OvmfPkg/build.sh -a X64 -n 40
Initializing workspace
/home/fan/edk2/BaseTools
Loading previous configuration from /home/fan/edk2/Conf/BuildEnv.sh
WORKSPACE: /home/fan/edk2
EDK_TOOLS_PATH: /home/fan/edk2/BaseTools
CONF_PATH: /home/fan/edk2/Conf
[vmm@vmm-build edk2]$

We use the latest commit: 792f0d4f12ad5c01afdf9c92df8c479ff0f19a79, and we found the first commit has such issue is df7c81b5b219c9aee776baa466dd64c9d318dd80.
Do you have any advice?


Thanks,
Fan



[-- Attachment #2: Type: text/html, Size: 3984 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [edk2-devel] OVMF will not start to build using "OvmfPkg/build.sh -a X64 -n 40"
  2019-05-09  2:31 OVMF will not start to build using "OvmfPkg/build.sh -a X64 -n 40" Chen, Farrah
@ 2019-05-09  3:20 ` Gary Lin
  2019-05-09  3:29   ` Chen, Farrah
  0 siblings, 1 reply; 13+ messages in thread
From: Gary Lin @ 2019-05-09  3:20 UTC (permalink / raw)
  To: devel, farrah.chen; +Cc: Hao, Xudong, Wei, Danmei

On Thu, May 09, 2019 at 02:31:13AM +0000, Chen, Farrah wrote:
> Hi,
> 
> We build the latest OVMF and found that it doesn't start to build using "OvmfPkg/build.sh -a X64 -n 40" actually.
> 
> Step:
> git clone https://github.com/tianocore/edk2.git
> cd  edk2
> git submodule init
> git submodule update -recursive
> OvmfPkg/build.sh -a X64 -n 40
> Then it didn't start to build.
> 
> log:
> [vmm@vmm-build edk2]$ OvmfPkg/build.sh -a X64 -n 40
> Initializing workspace
> /home/fan/edk2/BaseTools
> Loading previous configuration from /home/fan/edk2/Conf/BuildEnv.sh
> WORKSPACE: /home/fan/edk2
> EDK_TOOLS_PATH: /home/fan/edk2/BaseTools
> CONF_PATH: /home/fan/edk2/Conf
> [vmm@vmm-build edk2]$
> 
> We use the latest commit: 792f0d4f12ad5c01afdf9c92df8c479ff0f19a79, and we found the first commit has such issue is df7c81b5b219c9aee776baa466dd64c9d318dd80.
> Do you have any advice?
> 
TestUtilModule() returned the opposite value.
For the shell, 0 for good, and 1 for bad.

Gary Lin

> 
> Thanks,
> Fan
> 
> 
> 
> 
> 

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [edk2-devel] OVMF will not start to build using "OvmfPkg/build.sh -a X64 -n 40"
  2019-05-09  3:20 ` [edk2-devel] " Gary Lin
@ 2019-05-09  3:29   ` Chen, Farrah
  2019-05-09  3:35     ` Liming Gao
  2019-05-09  4:06     ` Gary Lin
  0 siblings, 2 replies; 13+ messages in thread
From: Chen, Farrah @ 2019-05-09  3:29 UTC (permalink / raw)
  To: devel@edk2.groups.io, glin@suse.com; +Cc: Hao, Xudong, Wei, Danmei

Yes, thanks, my return value is 1.
And how can we build ovmf correctlly? The build steps have been updated?

[vmm@vmm-build edk2]$ OvmfPkg/build.sh -a X64 -n 40
Initializing workspace
/home/fan/edk2/BaseTools
Loading previous configuration from /home/fan/edk2/Conf/BuildEnv.sh
WORKSPACE: /home/fan/edk2
EDK_TOOLS_PATH: /home/fan/edk2/BaseTools
CONF_PATH: /home/fan/edk2/Conf
[vmm@vmm-build edk2]$ echo $?
1


Thanks,
Fan



-----Original Message-----
From: devel@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf Of Gary Lin
Sent: Thursday, May 9, 2019 11:20 AM
To: devel@edk2.groups.io; Chen, Farrah <farrah.chen@intel.com>
Cc: Hao, Xudong <xudong.hao@intel.com>; Wei, Danmei <danmei.wei@intel.com>
Subject: Re: [edk2-devel] OVMF will not start to build using "OvmfPkg/build.sh -a X64 -n 40"

On Thu, May 09, 2019 at 02:31:13AM +0000, Chen, Farrah wrote:
> Hi,
> 
> We build the latest OVMF and found that it doesn't start to build using "OvmfPkg/build.sh -a X64 -n 40" actually.
> 
> Step:
> git clone https://github.com/tianocore/edk2.git
> cd  edk2
> git submodule init
> git submodule update -recursive
> OvmfPkg/build.sh -a X64 -n 40
> Then it didn't start to build.
> 
> log:
> [vmm@vmm-build edk2]$ OvmfPkg/build.sh -a X64 -n 40 Initializing 
> workspace /home/fan/edk2/BaseTools Loading previous configuration from 
> /home/fan/edk2/Conf/BuildEnv.sh
> WORKSPACE: /home/fan/edk2
> EDK_TOOLS_PATH: /home/fan/edk2/BaseTools
> CONF_PATH: /home/fan/edk2/Conf
> [vmm@vmm-build edk2]$
> 
> We use the latest commit: 792f0d4f12ad5c01afdf9c92df8c479ff0f19a79, and we found the first commit has such issue is df7c81b5b219c9aee776baa466dd64c9d318dd80.
> Do you have any advice?
> 
TestUtilModule() returned the opposite value.
For the shell, 0 for good, and 1 for bad.

Gary Lin

> 
> Thanks,
> Fan
> 
> 
> 
> 
> 




^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [edk2-devel] OVMF will not start to build using "OvmfPkg/build.sh -a X64 -n 40"
  2019-05-09  3:29   ` Chen, Farrah
@ 2019-05-09  3:35     ` Liming Gao
  2019-05-09  6:19       ` Chen, Farrah
  2019-05-09  4:06     ` Gary Lin
  1 sibling, 1 reply; 13+ messages in thread
From: Liming Gao @ 2019-05-09  3:35 UTC (permalink / raw)
  To: devel@edk2.groups.io, Chen, Farrah, glin@suse.com
  Cc: Hao, Xudong, Wei, Danmei

Fan:
  The below is my step to build OvmfIa32X64. I don't try OvmfPkg/build.sh

1. . edksetup.sh
2. cd BaseTools, type make
3. cd ..
4. build -p OvmfPkg/OvmfPkgIa32X64.dsc -a IA32 -a X64 -t GCC5

Thanks
Liming
> -----Original Message-----
> From: devel@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf Of Chen, Farrah
> Sent: Thursday, May 9, 2019 11:29 AM
> To: devel@edk2.groups.io; glin@suse.com
> Cc: Hao, Xudong <xudong.hao@intel.com>; Wei, Danmei <danmei.wei@intel.com>
> Subject: Re: [edk2-devel] OVMF will not start to build using "OvmfPkg/build.sh -a X64 -n 40"
> 
> Yes, thanks, my return value is 1.
> And how can we build ovmf correctlly? The build steps have been updated?
> 
> [vmm@vmm-build edk2]$ OvmfPkg/build.sh -a X64 -n 40
> Initializing workspace
> /home/fan/edk2/BaseTools
> Loading previous configuration from /home/fan/edk2/Conf/BuildEnv.sh
> WORKSPACE: /home/fan/edk2
> EDK_TOOLS_PATH: /home/fan/edk2/BaseTools
> CONF_PATH: /home/fan/edk2/Conf
> [vmm@vmm-build edk2]$ echo $?
> 1
> 
> 
> Thanks,
> Fan
> 
> 
> 
> -----Original Message-----
> From: devel@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf Of Gary Lin
> Sent: Thursday, May 9, 2019 11:20 AM
> To: devel@edk2.groups.io; Chen, Farrah <farrah.chen@intel.com>
> Cc: Hao, Xudong <xudong.hao@intel.com>; Wei, Danmei <danmei.wei@intel.com>
> Subject: Re: [edk2-devel] OVMF will not start to build using "OvmfPkg/build.sh -a X64 -n 40"
> 
> On Thu, May 09, 2019 at 02:31:13AM +0000, Chen, Farrah wrote:
> > Hi,
> >
> > We build the latest OVMF and found that it doesn't start to build using "OvmfPkg/build.sh -a X64 -n 40" actually.
> >
> > Step:
> > git clone https://github.com/tianocore/edk2.git
> > cd  edk2
> > git submodule init
> > git submodule update -recursive
> > OvmfPkg/build.sh -a X64 -n 40
> > Then it didn't start to build.
> >
> > log:
> > [vmm@vmm-build edk2]$ OvmfPkg/build.sh -a X64 -n 40 Initializing
> > workspace /home/fan/edk2/BaseTools Loading previous configuration from
> > /home/fan/edk2/Conf/BuildEnv.sh
> > WORKSPACE: /home/fan/edk2
> > EDK_TOOLS_PATH: /home/fan/edk2/BaseTools
> > CONF_PATH: /home/fan/edk2/Conf
> > [vmm@vmm-build edk2]$
> >
> > We use the latest commit: 792f0d4f12ad5c01afdf9c92df8c479ff0f19a79, and we found the first commit has such issue is
> df7c81b5b219c9aee776baa466dd64c9d318dd80.
> > Do you have any advice?
> >
> TestUtilModule() returned the opposite value.
> For the shell, 0 for good, and 1 for bad.
> 
> Gary Lin
> 
> >
> > Thanks,
> > Fan
> >
> >
> >
> >
> >
> 
> 
> 
> 
> 


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [edk2-devel] OVMF will not start to build using "OvmfPkg/build.sh -a X64 -n 40"
  2019-05-09  3:29   ` Chen, Farrah
  2019-05-09  3:35     ` Liming Gao
@ 2019-05-09  4:06     ` Gary Lin
  2019-05-09  6:04       ` Chen, Farrah
  1 sibling, 1 reply; 13+ messages in thread
From: Gary Lin @ 2019-05-09  4:06 UTC (permalink / raw)
  To: Chen, Farrah; +Cc: devel@edk2.groups.io, Hao, Xudong, Wei, Danmei

On Thu, May 09, 2019 at 03:29:09AM +0000, Chen, Farrah wrote:
> Yes, thanks, my return value is 1.
> And how can we build ovmf correctlly? The build steps have been updated?
> 
You can tweak TestUtilModule() in edksetup.sh like this:

 function TestUtilModule()
 {
   if ( $PYTHON_COMMAND -c "import distutils.util" >/dev/null 2>&1 );then
-      return 1
+      return 0
   else
       echo Error: "No module named 'distutils.util"
-      return 0
+      return 1
   fi
 }

Cheers,

Gary Lin

> [vmm@vmm-build edk2]$ OvmfPkg/build.sh -a X64 -n 40
> Initializing workspace
> /home/fan/edk2/BaseTools
> Loading previous configuration from /home/fan/edk2/Conf/BuildEnv.sh
> WORKSPACE: /home/fan/edk2
> EDK_TOOLS_PATH: /home/fan/edk2/BaseTools
> CONF_PATH: /home/fan/edk2/Conf
> [vmm@vmm-build edk2]$ echo $?
> 1
> 
> 
> Thanks,
> Fan
> 
> 
> 
> -----Original Message-----
> From: devel@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf Of Gary Lin
> Sent: Thursday, May 9, 2019 11:20 AM
> To: devel@edk2.groups.io; Chen, Farrah <farrah.chen@intel.com>
> Cc: Hao, Xudong <xudong.hao@intel.com>; Wei, Danmei <danmei.wei@intel.com>
> Subject: Re: [edk2-devel] OVMF will not start to build using "OvmfPkg/build.sh -a X64 -n 40"
> 
> On Thu, May 09, 2019 at 02:31:13AM +0000, Chen, Farrah wrote:
> > Hi,
> > 
> > We build the latest OVMF and found that it doesn't start to build using "OvmfPkg/build.sh -a X64 -n 40" actually.
> > 
> > Step:
> > git clone https://github.com/tianocore/edk2.git
> > cd  edk2
> > git submodule init
> > git submodule update -recursive
> > OvmfPkg/build.sh -a X64 -n 40
> > Then it didn't start to build.
> > 
> > log:
> > [vmm@vmm-build edk2]$ OvmfPkg/build.sh -a X64 -n 40 Initializing 
> > workspace /home/fan/edk2/BaseTools Loading previous configuration from 
> > /home/fan/edk2/Conf/BuildEnv.sh
> > WORKSPACE: /home/fan/edk2
> > EDK_TOOLS_PATH: /home/fan/edk2/BaseTools
> > CONF_PATH: /home/fan/edk2/Conf
> > [vmm@vmm-build edk2]$
> > 
> > We use the latest commit: 792f0d4f12ad5c01afdf9c92df8c479ff0f19a79, and we found the first commit has such issue is df7c81b5b219c9aee776baa466dd64c9d318dd80.
> > Do you have any advice?
> > 
> TestUtilModule() returned the opposite value.
> For the shell, 0 for good, and 1 for bad.
> 
> Gary Lin
> 
> > 
> > Thanks,
> > Fan
> > 
> > 
> > 
> > 
> > 
> 
> 
> 
> 

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [edk2-devel] OVMF will not start to build using "OvmfPkg/build.sh -a X64 -n 40"
  2019-05-09  4:06     ` Gary Lin
@ 2019-05-09  6:04       ` Chen, Farrah
  2019-05-09  6:20         ` Gary Lin
  0 siblings, 1 reply; 13+ messages in thread
From: Chen, Farrah @ 2019-05-09  6:04 UTC (permalink / raw)
  To: Gary Lin; +Cc: devel@edk2.groups.io, Hao, Xudong, Wei, Danmei, Gao, Liming

Hi Gary,

Thanks a lot, we can build successfully with this method.
BTW, will this patch be merged to upstream?


Thanks,
Fan




-----Original Message-----
From: Gary Lin [mailto:glin@suse.com] 
Sent: Thursday, May 9, 2019 12:07 PM
To: Chen, Farrah <farrah.chen@intel.com>
Cc: devel@edk2.groups.io; Hao, Xudong <xudong.hao@intel.com>; Wei, Danmei <danmei.wei@intel.com>
Subject: Re: [edk2-devel] OVMF will not start to build using "OvmfPkg/build.sh -a X64 -n 40"

On Thu, May 09, 2019 at 03:29:09AM +0000, Chen, Farrah wrote:
> Yes, thanks, my return value is 1.
> And how can we build ovmf correctlly? The build steps have been updated?
> 
You can tweak TestUtilModule() in edksetup.sh like this:

 function TestUtilModule()
 {
   if ( $PYTHON_COMMAND -c "import distutils.util" >/dev/null 2>&1 );then
-      return 1
+      return 0
   else
       echo Error: "No module named 'distutils.util"
-      return 0
+      return 1
   fi
 }

Cheers,

Gary Lin

> [vmm@vmm-build edk2]$ OvmfPkg/build.sh -a X64 -n 40 Initializing 
> workspace /home/fan/edk2/BaseTools Loading previous configuration from 
> /home/fan/edk2/Conf/BuildEnv.sh
> WORKSPACE: /home/fan/edk2
> EDK_TOOLS_PATH: /home/fan/edk2/BaseTools
> CONF_PATH: /home/fan/edk2/Conf
> [vmm@vmm-build edk2]$ echo $?
> 1
> 
> 
> Thanks,
> Fan
> 
> 
> 
> -----Original Message-----
> From: devel@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf Of 
> Gary Lin
> Sent: Thursday, May 9, 2019 11:20 AM
> To: devel@edk2.groups.io; Chen, Farrah <farrah.chen@intel.com>
> Cc: Hao, Xudong <xudong.hao@intel.com>; Wei, Danmei 
> <danmei.wei@intel.com>
> Subject: Re: [edk2-devel] OVMF will not start to build using "OvmfPkg/build.sh -a X64 -n 40"
> 
> On Thu, May 09, 2019 at 02:31:13AM +0000, Chen, Farrah wrote:
> > Hi,
> > 
> > We build the latest OVMF and found that it doesn't start to build using "OvmfPkg/build.sh -a X64 -n 40" actually.
> > 
> > Step:
> > git clone https://github.com/tianocore/edk2.git
> > cd  edk2
> > git submodule init
> > git submodule update -recursive
> > OvmfPkg/build.sh -a X64 -n 40
> > Then it didn't start to build.
> > 
> > log:
> > [vmm@vmm-build edk2]$ OvmfPkg/build.sh -a X64 -n 40 Initializing 
> > workspace /home/fan/edk2/BaseTools Loading previous configuration 
> > from /home/fan/edk2/Conf/BuildEnv.sh
> > WORKSPACE: /home/fan/edk2
> > EDK_TOOLS_PATH: /home/fan/edk2/BaseTools
> > CONF_PATH: /home/fan/edk2/Conf
> > [vmm@vmm-build edk2]$
> > 
> > We use the latest commit: 792f0d4f12ad5c01afdf9c92df8c479ff0f19a79, and we found the first commit has such issue is df7c81b5b219c9aee776baa466dd64c9d318dd80.
> > Do you have any advice?
> > 
> TestUtilModule() returned the opposite value.
> For the shell, 0 for good, and 1 for bad.
> 
> Gary Lin
> 
> > 
> > Thanks,
> > Fan
> > 
> > 
> > 
> > 
> > 
> 
> 
> 
> 

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [edk2-devel] OVMF will not start to build using "OvmfPkg/build.sh -a X64 -n 40"
  2019-05-09  3:35     ` Liming Gao
@ 2019-05-09  6:19       ` Chen, Farrah
  2019-05-09  6:24         ` Liming Gao
  0 siblings, 1 reply; 13+ messages in thread
From: Chen, Farrah @ 2019-05-09  6:19 UTC (permalink / raw)
  To: Gao, Liming, devel@edk2.groups.io, glin@suse.com; +Cc: Hao, Xudong, Wei, Danmei

Hi Liming,

We have been using " OvmfPkg/build.sh -a X64" for such a long time, ovmf can be built successfully with this method until commit df7c81b5b219c9ae, and in edk2/OvmfPkg/README, it asks me to use " OvmfPkg/build.sh".
As Gray's advice, we modified return value of TestUtilModule() in edksetup.sh, then it can succeed with " OvmfPkg/build.sh -a X64".
And we met error with " build -p OvmfPkg/OvmfPkgIa32X64.dsc -a IA32 -a X64 -t GCC5" to build ovmf, fail log showed below.
So, can we get a correct and official build method with no error?
Thanks!

edk2/OvmfPkg/README:
108 On systems with the bash shell you can use OvmfPkg/build.sh to simplify
109 building and running OVMF.
110
111 So, for example, to build + run OVMF X64:
112 $ OvmfPkg/build.sh -a X64
113 $ OvmfPkg/build.sh -a X64 qemu
114
115 And to run a 64-bit UEFI bootable ISO image:
116 $ OvmfPkg/build.sh -a X64 qemu -cdrom /path/to/disk-image.iso
117
118 To build a 32-bit OVMF without debug messages using GCC 4.8:
119 $ OvmfPkg/build.sh -a IA32 -b RELEASE -t GCC48


Fail log:
build -p OvmfPkg/OvmfPkgIa32X64.dsc -a IA32 -a X64 -t GCC5
..........

build.py...
 : error 7000: Failed to execute command
        make tbuild [/home/fan/edk2/Build/Ovmf3264/DEBUG_GCC5/IA32/MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei]
"gcc" -g -fshort-wchar -fno-builtin -fno-strict-aliasing -Wall -Werror -Wno-array-bounds -ffunction-sections -fdata-sections -include AutoGen.h -fno-common -DSTRING_ARRAY_NAME=PlatformPeiStrings -m32 -march=i586 -malign-double -fno-stack-protector -D EFI32 -fno-asynchronous-unwind-tables -Wno-address -fno-pic -fno-pie -flto -Os -mno-mmx -mno-sse -D DISABLE_NEW_DEPRECATED_INTERFACES -c -o /home/fan/edk2/Build/Ovmf3264/DEBUG_GCC5/IA32/OvmfPkg/PlatformPei/PlatformPei/OUTPUT/./MemDetect.obj -I/home/fan/edk2/OvmfPkg/PlatformPei -I/home/fan/edk2/Build/Ovmf3264/DEBUG_GCC5/IA32/OvmfPkg/PlatformPei/PlatformPei/DEBUG -I/home/fan/edk2/IntelFrameworkModulePkg -I/home/fan/edk2/IntelFrameworkModulePkg/Include -I/home/fan/edk2/MdePkg -I/home/fan/edk2/MdePkg/Include -I/home/fan/edk2/MdePkg/Include/Ia32 -I/home/fan/edk2/MdeModulePkg -I/home/fan/edk2/MdeModulePkg/Include -I/home/fan/edk2/SecurityPkg -I/home/fan/edk2/SecurityPkg/Include -I/home/fan/edk2/UefiCpuPkg -I/home/fan/edk2/UefiCpuPkg/Include -I/home/fan/edk2/OvmfPkg -I/home/fan/edk2/OvmfPkg/Include /home/fan/edk2/OvmfPkg/PlatformPei/MemDetect.c

build.py...
 : error 7000: Failed to execute command
        make tbuild [/home/fan/edk2/Build/Ovmf3264/DEBUG_GCC5/IA32/MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei]

build.py...
 : error 7000: Failed to execute command
        make tbuild [/home/fan/edk2/Build/Ovmf3264/DEBUG_GCC5/IA32/UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei]


Thanks,
Fan

-----Original Message-----
From: Gao, Liming 
Sent: Thursday, May 9, 2019 11:35 AM
To: devel@edk2.groups.io; Chen, Farrah <farrah.chen@intel.com>; glin@suse.com
Cc: Hao, Xudong <xudong.hao@intel.com>; Wei, Danmei <danmei.wei@intel.com>
Subject: RE: [edk2-devel] OVMF will not start to build using "OvmfPkg/build.sh -a X64 -n 40"

Fan:
  The below is my step to build OvmfIa32X64. I don't try OvmfPkg/build.sh

1. . edksetup.sh
2. cd BaseTools, type make
3. cd ..
4. build -p OvmfPkg/OvmfPkgIa32X64.dsc -a IA32 -a X64 -t GCC5

Thanks
Liming
> -----Original Message-----
> From: devel@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf Of 
> Chen, Farrah
> Sent: Thursday, May 9, 2019 11:29 AM
> To: devel@edk2.groups.io; glin@suse.com
> Cc: Hao, Xudong <xudong.hao@intel.com>; Wei, Danmei 
> <danmei.wei@intel.com>
> Subject: Re: [edk2-devel] OVMF will not start to build using "OvmfPkg/build.sh -a X64 -n 40"
> 
> Yes, thanks, my return value is 1.
> And how can we build ovmf correctlly? The build steps have been updated?
> 
> [vmm@vmm-build edk2]$ OvmfPkg/build.sh -a X64 -n 40 Initializing 
> workspace /home/fan/edk2/BaseTools Loading previous configuration from 
> /home/fan/edk2/Conf/BuildEnv.sh
> WORKSPACE: /home/fan/edk2
> EDK_TOOLS_PATH: /home/fan/edk2/BaseTools
> CONF_PATH: /home/fan/edk2/Conf
> [vmm@vmm-build edk2]$ echo $?
> 1
> 
> 
> Thanks,
> Fan
> 
> 
> 
> -----Original Message-----
> From: devel@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf Of 
> Gary Lin
> Sent: Thursday, May 9, 2019 11:20 AM
> To: devel@edk2.groups.io; Chen, Farrah <farrah.chen@intel.com>
> Cc: Hao, Xudong <xudong.hao@intel.com>; Wei, Danmei 
> <danmei.wei@intel.com>
> Subject: Re: [edk2-devel] OVMF will not start to build using "OvmfPkg/build.sh -a X64 -n 40"
> 
> On Thu, May 09, 2019 at 02:31:13AM +0000, Chen, Farrah wrote:
> > Hi,
> >
> > We build the latest OVMF and found that it doesn't start to build using "OvmfPkg/build.sh -a X64 -n 40" actually.
> >
> > Step:
> > git clone https://github.com/tianocore/edk2.git
> > cd  edk2
> > git submodule init
> > git submodule update -recursive
> > OvmfPkg/build.sh -a X64 -n 40
> > Then it didn't start to build.
> >
> > log:
> > [vmm@vmm-build edk2]$ OvmfPkg/build.sh -a X64 -n 40 Initializing 
> > workspace /home/fan/edk2/BaseTools Loading previous configuration 
> > from /home/fan/edk2/Conf/BuildEnv.sh
> > WORKSPACE: /home/fan/edk2
> > EDK_TOOLS_PATH: /home/fan/edk2/BaseTools
> > CONF_PATH: /home/fan/edk2/Conf
> > [vmm@vmm-build edk2]$
> >
> > We use the latest commit: 792f0d4f12ad5c01afdf9c92df8c479ff0f19a79, 
> > and we found the first commit has such issue is
> df7c81b5b219c9aee776baa466dd64c9d318dd80.
> > Do you have any advice?
> >
> TestUtilModule() returned the opposite value.
> For the shell, 0 for good, and 1 for bad.
> 
> Gary Lin
> 
> >
> > Thanks,
> > Fan
> >
> >
> >
> >
> >
> 
> 
> 
> 
> 


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [edk2-devel] OVMF will not start to build using "OvmfPkg/build.sh -a X64 -n 40"
  2019-05-09  6:04       ` Chen, Farrah
@ 2019-05-09  6:20         ` Gary Lin
  2019-05-09  6:25           ` Chen, Farrah
  0 siblings, 1 reply; 13+ messages in thread
From: Gary Lin @ 2019-05-09  6:20 UTC (permalink / raw)
  To: Chen, Farrah; +Cc: devel@edk2.groups.io, Hao, Xudong, Wei, Danmei, Gao, Liming

On Thu, May 09, 2019 at 06:04:42AM +0000, Chen, Farrah wrote:
> Hi Gary,
> 
> Thanks a lot, we can build successfully with this method.
> BTW, will this patch be merged to upstream?
> 
I already reported the issue to bugzilla of the original patch:
https://bugzilla.tianocore.org/show_bug.cgi?id=1582

The maintainer will fix it.

Cheers,

Gary Lin

> 
> Thanks,
> Fan
> 
> 
> 
> 
> -----Original Message-----
> From: Gary Lin [mailto:glin@suse.com] 
> Sent: Thursday, May 9, 2019 12:07 PM
> To: Chen, Farrah <farrah.chen@intel.com>
> Cc: devel@edk2.groups.io; Hao, Xudong <xudong.hao@intel.com>; Wei, Danmei <danmei.wei@intel.com>
> Subject: Re: [edk2-devel] OVMF will not start to build using "OvmfPkg/build.sh -a X64 -n 40"
> 
> On Thu, May 09, 2019 at 03:29:09AM +0000, Chen, Farrah wrote:
> > Yes, thanks, my return value is 1.
> > And how can we build ovmf correctlly? The build steps have been updated?
> > 
> You can tweak TestUtilModule() in edksetup.sh like this:
> 
>  function TestUtilModule()
>  {
>    if ( $PYTHON_COMMAND -c "import distutils.util" >/dev/null 2>&1 );then
> -      return 1
> +      return 0
>    else
>        echo Error: "No module named 'distutils.util"
> -      return 0
> +      return 1
>    fi
>  }
> 
> Cheers,
> 
> Gary Lin
> 
> > [vmm@vmm-build edk2]$ OvmfPkg/build.sh -a X64 -n 40 Initializing 
> > workspace /home/fan/edk2/BaseTools Loading previous configuration from 
> > /home/fan/edk2/Conf/BuildEnv.sh
> > WORKSPACE: /home/fan/edk2
> > EDK_TOOLS_PATH: /home/fan/edk2/BaseTools
> > CONF_PATH: /home/fan/edk2/Conf
> > [vmm@vmm-build edk2]$ echo $?
> > 1
> > 
> > 
> > Thanks,
> > Fan
> > 
> > 
> > 
> > -----Original Message-----
> > From: devel@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf Of 
> > Gary Lin
> > Sent: Thursday, May 9, 2019 11:20 AM
> > To: devel@edk2.groups.io; Chen, Farrah <farrah.chen@intel.com>
> > Cc: Hao, Xudong <xudong.hao@intel.com>; Wei, Danmei 
> > <danmei.wei@intel.com>
> > Subject: Re: [edk2-devel] OVMF will not start to build using "OvmfPkg/build.sh -a X64 -n 40"
> > 
> > On Thu, May 09, 2019 at 02:31:13AM +0000, Chen, Farrah wrote:
> > > Hi,
> > > 
> > > We build the latest OVMF and found that it doesn't start to build using "OvmfPkg/build.sh -a X64 -n 40" actually.
> > > 
> > > Step:
> > > git clone https://github.com/tianocore/edk2.git
> > > cd  edk2
> > > git submodule init
> > > git submodule update -recursive
> > > OvmfPkg/build.sh -a X64 -n 40
> > > Then it didn't start to build.
> > > 
> > > log:
> > > [vmm@vmm-build edk2]$ OvmfPkg/build.sh -a X64 -n 40 Initializing 
> > > workspace /home/fan/edk2/BaseTools Loading previous configuration 
> > > from /home/fan/edk2/Conf/BuildEnv.sh
> > > WORKSPACE: /home/fan/edk2
> > > EDK_TOOLS_PATH: /home/fan/edk2/BaseTools
> > > CONF_PATH: /home/fan/edk2/Conf
> > > [vmm@vmm-build edk2]$
> > > 
> > > We use the latest commit: 792f0d4f12ad5c01afdf9c92df8c479ff0f19a79, and we found the first commit has such issue is df7c81b5b219c9aee776baa466dd64c9d318dd80.
> > > Do you have any advice?
> > > 
> > TestUtilModule() returned the opposite value.
> > For the shell, 0 for good, and 1 for bad.
> > 
> > Gary Lin
> > 
> > > 
> > > Thanks,
> > > Fan
> > > 
> > > 
> > > 
> > > 
> > > 
> > 
> > 
> > 
> > 
> 

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [edk2-devel] OVMF will not start to build using "OvmfPkg/build.sh -a X64 -n 40"
  2019-05-09  6:19       ` Chen, Farrah
@ 2019-05-09  6:24         ` Liming Gao
  2019-05-09  6:37           ` Chen, Farrah
  0 siblings, 1 reply; 13+ messages in thread
From: Liming Gao @ 2019-05-09  6:24 UTC (permalink / raw)
  To: Chen, Farrah, devel@edk2.groups.io, glin@suse.com
  Cc: Hao, Xudong, Wei, Danmei, Feng, Bob C

Farrah:
  This is the problem in df7c81b5b219c9ae. Patch owner are looking it, then fix it. 

  On build failure, could you share more log? This log doesn't show what compiler error in the driver.

Thanks
Liming
> -----Original Message-----
> From: Chen, Farrah
> Sent: Thursday, May 9, 2019 2:19 PM
> To: Gao, Liming <liming.gao@intel.com>; devel@edk2.groups.io; glin@suse.com
> Cc: Hao, Xudong <xudong.hao@intel.com>; Wei, Danmei <danmei.wei@intel.com>
> Subject: RE: [edk2-devel] OVMF will not start to build using "OvmfPkg/build.sh -a X64 -n 40"
> 
> Hi Liming,
> 
> We have been using " OvmfPkg/build.sh -a X64" for such a long time, ovmf can be built successfully with this method until commit
> df7c81b5b219c9ae, and in edk2/OvmfPkg/README, it asks me to use " OvmfPkg/build.sh".
> As Gray's advice, we modified return value of TestUtilModule() in edksetup.sh, then it can succeed with " OvmfPkg/build.sh -a X64".
> And we met error with " build -p OvmfPkg/OvmfPkgIa32X64.dsc -a IA32 -a X64 -t GCC5" to build ovmf, fail log showed below.
> So, can we get a correct and official build method with no error?
> Thanks!
> 
> edk2/OvmfPkg/README:
> 108 On systems with the bash shell you can use OvmfPkg/build.sh to simplify
> 109 building and running OVMF.
> 110
> 111 So, for example, to build + run OVMF X64:
> 112 $ OvmfPkg/build.sh -a X64
> 113 $ OvmfPkg/build.sh -a X64 qemu
> 114
> 115 And to run a 64-bit UEFI bootable ISO image:
> 116 $ OvmfPkg/build.sh -a X64 qemu -cdrom /path/to/disk-image.iso
> 117
> 118 To build a 32-bit OVMF without debug messages using GCC 4.8:
> 119 $ OvmfPkg/build.sh -a IA32 -b RELEASE -t GCC48
> 
> 
> Fail log:
> build -p OvmfPkg/OvmfPkgIa32X64.dsc -a IA32 -a X64 -t GCC5
> ..........
> 
> build.py...
>  : error 7000: Failed to execute command
>         make tbuild
> [/home/fan/edk2/Build/Ovmf3264/DEBUG_GCC5/IA32/MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouter
> Pei]
> "gcc" -g -fshort-wchar -fno-builtin -fno-strict-aliasing -Wall -Werror -Wno-array-bounds -ffunction-sections -fdata-sections -include
> AutoGen.h -fno-common -DSTRING_ARRAY_NAME=PlatformPeiStrings -m32 -march=i586 -malign-double -fno-stack-protector -D EFI32
> -fno-asynchronous-unwind-tables -Wno-address -fno-pic -fno-pie -flto -Os -mno-mmx -mno-sse -D
> DISABLE_NEW_DEPRECATED_INTERFACES -c -o
> /home/fan/edk2/Build/Ovmf3264/DEBUG_GCC5/IA32/OvmfPkg/PlatformPei/PlatformPei/OUTPUT/./MemDetect.obj
> -I/home/fan/edk2/OvmfPkg/PlatformPei
> -I/home/fan/edk2/Build/Ovmf3264/DEBUG_GCC5/IA32/OvmfPkg/PlatformPei/PlatformPei/DEBUG
> -I/home/fan/edk2/IntelFrameworkModulePkg -I/home/fan/edk2/IntelFrameworkModulePkg/Include -I/home/fan/edk2/MdePkg
> -I/home/fan/edk2/MdePkg/Include -I/home/fan/edk2/MdePkg/Include/Ia32 -I/home/fan/edk2/MdeModulePkg
> -I/home/fan/edk2/MdeModulePkg/Include -I/home/fan/edk2/SecurityPkg -I/home/fan/edk2/SecurityPkg/Include
> -I/home/fan/edk2/UefiCpuPkg -I/home/fan/edk2/UefiCpuPkg/Include -I/home/fan/edk2/OvmfPkg -I/home/fan/edk2/OvmfPkg/Include
> /home/fan/edk2/OvmfPkg/PlatformPei/MemDetect.c
> 
> build.py...
>  : error 7000: Failed to execute command
>         make tbuild
> [/home/fan/edk2/Build/Ovmf3264/DEBUG_GCC5/IA32/MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei]
> 
> build.py...
>  : error 7000: Failed to execute command
>         make tbuild [/home/fan/edk2/Build/Ovmf3264/DEBUG_GCC5/IA32/UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei]
> 
> 
> Thanks,
> Fan
> 
> -----Original Message-----
> From: Gao, Liming
> Sent: Thursday, May 9, 2019 11:35 AM
> To: devel@edk2.groups.io; Chen, Farrah <farrah.chen@intel.com>; glin@suse.com
> Cc: Hao, Xudong <xudong.hao@intel.com>; Wei, Danmei <danmei.wei@intel.com>
> Subject: RE: [edk2-devel] OVMF will not start to build using "OvmfPkg/build.sh -a X64 -n 40"
> 
> Fan:
>   The below is my step to build OvmfIa32X64. I don't try OvmfPkg/build.sh
> 
> 1. . edksetup.sh
> 2. cd BaseTools, type make
> 3. cd ..
> 4. build -p OvmfPkg/OvmfPkgIa32X64.dsc -a IA32 -a X64 -t GCC5
> 
> Thanks
> Liming
> > -----Original Message-----
> > From: devel@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf Of
> > Chen, Farrah
> > Sent: Thursday, May 9, 2019 11:29 AM
> > To: devel@edk2.groups.io; glin@suse.com
> > Cc: Hao, Xudong <xudong.hao@intel.com>; Wei, Danmei
> > <danmei.wei@intel.com>
> > Subject: Re: [edk2-devel] OVMF will not start to build using "OvmfPkg/build.sh -a X64 -n 40"
> >
> > Yes, thanks, my return value is 1.
> > And how can we build ovmf correctlly? The build steps have been updated?
> >
> > [vmm@vmm-build edk2]$ OvmfPkg/build.sh -a X64 -n 40 Initializing
> > workspace /home/fan/edk2/BaseTools Loading previous configuration from
> > /home/fan/edk2/Conf/BuildEnv.sh
> > WORKSPACE: /home/fan/edk2
> > EDK_TOOLS_PATH: /home/fan/edk2/BaseTools
> > CONF_PATH: /home/fan/edk2/Conf
> > [vmm@vmm-build edk2]$ echo $?
> > 1
> >
> >
> > Thanks,
> > Fan
> >
> >
> >
> > -----Original Message-----
> > From: devel@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf Of
> > Gary Lin
> > Sent: Thursday, May 9, 2019 11:20 AM
> > To: devel@edk2.groups.io; Chen, Farrah <farrah.chen@intel.com>
> > Cc: Hao, Xudong <xudong.hao@intel.com>; Wei, Danmei
> > <danmei.wei@intel.com>
> > Subject: Re: [edk2-devel] OVMF will not start to build using "OvmfPkg/build.sh -a X64 -n 40"
> >
> > On Thu, May 09, 2019 at 02:31:13AM +0000, Chen, Farrah wrote:
> > > Hi,
> > >
> > > We build the latest OVMF and found that it doesn't start to build using "OvmfPkg/build.sh -a X64 -n 40" actually.
> > >
> > > Step:
> > > git clone https://github.com/tianocore/edk2.git
> > > cd  edk2
> > > git submodule init
> > > git submodule update -recursive
> > > OvmfPkg/build.sh -a X64 -n 40
> > > Then it didn't start to build.
> > >
> > > log:
> > > [vmm@vmm-build edk2]$ OvmfPkg/build.sh -a X64 -n 40 Initializing
> > > workspace /home/fan/edk2/BaseTools Loading previous configuration
> > > from /home/fan/edk2/Conf/BuildEnv.sh
> > > WORKSPACE: /home/fan/edk2
> > > EDK_TOOLS_PATH: /home/fan/edk2/BaseTools
> > > CONF_PATH: /home/fan/edk2/Conf
> > > [vmm@vmm-build edk2]$
> > >
> > > We use the latest commit: 792f0d4f12ad5c01afdf9c92df8c479ff0f19a79,
> > > and we found the first commit has such issue is
> > df7c81b5b219c9aee776baa466dd64c9d318dd80.
> > > Do you have any advice?
> > >
> > TestUtilModule() returned the opposite value.
> > For the shell, 0 for good, and 1 for bad.
> >
> > Gary Lin
> >
> > >
> > > Thanks,
> > > Fan
> > >
> > >
> > >
> > >
> > >
> >
> >
> >
> >
> > 


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [edk2-devel] OVMF will not start to build using "OvmfPkg/build.sh -a X64 -n 40"
  2019-05-09  6:20         ` Gary Lin
@ 2019-05-09  6:25           ` Chen, Farrah
  0 siblings, 0 replies; 13+ messages in thread
From: Chen, Farrah @ 2019-05-09  6:25 UTC (permalink / raw)
  To: devel@edk2.groups.io, glin@suse.com; +Cc: Hao, Xudong, Wei, Danmei, Gao, Liming

Glad to know, thanks!


Thanks,
Fan




-----Original Message-----
From: devel@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf Of Gary Lin
Sent: Thursday, May 9, 2019 2:20 PM
To: Chen, Farrah <farrah.chen@intel.com>
Cc: devel@edk2.groups.io; Hao, Xudong <xudong.hao@intel.com>; Wei, Danmei <danmei.wei@intel.com>; Gao, Liming <liming.gao@intel.com>
Subject: Re: [edk2-devel] OVMF will not start to build using "OvmfPkg/build.sh -a X64 -n 40"

On Thu, May 09, 2019 at 06:04:42AM +0000, Chen, Farrah wrote:
> Hi Gary,
> 
> Thanks a lot, we can build successfully with this method.
> BTW, will this patch be merged to upstream?
> 
I already reported the issue to bugzilla of the original patch:
https://bugzilla.tianocore.org/show_bug.cgi?id=1582

The maintainer will fix it.

Cheers,

Gary Lin

> 
> Thanks,
> Fan
> 
> 
> 
> 
> -----Original Message-----
> From: Gary Lin [mailto:glin@suse.com]
> Sent: Thursday, May 9, 2019 12:07 PM
> To: Chen, Farrah <farrah.chen@intel.com>
> Cc: devel@edk2.groups.io; Hao, Xudong <xudong.hao@intel.com>; Wei, 
> Danmei <danmei.wei@intel.com>
> Subject: Re: [edk2-devel] OVMF will not start to build using "OvmfPkg/build.sh -a X64 -n 40"
> 
> On Thu, May 09, 2019 at 03:29:09AM +0000, Chen, Farrah wrote:
> > Yes, thanks, my return value is 1.
> > And how can we build ovmf correctlly? The build steps have been updated?
> > 
> You can tweak TestUtilModule() in edksetup.sh like this:
> 
>  function TestUtilModule()
>  {
>    if ( $PYTHON_COMMAND -c "import distutils.util" >/dev/null 2>&1 );then
> -      return 1
> +      return 0
>    else
>        echo Error: "No module named 'distutils.util"
> -      return 0
> +      return 1
>    fi
>  }
> 
> Cheers,
> 
> Gary Lin
> 
> > [vmm@vmm-build edk2]$ OvmfPkg/build.sh -a X64 -n 40 Initializing 
> > workspace /home/fan/edk2/BaseTools Loading previous configuration 
> > from /home/fan/edk2/Conf/BuildEnv.sh
> > WORKSPACE: /home/fan/edk2
> > EDK_TOOLS_PATH: /home/fan/edk2/BaseTools
> > CONF_PATH: /home/fan/edk2/Conf
> > [vmm@vmm-build edk2]$ echo $?
> > 1
> > 
> > 
> > Thanks,
> > Fan
> > 
> > 
> > 
> > -----Original Message-----
> > From: devel@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf 
> > Of Gary Lin
> > Sent: Thursday, May 9, 2019 11:20 AM
> > To: devel@edk2.groups.io; Chen, Farrah <farrah.chen@intel.com>
> > Cc: Hao, Xudong <xudong.hao@intel.com>; Wei, Danmei 
> > <danmei.wei@intel.com>
> > Subject: Re: [edk2-devel] OVMF will not start to build using "OvmfPkg/build.sh -a X64 -n 40"
> > 
> > On Thu, May 09, 2019 at 02:31:13AM +0000, Chen, Farrah wrote:
> > > Hi,
> > > 
> > > We build the latest OVMF and found that it doesn't start to build using "OvmfPkg/build.sh -a X64 -n 40" actually.
> > > 
> > > Step:
> > > git clone https://github.com/tianocore/edk2.git
> > > cd  edk2
> > > git submodule init
> > > git submodule update -recursive
> > > OvmfPkg/build.sh -a X64 -n 40
> > > Then it didn't start to build.
> > > 
> > > log:
> > > [vmm@vmm-build edk2]$ OvmfPkg/build.sh -a X64 -n 40 Initializing 
> > > workspace /home/fan/edk2/BaseTools Loading previous configuration 
> > > from /home/fan/edk2/Conf/BuildEnv.sh
> > > WORKSPACE: /home/fan/edk2
> > > EDK_TOOLS_PATH: /home/fan/edk2/BaseTools
> > > CONF_PATH: /home/fan/edk2/Conf
> > > [vmm@vmm-build edk2]$
> > > 
> > > We use the latest commit: 792f0d4f12ad5c01afdf9c92df8c479ff0f19a79, and we found the first commit has such issue is df7c81b5b219c9aee776baa466dd64c9d318dd80.
> > > Do you have any advice?
> > > 
> > TestUtilModule() returned the opposite value.
> > For the shell, 0 for good, and 1 for bad.
> > 
> > Gary Lin
> > 
> > > 
> > > Thanks,
> > > Fan
> > > 
> > > 
> > > 
> > > 
> > > 
> > 
> > 
> > 
> > 
> 




^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [edk2-devel] OVMF will not start to build using "OvmfPkg/build.sh -a X64 -n 40"
  2019-05-09  6:24         ` Liming Gao
@ 2019-05-09  6:37           ` Chen, Farrah
  2019-05-09  6:42             ` Liming Gao
  0 siblings, 1 reply; 13+ messages in thread
From: Chen, Farrah @ 2019-05-09  6:37 UTC (permalink / raw)
  To: Gao, Liming, devel@edk2.groups.io, glin@suse.com
  Cc: Hao, Xudong, Wei, Danmei, Feng, Bob C

[-- Attachment #1: Type: text/plain, Size: 7529 bytes --]

Sure, detailed log attached, no error in make_BaseTools.log, the error occurred in build edk2.
After running "build -p OvmfPkg/OvmfPkgIa32X64.dsc -a IA32 -a X64 -t GCC5", error log is edk2_build.log.
After running "build -p OvmfPkg/OvmfPkgIa32X64.dsc -a IA32 -a X64", the error is different, error log is edk2_build_withoutGCC5.log.
Thanks a lot!


Thanks,
Fan




-----Original Message-----
From: Gao, Liming 
Sent: Thursday, May 9, 2019 2:25 PM
To: Chen, Farrah <farrah.chen@intel.com>; devel@edk2.groups.io; glin@suse.com
Cc: Hao, Xudong <xudong.hao@intel.com>; Wei, Danmei <danmei.wei@intel.com>; Feng, Bob C <bob.c.feng@intel.com>
Subject: RE: [edk2-devel] OVMF will not start to build using "OvmfPkg/build.sh -a X64 -n 40"

Farrah:
  This is the problem in df7c81b5b219c9ae. Patch owner are looking it, then fix it. 

  On build failure, could you share more log? This log doesn't show what compiler error in the driver.

Thanks
Liming
> -----Original Message-----
> From: Chen, Farrah
> Sent: Thursday, May 9, 2019 2:19 PM
> To: Gao, Liming <liming.gao@intel.com>; devel@edk2.groups.io; 
> glin@suse.com
> Cc: Hao, Xudong <xudong.hao@intel.com>; Wei, Danmei 
> <danmei.wei@intel.com>
> Subject: RE: [edk2-devel] OVMF will not start to build using "OvmfPkg/build.sh -a X64 -n 40"
> 
> Hi Liming,
> 
> We have been using " OvmfPkg/build.sh -a X64" for such a long time, 
> ovmf can be built successfully with this method until commit df7c81b5b219c9ae, and in edk2/OvmfPkg/README, it asks me to use " OvmfPkg/build.sh".
> As Gray's advice, we modified return value of TestUtilModule() in edksetup.sh, then it can succeed with " OvmfPkg/build.sh -a X64".
> And we met error with " build -p OvmfPkg/OvmfPkgIa32X64.dsc -a IA32 -a X64 -t GCC5" to build ovmf, fail log showed below.
> So, can we get a correct and official build method with no error?
> Thanks!
> 
> edk2/OvmfPkg/README:
> 108 On systems with the bash shell you can use OvmfPkg/build.sh to 
> simplify
> 109 building and running OVMF.
> 110
> 111 So, for example, to build + run OVMF X64:
> 112 $ OvmfPkg/build.sh -a X64
> 113 $ OvmfPkg/build.sh -a X64 qemu
> 114
> 115 And to run a 64-bit UEFI bootable ISO image:
> 116 $ OvmfPkg/build.sh -a X64 qemu -cdrom /path/to/disk-image.iso
> 117
> 118 To build a 32-bit OVMF without debug messages using GCC 4.8:
> 119 $ OvmfPkg/build.sh -a IA32 -b RELEASE -t GCC48
> 
> 
> Fail log:
> build -p OvmfPkg/OvmfPkgIa32X64.dsc -a IA32 -a X64 -t GCC5 ..........
> 
> build.py...
>  : error 7000: Failed to execute command
>         make tbuild
> [/home/fan/edk2/Build/Ovmf3264/DEBUG_GCC5/IA32/MdeModulePkg/Universal/
> ReportStatusCodeRouter/Pei/ReportStatusCodeRouter
> Pei]
> "gcc" -g -fshort-wchar -fno-builtin -fno-strict-aliasing -Wall -Werror 
> -Wno-array-bounds -ffunction-sections -fdata-sections -include 
> AutoGen.h -fno-common -DSTRING_ARRAY_NAME=PlatformPeiStrings -m32 
> -march=i586 -malign-double -fno-stack-protector -D EFI32 
> -fno-asynchronous-unwind-tables -Wno-address -fno-pic -fno-pie -flto 
> -Os -mno-mmx -mno-sse -D DISABLE_NEW_DEPRECATED_INTERFACES -c -o 
> /home/fan/edk2/Build/Ovmf3264/DEBUG_GCC5/IA32/OvmfPkg/PlatformPei/Plat
> formPei/OUTPUT/./MemDetect.obj
> -I/home/fan/edk2/OvmfPkg/PlatformPei
> -I/home/fan/edk2/Build/Ovmf3264/DEBUG_GCC5/IA32/OvmfPkg/PlatformPei/Pl
> atformPei/DEBUG -I/home/fan/edk2/IntelFrameworkModulePkg 
> -I/home/fan/edk2/IntelFrameworkModulePkg/Include 
> -I/home/fan/edk2/MdePkg -I/home/fan/edk2/MdePkg/Include 
> -I/home/fan/edk2/MdePkg/Include/Ia32 -I/home/fan/edk2/MdeModulePkg 
> -I/home/fan/edk2/MdeModulePkg/Include -I/home/fan/edk2/SecurityPkg 
> -I/home/fan/edk2/SecurityPkg/Include
> -I/home/fan/edk2/UefiCpuPkg -I/home/fan/edk2/UefiCpuPkg/Include 
> -I/home/fan/edk2/OvmfPkg -I/home/fan/edk2/OvmfPkg/Include 
> /home/fan/edk2/OvmfPkg/PlatformPei/MemDetect.c
> 
> build.py...
>  : error 7000: Failed to execute command
>         make tbuild
> [/home/fan/edk2/Build/Ovmf3264/DEBUG_GCC5/IA32/MdeModulePkg/Universal/
> StatusCodeHandler/Pei/StatusCodeHandlerPei]
> 
> build.py...
>  : error 7000: Failed to execute command
>         make tbuild 
> [/home/fan/edk2/Build/Ovmf3264/DEBUG_GCC5/IA32/UefiCpuPkg/Universal/Ac
> pi/S3Resume2Pei/S3Resume2Pei]
> 
> 
> Thanks,
> Fan
> 
> -----Original Message-----
> From: Gao, Liming
> Sent: Thursday, May 9, 2019 11:35 AM
> To: devel@edk2.groups.io; Chen, Farrah <farrah.chen@intel.com>; 
> glin@suse.com
> Cc: Hao, Xudong <xudong.hao@intel.com>; Wei, Danmei 
> <danmei.wei@intel.com>
> Subject: RE: [edk2-devel] OVMF will not start to build using "OvmfPkg/build.sh -a X64 -n 40"
> 
> Fan:
>   The below is my step to build OvmfIa32X64. I don't try 
> OvmfPkg/build.sh
> 
> 1. . edksetup.sh
> 2. cd BaseTools, type make
> 3. cd ..
> 4. build -p OvmfPkg/OvmfPkgIa32X64.dsc -a IA32 -a X64 -t GCC5
> 
> Thanks
> Liming
> > -----Original Message-----
> > From: devel@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf 
> > Of Chen, Farrah
> > Sent: Thursday, May 9, 2019 11:29 AM
> > To: devel@edk2.groups.io; glin@suse.com
> > Cc: Hao, Xudong <xudong.hao@intel.com>; Wei, Danmei 
> > <danmei.wei@intel.com>
> > Subject: Re: [edk2-devel] OVMF will not start to build using "OvmfPkg/build.sh -a X64 -n 40"
> >
> > Yes, thanks, my return value is 1.
> > And how can we build ovmf correctlly? The build steps have been updated?
> >
> > [vmm@vmm-build edk2]$ OvmfPkg/build.sh -a X64 -n 40 Initializing 
> > workspace /home/fan/edk2/BaseTools Loading previous configuration 
> > from /home/fan/edk2/Conf/BuildEnv.sh
> > WORKSPACE: /home/fan/edk2
> > EDK_TOOLS_PATH: /home/fan/edk2/BaseTools
> > CONF_PATH: /home/fan/edk2/Conf
> > [vmm@vmm-build edk2]$ echo $?
> > 1
> >
> >
> > Thanks,
> > Fan
> >
> >
> >
> > -----Original Message-----
> > From: devel@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf 
> > Of Gary Lin
> > Sent: Thursday, May 9, 2019 11:20 AM
> > To: devel@edk2.groups.io; Chen, Farrah <farrah.chen@intel.com>
> > Cc: Hao, Xudong <xudong.hao@intel.com>; Wei, Danmei 
> > <danmei.wei@intel.com>
> > Subject: Re: [edk2-devel] OVMF will not start to build using "OvmfPkg/build.sh -a X64 -n 40"
> >
> > On Thu, May 09, 2019 at 02:31:13AM +0000, Chen, Farrah wrote:
> > > Hi,
> > >
> > > We build the latest OVMF and found that it doesn't start to build using "OvmfPkg/build.sh -a X64 -n 40" actually.
> > >
> > > Step:
> > > git clone https://github.com/tianocore/edk2.git
> > > cd  edk2
> > > git submodule init
> > > git submodule update -recursive
> > > OvmfPkg/build.sh -a X64 -n 40
> > > Then it didn't start to build.
> > >
> > > log:
> > > [vmm@vmm-build edk2]$ OvmfPkg/build.sh -a X64 -n 40 Initializing 
> > > workspace /home/fan/edk2/BaseTools Loading previous configuration 
> > > from /home/fan/edk2/Conf/BuildEnv.sh
> > > WORKSPACE: /home/fan/edk2
> > > EDK_TOOLS_PATH: /home/fan/edk2/BaseTools
> > > CONF_PATH: /home/fan/edk2/Conf
> > > [vmm@vmm-build edk2]$
> > >
> > > We use the latest commit: 
> > > 792f0d4f12ad5c01afdf9c92df8c479ff0f19a79,
> > > and we found the first commit has such issue is
> > df7c81b5b219c9aee776baa466dd64c9d318dd80.
> > > Do you have any advice?
> > >
> > TestUtilModule() returned the opposite value.
> > For the shell, 0 for good, and 1 for bad.
> >
> > Gary Lin
> >
> > >
> > > Thanks,
> > > Fan
> > >
> > >
> > >
> > >
> > >
> >
> >
> >
> >
> > 


[-- Attachment #2: edk2_build.log --]
[-- Type: application/octet-stream, Size: 8525 bytes --]

Build environment: Linux-3.10.0-957.el7.x86_64-x86_64-with-redhat-7.6-Maipo
Build start time: 14:20:05, May.09 2019

WORKSPACE        = /home/fan/edk2
EDK_TOOLS_PATH   = /home/fan/edk2/BaseTools
CONF_PATH        = /home/fan/edk2/Conf
PYTHON_COMMAND   = /usr/bin/python3.6


Architecture(s)  = IA32 X64
Build target     = DEBUG
Toolchain        = GCC5

Active Platform          = /home/fan/edk2/OvmfPkg/OvmfPkgIa32X64.dsc
Flash Image Definition   = /home/fan/edk2/OvmfPkg/OvmfPkgIa32X64.fdf

Processing meta-data ..... done!
Building ... /home/fan/edk2/OvmfPkg/ResetVector/ResetVector.inf [IA32]
make: Nothing to be done for `tbuild'.
Building ... /home/fan/edk2/UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf [IA32]
make: Nothing to be done for `tbuild'.
Building ... /home/fan/edk2/UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib.inf [IA32]
make: Nothing to be done for `tbuild'.
Building ... /home/fan/edk2/MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf [IA32]
Building ... /home/fan/edk2/OvmfPkg/Library/LockBoxLib/LockBoxBaseLib.inf [IA32]
make: Nothing to be done for `tbuild'.
make: Nothing to be done for `tbuild'.
Building ... /home/fan/edk2/OvmfPkg/Library/AcpiTimerLib/BaseAcpiTimerLib.inf [IA32]
Building ... /home/fan/edk2/UefiCpuPkg/Library/MtrrLib/MtrrLib.inf [IA32]
make: Nothing to be done for `tbuild'.
Building ... /home/fan/edk2/OvmfPkg/Library/QemuFwCfgS3Lib/PeiQemuFwCfgS3LibFwCfg.inf [IA32]
make: Nothing to be done for `tbuild'.
make: Nothing to be done for `tbuild'.
Building ... /home/fan/edk2/MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf [IA32]
Building ... /home/fan/edk2/OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgPeiLib.inf [IA32]
make: Nothing to be done for `tbuild'.
Building ... /home/fan/edk2/OvmfPkg/Library/BaseMemEncryptSevLib/BaseMemEncryptSevLib.inf [IA32]
make: Nothing to be done for `tbuild'.
Building ... /home/fan/edk2/MdePkg/Library/BaseCpuLib/BaseCpuLib.inf [IA32]
make: Nothing to be done for `tbuild'.
make: Nothing to be done for `tbuild'.
Building ... /home/fan/edk2/MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf [IA32]
Building ... /home/fan/edk2/MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf [IA32]
make: Nothing to be done for `tbuild'.
Building ... /home/fan/edk2/MdePkg/Library/PeiPcdLib/PeiPcdLib.inf [IA32]
make: Nothing to be done for `tbuild'.
Building ... /home/fan/edk2/PcAtChipsetPkg/Library/SerialIoLib/SerialIoLib.inf [IA32]
make: Nothing to be done for `tbuild'.
Building ... /home/fan/edk2/MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf [IA32]
make: Nothing to be done for `tbuild'.
make: Nothing to be done for `tbuild'.
Building ... /home/fan/edk2/MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf [IA32]
make: Nothing to be done for `tbuild'.
Building ... /home/fan/edk2/MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf [IA32]
Building ... /home/fan/edk2/MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf [IA32]
make: Nothing to be done for `tbuild'.
make: Nothing to be done for `tbuild'.
Building ... /home/fan/edk2/MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf [IA32]
Building ... /home/fan/edk2/MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf [IA32]
make: Nothing to be done for `tbuild'.
Building ... /home/fan/edk2/OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf [IA32]
make: Nothing to be done for `tbuild'.
Building ... /home/fan/edk2/MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf [IA32]
make: Nothing to be done for `tbuild'.
make: Nothing to be done for `tbuild'.
Building ... /home/fan/edk2/UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf [IA32]
Building ... /home/fan/edk2/MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf [IA32]
make: Nothing to be done for `tbuild'.
make: Nothing to be done for `tbuild'.
Building ... /home/fan/edk2/MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf [IA32]
make: Nothing to be done for `tbuild'.
Building ... /home/fan/edk2/MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf [IA32]
make: Nothing to be done for `tbuild'.
Building ... /home/fan/edk2/UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf [IA32]
Building ... /home/fan/edk2/MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.inf [IA32]
make: Nothing to be done for `tbuild'.
make: Nothing to be done for `tbuild'.
Building ... /home/fan/edk2/OvmfPkg/Library/AcpiTimerLib/BaseRomAcpiTimerLib.inf [IA32]
make: Nothing to be done for `tbuild'.
Building ... /home/fan/edk2/MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf [IA32]
make: Nothing to be done for `tbuild'.
Building ... /home/fan/edk2/MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf [IA32]
make: Nothing to be done for `tbuild'.
Building ... /home/fan/edk2/MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf [IA32]
Building ... /home/fan/edk2/OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf [IA32]
make: Nothing to be done for `tbuild'.
make: Nothing to be done for `tbuild'.
Building ... /home/fan/edk2/MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsicSev.inf [IA32]
make: Nothing to be done for `tbuild'.
Building ... /home/fan/edk2/MdePkg/Library/BasePrintLib/BasePrintLib.inf [IA32]
Building ... /home/fan/edk2/MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf [IA32]
make: Nothing to be done for `tbuild'.
make: Nothing to be done for `tbuild'.
Building ... /home/fan/edk2/MdePkg/Library/BaseLib/BaseLib.inf [IA32]
Building ... /home/fan/edk2/MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf [IA32]
make: Nothing to be done for `tbuild'.
make: Nothing to be done for `tbuild'.
Building ... /home/fan/edk2/MdePkg/Library/PeiServicesLib/PeiServicesLib.inf [IA32]
make: Nothing to be done for `tbuild'.
Building ... /home/fan/edk2/MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf [IA32]
make: Nothing to be done for `tbuild'.
Building ... /home/fan/edk2/MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf [IA32]
make: Nothing to be done for `tbuild'.
Building ... /home/fan/edk2/MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf [IA32]
make: Nothing to be done for `tbuild'.
Building ... /home/fan/edk2/MdePkg/Library/PeiHobLib/PeiHobLib.inf [IA32]
make: Nothing to be done for `tbuild'.
Building ... /home/fan/edk2/UefiCpuPkg/CpuMpPei/CpuMpPei.inf [IA32]
Building ... /home/fan/edk2/UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf [IA32]
Building ... /home/fan/edk2/OvmfPkg/PlatformPei/PlatformPei.inf [IA32]
"gcc" -o /home/fan/edk2/Build/Ovmf3264/DEBUG_GCC5/IA32/UefiCpuPkg/CpuMpPei/CpuMpPei/DEBUG/CpuMpPei.dll -nostdlib -Wl,-n,-q,--gc-sections -z common-page-size=0x40 -Wl,--entry,_ModuleEntryPoint -u _ModuleEntryPoint -Wl,-Map,/home/fan/edk2/Build/Ovmf3264/DEBUG_GCC5/IA32/UefiCpuPkg/CpuMpPei/CpuMpPei/DEBUG/CpuMpPei.map,--whole-archive -flto -Os -Wl,-m,elf_i386,--oformat=elf32-i386 -Wl,--start-group,@/home/fan/edk2/Build/Ovmf3264/DEBUG_GCC5/IA32/UefiCpuPkg/CpuMpPei/CpuMpPei/OUTPUT/static_library_files.lst,--end-group -g -fshort-wchar -fno-builtin -fno-strict-aliasing -Wall -Werror -Wno-array-bounds -ffunction-sections -fdata-sections -include AutoGen.h -fno-common -DSTRING_ARRAY_NAME=CpuMpPeiStrings -m32 -march=i586 -malign-double -fno-stack-protector -D EFI32 -fno-asynchronous-unwind-tables -Wno-address -fno-pic -fno-pie -flto -Os -mno-mmx -mno-sse -D DISABLE_NEW_DEPRECATED_INTERFACES -Wl,--defsym=PECOFF_HEADER_SIZE=0x220 -Wl,--script=/home/fan/edk2/BaseTools/Scripts/GccBase.lds -Wno-error -no-pie
gcc: error: unrecognized command line option ‘-no-pie’
make: *** [/home/fan/edk2/Build/Ovmf3264/DEBUG_GCC5/IA32/UefiCpuPkg/CpuMpPei/CpuMpPei/DEBUG/CpuMpPei.dll] Error 1


build.py...
 : error 7000: Failed to execute command
	make tbuild [/home/fan/edk2/Build/Ovmf3264/DEBUG_GCC5/IA32/UefiCpuPkg/CpuMpPei/CpuMpPei]


build.py...
 : error 7000: Failed to execute command
	make tbuild [/home/fan/edk2/Build/Ovmf3264/DEBUG_GCC5/IA32/UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei]


build.py...
 : error 7000: Failed to execute command
	make tbuild [/home/fan/edk2/Build/Ovmf3264/DEBUG_GCC5/IA32/OvmfPkg/PlatformPei/PlatformPei]


build.py...
 : error F002: Failed to build module
	/home/fan/edk2/UefiCpuPkg/CpuMpPei/CpuMpPei.inf [IA32, GCC5, DEBUG]

- Failed -
Build end time: 14:20:14, May.09 2019
Build total time: 00:00:09


[-- Attachment #3: make_BaseTools.log --]
[-- Type: application/octet-stream, Size: 53316 bytes --]

make -C Source/C
Attempting to detect HOST_ARCH from 'uname -m': x86_64
Detected HOST_ARCH of X64 using uname.
make[1]: Entering directory `/home/fan/edk2/BaseTools/Source/C'
mkdir -p .
mkdir ./libs 
make -C Common
make[2]: Entering directory `/home/fan/edk2/BaseTools/Source/C/Common'
gcc  -c  -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  BasePeCoff.c -o BasePeCoff.o
gcc  -c  -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  BinderFuncs.c -o BinderFuncs.o
gcc  -c  -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  CommonLib.c -o CommonLib.o
gcc  -c  -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  Crc32.c -o Crc32.o
gcc  -c  -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  Decompress.c -o Decompress.o
gcc  -c  -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  EfiCompress.c -o EfiCompress.o
gcc  -c  -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  EfiUtilityMsgs.c -o EfiUtilityMsgs.o
gcc  -c  -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  FirmwareVolumeBuffer.c -o FirmwareVolumeBuffer.o
gcc  -c  -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  FvLib.c -o FvLib.o
gcc  -c  -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  MemoryFile.c -o MemoryFile.o
gcc  -c  -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  MyAlloc.c -o MyAlloc.o
gcc  -c  -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  OsPath.c -o OsPath.o
gcc  -c  -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  ParseGuidedSectionTools.c -o ParseGuidedSectionTools.o
gcc  -c  -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  ParseInf.c -o ParseInf.o
gcc  -c  -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  PeCoffLoaderEx.c -o PeCoffLoaderEx.o
gcc  -c  -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  SimpleFileParsing.c -o SimpleFileParsing.o
gcc  -c  -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  StringFuncs.c -o StringFuncs.o
gcc  -c  -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  TianoCompress.c -o TianoCompress.o
gcc  -c  -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  PcdValueCommon.c -o PcdValueCommon.o
ar crs ../libs/libCommon.a BasePeCoff.o BinderFuncs.o CommonLib.o Crc32.o Decompress.o EfiCompress.o EfiUtilityMsgs.o FirmwareVolumeBuffer.o FvLib.o MemoryFile.o MyAlloc.o OsPath.o ParseGuidedSectionTools.o ParseInf.o PeCoffLoaderEx.o SimpleFileParsing.o StringFuncs.o TianoCompress.o PcdValueCommon.o
make[2]: Leaving directory `/home/fan/edk2/BaseTools/Source/C/Common'
mkdir ./bin
make -C VfrCompile VfrLexer.h
make[2]: Entering directory `/home/fan/edk2/BaseTools/Source/C/VfrCompile'
BIN_DIR='.' make -C Pccts/dlg
make[3]: Entering directory `/home/fan/edk2/BaseTools/Source/C/VfrCompile/Pccts/dlg'
cc -O -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=65536 -c dlg_p.c
cc -O -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=65536 -c dlg_a.c
cc -O -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=65536 -c main.c
cc -c -O -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=65536  err.c -o err.o
cc -c -O -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=65536 ../support/set/set.c
cc -c -O -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=65536  support.c -o support.o
cc -c -O -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=65536  output.c -o output.o
cc -c -O -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=65536  relabel.c -o relabel.o
cc -c -O -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=65536  automata.c -o automata.o
cc -O -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=65536 -o ./dlg dlg_p.o dlg_a.o main.o err.o set.o support.o output.o relabel.o automata.o
make[3]: Leaving directory `/home/fan/edk2/BaseTools/Source/C/VfrCompile/Pccts/dlg'
BIN_DIR='.' make -C Pccts/antlr
make[3]: Entering directory `/home/fan/edk2/BaseTools/Source/C/VfrCompile/Pccts/antlr'
gcc -c -O -I. -I../support/set -I../h -DUSER_ZZSYN  -DZZLEXBUFSIZE=65536  antlr.c -o antlr.o
gcc -c -O -I. -I../support/set -I../h -DUSER_ZZSYN  -DZZLEXBUFSIZE=65536  scan.c -o scan.o
gcc -c -O -I. -I../support/set -I../h -DUSER_ZZSYN  -DZZLEXBUFSIZE=65536  err.c -o err.o
gcc -c -O -I. -I../support/set -I../h -DUSER_ZZSYN  -DZZLEXBUFSIZE=65536  bits.c -o bits.o
gcc -c -O -I. -I../support/set -I../h -DUSER_ZZSYN  -DZZLEXBUFSIZE=65536  build.c -o build.o
gcc -c -O -I. -I../support/set -I../h -DUSER_ZZSYN  -DZZLEXBUFSIZE=65536  fset2.c -o fset2.o
gcc -c -O -I. -I../support/set -I../h -DUSER_ZZSYN  -DZZLEXBUFSIZE=65536  fset.c -o fset.o
gcc -c -O -I. -I../support/set -I../h -DUSER_ZZSYN  -DZZLEXBUFSIZE=65536  gen.c -o gen.o
gcc -c -O -I. -I../support/set -I../h -DUSER_ZZSYN  -DZZLEXBUFSIZE=65536  globals.c -o globals.o
gcc -c -O -I. -I../support/set -I../h -DUSER_ZZSYN  -DZZLEXBUFSIZE=65536  hash.c -o hash.o
gcc -c -O -I. -I../support/set -I../h -DUSER_ZZSYN  -DZZLEXBUFSIZE=65536  lex.c -o lex.o
gcc -c -O -I. -I../support/set -I../h -DUSER_ZZSYN  -DZZLEXBUFSIZE=65536  main.c -o main.o
gcc -c -O -I. -I../support/set -I../h -DUSER_ZZSYN  -DZZLEXBUFSIZE=65536  misc.c -o misc.o
gcc -O -I. -I../support/set -I../h -DUSER_ZZSYN  -DZZLEXBUFSIZE=65536 -c -o set.o ../support/set/set.c
gcc -c -O -I. -I../support/set -I../h -DUSER_ZZSYN  -DZZLEXBUFSIZE=65536  pred.c -o pred.o
gcc -c -O -I. -I../support/set -I../h -DUSER_ZZSYN  -DZZLEXBUFSIZE=65536  egman.c -o egman.o
gcc -c -O -I. -I../support/set -I../h -DUSER_ZZSYN  -DZZLEXBUFSIZE=65536  mrhoist.c -o mrhoist.o
gcc -c -O -I. -I../support/set -I../h -DUSER_ZZSYN  -DZZLEXBUFSIZE=65536  fcache.c -o fcache.o
gcc -O -I. -I../support/set -I../h -DUSER_ZZSYN  -DZZLEXBUFSIZE=65536 -o ./antlr antlr.o scan.o err.o bits.o build.o fset2.o fset.o gen.o globals.o hash.o lex.o main.o misc.o set.o pred.o egman.o mrhoist.o fcache.o
make[3]: Leaving directory `/home/fan/edk2/BaseTools/Source/C/VfrCompile/Pccts/antlr'
Pccts/antlr/antlr -CC -e3 -ck 3 -k 2 -fl VfrParser.dlg -ft VfrTokens.h -o . VfrSyntax.g
Antlr parser generator   Version 1.33MR33   1989-2001
VfrSyntax.g, line 2004: warning: predicate: LT(i) missing, bad, or with i=0; assuming i=1
VfrSyntax.g, line 2009: warning: predicate: LT(i) missing, bad, or with i=0; assuming i=1
VfrSyntax.g, line 3637: warning: alts 1 and 2 of {..} ambiguous upon ( ";" RefreshGuid GuidOp Locked Image EndIf InconsistentIf DisableIf SuppressIf Default GrayOutIf )
VfrSyntax.g, line 3646: warning: alts 1 and 2 of {..} ambiguous upon ( ";" RefreshGuid GuidOp Locked Image EndIf InconsistentIf DisableIf SuppressIf Default GrayOutIf )
VfrSyntax.g, line 3655: warning: alts 1 and 2 of {..} ambiguous upon ( ";" RefreshGuid GuidOp Locked Image EndIf InconsistentIf DisableIf SuppressIf Default GrayOutIf )
VfrSyntax.g, line 3665: warning: alts 1 and 2 of {..} ambiguous upon ( ";" RefreshGuid GuidOp Locked Image EndIf InconsistentIf DisableIf SuppressIf Default GrayOutIf )
VfrSyntax.g, line 3695: warning: alts 1 and 2 of {..} ambiguous upon ( ";" RefreshGuid GuidOp Locked Image EndIf InconsistentIf DisableIf SuppressIf Default GrayOutIf )
VfrSyntax.g, line 3704: warning: alts 1 and 2 of {..} ambiguous upon ( ";" RefreshGuid GuidOp Locked Image EndIf InconsistentIf DisableIf SuppressIf Default GrayOutIf )
Pccts/dlg/dlg -C2 -i -CC -cl VfrLexer -o . VfrParser.dlg
dlg  Version 1.33MR33   1989-2001

make[2]: Leaving directory `/home/fan/edk2/BaseTools/Source/C/VfrCompile'
make -C BrotliCompress
make[2]: Entering directory `/home/fan/edk2/BaseTools/Source/C/BrotliCompress'
gcc  -c -I ./include -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  tools/brotli.c -o tools/brotli.o
gcc  -c -I ./include -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  common/dictionary.c -o common/dictionary.o
gcc  -c -I ./include -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  common/transform.c -o common/transform.o
gcc  -c -I ./include -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  dec/bit_reader.c -o dec/bit_reader.o
gcc  -c -I ./include -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  dec/decode.c -o dec/decode.o
gcc  -c -I ./include -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  dec/huffman.c -o dec/huffman.o
gcc  -c -I ./include -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  dec/state.c -o dec/state.o
gcc  -c -I ./include -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  enc/backward_references.c -o enc/backward_references.o
gcc  -c -I ./include -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  enc/backward_references_hq.c -o enc/backward_references_hq.o
gcc  -c -I ./include -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  enc/bit_cost.c -o enc/bit_cost.o
gcc  -c -I ./include -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  enc/block_splitter.c -o enc/block_splitter.o
gcc  -c -I ./include -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  enc/brotli_bit_stream.c -o enc/brotli_bit_stream.o
gcc  -c -I ./include -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  enc/cluster.c -o enc/cluster.o
gcc  -c -I ./include -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  enc/compress_fragment.c -o enc/compress_fragment.o
gcc  -c -I ./include -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  enc/compress_fragment_two_pass.c -o enc/compress_fragment_two_pass.o
gcc  -c -I ./include -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  enc/dictionary_hash.c -o enc/dictionary_hash.o
gcc  -c -I ./include -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  enc/encode.c -o enc/encode.o
gcc  -c -I ./include -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  enc/encoder_dict.c -o enc/encoder_dict.o
gcc  -c -I ./include -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  enc/entropy_encode.c -o enc/entropy_encode.o
gcc  -c -I ./include -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  enc/histogram.c -o enc/histogram.o
gcc  -c -I ./include -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  enc/literal_cost.c -o enc/literal_cost.o
gcc  -c -I ./include -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  enc/memory.c -o enc/memory.o
gcc  -c -I ./include -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  enc/metablock.c -o enc/metablock.o
gcc  -c -I ./include -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  enc/static_dict.c -o enc/static_dict.o
gcc  -c -I ./include -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  enc/utf8_util.c -o enc/utf8_util.o
gcc -o ../bin/Brotli   tools/brotli.o common/dictionary.o common/transform.o dec/bit_reader.o dec/decode.o dec/huffman.o dec/state.o enc/backward_references.o enc/backward_references_hq.o enc/bit_cost.o enc/block_splitter.o enc/brotli_bit_stream.o enc/cluster.o enc/compress_fragment.o enc/compress_fragment_two_pass.o enc/dictionary_hash.o enc/encode.o enc/encoder_dict.o enc/entropy_encode.o enc/histogram.o enc/literal_cost.o enc/memory.o enc/metablock.o enc/static_dict.o enc/utf8_util.o -L../libs -lm
make[2]: Leaving directory `/home/fan/edk2/BaseTools/Source/C/BrotliCompress'
make -C VfrCompile
make[2]: Entering directory `/home/fan/edk2/BaseTools/Source/C/VfrCompile'
g++ -c -DPCCTS_USE_NAMESPACE_STD -I Pccts/h -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/   -O2  Pccts/h/AParser.cpp -o AParser.o
g++ -c -DPCCTS_USE_NAMESPACE_STD -I Pccts/h -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/   -O2  Pccts/h/DLexerBase.cpp -o DLexerBase.o
g++ -c -DPCCTS_USE_NAMESPACE_STD -I Pccts/h -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/   -O2  Pccts/h/ATokenBuffer.cpp -o ATokenBuffer.o
g++ -c -I Pccts/h -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -Wno-unused-result -O2  EfiVfrParser.cpp -o EfiVfrParser.o
g++ -c -I Pccts/h -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -Wno-unused-result -O2  VfrLexer.cpp -o VfrLexer.o
g++ -c -DPCCTS_USE_NAMESPACE_STD -I Pccts/h -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/   -O2  VfrSyntax.cpp -o VfrSyntax.o
g++ -c -I Pccts/h -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -Wno-unused-result -O2  VfrFormPkg.cpp -o VfrFormPkg.o
g++ -c -I Pccts/h -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -Wno-unused-result -O2  VfrError.cpp -o VfrError.o
g++ -c -I Pccts/h -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -Wno-unused-result -O2  VfrUtilityLib.cpp -o VfrUtilityLib.o
g++ -c -I Pccts/h -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -Wno-unused-result -O2  VfrCompiler.cpp -o VfrCompiler.o
g++ -o ../bin/VfrCompile  AParser.o DLexerBase.o ATokenBuffer.o EfiVfrParser.o VfrLexer.o VfrSyntax.o VfrFormPkg.o VfrError.o VfrUtilityLib.o VfrCompiler.o -L../libs -lCommon
make[2]: Leaving directory `/home/fan/edk2/BaseTools/Source/C/VfrCompile'
make -C EfiRom
make[2]: Entering directory `/home/fan/edk2/BaseTools/Source/C/EfiRom'
gcc  -c  -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  EfiRom.c -o EfiRom.o
gcc -o ../bin/EfiRom   EfiRom.o -L../libs -lCommon
make[2]: Leaving directory `/home/fan/edk2/BaseTools/Source/C/EfiRom'
make -C GenFfs
make[2]: Entering directory `/home/fan/edk2/BaseTools/Source/C/GenFfs'
gcc  -c  -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  GenFfs.c -o GenFfs.o
gcc -o ../bin/GenFfs   GenFfs.o -L../libs -lCommon
make[2]: Leaving directory `/home/fan/edk2/BaseTools/Source/C/GenFfs'
make -C GenFv
make[2]: Entering directory `/home/fan/edk2/BaseTools/Source/C/GenFv'
gcc  -c  -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  GenFv.c -o GenFv.o
gcc  -c  -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  GenFvInternalLib.c -o GenFvInternalLib.o
gcc -o ../bin/GenFv   GenFv.o GenFvInternalLib.o -L../libs -lCommon -luuid
make[2]: Leaving directory `/home/fan/edk2/BaseTools/Source/C/GenFv'
make -C GenFw
make[2]: Entering directory `/home/fan/edk2/BaseTools/Source/C/GenFw'
gcc  -c  -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  GenFw.c -o GenFw.o
gcc  -c  -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  ElfConvert.c -o ElfConvert.o
gcc  -c  -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  Elf32Convert.c -o Elf32Convert.o
gcc  -c  -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  Elf64Convert.c -o Elf64Convert.o
gcc -o ../bin/GenFw   GenFw.o ElfConvert.o Elf32Convert.o Elf64Convert.o -L../libs -lCommon -luuid
make[2]: Leaving directory `/home/fan/edk2/BaseTools/Source/C/GenFw'
make -C GenSec
make[2]: Entering directory `/home/fan/edk2/BaseTools/Source/C/GenSec'
gcc  -c  -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  GenSec.c -o GenSec.o
gcc -o ../bin/GenSec   GenSec.o -L../libs -lCommon -luuid
make[2]: Leaving directory `/home/fan/edk2/BaseTools/Source/C/GenSec'
make -C GenCrc32
make[2]: Entering directory `/home/fan/edk2/BaseTools/Source/C/GenCrc32'
gcc  -c  -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  GenCrc32.c -o GenCrc32.o
gcc -o ../bin/GenCrc32   GenCrc32.o -L../libs -lCommon
make[2]: Leaving directory `/home/fan/edk2/BaseTools/Source/C/GenCrc32'
make -C LzmaCompress
make[2]: Entering directory `/home/fan/edk2/BaseTools/Source/C/LzmaCompress'
gcc  -c  -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  -D_7ZIP_ST LzmaCompress.c -o LzmaCompress.o
gcc  -c  -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  -D_7ZIP_ST Sdk/C/Alloc.c -o Sdk/C/Alloc.o
gcc  -c  -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  -D_7ZIP_ST Sdk/C/LzFind.c -o Sdk/C/LzFind.o
gcc  -c  -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  -D_7ZIP_ST Sdk/C/LzmaDec.c -o Sdk/C/LzmaDec.o
gcc  -c  -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  -D_7ZIP_ST Sdk/C/LzmaEnc.c -o Sdk/C/LzmaEnc.o
gcc  -c  -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  -D_7ZIP_ST Sdk/C/7zFile.c -o Sdk/C/7zFile.o
gcc  -c  -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  -D_7ZIP_ST Sdk/C/7zStream.c -o Sdk/C/7zStream.o
gcc  -c  -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  -D_7ZIP_ST Sdk/C/Bra86.c -o Sdk/C/Bra86.o
gcc -o ../bin/LzmaCompress   LzmaCompress.o Sdk/C/Alloc.o Sdk/C/LzFind.o Sdk/C/LzmaDec.o Sdk/C/LzmaEnc.o Sdk/C/7zFile.o Sdk/C/7zStream.o Sdk/C/Bra86.o -L../libs 
make[2]: Leaving directory `/home/fan/edk2/BaseTools/Source/C/LzmaCompress'
make -C Split
make[2]: Entering directory `/home/fan/edk2/BaseTools/Source/C/Split'
gcc  -c  -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  Split.c -o Split.o
gcc -o ../bin/Split   Split.o -L../libs -lCommon
make[2]: Leaving directory `/home/fan/edk2/BaseTools/Source/C/Split'
make -C TianoCompress
make[2]: Entering directory `/home/fan/edk2/BaseTools/Source/C/TianoCompress'
gcc  -c  -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  TianoCompress.c -o TianoCompress.o
gcc -o ../bin/TianoCompress   TianoCompress.o -L../libs -lCommon
make[2]: Leaving directory `/home/fan/edk2/BaseTools/Source/C/TianoCompress'
make -C VolInfo
make[2]: Entering directory `/home/fan/edk2/BaseTools/Source/C/VolInfo'
gcc  -c  -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  VolInfo.c -o VolInfo.o
gcc -o ../bin/VolInfo   VolInfo.o -L../libs -lCommon
make[2]: Leaving directory `/home/fan/edk2/BaseTools/Source/C/VolInfo'
make -C DevicePath
make[2]: Entering directory `/home/fan/edk2/BaseTools/Source/C/DevicePath'
gcc  -c  -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  DevicePath.c -o DevicePath.o
gcc  -c  -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  UefiDevicePathLib.c -o UefiDevicePathLib.o
gcc  -c  -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  DevicePathFromText.c -o DevicePathFromText.o
gcc  -c  -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  DevicePathUtilities.c -o DevicePathUtilities.o
gcc -o ../bin/DevicePath   DevicePath.o UefiDevicePathLib.o DevicePathFromText.o  DevicePathUtilities.o -L../libs -lCommon -luuid
make[2]: Leaving directory `/home/fan/edk2/BaseTools/Source/C/DevicePath'
Finished building BaseTools C Tools with HOST_ARCH=X64
make[1]: Leaving directory `/home/fan/edk2/BaseTools/Source/C'
make -C Source/Python
make[1]: Entering directory `/home/fan/edk2/BaseTools/Source/Python'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/fan/edk2/BaseTools/Source/Python'
make -C Tests
make[1]: Entering directory `/home/fan/edk2/BaseTools/Tests'
testHelp (TianoCompress.Tests) ... ok
testRandomDataCycles (TianoCompress.Tests) ... ok
test_AutoGen_AutoGen (CheckPythonSyntax.Tests) ... ok
test_AutoGen_BuildEngine (CheckPythonSyntax.Tests) ... ok
test_AutoGen_GenC (CheckPythonSyntax.Tests) ... ok
test_AutoGen_GenDepex (CheckPythonSyntax.Tests) ... ok
test_AutoGen_GenMake (CheckPythonSyntax.Tests) ... ok
test_AutoGen_GenPcdDb (CheckPythonSyntax.Tests) ... ok
test_AutoGen_GenVar (CheckPythonSyntax.Tests) ... ok
test_AutoGen_IdfClassObject (CheckPythonSyntax.Tests) ... ok
test_AutoGen_InfSectionParser (CheckPythonSyntax.Tests) ... ok
test_AutoGen_StrGather (CheckPythonSyntax.Tests) ... ok
test_AutoGen_UniClassObject (CheckPythonSyntax.Tests) ... ok
test_AutoGen_ValidCheckingInfoObject (CheckPythonSyntax.Tests) ... ok
test_AutoGen___init__ (CheckPythonSyntax.Tests) ... ok
test_BPDG_BPDG (CheckPythonSyntax.Tests) ... ok
test_BPDG_GenVpd (CheckPythonSyntax.Tests) ... ok
test_BPDG_StringTable (CheckPythonSyntax.Tests) ... ok
test_BPDG___init__ (CheckPythonSyntax.Tests) ... ok
test_Capsule_GenerateCapsule (CheckPythonSyntax.Tests) ... ok
test_CommonDataClass_CommonClass (CheckPythonSyntax.Tests) ... ok
test_CommonDataClass_DataClass (CheckPythonSyntax.Tests) ... ok
test_CommonDataClass_Exceptions (CheckPythonSyntax.Tests) ... ok
test_CommonDataClass_FdfClass (CheckPythonSyntax.Tests) ... ok
test_CommonDataClass___init__ (CheckPythonSyntax.Tests) ... ok
test_Common_BuildToolError (CheckPythonSyntax.Tests) ... ok
test_Common_BuildVersion (CheckPythonSyntax.Tests) ... ok
test_Common_DataType (CheckPythonSyntax.Tests) ... ok
test_Common_Edk2_Capsule_FmpPayloadHeader (CheckPythonSyntax.Tests) ... ok
test_Common_Edk2_Capsule___init__ (CheckPythonSyntax.Tests) ... ok
test_Common_Edk2___init__ (CheckPythonSyntax.Tests) ... ok
test_Common_EdkLogger (CheckPythonSyntax.Tests) ... ok
test_Common_Expression (CheckPythonSyntax.Tests) ... ok
test_Common_GlobalData (CheckPythonSyntax.Tests) ... ok
test_Common_LongFilePathOs (CheckPythonSyntax.Tests) ... ok
test_Common_LongFilePathOsPath (CheckPythonSyntax.Tests) ... ok
test_Common_LongFilePathSupport (CheckPythonSyntax.Tests) ... ok
test_Common_Misc (CheckPythonSyntax.Tests) ... ok
test_Common_MultipleWorkspace (CheckPythonSyntax.Tests) ... ok
test_Common_Parsing (CheckPythonSyntax.Tests) ... ok
test_Common_RangeExpression (CheckPythonSyntax.Tests) ... ok
test_Common_StringUtils (CheckPythonSyntax.Tests) ... ok
test_Common_TargetTxtClassObject (CheckPythonSyntax.Tests) ... ok
test_Common_ToolDefClassObject (CheckPythonSyntax.Tests) ... ok
test_Common_Uefi_Capsule_FmpAuthHeader (CheckPythonSyntax.Tests) ... ok
test_Common_Uefi_Capsule_FmpCapsuleHeader (CheckPythonSyntax.Tests) ... ok
test_Common_Uefi_Capsule_UefiCapsuleHeader (CheckPythonSyntax.Tests) ... ok
test_Common_Uefi_Capsule___init__ (CheckPythonSyntax.Tests) ... ok
test_Common_Uefi___init__ (CheckPythonSyntax.Tests) ... ok
test_Common_VariableAttributes (CheckPythonSyntax.Tests) ... ok
test_Common_VpdInfoFile (CheckPythonSyntax.Tests) ... ok
test_Common___init__ (CheckPythonSyntax.Tests) ... ok
test_Common_caching (CheckPythonSyntax.Tests) ... ok
test_Ecc_CParser3_CLexer (CheckPythonSyntax.Tests) ... ok
test_Ecc_CParser3_CParser (CheckPythonSyntax.Tests) ... ok
test_Ecc_CParser3___init__ (CheckPythonSyntax.Tests) ... ok
test_Ecc_CParser4_CLexer (CheckPythonSyntax.Tests) ... ok
test_Ecc_CParser4_CListener (CheckPythonSyntax.Tests) ... ok
test_Ecc_CParser4_CParser (CheckPythonSyntax.Tests) ... ok
test_Ecc_CParser4___init__ (CheckPythonSyntax.Tests) ... ok
test_Ecc_Check (CheckPythonSyntax.Tests) ... ok
test_Ecc_CodeFragment (CheckPythonSyntax.Tests) ... ok
test_Ecc_CodeFragmentCollector (CheckPythonSyntax.Tests) ... ok
test_Ecc_Configuration (CheckPythonSyntax.Tests) ... ok
test_Ecc_Database (CheckPythonSyntax.Tests) ... ok
test_Ecc_EccGlobalData (CheckPythonSyntax.Tests) ... ok
test_Ecc_EccMain (CheckPythonSyntax.Tests) ... ok
test_Ecc_EccToolError (CheckPythonSyntax.Tests) ... ok
test_Ecc_Exception (CheckPythonSyntax.Tests) ... ok
test_Ecc_FileProfile (CheckPythonSyntax.Tests) ... ok
test_Ecc_MetaDataParser (CheckPythonSyntax.Tests) ... ok
test_Ecc_MetaFileWorkspace_MetaDataTable (CheckPythonSyntax.Tests) ... ok
test_Ecc_MetaFileWorkspace_MetaFileParser (CheckPythonSyntax.Tests) ... ok
test_Ecc_MetaFileWorkspace_MetaFileTable (CheckPythonSyntax.Tests) ... ok
test_Ecc_MetaFileWorkspace___init__ (CheckPythonSyntax.Tests) ... ok
test_Ecc_ParserWarning (CheckPythonSyntax.Tests) ... ok
test_Ecc_Xml_XmlRoutines (CheckPythonSyntax.Tests) ... ok
test_Ecc_Xml___init__ (CheckPythonSyntax.Tests) ... ok
test_Ecc___init__ (CheckPythonSyntax.Tests) ... ok
test_Ecc_c (CheckPythonSyntax.Tests) ... ok
test_Eot_CParser3_CLexer (CheckPythonSyntax.Tests) ... ok
test_Eot_CParser3_CParser (CheckPythonSyntax.Tests) ... ok
test_Eot_CParser3___init__ (CheckPythonSyntax.Tests) ... ok
test_Eot_CParser4_CLexer (CheckPythonSyntax.Tests) ... ok
test_Eot_CParser4_CListener (CheckPythonSyntax.Tests) ... ok
test_Eot_CParser4_CParser (CheckPythonSyntax.Tests) ... ok
test_Eot_CParser4___init__ (CheckPythonSyntax.Tests) ... ok
test_Eot_CodeFragment (CheckPythonSyntax.Tests) ... ok
test_Eot_CodeFragmentCollector (CheckPythonSyntax.Tests) ... ok
test_Eot_Database (CheckPythonSyntax.Tests) ... ok
test_Eot_EotGlobalData (CheckPythonSyntax.Tests) ... ok
test_Eot_EotMain (CheckPythonSyntax.Tests) ... ok
test_Eot_EotToolError (CheckPythonSyntax.Tests) ... ok
test_Eot_FileProfile (CheckPythonSyntax.Tests) ... ok
test_Eot_Identification (CheckPythonSyntax.Tests) ... ok
test_Eot_InfParserLite (CheckPythonSyntax.Tests) ... ok
test_Eot_Parser (CheckPythonSyntax.Tests) ... ok
test_Eot_ParserWarning (CheckPythonSyntax.Tests) ... ok
test_Eot_Report (CheckPythonSyntax.Tests) ... ok
test_Eot___init__ (CheckPythonSyntax.Tests) ... ok
test_Eot_c (CheckPythonSyntax.Tests) ... ok
test_GenFds_AprioriSection (CheckPythonSyntax.Tests) ... ok
test_GenFds_Capsule (CheckPythonSyntax.Tests) ... ok
test_GenFds_CapsuleData (CheckPythonSyntax.Tests) ... ok
test_GenFds_CompressSection (CheckPythonSyntax.Tests) ... ok
test_GenFds_DataSection (CheckPythonSyntax.Tests) ... ok
test_GenFds_DepexSection (CheckPythonSyntax.Tests) ... ok
test_GenFds_EfiSection (CheckPythonSyntax.Tests) ... ok
test_GenFds_Fd (CheckPythonSyntax.Tests) ... ok
test_GenFds_FdfParser (CheckPythonSyntax.Tests) ... ok
test_GenFds_Ffs (CheckPythonSyntax.Tests) ... ok
test_GenFds_FfsFileStatement (CheckPythonSyntax.Tests) ... ok
test_GenFds_FfsInfStatement (CheckPythonSyntax.Tests) ... ok
test_GenFds_Fv (CheckPythonSyntax.Tests) ... ok
test_GenFds_FvImageSection (CheckPythonSyntax.Tests) ... ok
test_GenFds_GenFds (CheckPythonSyntax.Tests) ... ok
test_GenFds_GenFdsGlobalVariable (CheckPythonSyntax.Tests) ... ok
test_GenFds_GuidSection (CheckPythonSyntax.Tests) ... ok
test_GenFds_OptRomFileStatement (CheckPythonSyntax.Tests) ... ok
test_GenFds_OptRomInfStatement (CheckPythonSyntax.Tests) ... ok
test_GenFds_OptionRom (CheckPythonSyntax.Tests) ... ok
test_GenFds_Region (CheckPythonSyntax.Tests) ... ok
test_GenFds_Rule (CheckPythonSyntax.Tests) ... ok
test_GenFds_RuleComplexFile (CheckPythonSyntax.Tests) ... ok
test_GenFds_RuleSimpleFile (CheckPythonSyntax.Tests) ... ok
test_GenFds_Section (CheckPythonSyntax.Tests) ... ok
test_GenFds_UiSection (CheckPythonSyntax.Tests) ... ok
test_GenFds_VerSection (CheckPythonSyntax.Tests) ... ok
test_GenFds___init__ (CheckPythonSyntax.Tests) ... ok
test_GenPatchPcdTable_GenPatchPcdTable (CheckPythonSyntax.Tests) ... ok
test_GenPatchPcdTable___init__ (CheckPythonSyntax.Tests) ... ok
test_PatchPcdValue_PatchPcdValue (CheckPythonSyntax.Tests) ... ok
test_PatchPcdValue___init__ (CheckPythonSyntax.Tests) ... ok
test_Pkcs7Sign_Pkcs7Sign (CheckPythonSyntax.Tests) ... ok
test_Rsa2048Sha256Sign_Rsa2048Sha256GenerateKeys (CheckPythonSyntax.Tests) ... ok
test_Rsa2048Sha256Sign_Rsa2048Sha256Sign (CheckPythonSyntax.Tests) ... ok
test_Table_Table (CheckPythonSyntax.Tests) ... ok
test_Table_TableDataModel (CheckPythonSyntax.Tests) ... ok
test_Table_TableDec (CheckPythonSyntax.Tests) ... ok
test_Table_TableDsc (CheckPythonSyntax.Tests) ... ok
test_Table_TableEotReport (CheckPythonSyntax.Tests) ... ok
test_Table_TableFdf (CheckPythonSyntax.Tests) ... ok
test_Table_TableFile (CheckPythonSyntax.Tests) ... ok
test_Table_TableFunction (CheckPythonSyntax.Tests) ... ok
test_Table_TableIdentifier (CheckPythonSyntax.Tests) ... ok
test_Table_TableInf (CheckPythonSyntax.Tests) ... ok
test_Table_TablePcd (CheckPythonSyntax.Tests) ... ok
test_Table_TableQuery (CheckPythonSyntax.Tests) ... ok
test_Table_TableReport (CheckPythonSyntax.Tests) ... ok
test_Table___init__ (CheckPythonSyntax.Tests) ... ok
test_TargetTool_TargetTool (CheckPythonSyntax.Tests) ... ok
test_TargetTool___init__ (CheckPythonSyntax.Tests) ... ok
test_Trim_Trim (CheckPythonSyntax.Tests) ... ok
test_UPT_BuildVersion (CheckPythonSyntax.Tests) ... ok
test_UPT_Core_DependencyRules (CheckPythonSyntax.Tests) ... ok
test_UPT_Core_DistributionPackageClass (CheckPythonSyntax.Tests) ... ok
test_UPT_Core_FileHook (CheckPythonSyntax.Tests) ... ok
test_UPT_Core_IpiDb (CheckPythonSyntax.Tests) ... ok
test_UPT_Core_PackageFile (CheckPythonSyntax.Tests) ... ok
test_UPT_Core___init__ (CheckPythonSyntax.Tests) ... ok
test_UPT_GenMetaFile_GenDecFile (CheckPythonSyntax.Tests) ... ok
test_UPT_GenMetaFile_GenInfFile (CheckPythonSyntax.Tests) ... ok
test_UPT_GenMetaFile_GenMetaFileMisc (CheckPythonSyntax.Tests) ... ok
test_UPT_GenMetaFile_GenXmlFile (CheckPythonSyntax.Tests) ... ok
test_UPT_GenMetaFile___init__ (CheckPythonSyntax.Tests) ... ok
test_UPT_InstallPkg (CheckPythonSyntax.Tests) ... ok
test_UPT_InventoryWs (CheckPythonSyntax.Tests) ... ok
test_UPT_Library_CommentGenerating (CheckPythonSyntax.Tests) ... ok
test_UPT_Library_CommentParsing (CheckPythonSyntax.Tests) ... ok
test_UPT_Library_DataType (CheckPythonSyntax.Tests) ... ok
test_UPT_Library_ExpressionValidate (CheckPythonSyntax.Tests) ... ok
test_UPT_Library_GlobalData (CheckPythonSyntax.Tests) ... ok
test_UPT_Library_Misc (CheckPythonSyntax.Tests) ... ok
test_UPT_Library_ParserValidate (CheckPythonSyntax.Tests) ... ok
test_UPT_Library_Parsing (CheckPythonSyntax.Tests) ... ok
test_UPT_Library_StringUtils (CheckPythonSyntax.Tests) ... ok
test_UPT_Library_UniClassObject (CheckPythonSyntax.Tests) ... ok
test_UPT_Library_Xml_XmlRoutines (CheckPythonSyntax.Tests) ... ok
test_UPT_Library_Xml___init__ (CheckPythonSyntax.Tests) ... ok
test_UPT_Library___init__ (CheckPythonSyntax.Tests) ... ok
test_UPT_Logger_Log (CheckPythonSyntax.Tests) ... ok
test_UPT_Logger_StringTable (CheckPythonSyntax.Tests) ... ok
test_UPT_Logger_ToolError (CheckPythonSyntax.Tests) ... ok
test_UPT_Logger___init__ (CheckPythonSyntax.Tests) ... ok
test_UPT_MkPkg (CheckPythonSyntax.Tests) ... ok
test_UPT_Object_POM_CommonObject (CheckPythonSyntax.Tests) ... ok
test_UPT_Object_POM_ModuleObject (CheckPythonSyntax.Tests) ... ok
test_UPT_Object_POM_PackageObject (CheckPythonSyntax.Tests) ... ok
test_UPT_Object_POM___init__ (CheckPythonSyntax.Tests) ... ok
test_UPT_Object_Parser_DecObject (CheckPythonSyntax.Tests) ... ok
test_UPT_Object_Parser_InfBinaryObject (CheckPythonSyntax.Tests) ... ok
test_UPT_Object_Parser_InfBuildOptionObject (CheckPythonSyntax.Tests) ... ok
test_UPT_Object_Parser_InfCommonObject (CheckPythonSyntax.Tests) ... ok
test_UPT_Object_Parser_InfDefineCommonObject (CheckPythonSyntax.Tests) ... ok
test_UPT_Object_Parser_InfDefineObject (CheckPythonSyntax.Tests) ... ok
test_UPT_Object_Parser_InfDepexObject (CheckPythonSyntax.Tests) ... ok
test_UPT_Object_Parser_InfGuidObject (CheckPythonSyntax.Tests) ... ok
test_UPT_Object_Parser_InfHeaderObject (CheckPythonSyntax.Tests) ... ok
test_UPT_Object_Parser_InfLibraryClassesObject (CheckPythonSyntax.Tests) ... ok
test_UPT_Object_Parser_InfMisc (CheckPythonSyntax.Tests) ... ok
test_UPT_Object_Parser_InfPackagesObject (CheckPythonSyntax.Tests) ... ok
test_UPT_Object_Parser_InfPcdObject (CheckPythonSyntax.Tests) ... ok
test_UPT_Object_Parser_InfPpiObject (CheckPythonSyntax.Tests) ... ok
test_UPT_Object_Parser_InfProtocolObject (CheckPythonSyntax.Tests) ... ok
test_UPT_Object_Parser_InfSoucesObject (CheckPythonSyntax.Tests) ... ok
test_UPT_Object_Parser_InfUserExtensionObject (CheckPythonSyntax.Tests) ... ok
test_UPT_Object_Parser___init__ (CheckPythonSyntax.Tests) ... ok
test_UPT_Object___init__ (CheckPythonSyntax.Tests) ... ok
test_UPT_Parser_DecParser (CheckPythonSyntax.Tests) ... ok
test_UPT_Parser_DecParserMisc (CheckPythonSyntax.Tests) ... ok
test_UPT_Parser_InfAsBuiltProcess (CheckPythonSyntax.Tests) ... ok
test_UPT_Parser_InfBinarySectionParser (CheckPythonSyntax.Tests) ... ok
test_UPT_Parser_InfBuildOptionSectionParser (CheckPythonSyntax.Tests) ... ok
test_UPT_Parser_InfDefineSectionParser (CheckPythonSyntax.Tests) ... ok
test_UPT_Parser_InfDepexSectionParser (CheckPythonSyntax.Tests) ... ok
test_UPT_Parser_InfGuidPpiProtocolSectionParser (CheckPythonSyntax.Tests) ... ok
test_UPT_Parser_InfLibrarySectionParser (CheckPythonSyntax.Tests) ... ok
test_UPT_Parser_InfPackageSectionParser (CheckPythonSyntax.Tests) ... ok
test_UPT_Parser_InfParser (CheckPythonSyntax.Tests) ... ok
test_UPT_Parser_InfParserMisc (CheckPythonSyntax.Tests) ... ok
test_UPT_Parser_InfPcdSectionParser (CheckPythonSyntax.Tests) ... ok
test_UPT_Parser_InfSectionParser (CheckPythonSyntax.Tests) ... ok
test_UPT_Parser_InfSourceSectionParser (CheckPythonSyntax.Tests) ... ok
test_UPT_Parser___init__ (CheckPythonSyntax.Tests) ... ok
test_UPT_PomAdapter_DecPomAlignment (CheckPythonSyntax.Tests) ... ok
test_UPT_PomAdapter_InfPomAlignment (CheckPythonSyntax.Tests) ... ok
test_UPT_PomAdapter_InfPomAlignmentMisc (CheckPythonSyntax.Tests) ... ok
test_UPT_PomAdapter___init__ (CheckPythonSyntax.Tests) ... ok
test_UPT_ReplacePkg (CheckPythonSyntax.Tests) ... ok
test_UPT_RmPkg (CheckPythonSyntax.Tests) ... ok
test_UPT_TestInstall (CheckPythonSyntax.Tests) ... ok
test_UPT_UPT (CheckPythonSyntax.Tests) ... ok
test_UPT_UnitTest_CommentGeneratingUnitTest (CheckPythonSyntax.Tests) ... ok
test_UPT_UnitTest_CommentParsingUnitTest (CheckPythonSyntax.Tests) ... ok
test_UPT_UnitTest_DecParserTest (CheckPythonSyntax.Tests) ... ok
test_UPT_UnitTest_DecParserUnitTest (CheckPythonSyntax.Tests) ... ok
test_UPT_UnitTest_InfBinarySectionTest (CheckPythonSyntax.Tests) ... ok
test_UPT_Xml_CommonXml (CheckPythonSyntax.Tests) ... ok
test_UPT_Xml_GuidProtocolPpiXml (CheckPythonSyntax.Tests) ... ok
test_UPT_Xml_IniToXml (CheckPythonSyntax.Tests) ... ok
test_UPT_Xml_ModuleSurfaceAreaXml (CheckPythonSyntax.Tests) ... ok
test_UPT_Xml_PackageSurfaceAreaXml (CheckPythonSyntax.Tests) ... ok
test_UPT_Xml_PcdXml (CheckPythonSyntax.Tests) ... ok
test_UPT_Xml_XmlParser (CheckPythonSyntax.Tests) ... ok
test_UPT_Xml_XmlParserMisc (CheckPythonSyntax.Tests) ... ok
test_UPT_Xml___init__ (CheckPythonSyntax.Tests) ... ok
test_Workspace_BuildClassObject (CheckPythonSyntax.Tests) ... ok
test_Workspace_DecBuildData (CheckPythonSyntax.Tests) ... ok
test_Workspace_DscBuildData (CheckPythonSyntax.Tests) ... ok
test_Workspace_InfBuildData (CheckPythonSyntax.Tests) ... ok
test_Workspace_MetaDataTable (CheckPythonSyntax.Tests) ... ok
test_Workspace_MetaFileCommentParser (CheckPythonSyntax.Tests) ... ok
test_Workspace_MetaFileParser (CheckPythonSyntax.Tests) ... ok
test_Workspace_MetaFileTable (CheckPythonSyntax.Tests) ... ok
test_Workspace_WorkspaceCommon (CheckPythonSyntax.Tests) ... ok
test_Workspace_WorkspaceDatabase (CheckPythonSyntax.Tests) ... ok
test_Workspace___init__ (CheckPythonSyntax.Tests) ... ok
test_build_BuildReport (CheckPythonSyntax.Tests) ... ok
test_build___init__ (CheckPythonSyntax.Tests) ... ok
test_build_build (CheckPythonSyntax.Tests) ... ok
test_sitecustomize (CheckPythonSyntax.Tests) ... ok
test32bitUnicodeCharInUtf8Comment (CheckUnicodeSourceFiles.Tests) ... ok
test32bitUnicodeCharInUtf8File (CheckUnicodeSourceFiles.Tests) ... ok
testSupplementaryPlaneUnicodeCharInUtf16File (CheckUnicodeSourceFiles.Tests) ... ok
testSurrogatePairUnicodeCharInUtf16File (CheckUnicodeSourceFiles.Tests) ... ok
testSurrogatePairUnicodeCharInUtf8File (CheckUnicodeSourceFiles.Tests) ... ok
testSurrogatePairUnicodeCharInUtf8FileWithBom (CheckUnicodeSourceFiles.Tests) ... ok
testUtf16InUniFile (CheckUnicodeSourceFiles.Tests) ... ok
testValidUtf8File (CheckUnicodeSourceFiles.Tests) ... ok
testValidUtf8FileWithBom (CheckUnicodeSourceFiles.Tests) ... ok

----------------------------------------------------------------------
Ran 270 tests in 1.756s

OK
make[1]: Leaving directory `/home/fan/edk2/BaseTools/Tests'

[-- Attachment #4: edk2_build_withoutGCC5.log --]
[-- Type: application/octet-stream, Size: 2712 bytes --]

Build environment: Linux-3.10.0-957.el7.x86_64-x86_64-with-redhat-7.6-Maipo
Build start time: 14:25:31, May.09 2019

WORKSPACE        = /home/fan/edk2
EDK_TOOLS_PATH   = /home/fan/edk2/BaseTools
CONF_PATH        = /home/fan/edk2/Conf
PYTHON_COMMAND   = /usr/bin/python3.6


Architecture(s)  = IA32 X64
Build target     = DEBUG
Toolchain        = VS2015x86

Active Platform          = /home/fan/edk2/OvmfPkg/OvmfPkgIa32X64.dsc
Flash Image Definition   = /home/fan/edk2/OvmfPkg/OvmfPkgIa32X64.fdf

Processing meta-data ....... 


build.py...
 : error C0DE: Unknown fatal error when processing [/home/fan/edk2/MdePkg/Library/PeiHobLib/PeiHobLib.inf]
	
(Please send email to edk2-devel@lists.01.org for help, attaching following call stack trace!)

(Python 3.6.5 on linux) Traceback (most recent call last):
  File "/home/fan/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 2440, in Main
    MyBuild.Launch()
  File "/home/fan/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 2182, in Launch
    self._MultiThreadBuildPlatform()
  File "/home/fan/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 2011, in _MultiThreadBuildPlatform
    Ma.CreateMakeFile(True)
  File "/home/fan/edk2/BaseTools/Source/Python/Common/caching.py", line 18, in CallMeHere
    Value = self._function(obj, *args,**kwargs)
  File "/home/fan/edk2/BaseTools/Source/Python/AutoGen/AutoGen.py", line 3989, in CreateMakeFile
    LibraryAutoGen.CreateMakeFile()
  File "/home/fan/edk2/BaseTools/Source/Python/Common/caching.py", line 18, in CallMeHere
    Value = self._function(obj, *args,**kwargs)
  File "/home/fan/edk2/BaseTools/Source/Python/AutoGen/AutoGen.py", line 3998, in CreateMakeFile
    if Makefile.Generate():
  File "/home/fan/edk2/BaseTools/Source/Python/AutoGen/GenMake.py", line 186, in Generate
    FileContent = self._TEMPLATE_.Replace(self._TemplateDict)
  File "/home/fan/edk2/BaseTools/Source/Python/AutoGen/GenMake.py", line 561, in _TemplateDict
    self.ProcessBuildTargetList()
  File "/home/fan/edk2/BaseTools/Source/Python/AutoGen/GenMake.py", line 993, in ProcessBuildTargetList
    T, CmdTarget, CmdTargetDict, CmdCppDict = self.ParserCCodeFile(T, Type, CmdSumDict, CmdTargetDict, CmdCppDict, DependencyDict)
  File "/home/fan/edk2/BaseTools/Source/Python/AutoGen/GenMake.py", line 1038, in ParserCCodeFile
    if SingleCommandList[-1].endswith("%s%s.c" % (TAB_SLASH, CmdSumDict[CmdSign.lstrip('/Fo').rsplit(TAB_SLASH, 1)[0]])):
KeyError: 'home/fan/edk2/Build/Ovmf3264/DEBUG_VS2015x86/IA32/MdePkg/Library/PeiHobLib/PeiHobLib/OUTPUT/./HobLib.obj'


- Failed -
Build end time: 14:25:39, May.09 2019
Build total time: 00:00:08


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [edk2-devel] OVMF will not start to build using "OvmfPkg/build.sh -a X64 -n 40"
  2019-05-09  6:37           ` Chen, Farrah
@ 2019-05-09  6:42             ` Liming Gao
  2019-05-09  6:54               ` Chen, Farrah
  0 siblings, 1 reply; 13+ messages in thread
From: Liming Gao @ 2019-05-09  6:42 UTC (permalink / raw)
  To: Chen, Farrah, devel@edk2.groups.io, glin@suse.com
  Cc: Hao, Xudong, Wei, Danmei, Feng, Bob C

You should specify tool chain tag with GCC5. The error message is that "gcc: error: unrecognized command line option '-no-pie'". Seemly, your GCC version is not GCC 5 or high version. What's your GCC compiler version? 

Please try GCC49 tool chain. The command is "build -p OvmfPkg/OvmfPkgIa32X64.dsc -a IA32 -a X64 -t GCC49"

Thanks
Liming
> -----Original Message-----
> From: Chen, Farrah
> Sent: Thursday, May 9, 2019 2:37 PM
> To: Gao, Liming <liming.gao@intel.com>; devel@edk2.groups.io; glin@suse.com
> Cc: Hao, Xudong <xudong.hao@intel.com>; Wei, Danmei <danmei.wei@intel.com>; Feng, Bob C <bob.c.feng@intel.com>
> Subject: RE: [edk2-devel] OVMF will not start to build using "OvmfPkg/build.sh -a X64 -n 40"
> 
> Sure, detailed log attached, no error in make_BaseTools.log, the error occurred in build edk2.
> After running "build -p OvmfPkg/OvmfPkgIa32X64.dsc -a IA32 -a X64 -t GCC5", error log is edk2_build.log.
> After running "build -p OvmfPkg/OvmfPkgIa32X64.dsc -a IA32 -a X64", the error is different, error log is edk2_build_withoutGCC5.log.
> Thanks a lot!
> 
> 
> Thanks,
> Fan
> 
> 
> 
> 
> -----Original Message-----
> From: Gao, Liming
> Sent: Thursday, May 9, 2019 2:25 PM
> To: Chen, Farrah <farrah.chen@intel.com>; devel@edk2.groups.io; glin@suse.com
> Cc: Hao, Xudong <xudong.hao@intel.com>; Wei, Danmei <danmei.wei@intel.com>; Feng, Bob C <bob.c.feng@intel.com>
> Subject: RE: [edk2-devel] OVMF will not start to build using "OvmfPkg/build.sh -a X64 -n 40"
> 
> Farrah:
>   This is the problem in df7c81b5b219c9ae. Patch owner are looking it, then fix it.
> 
>   On build failure, could you share more log? This log doesn't show what compiler error in the driver.
> 
> Thanks
> Liming
> > -----Original Message-----
> > From: Chen, Farrah
> > Sent: Thursday, May 9, 2019 2:19 PM
> > To: Gao, Liming <liming.gao@intel.com>; devel@edk2.groups.io;
> > glin@suse.com
> > Cc: Hao, Xudong <xudong.hao@intel.com>; Wei, Danmei
> > <danmei.wei@intel.com>
> > Subject: RE: [edk2-devel] OVMF will not start to build using "OvmfPkg/build.sh -a X64 -n 40"
> >
> > Hi Liming,
> >
> > We have been using " OvmfPkg/build.sh -a X64" for such a long time,
> > ovmf can be built successfully with this method until commit df7c81b5b219c9ae, and in edk2/OvmfPkg/README, it asks me to use "
> OvmfPkg/build.sh".
> > As Gray's advice, we modified return value of TestUtilModule() in edksetup.sh, then it can succeed with " OvmfPkg/build.sh -a X64".
> > And we met error with " build -p OvmfPkg/OvmfPkgIa32X64.dsc -a IA32 -a X64 -t GCC5" to build ovmf, fail log showed below.
> > So, can we get a correct and official build method with no error?
> > Thanks!
> >
> > edk2/OvmfPkg/README:
> > 108 On systems with the bash shell you can use OvmfPkg/build.sh to
> > simplify
> > 109 building and running OVMF.
> > 110
> > 111 So, for example, to build + run OVMF X64:
> > 112 $ OvmfPkg/build.sh -a X64
> > 113 $ OvmfPkg/build.sh -a X64 qemu
> > 114
> > 115 And to run a 64-bit UEFI bootable ISO image:
> > 116 $ OvmfPkg/build.sh -a X64 qemu -cdrom /path/to/disk-image.iso
> > 117
> > 118 To build a 32-bit OVMF without debug messages using GCC 4.8:
> > 119 $ OvmfPkg/build.sh -a IA32 -b RELEASE -t GCC48
> >
> >
> > Fail log:
> > build -p OvmfPkg/OvmfPkgIa32X64.dsc -a IA32 -a X64 -t GCC5 ..........
> >
> > build.py...
> >  : error 7000: Failed to execute command
> >         make tbuild
> > [/home/fan/edk2/Build/Ovmf3264/DEBUG_GCC5/IA32/MdeModulePkg/Universal/
> > ReportStatusCodeRouter/Pei/ReportStatusCodeRouter
> > Pei]
> > "gcc" -g -fshort-wchar -fno-builtin -fno-strict-aliasing -Wall -Werror
> > -Wno-array-bounds -ffunction-sections -fdata-sections -include
> > AutoGen.h -fno-common -DSTRING_ARRAY_NAME=PlatformPeiStrings -m32
> > -march=i586 -malign-double -fno-stack-protector -D EFI32
> > -fno-asynchronous-unwind-tables -Wno-address -fno-pic -fno-pie -flto
> > -Os -mno-mmx -mno-sse -D DISABLE_NEW_DEPRECATED_INTERFACES -c -o
> > /home/fan/edk2/Build/Ovmf3264/DEBUG_GCC5/IA32/OvmfPkg/PlatformPei/Plat
> > formPei/OUTPUT/./MemDetect.obj
> > -I/home/fan/edk2/OvmfPkg/PlatformPei
> > -I/home/fan/edk2/Build/Ovmf3264/DEBUG_GCC5/IA32/OvmfPkg/PlatformPei/Pl
> > atformPei/DEBUG -I/home/fan/edk2/IntelFrameworkModulePkg
> > -I/home/fan/edk2/IntelFrameworkModulePkg/Include
> > -I/home/fan/edk2/MdePkg -I/home/fan/edk2/MdePkg/Include
> > -I/home/fan/edk2/MdePkg/Include/Ia32 -I/home/fan/edk2/MdeModulePkg
> > -I/home/fan/edk2/MdeModulePkg/Include -I/home/fan/edk2/SecurityPkg
> > -I/home/fan/edk2/SecurityPkg/Include
> > -I/home/fan/edk2/UefiCpuPkg -I/home/fan/edk2/UefiCpuPkg/Include
> > -I/home/fan/edk2/OvmfPkg -I/home/fan/edk2/OvmfPkg/Include
> > /home/fan/edk2/OvmfPkg/PlatformPei/MemDetect.c
> >
> > build.py...
> >  : error 7000: Failed to execute command
> >         make tbuild
> > [/home/fan/edk2/Build/Ovmf3264/DEBUG_GCC5/IA32/MdeModulePkg/Universal/
> > StatusCodeHandler/Pei/StatusCodeHandlerPei]
> >
> > build.py...
> >  : error 7000: Failed to execute command
> >         make tbuild
> > [/home/fan/edk2/Build/Ovmf3264/DEBUG_GCC5/IA32/UefiCpuPkg/Universal/Ac
> > pi/S3Resume2Pei/S3Resume2Pei]
> >
> >
> > Thanks,
> > Fan
> >
> > -----Original Message-----
> > From: Gao, Liming
> > Sent: Thursday, May 9, 2019 11:35 AM
> > To: devel@edk2.groups.io; Chen, Farrah <farrah.chen@intel.com>;
> > glin@suse.com
> > Cc: Hao, Xudong <xudong.hao@intel.com>; Wei, Danmei
> > <danmei.wei@intel.com>
> > Subject: RE: [edk2-devel] OVMF will not start to build using "OvmfPkg/build.sh -a X64 -n 40"
> >
> > Fan:
> >   The below is my step to build OvmfIa32X64. I don't try
> > OvmfPkg/build.sh
> >
> > 1. . edksetup.sh
> > 2. cd BaseTools, type make
> > 3. cd ..
> > 4. build -p OvmfPkg/OvmfPkgIa32X64.dsc -a IA32 -a X64 -t GCC5
> >
> > Thanks
> > Liming
> > > -----Original Message-----
> > > From: devel@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf
> > > Of Chen, Farrah
> > > Sent: Thursday, May 9, 2019 11:29 AM
> > > To: devel@edk2.groups.io; glin@suse.com
> > > Cc: Hao, Xudong <xudong.hao@intel.com>; Wei, Danmei
> > > <danmei.wei@intel.com>
> > > Subject: Re: [edk2-devel] OVMF will not start to build using "OvmfPkg/build.sh -a X64 -n 40"
> > >
> > > Yes, thanks, my return value is 1.
> > > And how can we build ovmf correctlly? The build steps have been updated?
> > >
> > > [vmm@vmm-build edk2]$ OvmfPkg/build.sh -a X64 -n 40 Initializing
> > > workspace /home/fan/edk2/BaseTools Loading previous configuration
> > > from /home/fan/edk2/Conf/BuildEnv.sh
> > > WORKSPACE: /home/fan/edk2
> > > EDK_TOOLS_PATH: /home/fan/edk2/BaseTools
> > > CONF_PATH: /home/fan/edk2/Conf
> > > [vmm@vmm-build edk2]$ echo $?
> > > 1
> > >
> > >
> > > Thanks,
> > > Fan
> > >
> > >
> > >
> > > -----Original Message-----
> > > From: devel@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf
> > > Of Gary Lin
> > > Sent: Thursday, May 9, 2019 11:20 AM
> > > To: devel@edk2.groups.io; Chen, Farrah <farrah.chen@intel.com>
> > > Cc: Hao, Xudong <xudong.hao@intel.com>; Wei, Danmei
> > > <danmei.wei@intel.com>
> > > Subject: Re: [edk2-devel] OVMF will not start to build using "OvmfPkg/build.sh -a X64 -n 40"
> > >
> > > On Thu, May 09, 2019 at 02:31:13AM +0000, Chen, Farrah wrote:
> > > > Hi,
> > > >
> > > > We build the latest OVMF and found that it doesn't start to build using "OvmfPkg/build.sh -a X64 -n 40" actually.
> > > >
> > > > Step:
> > > > git clone https://github.com/tianocore/edk2.git
> > > > cd  edk2
> > > > git submodule init
> > > > git submodule update -recursive
> > > > OvmfPkg/build.sh -a X64 -n 40
> > > > Then it didn't start to build.
> > > >
> > > > log:
> > > > [vmm@vmm-build edk2]$ OvmfPkg/build.sh -a X64 -n 40 Initializing
> > > > workspace /home/fan/edk2/BaseTools Loading previous configuration
> > > > from /home/fan/edk2/Conf/BuildEnv.sh
> > > > WORKSPACE: /home/fan/edk2
> > > > EDK_TOOLS_PATH: /home/fan/edk2/BaseTools
> > > > CONF_PATH: /home/fan/edk2/Conf
> > > > [vmm@vmm-build edk2]$
> > > >
> > > > We use the latest commit:
> > > > 792f0d4f12ad5c01afdf9c92df8c479ff0f19a79,
> > > > and we found the first commit has such issue is
> > > df7c81b5b219c9aee776baa466dd64c9d318dd80.
> > > > Do you have any advice?
> > > >
> > > TestUtilModule() returned the opposite value.
> > > For the shell, 0 for good, and 1 for bad.
> > >
> > > Gary Lin
> > >
> > > >
> > > > Thanks,
> > > > Fan
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > >
> > > 


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [edk2-devel] OVMF will not start to build using "OvmfPkg/build.sh -a X64 -n 40"
  2019-05-09  6:42             ` Liming Gao
@ 2019-05-09  6:54               ` Chen, Farrah
  0 siblings, 0 replies; 13+ messages in thread
From: Chen, Farrah @ 2019-05-09  6:54 UTC (permalink / raw)
  To: Gao, Liming, devel@edk2.groups.io, glin@suse.com
  Cc: Hao, Xudong, Wei, Danmei, Feng, Bob C

I see, my gcc version is the default version of Red Hat 7.6: (GCC) 4.8.5.
So I use "build -p OvmfPkg/OvmfPkgIa32X64.dsc -a IA32 -a X64 -t GCC48", it succeed.
We will wait the bug fix, OvmfPkg/build.sh can recognize the gcc version automatically.
Thanks a lot!


Thanks,
Fan




-----Original Message-----
From: Gao, Liming 
Sent: Thursday, May 9, 2019 2:42 PM
To: Chen, Farrah <farrah.chen@intel.com>; devel@edk2.groups.io; glin@suse.com
Cc: Hao, Xudong <xudong.hao@intel.com>; Wei, Danmei <danmei.wei@intel.com>; Feng, Bob C <bob.c.feng@intel.com>
Subject: RE: [edk2-devel] OVMF will not start to build using "OvmfPkg/build.sh -a X64 -n 40"

You should specify tool chain tag with GCC5. The error message is that "gcc: error: unrecognized command line option '-no-pie'". Seemly, your GCC version is not GCC 5 or high version. What's your GCC compiler version? 

Please try GCC49 tool chain. The command is "build -p OvmfPkg/OvmfPkgIa32X64.dsc -a IA32 -a X64 -t GCC49"

Thanks
Liming
> -----Original Message-----
> From: Chen, Farrah
> Sent: Thursday, May 9, 2019 2:37 PM
> To: Gao, Liming <liming.gao@intel.com>; devel@edk2.groups.io; 
> glin@suse.com
> Cc: Hao, Xudong <xudong.hao@intel.com>; Wei, Danmei 
> <danmei.wei@intel.com>; Feng, Bob C <bob.c.feng@intel.com>
> Subject: RE: [edk2-devel] OVMF will not start to build using "OvmfPkg/build.sh -a X64 -n 40"
> 
> Sure, detailed log attached, no error in make_BaseTools.log, the error occurred in build edk2.
> After running "build -p OvmfPkg/OvmfPkgIa32X64.dsc -a IA32 -a X64 -t GCC5", error log is edk2_build.log.
> After running "build -p OvmfPkg/OvmfPkgIa32X64.dsc -a IA32 -a X64", the error is different, error log is edk2_build_withoutGCC5.log.
> Thanks a lot!
> 
> 
> Thanks,
> Fan
> 
> 
> 
> 
> -----Original Message-----
> From: Gao, Liming
> Sent: Thursday, May 9, 2019 2:25 PM
> To: Chen, Farrah <farrah.chen@intel.com>; devel@edk2.groups.io; 
> glin@suse.com
> Cc: Hao, Xudong <xudong.hao@intel.com>; Wei, Danmei 
> <danmei.wei@intel.com>; Feng, Bob C <bob.c.feng@intel.com>
> Subject: RE: [edk2-devel] OVMF will not start to build using "OvmfPkg/build.sh -a X64 -n 40"
> 
> Farrah:
>   This is the problem in df7c81b5b219c9ae. Patch owner are looking it, then fix it.
> 
>   On build failure, could you share more log? This log doesn't show what compiler error in the driver.
> 
> Thanks
> Liming
> > -----Original Message-----
> > From: Chen, Farrah
> > Sent: Thursday, May 9, 2019 2:19 PM
> > To: Gao, Liming <liming.gao@intel.com>; devel@edk2.groups.io; 
> > glin@suse.com
> > Cc: Hao, Xudong <xudong.hao@intel.com>; Wei, Danmei 
> > <danmei.wei@intel.com>
> > Subject: RE: [edk2-devel] OVMF will not start to build using "OvmfPkg/build.sh -a X64 -n 40"
> >
> > Hi Liming,
> >
> > We have been using " OvmfPkg/build.sh -a X64" for such a long time, 
> > ovmf can be built successfully with this method until commit df7c81b5b219c9ae, and in edk2/OvmfPkg/README, it asks me to use "
> OvmfPkg/build.sh".
> > As Gray's advice, we modified return value of TestUtilModule() in edksetup.sh, then it can succeed with " OvmfPkg/build.sh -a X64".
> > And we met error with " build -p OvmfPkg/OvmfPkgIa32X64.dsc -a IA32 -a X64 -t GCC5" to build ovmf, fail log showed below.
> > So, can we get a correct and official build method with no error?
> > Thanks!
> >
> > edk2/OvmfPkg/README:
> > 108 On systems with the bash shell you can use OvmfPkg/build.sh to 
> > simplify
> > 109 building and running OVMF.
> > 110
> > 111 So, for example, to build + run OVMF X64:
> > 112 $ OvmfPkg/build.sh -a X64
> > 113 $ OvmfPkg/build.sh -a X64 qemu
> > 114
> > 115 And to run a 64-bit UEFI bootable ISO image:
> > 116 $ OvmfPkg/build.sh -a X64 qemu -cdrom /path/to/disk-image.iso
> > 117
> > 118 To build a 32-bit OVMF without debug messages using GCC 4.8:
> > 119 $ OvmfPkg/build.sh -a IA32 -b RELEASE -t GCC48
> >
> >
> > Fail log:
> > build -p OvmfPkg/OvmfPkgIa32X64.dsc -a IA32 -a X64 -t GCC5 ..........
> >
> > build.py...
> >  : error 7000: Failed to execute command
> >         make tbuild
> > [/home/fan/edk2/Build/Ovmf3264/DEBUG_GCC5/IA32/MdeModulePkg/Universa
> > l/ ReportStatusCodeRouter/Pei/ReportStatusCodeRouter
> > Pei]
> > "gcc" -g -fshort-wchar -fno-builtin -fno-strict-aliasing -Wall 
> > -Werror -Wno-array-bounds -ffunction-sections -fdata-sections 
> > -include AutoGen.h -fno-common 
> > -DSTRING_ARRAY_NAME=PlatformPeiStrings -m32
> > -march=i586 -malign-double -fno-stack-protector -D EFI32 
> > -fno-asynchronous-unwind-tables -Wno-address -fno-pic -fno-pie -flto 
> > -Os -mno-mmx -mno-sse -D DISABLE_NEW_DEPRECATED_INTERFACES -c -o 
> > /home/fan/edk2/Build/Ovmf3264/DEBUG_GCC5/IA32/OvmfPkg/PlatformPei/Pl
> > at
> > formPei/OUTPUT/./MemDetect.obj
> > -I/home/fan/edk2/OvmfPkg/PlatformPei
> > -I/home/fan/edk2/Build/Ovmf3264/DEBUG_GCC5/IA32/OvmfPkg/PlatformPei/
> > Pl atformPei/DEBUG -I/home/fan/edk2/IntelFrameworkModulePkg
> > -I/home/fan/edk2/IntelFrameworkModulePkg/Include
> > -I/home/fan/edk2/MdePkg -I/home/fan/edk2/MdePkg/Include
> > -I/home/fan/edk2/MdePkg/Include/Ia32 -I/home/fan/edk2/MdeModulePkg 
> > -I/home/fan/edk2/MdeModulePkg/Include -I/home/fan/edk2/SecurityPkg 
> > -I/home/fan/edk2/SecurityPkg/Include
> > -I/home/fan/edk2/UefiCpuPkg -I/home/fan/edk2/UefiCpuPkg/Include
> > -I/home/fan/edk2/OvmfPkg -I/home/fan/edk2/OvmfPkg/Include 
> > /home/fan/edk2/OvmfPkg/PlatformPei/MemDetect.c
> >
> > build.py...
> >  : error 7000: Failed to execute command
> >         make tbuild
> > [/home/fan/edk2/Build/Ovmf3264/DEBUG_GCC5/IA32/MdeModulePkg/Universa
> > l/ StatusCodeHandler/Pei/StatusCodeHandlerPei]
> >
> > build.py...
> >  : error 7000: Failed to execute command
> >         make tbuild
> > [/home/fan/edk2/Build/Ovmf3264/DEBUG_GCC5/IA32/UefiCpuPkg/Universal/
> > Ac
> > pi/S3Resume2Pei/S3Resume2Pei]
> >
> >
> > Thanks,
> > Fan
> >
> > -----Original Message-----
> > From: Gao, Liming
> > Sent: Thursday, May 9, 2019 11:35 AM
> > To: devel@edk2.groups.io; Chen, Farrah <farrah.chen@intel.com>; 
> > glin@suse.com
> > Cc: Hao, Xudong <xudong.hao@intel.com>; Wei, Danmei 
> > <danmei.wei@intel.com>
> > Subject: RE: [edk2-devel] OVMF will not start to build using "OvmfPkg/build.sh -a X64 -n 40"
> >
> > Fan:
> >   The below is my step to build OvmfIa32X64. I don't try 
> > OvmfPkg/build.sh
> >
> > 1. . edksetup.sh
> > 2. cd BaseTools, type make
> > 3. cd ..
> > 4. build -p OvmfPkg/OvmfPkgIa32X64.dsc -a IA32 -a X64 -t GCC5
> >
> > Thanks
> > Liming
> > > -----Original Message-----
> > > From: devel@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf 
> > > Of Chen, Farrah
> > > Sent: Thursday, May 9, 2019 11:29 AM
> > > To: devel@edk2.groups.io; glin@suse.com
> > > Cc: Hao, Xudong <xudong.hao@intel.com>; Wei, Danmei 
> > > <danmei.wei@intel.com>
> > > Subject: Re: [edk2-devel] OVMF will not start to build using "OvmfPkg/build.sh -a X64 -n 40"
> > >
> > > Yes, thanks, my return value is 1.
> > > And how can we build ovmf correctlly? The build steps have been updated?
> > >
> > > [vmm@vmm-build edk2]$ OvmfPkg/build.sh -a X64 -n 40 Initializing 
> > > workspace /home/fan/edk2/BaseTools Loading previous configuration 
> > > from /home/fan/edk2/Conf/BuildEnv.sh
> > > WORKSPACE: /home/fan/edk2
> > > EDK_TOOLS_PATH: /home/fan/edk2/BaseTools
> > > CONF_PATH: /home/fan/edk2/Conf
> > > [vmm@vmm-build edk2]$ echo $?
> > > 1
> > >
> > >
> > > Thanks,
> > > Fan
> > >
> > >
> > >
> > > -----Original Message-----
> > > From: devel@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf 
> > > Of Gary Lin
> > > Sent: Thursday, May 9, 2019 11:20 AM
> > > To: devel@edk2.groups.io; Chen, Farrah <farrah.chen@intel.com>
> > > Cc: Hao, Xudong <xudong.hao@intel.com>; Wei, Danmei 
> > > <danmei.wei@intel.com>
> > > Subject: Re: [edk2-devel] OVMF will not start to build using "OvmfPkg/build.sh -a X64 -n 40"
> > >
> > > On Thu, May 09, 2019 at 02:31:13AM +0000, Chen, Farrah wrote:
> > > > Hi,
> > > >
> > > > We build the latest OVMF and found that it doesn't start to build using "OvmfPkg/build.sh -a X64 -n 40" actually.
> > > >
> > > > Step:
> > > > git clone https://github.com/tianocore/edk2.git
> > > > cd  edk2
> > > > git submodule init
> > > > git submodule update -recursive
> > > > OvmfPkg/build.sh -a X64 -n 40
> > > > Then it didn't start to build.
> > > >
> > > > log:
> > > > [vmm@vmm-build edk2]$ OvmfPkg/build.sh -a X64 -n 40 Initializing 
> > > > workspace /home/fan/edk2/BaseTools Loading previous 
> > > > configuration from /home/fan/edk2/Conf/BuildEnv.sh
> > > > WORKSPACE: /home/fan/edk2
> > > > EDK_TOOLS_PATH: /home/fan/edk2/BaseTools
> > > > CONF_PATH: /home/fan/edk2/Conf
> > > > [vmm@vmm-build edk2]$
> > > >
> > > > We use the latest commit:
> > > > 792f0d4f12ad5c01afdf9c92df8c479ff0f19a79,
> > > > and we found the first commit has such issue is
> > > df7c81b5b219c9aee776baa466dd64c9d318dd80.
> > > > Do you have any advice?
> > > >
> > > TestUtilModule() returned the opposite value.
> > > For the shell, 0 for good, and 1 for bad.
> > >
> > > Gary Lin
> > >
> > > >
> > > > Thanks,
> > > > Fan
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > >
> > > 


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2019-05-09  6:54 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-09  2:31 OVMF will not start to build using "OvmfPkg/build.sh -a X64 -n 40" Chen, Farrah
2019-05-09  3:20 ` [edk2-devel] " Gary Lin
2019-05-09  3:29   ` Chen, Farrah
2019-05-09  3:35     ` Liming Gao
2019-05-09  6:19       ` Chen, Farrah
2019-05-09  6:24         ` Liming Gao
2019-05-09  6:37           ` Chen, Farrah
2019-05-09  6:42             ` Liming Gao
2019-05-09  6:54               ` Chen, Farrah
2019-05-09  4:06     ` Gary Lin
2019-05-09  6:04       ` Chen, Farrah
2019-05-09  6:20         ` Gary Lin
2019-05-09  6:25           ` Chen, Farrah

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox