* UEFIPayload build issue @ 2018-09-20 20:44 Wim Vervoorn 2018-09-21 7:32 ` Zhu, Yonghong 0 siblings, 1 reply; 3+ messages in thread From: Wim Vervoorn @ 2018-09-20 20:44 UTC (permalink / raw) To: edk2-devel@lists.01.org Hello, I am trying to build the new UEFIPayload from the staging repo. The build proceeds pretty well but then I got this message: Traceback (most recent call last): File "C:\Python27\lib\site-packages\cx_Freeze\initscripts\Console.py", line 27, in <module> exec(code, m.__dict__) File "GenFds\GenFds.py", line 24, in <module> ValueError: Attempted relative import in non-package build.exe... : error 7000: Failed to execute command GenFds -f C:\git\SlimBootPayload\UEFIPayload\UefiPayloadPkg\UefiPayloadPkg.fdf --conf=c:\git\slimbootpayload\edk2\conf -o c:\git\slimbootpayload\edk2\Build\UefiPayloadPkgX64\DEBUG_VS2015x86 -t VS2015x86 -b DEBUG -p C:\git\SlimBootPayload\UEFIPayload\UefiPayloadPkg\UefiPayloadPkgIA32X64.dsc -a IA32,X64 -D "EFI_SOURCE=c:\\git\\slimbootpayload\\edk2\\edkcompatibilitypkg" -D "EDK_SOURCE=c:\\git\\slimbootpayload\\edk2\\edkcompatibilitypkg" -D "TOOL_CHAIN_TAG=VS2015x86" -D "TOOLCHAIN=VS2015x86" -D "TARGET=DEBUG" -D "FAMILY=MSFT" -D "WORKSPACE=c:\\git\\slimbootpayload\\edk2" -D "EDK_TOOLS_PATH=c:\\git\\slimbootpayload\\edk2\\basetools" -D "BD_ARCH=IA32X64" -D "ARCH=IA32 X64" -D "ECP_SOURCE=c:\\git\\slimbootpayload\\edk2\\edkcompatibilitypkg" [C:\git\SlimBootPayload\edk2] - Failed - So far I haven’t figured out what is causing this issue. It is good to note that use the tools from the master of the edk2 repo (status of today). Suggestions are welcome. Wim Vervoorn ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: UEFIPayload build issue 2018-09-20 20:44 UEFIPayload build issue Wim Vervoorn @ 2018-09-21 7:32 ` Zhu, Yonghong 2018-09-21 7:37 ` Wim Vervoorn 0 siblings, 1 reply; 3+ messages in thread From: Zhu, Yonghong @ 2018-09-21 7:32 UTC (permalink / raw) To: Wim Vervoorn, edk2-devel@lists.01.org [-- Attachment #1: Type: text/plain, Size: 2122 bytes --] Hi Wim Vervoorn, May I know your steps? From the error message, seems you freeze the BaseTools to binary exe file, and this failure was caused by the cxfreeze step. We recommend run BaseTools Python from source in Windows. Thanks. Best Regards, Zhu Yonghong -----Original Message----- From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Wim Vervoorn Sent: Friday, September 21, 2018 4:44 AM To: edk2-devel@lists.01.org Subject: [edk2] UEFIPayload build issue Hello, I am trying to build the new UEFIPayload from the staging repo. The build proceeds pretty well but then I got this message: Traceback (most recent call last): File "C:\Python27\lib\site-packages\cx_Freeze\initscripts\Console.py", line 27, in <module> exec(code, m.__dict__) File "GenFds\GenFds.py", line 24, in <module> ValueError: Attempted relative import in non-package build.exe... : error 7000: Failed to execute command GenFds -f C:\git\SlimBootPayload\UEFIPayload\UefiPayloadPkg\UefiPayloadPkg.fdf --conf=c:\git\slimbootpayload\edk2\conf -o c:\git\slimbootpayload\edk2\Build\UefiPayloadPkgX64\DEBUG_VS2015x86 -t VS2015x86 -b DEBUG -p C:\git\SlimBootPayload\UEFIPayload\UefiPayloadPkg\UefiPayloadPkgIA32X64.dsc -a IA32,X64 -D "EFI_SOURCE=c:\\git\\slimbootpayload\\edk2\\edkcompatibilitypkg" -D "EDK_SOURCE=c:\\git\\slimbootpayload\\edk2\\edkcompatibilitypkg" -D "TOOL_CHAIN_TAG=VS2015x86" -D "TOOLCHAIN=VS2015x86" -D "TARGET=DEBUG" -D "FAMILY=MSFT" -D "WORKSPACE=c:\\git\\slimbootpayload\\edk2" -D "EDK_TOOLS_PATH=c:\\git\\slimbootpayload\\edk2\\basetools" -D "BD_ARCH=IA32X64" -D "ARCH=IA32 X64" -D "ECP_SOURCE=c:\\git\\slimbootpayload\\edk2\\edkcompatibilitypkg" [C:\git\SlimBootPayload\edk2] - Failed - So far I haven’t figured out what is causing this issue. It is good to note that use the tools from the master of the edk2 repo (status of today). Suggestions are welcome. Wim Vervoorn _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel [-- Attachment #2: Type: message/rfc822, Size: 5415 bytes --] From: "Gao, Liming" <liming.gao@intel.com> To: "edk2-devel@lists.01.org" <edk2-devel@lists.01.org> Subject: [edk2] Drop the support of BaseTools Python run from the freeze binary in Windows OS Date: Fri, 7 Sep 2018 02:58:01 +0000 Message-ID: <4A89E2EF3DFEDB4C8BFDE51014F606A14E2F0510@SHSMSX104.ccr.corp.intel.com> Hi, all Now, we are working to migrate BaseTools Python tool from Python27 to Python36. To reduce the migration effort, we will only verify BaseTools Python tool run from source. That means we will stop to support the freeze python tool as windows exe. In fact, we get the report that edk2-BaseTools-win32 doesn't work. We don't plan to fix it. If you still use the freeze python tool exe, please run BaseTools Python from source in Windows. Here is the step wiki https://github.com/tianocore/tianocore.github.io/wiki/Windows-systems Compile Tools section. After migrate to Python36, we will update wiki page to document Python36 step. >From now, we will stop to freeze python tool, remove Edk2\BaseTools\Source\Python\Makefile, and stop update edk2-BaseTools-win32 github repo. And, I will reset edk2-BaseTools-win32 binary to match edk2 vUDK2018 tag. If you require the freeze python tool, you can maintain your step to freeze the python tool. Here is the link https://docs.python-guide.org/shipping/freezing/ to introduce the different freezing solutions. Thanks Liming _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: UEFIPayload build issue 2018-09-21 7:32 ` Zhu, Yonghong @ 2018-09-21 7:37 ` Wim Vervoorn 0 siblings, 0 replies; 3+ messages in thread From: Wim Vervoorn @ 2018-09-21 7:37 UTC (permalink / raw) To: Zhu, Yonghong, edk2-devel@lists.01.org Hello Zhu, I am indeed using cxfreeze as is normally recommended. It will remove these binaries and use the tools from source. Best Regards, Wim Vervoorn -----Original Message----- From: Zhu, Yonghong [mailto:yonghong.zhu@intel.com] Sent: Friday, September 21, 2018 9:33 AM To: Wim Vervoorn <wvervoorn@eltan.com>; edk2-devel@lists.01.org Cc: Zhu, Yonghong <yonghong.zhu@intel.com> Subject: RE: UEFIPayload build issue Hi Wim Vervoorn, May I know your steps? From the error message, seems you freeze the BaseTools to binary exe file, and this failure was caused by the cxfreeze step. We recommend run BaseTools Python from source in Windows. Thanks. Best Regards, Zhu Yonghong -----Original Message----- From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Wim Vervoorn Sent: Friday, September 21, 2018 4:44 AM To: edk2-devel@lists.01.org Subject: [edk2] UEFIPayload build issue Hello, I am trying to build the new UEFIPayload from the staging repo. The build proceeds pretty well but then I got this message: Traceback (most recent call last): File "C:\Python27\lib\site-packages\cx_Freeze\initscripts\Console.py", line 27, in <module> exec(code, m.__dict__) File "GenFds\GenFds.py", line 24, in <module> ValueError: Attempted relative import in non-package build.exe... : error 7000: Failed to execute command GenFds -f C:\git\SlimBootPayload\UEFIPayload\UefiPayloadPkg\UefiPayloadPkg.fdf --conf=c:\git\slimbootpayload\edk2\conf -o c:\git\slimbootpayload\edk2\Build\UefiPayloadPkgX64\DEBUG_VS2015x86 -t VS2015x86 -b DEBUG -p C:\git\SlimBootPayload\UEFIPayload\UefiPayloadPkg\UefiPayloadPkgIA32X64.dsc -a IA32,X64 -D "EFI_SOURCE=c:\\git\\slimbootpayload\\edk2\\edkcompatibilitypkg" -D "EDK_SOURCE=c:\\git\\slimbootpayload\\edk2\\edkcompatibilitypkg" -D "TOOL_CHAIN_TAG=VS2015x86" -D "TOOLCHAIN=VS2015x86" -D "TARGET=DEBUG" -D "FAMILY=MSFT" -D "WORKSPACE=c:\\git\\slimbootpayload\\edk2" -D "EDK_TOOLS_PATH=c:\\git\\slimbootpayload\\edk2\\basetools" -D "BD_ARCH=IA32X64" -D "ARCH=IA32 X64" -D "ECP_SOURCE=c:\\git\\slimbootpayload\\edk2\\edkcompatibilitypkg" [C:\git\SlimBootPayload\edk2] - Failed - So far I haven’t figured out what is causing this issue. It is good to note that use the tools from the master of the edk2 repo (status of today). Suggestions are welcome. Wim Vervoorn _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-09-21 7:37 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2018-09-20 20:44 UEFIPayload build issue Wim Vervoorn 2018-09-21 7:32 ` Zhu, Yonghong 2018-09-21 7:37 ` Wim Vervoorn
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox