* build error on fresh download
@ 2017-06-16 3:21 Nick
2017-06-16 3:33 ` Zhu, Yonghong
0 siblings, 1 reply; 4+ messages in thread
From: Nick @ 2017-06-16 3:21 UTC (permalink / raw)
To: edk2-devel
I downloaded the latest edk2, following the instructions from:
https://github.com/tianocore/tianocore.github.io/wiki/Using-EDK-II-with-Native-GCC#Open_the_GNOME_Terminal_program
and
https://github.com/tianocore/tianocore.github.io/wiki/Common-instructions
I am getting this error on the initial build:
duser@duser-virtual-machine ~/src/edk2 $ build
Build environment: Linux-4.4.0-21-generic-x86_64-with-LinuxMint-18-sarah
Build start time: 20:10:28, Jun.15 2017
WORKSPACE = /home/duser/src/edk2
ECP_SOURCE = /home/duser/src/edk2/EdkCompatibilityPkg
EDK_SOURCE = /home/duser/src/edk2/EdkCompatibilityPkg
EFI_SOURCE = /home/duser/src/edk2/EdkCompatibilityPkg
EDK_TOOLS_PATH = /home/duser/src/edk2/BaseTools
CONF_PATH = /home/duser/src/edk2/Conf
Architecture(s) = IA32 IPF EBC AARCH64 X64 ARM
Build target = DEBUG
Toolchain = GCC5
Active Platform = /home/duser/src/edk2/MdeModulePkg/MdeModulePkg.dsc
Processing meta-data ................... done!
Building ... /home/duser/src/edk2/MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
[IA32]
make: Nothing to be done for 'tbuild'.
Building ... /home/duser/src/edk2/MdePkg/Library/BasePrintLib/BasePrintLib.inf
[IA32]
make: Nothing to be done for 'tbuild'.
Building ... /home/duser/src/edk2/MdePkg/Library/BaseLib/BaseLib.inf [IA32]
make: Nothing to be done for 'tbuild'.
Building ... /home/duser/src/edk2/MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
[IA32]
make: Nothing to be done for 'tbuild'.
Building ... /home/duser/src/edk2/MdePkg/Library/UefiDebugLibStdErr/UefiDebugLibStdErr.inf
[IA32]
"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=UefiDebugLibStdErrStrings
-m32 -march=i586 -malign-double -fno-stack-protector -D EFI32
-fno-asynchronous-unwind-tables -Wno-address -flto -Os -D
DISABLE_NEW_DEPRECATED_INTERFACES -c -o
/home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/UefiDebugLibStdErr/UefiDebugLibStdErr/OUTPUT/./DebugLib.obj
-I/home/duser/src/edk2/MdePkg/Library/UefiDebugLibStdErr
-I/home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/UefiDebugLibStdErr/UefiDebugLibStdErr/DEBUG
-I/home/duser/src/edk2/MdePkg -I/home/duser/src/edk2/MdePkg/Include
-I/home/duser/src/edk2/MdePkg/Include/Ia32
/home/duser/src/edk2/MdePkg/Library/UefiDebugLibStdErr/DebugLib.c
"gcc-ar" cr /home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/UefiDebugLibStdErr/UefiDebugLibStdErr/OUTPUT/UefiDebugLibStdErr.lib
@/home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/UefiDebugLibStdErr/UefiDebugLibStdErr/OUTPUT/object_files.lst
Building ... /home/duser/src/edk2/MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
[IA32]
"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=BasePcdLibNullStrings -m32
-march=i586 -malign-double -fno-stack-protector -D EFI32
-fno-asynchronous-unwind-tables -Wno-address -flto -Os -D
DISABLE_NEW_DEPRECATED_INTERFACES -c -o
/home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/BasePcdLibNull/BasePcdLibNull/OUTPUT/./PcdLib.obj
-I/home/duser/src/edk2/MdePkg/Library/BasePcdLibNull
-I/home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/BasePcdLibNull/BasePcdLibNull/DEBUG
-I/home/duser/src/edk2/MdePkg -I/home/duser/src/edk2/MdePkg/Include
-I/home/duser/src/edk2/MdePkg/Include/Ia32
/home/duser/src/edk2/MdePkg/Library/BasePcdLibNull/PcdLib.c
"gcc-ar" cr /home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/BasePcdLibNull/BasePcdLibNull/OUTPUT/BasePcdLibNull.lib
@/home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/BasePcdLibNull/BasePcdLibNull/OUTPUT/object_files.lst
Building ... /home/duser/src/edk2/MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
[IA32]
"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=UefiBootServicesTableLibStrings -m32 -march=i586
-malign-double -fno-stack-protector -D EFI32
-fno-asynchronous-unwind-tables -Wno-address -flto -Os -D
DISABLE_NEW_DEPRECATED_INTERFACES -c -o
/home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib/OUTPUT/./UefiBootServicesTableLib.obj
-I/home/duser/src/edk2/MdePkg/Library/UefiBootServicesTableLib
-I/home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib/DEBUG
-I/home/duser/src/edk2/MdePkg -I/home/duser/src/edk2/MdePkg/Include
-I/home/duser/src/edk2/MdePkg/Include/Ia32
/home/duser/src/edk2/MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.c
"gcc-ar" cr /home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib/OUTPUT/UefiBootServicesTableLib.lib
@/home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib/OUTPUT/object_files.lst
Building ... /home/duser/src/edk2/MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
[IA32]
"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=UefiMemoryAllocationLibStrings -m32 -march=i586
-malign-double -fno-stack-protector -D EFI32
-fno-asynchronous-unwind-tables -Wno-address -flto -Os -D
DISABLE_NEW_DEPRECATED_INTERFACES -c -o
/home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib/OUTPUT/./MemoryAllocationLib.obj
-I/home/duser/src/edk2/MdePkg/Library/UefiMemoryAllocationLib
-I/home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib/DEBUG
-I/home/duser/src/edk2/MdePkg -I/home/duser/src/edk2/MdePkg/Include
-I/home/duser/src/edk2/MdePkg/Include/Ia32
/home/duser/src/edk2/MdePkg/Library/UefiMemoryAllocationLib/MemoryAllocationLib.c
"gcc-ar" cr /home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib/OUTPUT/UefiMemoryAllocationLib.lib
@/home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib/OUTPUT/object_files.lst
Building ... /home/duser/src/edk2/MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
[IA32]
"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=UefiRuntimeServicesTableLibStrings -m32
-march=i586 -malign-double -fno-stack-protector -D EFI32
-fno-asynchronous-unwind-tables -Wno-address -flto -Os -D
DISABLE_NEW_DEPRECATED_INTERFACES -c -o
/home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib/OUTPUT/./UefiRuntimeServicesTableLib.obj
-I/home/duser/src/edk2/MdePkg/Library/UefiRuntimeServicesTableLib
-I/home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib/DEBUG
-I/home/duser/src/edk2/MdePkg -I/home/duser/src/edk2/MdePkg/Include
-I/home/duser/src/edk2/MdePkg/Include/Ia32
/home/duser/src/edk2/MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.c
"gcc-ar" cr /home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib/OUTPUT/UefiRuntimeServicesTableLib.lib
@/home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib/OUTPUT/object_files.lst
Building ... /home/duser/src/edk2/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
[IA32]
"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=UefiDevicePathLibStrings
-m32 -march=i586 -malign-double -fno-stack-protector -D EFI32
-fno-asynchronous-unwind-tables -Wno-address -flto -Os -D
DISABLE_NEW_DEPRECATED_INTERFACES -c -o
/home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib/OUTPUT/./DevicePathUtilities.obj
-I/home/duser/src/edk2/MdePkg/Library/UefiDevicePathLib
-I/home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib/DEBUG
-I/home/duser/src/edk2/MdePkg -I/home/duser/src/edk2/MdePkg/Include
-I/home/duser/src/edk2/MdePkg/Include/Ia32
/home/duser/src/edk2/MdePkg/Library/UefiDevicePathLib/DevicePathUtilities.c
"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=UefiDevicePathLibStrings
-m32 -march=i586 -malign-double -fno-stack-protector -D EFI32
-fno-asynchronous-unwind-tables -Wno-address -flto -Os -D
DISABLE_NEW_DEPRECATED_INTERFACES -c -o
/home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib/OUTPUT/./DevicePathToText.obj
-I/home/duser/src/edk2/MdePkg/Library/UefiDevicePathLib
-I/home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib/DEBUG
-I/home/duser/src/edk2/MdePkg -I/home/duser/src/edk2/MdePkg/Include
-I/home/duser/src/edk2/MdePkg/Include/Ia32
/home/duser/src/edk2/MdePkg/Library/UefiDevicePathLib/DevicePathToText.c
build.py...
: error C0DE: Unknown fatal error when processing
[/home/duser/src/edk2/MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf]
(Please send email to edk2-devel@lists.01.org for help, attaching
following call stack trace!)
(Python 2.7.12 on linux2) Traceback (most recent call last):
File "/home/duser/src/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py",
line 2275, in Main
MyBuild.Launch()
File "/home/duser/src/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py",
line 2027, in Launch
self._MultiThreadBuildPlatform()
File "/home/duser/src/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py",
line 1862, in _MultiThreadBuildPlatform
Ma.CreateMakeFile(True)
File "/home/duser/src/edk2/BaseTools/Source/Python/AutoGen/AutoGen.py",
line 4087, in CreateMakeFile
LibraryAutoGen.CreateMakeFile()
File "/home/duser/src/edk2/BaseTools/Source/Python/AutoGen/AutoGen.py",
line 4093, in CreateMakeFile
if Makefile.Generate():
File "/home/duser/src/edk2/BaseTools/Source/Python/AutoGen/GenMake.py",
line 184, in Generate
FileContent = self._TEMPLATE_.Replace(self._TemplateDict)
File "/home/duser/src/edk2/BaseTools/Source/Python/AutoGen/GenMake.py",
line 526, in _CreateTemplateDict
RespDict = self.CommandExceedLimit()
File "/home/duser/src/edk2/BaseTools/Source/Python/AutoGen/GenMake.py",
line 714, in CommandExceedLimit
SingleCommandLength += len(self._AutoGenObject._BuildOption[Tool]['PATH'])
KeyError: 'PATH'
- Failed -
Build end time: 20:10:50, Jun.15 2017
Build total time: 00:00:22
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: build error on fresh download
2017-06-16 3:21 build error on fresh download Nick
@ 2017-06-16 3:33 ` Zhu, Yonghong
2017-06-16 4:25 ` Nick
0 siblings, 1 reply; 4+ messages in thread
From: Zhu, Yonghong @ 2017-06-16 3:33 UTC (permalink / raw)
To: Nick, edk2-devel@lists.01.org
Hi Nick,
Which OS are you use ? I will try to reproduce it on my local and investigate first.
Best Regards,
Zhu Yonghong
-----Original Message-----
From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Nick
Sent: Friday, June 16, 2017 11:22 AM
To: edk2-devel@lists.01.org
Subject: [edk2] build error on fresh download
I downloaded the latest edk2, following the instructions from:
https://github.com/tianocore/tianocore.github.io/wiki/Using-EDK-II-with-Native-GCC#Open_the_GNOME_Terminal_program
and
https://github.com/tianocore/tianocore.github.io/wiki/Common-instructions
I am getting this error on the initial build:
duser@duser-virtual-machine ~/src/edk2 $ build Build environment: Linux-4.4.0-21-generic-x86_64-with-LinuxMint-18-sarah
Build start time: 20:10:28, Jun.15 2017
WORKSPACE = /home/duser/src/edk2
ECP_SOURCE = /home/duser/src/edk2/EdkCompatibilityPkg
EDK_SOURCE = /home/duser/src/edk2/EdkCompatibilityPkg
EFI_SOURCE = /home/duser/src/edk2/EdkCompatibilityPkg
EDK_TOOLS_PATH = /home/duser/src/edk2/BaseTools
CONF_PATH = /home/duser/src/edk2/Conf
Architecture(s) = IA32 IPF EBC AARCH64 X64 ARM
Build target = DEBUG
Toolchain = GCC5
Active Platform = /home/duser/src/edk2/MdeModulePkg/MdeModulePkg.dsc
Processing meta-data ................... done!
Building ... /home/duser/src/edk2/MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
[IA32]
make: Nothing to be done for 'tbuild'.
Building ... /home/duser/src/edk2/MdePkg/Library/BasePrintLib/BasePrintLib.inf
[IA32]
make: Nothing to be done for 'tbuild'.
Building ... /home/duser/src/edk2/MdePkg/Library/BaseLib/BaseLib.inf [IA32]
make: Nothing to be done for 'tbuild'.
Building ... /home/duser/src/edk2/MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
[IA32]
make: Nothing to be done for 'tbuild'.
Building ... /home/duser/src/edk2/MdePkg/Library/UefiDebugLibStdErr/UefiDebugLibStdErr.inf
[IA32]
"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=UefiDebugLibStdErrStrings
-m32 -march=i586 -malign-double -fno-stack-protector -D EFI32 -fno-asynchronous-unwind-tables -Wno-address -flto -Os -D DISABLE_NEW_DEPRECATED_INTERFACES -c -o /home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/UefiDebugLibStdErr/UefiDebugLibStdErr/OUTPUT/./DebugLib.obj
-I/home/duser/src/edk2/MdePkg/Library/UefiDebugLibStdErr
-I/home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/UefiDebugLibStdErr/UefiDebugLibStdErr/DEBUG
-I/home/duser/src/edk2/MdePkg -I/home/duser/src/edk2/MdePkg/Include
-I/home/duser/src/edk2/MdePkg/Include/Ia32
/home/duser/src/edk2/MdePkg/Library/UefiDebugLibStdErr/DebugLib.c
"gcc-ar" cr /home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/UefiDebugLibStdErr/UefiDebugLibStdErr/OUTPUT/UefiDebugLibStdErr.lib
@/home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/UefiDebugLibStdErr/UefiDebugLibStdErr/OUTPUT/object_files.lst
Building ... /home/duser/src/edk2/MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
[IA32]
"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=BasePcdLibNullStrings -m32
-march=i586 -malign-double -fno-stack-protector -D EFI32 -fno-asynchronous-unwind-tables -Wno-address -flto -Os -D DISABLE_NEW_DEPRECATED_INTERFACES -c -o /home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/BasePcdLibNull/BasePcdLibNull/OUTPUT/./PcdLib.obj
-I/home/duser/src/edk2/MdePkg/Library/BasePcdLibNull
-I/home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/BasePcdLibNull/BasePcdLibNull/DEBUG
-I/home/duser/src/edk2/MdePkg -I/home/duser/src/edk2/MdePkg/Include
-I/home/duser/src/edk2/MdePkg/Include/Ia32
/home/duser/src/edk2/MdePkg/Library/BasePcdLibNull/PcdLib.c
"gcc-ar" cr /home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/BasePcdLibNull/BasePcdLibNull/OUTPUT/BasePcdLibNull.lib
@/home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/BasePcdLibNull/BasePcdLibNull/OUTPUT/object_files.lst
Building ... /home/duser/src/edk2/MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
[IA32]
"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=UefiBootServicesTableLibStrings -m32 -march=i586 -malign-double -fno-stack-protector -D EFI32 -fno-asynchronous-unwind-tables -Wno-address -flto -Os -D DISABLE_NEW_DEPRECATED_INTERFACES -c -o /home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib/OUTPUT/./UefiBootServicesTableLib.obj
-I/home/duser/src/edk2/MdePkg/Library/UefiBootServicesTableLib
-I/home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib/DEBUG
-I/home/duser/src/edk2/MdePkg -I/home/duser/src/edk2/MdePkg/Include
-I/home/duser/src/edk2/MdePkg/Include/Ia32
/home/duser/src/edk2/MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.c
"gcc-ar" cr /home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib/OUTPUT/UefiBootServicesTableLib.lib
@/home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib/OUTPUT/object_files.lst
Building ... /home/duser/src/edk2/MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
[IA32]
"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=UefiMemoryAllocationLibStrings -m32 -march=i586 -malign-double -fno-stack-protector -D EFI32 -fno-asynchronous-unwind-tables -Wno-address -flto -Os -D DISABLE_NEW_DEPRECATED_INTERFACES -c -o /home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib/OUTPUT/./MemoryAllocationLib.obj
-I/home/duser/src/edk2/MdePkg/Library/UefiMemoryAllocationLib
-I/home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib/DEBUG
-I/home/duser/src/edk2/MdePkg -I/home/duser/src/edk2/MdePkg/Include
-I/home/duser/src/edk2/MdePkg/Include/Ia32
/home/duser/src/edk2/MdePkg/Library/UefiMemoryAllocationLib/MemoryAllocationLib.c
"gcc-ar" cr /home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib/OUTPUT/UefiMemoryAllocationLib.lib
@/home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib/OUTPUT/object_files.lst
Building ... /home/duser/src/edk2/MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
[IA32]
"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=UefiRuntimeServicesTableLibStrings -m32
-march=i586 -malign-double -fno-stack-protector -D EFI32 -fno-asynchronous-unwind-tables -Wno-address -flto -Os -D DISABLE_NEW_DEPRECATED_INTERFACES -c -o /home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib/OUTPUT/./UefiRuntimeServicesTableLib.obj
-I/home/duser/src/edk2/MdePkg/Library/UefiRuntimeServicesTableLib
-I/home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib/DEBUG
-I/home/duser/src/edk2/MdePkg -I/home/duser/src/edk2/MdePkg/Include
-I/home/duser/src/edk2/MdePkg/Include/Ia32
/home/duser/src/edk2/MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.c
"gcc-ar" cr /home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib/OUTPUT/UefiRuntimeServicesTableLib.lib
@/home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib/OUTPUT/object_files.lst
Building ... /home/duser/src/edk2/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
[IA32]
"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=UefiDevicePathLibStrings
-m32 -march=i586 -malign-double -fno-stack-protector -D EFI32 -fno-asynchronous-unwind-tables -Wno-address -flto -Os -D DISABLE_NEW_DEPRECATED_INTERFACES -c -o /home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib/OUTPUT/./DevicePathUtilities.obj
-I/home/duser/src/edk2/MdePkg/Library/UefiDevicePathLib
-I/home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib/DEBUG
-I/home/duser/src/edk2/MdePkg -I/home/duser/src/edk2/MdePkg/Include
-I/home/duser/src/edk2/MdePkg/Include/Ia32
/home/duser/src/edk2/MdePkg/Library/UefiDevicePathLib/DevicePathUtilities.c
"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=UefiDevicePathLibStrings
-m32 -march=i586 -malign-double -fno-stack-protector -D EFI32 -fno-asynchronous-unwind-tables -Wno-address -flto -Os -D DISABLE_NEW_DEPRECATED_INTERFACES -c -o /home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib/OUTPUT/./DevicePathToText.obj
-I/home/duser/src/edk2/MdePkg/Library/UefiDevicePathLib
-I/home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib/DEBUG
-I/home/duser/src/edk2/MdePkg -I/home/duser/src/edk2/MdePkg/Include
-I/home/duser/src/edk2/MdePkg/Include/Ia32
/home/duser/src/edk2/MdePkg/Library/UefiDevicePathLib/DevicePathToText.c
build.py...
: error C0DE: Unknown fatal error when processing [/home/duser/src/edk2/MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf]
(Please send email to edk2-devel@lists.01.org for help, attaching following call stack trace!)
(Python 2.7.12 on linux2) Traceback (most recent call last):
File "/home/duser/src/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py",
line 2275, in Main
MyBuild.Launch()
File "/home/duser/src/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py",
line 2027, in Launch
self._MultiThreadBuildPlatform()
File "/home/duser/src/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py",
line 1862, in _MultiThreadBuildPlatform
Ma.CreateMakeFile(True)
File "/home/duser/src/edk2/BaseTools/Source/Python/AutoGen/AutoGen.py",
line 4087, in CreateMakeFile
LibraryAutoGen.CreateMakeFile()
File "/home/duser/src/edk2/BaseTools/Source/Python/AutoGen/AutoGen.py",
line 4093, in CreateMakeFile
if Makefile.Generate():
File "/home/duser/src/edk2/BaseTools/Source/Python/AutoGen/GenMake.py",
line 184, in Generate
FileContent = self._TEMPLATE_.Replace(self._TemplateDict)
File "/home/duser/src/edk2/BaseTools/Source/Python/AutoGen/GenMake.py",
line 526, in _CreateTemplateDict
RespDict = self.CommandExceedLimit()
File "/home/duser/src/edk2/BaseTools/Source/Python/AutoGen/GenMake.py",
line 714, in CommandExceedLimit
SingleCommandLength += len(self._AutoGenObject._BuildOption[Tool]['PATH'])
KeyError: 'PATH'
- Failed -
Build end time: 20:10:50, Jun.15 2017
Build total time: 00:00:22
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: build error on fresh download
2017-06-16 3:33 ` Zhu, Yonghong
@ 2017-06-16 4:25 ` Nick
2017-06-19 9:32 ` Zhu, Yonghong
0 siblings, 1 reply; 4+ messages in thread
From: Nick @ 2017-06-16 4:25 UTC (permalink / raw)
To: Zhu, Yonghong; +Cc: edk2-devel@lists.01.org
Thanks for your help!
duser@duser-virtual-machine ~/src/edk2 $ cat /etc/os-release
NAME="Linux Mint"
VERSION="18 (Sarah)"
ID=linuxmint
ID_LIKE=ubuntu
PRETTY_NAME="Linux Mint 18"
VERSION_ID="18"
HOME_URL="http://www.linuxmint.com/"
SUPPORT_URL="http://forums.linuxmint.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/linuxmint/"
UBUNTU_CODENAME=xenial
duser@duser-virtual-machine ~/src/edk2 $ uname -a
Linux duser-virtual-machine 4.4.0-21-generic #37-Ubuntu SMP Mon Apr 18
18:33:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
It is Mint, which shares all of the Ubuntu Xenial (16.04) packages.
On Thu, Jun 15, 2017 at 8:33 PM, Zhu, Yonghong <yonghong.zhu@intel.com> wrote:
> Hi Nick,
>
> Which OS are you use ? I will try to reproduce it on my local and investigate first.
>
> Best Regards,
> Zhu Yonghong
>
>
> -----Original Message-----
> From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Nick
> Sent: Friday, June 16, 2017 11:22 AM
> To: edk2-devel@lists.01.org
> Subject: [edk2] build error on fresh download
>
> I downloaded the latest edk2, following the instructions from:
>
> https://github.com/tianocore/tianocore.github.io/wiki/Using-EDK-II-with-Native-GCC#Open_the_GNOME_Terminal_program
>
> and
>
> https://github.com/tianocore/tianocore.github.io/wiki/Common-instructions
>
> I am getting this error on the initial build:
>
> duser@duser-virtual-machine ~/src/edk2 $ build Build environment: Linux-4.4.0-21-generic-x86_64-with-LinuxMint-18-sarah
> Build start time: 20:10:28, Jun.15 2017
>
> WORKSPACE = /home/duser/src/edk2
> ECP_SOURCE = /home/duser/src/edk2/EdkCompatibilityPkg
> EDK_SOURCE = /home/duser/src/edk2/EdkCompatibilityPkg
> EFI_SOURCE = /home/duser/src/edk2/EdkCompatibilityPkg
> EDK_TOOLS_PATH = /home/duser/src/edk2/BaseTools
> CONF_PATH = /home/duser/src/edk2/Conf
>
>
> Architecture(s) = IA32 IPF EBC AARCH64 X64 ARM
> Build target = DEBUG
> Toolchain = GCC5
>
> Active Platform = /home/duser/src/edk2/MdeModulePkg/MdeModulePkg.dsc
>
> Processing meta-data ................... done!
> Building ... /home/duser/src/edk2/MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
> [IA32]
> make: Nothing to be done for 'tbuild'.
> Building ... /home/duser/src/edk2/MdePkg/Library/BasePrintLib/BasePrintLib.inf
> [IA32]
> make: Nothing to be done for 'tbuild'.
> Building ... /home/duser/src/edk2/MdePkg/Library/BaseLib/BaseLib.inf [IA32]
> make: Nothing to be done for 'tbuild'.
> Building ... /home/duser/src/edk2/MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
> [IA32]
> make: Nothing to be done for 'tbuild'.
> Building ... /home/duser/src/edk2/MdePkg/Library/UefiDebugLibStdErr/UefiDebugLibStdErr.inf
> [IA32]
> "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=UefiDebugLibStdErrStrings
> -m32 -march=i586 -malign-double -fno-stack-protector -D EFI32 -fno-asynchronous-unwind-tables -Wno-address -flto -Os -D DISABLE_NEW_DEPRECATED_INTERFACES -c -o /home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/UefiDebugLibStdErr/UefiDebugLibStdErr/OUTPUT/./DebugLib.obj
> -I/home/duser/src/edk2/MdePkg/Library/UefiDebugLibStdErr
> -I/home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/UefiDebugLibStdErr/UefiDebugLibStdErr/DEBUG
> -I/home/duser/src/edk2/MdePkg -I/home/duser/src/edk2/MdePkg/Include
> -I/home/duser/src/edk2/MdePkg/Include/Ia32
> /home/duser/src/edk2/MdePkg/Library/UefiDebugLibStdErr/DebugLib.c
> "gcc-ar" cr /home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/UefiDebugLibStdErr/UefiDebugLibStdErr/OUTPUT/UefiDebugLibStdErr.lib
> @/home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/UefiDebugLibStdErr/UefiDebugLibStdErr/OUTPUT/object_files.lst
> Building ... /home/duser/src/edk2/MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
> [IA32]
> "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=BasePcdLibNullStrings -m32
> -march=i586 -malign-double -fno-stack-protector -D EFI32 -fno-asynchronous-unwind-tables -Wno-address -flto -Os -D DISABLE_NEW_DEPRECATED_INTERFACES -c -o /home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/BasePcdLibNull/BasePcdLibNull/OUTPUT/./PcdLib.obj
> -I/home/duser/src/edk2/MdePkg/Library/BasePcdLibNull
> -I/home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/BasePcdLibNull/BasePcdLibNull/DEBUG
> -I/home/duser/src/edk2/MdePkg -I/home/duser/src/edk2/MdePkg/Include
> -I/home/duser/src/edk2/MdePkg/Include/Ia32
> /home/duser/src/edk2/MdePkg/Library/BasePcdLibNull/PcdLib.c
> "gcc-ar" cr /home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/BasePcdLibNull/BasePcdLibNull/OUTPUT/BasePcdLibNull.lib
> @/home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/BasePcdLibNull/BasePcdLibNull/OUTPUT/object_files.lst
> Building ... /home/duser/src/edk2/MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
> [IA32]
> "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=UefiBootServicesTableLibStrings -m32 -march=i586 -malign-double -fno-stack-protector -D EFI32 -fno-asynchronous-unwind-tables -Wno-address -flto -Os -D DISABLE_NEW_DEPRECATED_INTERFACES -c -o /home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib/OUTPUT/./UefiBootServicesTableLib.obj
> -I/home/duser/src/edk2/MdePkg/Library/UefiBootServicesTableLib
> -I/home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib/DEBUG
> -I/home/duser/src/edk2/MdePkg -I/home/duser/src/edk2/MdePkg/Include
> -I/home/duser/src/edk2/MdePkg/Include/Ia32
> /home/duser/src/edk2/MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.c
> "gcc-ar" cr /home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib/OUTPUT/UefiBootServicesTableLib.lib
> @/home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib/OUTPUT/object_files.lst
> Building ... /home/duser/src/edk2/MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
> [IA32]
> "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=UefiMemoryAllocationLibStrings -m32 -march=i586 -malign-double -fno-stack-protector -D EFI32 -fno-asynchronous-unwind-tables -Wno-address -flto -Os -D DISABLE_NEW_DEPRECATED_INTERFACES -c -o /home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib/OUTPUT/./MemoryAllocationLib.obj
> -I/home/duser/src/edk2/MdePkg/Library/UefiMemoryAllocationLib
> -I/home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib/DEBUG
> -I/home/duser/src/edk2/MdePkg -I/home/duser/src/edk2/MdePkg/Include
> -I/home/duser/src/edk2/MdePkg/Include/Ia32
> /home/duser/src/edk2/MdePkg/Library/UefiMemoryAllocationLib/MemoryAllocationLib.c
> "gcc-ar" cr /home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib/OUTPUT/UefiMemoryAllocationLib.lib
> @/home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib/OUTPUT/object_files.lst
> Building ... /home/duser/src/edk2/MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
> [IA32]
> "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=UefiRuntimeServicesTableLibStrings -m32
> -march=i586 -malign-double -fno-stack-protector -D EFI32 -fno-asynchronous-unwind-tables -Wno-address -flto -Os -D DISABLE_NEW_DEPRECATED_INTERFACES -c -o /home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib/OUTPUT/./UefiRuntimeServicesTableLib.obj
> -I/home/duser/src/edk2/MdePkg/Library/UefiRuntimeServicesTableLib
> -I/home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib/DEBUG
> -I/home/duser/src/edk2/MdePkg -I/home/duser/src/edk2/MdePkg/Include
> -I/home/duser/src/edk2/MdePkg/Include/Ia32
> /home/duser/src/edk2/MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.c
> "gcc-ar" cr /home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib/OUTPUT/UefiRuntimeServicesTableLib.lib
> @/home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib/OUTPUT/object_files.lst
> Building ... /home/duser/src/edk2/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
> [IA32]
> "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=UefiDevicePathLibStrings
> -m32 -march=i586 -malign-double -fno-stack-protector -D EFI32 -fno-asynchronous-unwind-tables -Wno-address -flto -Os -D DISABLE_NEW_DEPRECATED_INTERFACES -c -o /home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib/OUTPUT/./DevicePathUtilities.obj
> -I/home/duser/src/edk2/MdePkg/Library/UefiDevicePathLib
> -I/home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib/DEBUG
> -I/home/duser/src/edk2/MdePkg -I/home/duser/src/edk2/MdePkg/Include
> -I/home/duser/src/edk2/MdePkg/Include/Ia32
> /home/duser/src/edk2/MdePkg/Library/UefiDevicePathLib/DevicePathUtilities.c
> "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=UefiDevicePathLibStrings
> -m32 -march=i586 -malign-double -fno-stack-protector -D EFI32 -fno-asynchronous-unwind-tables -Wno-address -flto -Os -D DISABLE_NEW_DEPRECATED_INTERFACES -c -o /home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib/OUTPUT/./DevicePathToText.obj
> -I/home/duser/src/edk2/MdePkg/Library/UefiDevicePathLib
> -I/home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib/DEBUG
> -I/home/duser/src/edk2/MdePkg -I/home/duser/src/edk2/MdePkg/Include
> -I/home/duser/src/edk2/MdePkg/Include/Ia32
> /home/duser/src/edk2/MdePkg/Library/UefiDevicePathLib/DevicePathToText.c
>
>
> build.py...
> : error C0DE: Unknown fatal error when processing [/home/duser/src/edk2/MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf]
>
> (Please send email to edk2-devel@lists.01.org for help, attaching following call stack trace!)
>
> (Python 2.7.12 on linux2) Traceback (most recent call last):
> File "/home/duser/src/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py",
> line 2275, in Main
> MyBuild.Launch()
> File "/home/duser/src/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py",
> line 2027, in Launch
> self._MultiThreadBuildPlatform()
> File "/home/duser/src/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py",
> line 1862, in _MultiThreadBuildPlatform
> Ma.CreateMakeFile(True)
> File "/home/duser/src/edk2/BaseTools/Source/Python/AutoGen/AutoGen.py",
> line 4087, in CreateMakeFile
> LibraryAutoGen.CreateMakeFile()
> File "/home/duser/src/edk2/BaseTools/Source/Python/AutoGen/AutoGen.py",
> line 4093, in CreateMakeFile
> if Makefile.Generate():
> File "/home/duser/src/edk2/BaseTools/Source/Python/AutoGen/GenMake.py",
> line 184, in Generate
> FileContent = self._TEMPLATE_.Replace(self._TemplateDict)
> File "/home/duser/src/edk2/BaseTools/Source/Python/AutoGen/GenMake.py",
> line 526, in _CreateTemplateDict
> RespDict = self.CommandExceedLimit()
> File "/home/duser/src/edk2/BaseTools/Source/Python/AutoGen/GenMake.py",
> line 714, in CommandExceedLimit
> SingleCommandLength += len(self._AutoGenObject._BuildOption[Tool]['PATH'])
> KeyError: 'PATH'
>
>
> - Failed -
> Build end time: 20:10:50, Jun.15 2017
> Build total time: 00:00:22
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.01.org
> https://lists.01.org/mailman/listinfo/edk2-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: build error on fresh download
2017-06-16 4:25 ` Nick
@ 2017-06-19 9:32 ` Zhu, Yonghong
0 siblings, 0 replies; 4+ messages in thread
From: Zhu, Yonghong @ 2017-06-19 9:32 UTC (permalink / raw)
To: Nick; +Cc: edk2-devel@lists.01.org, Zhu, Yonghong
Hi Nick,
The root cause is current GCC5 tool chain doesn't support the IPF and EBC arch. So I think you don't need to build this two arch on GCC5 tool chain.
Besides, I can enhance the error message to make it more clear.
Best Regards,
Zhu Yonghong
-----Original Message-----
From: Nick [mailto:ngolubev@gmail.com]
Sent: Friday, June 16, 2017 12:25 PM
To: Zhu, Yonghong <yonghong.zhu@intel.com>
Cc: edk2-devel@lists.01.org
Subject: Re: [edk2] build error on fresh download
Thanks for your help!
duser@duser-virtual-machine ~/src/edk2 $ cat /etc/os-release NAME="Linux Mint"
VERSION="18 (Sarah)"
ID=linuxmint
ID_LIKE=ubuntu
PRETTY_NAME="Linux Mint 18"
VERSION_ID="18"
HOME_URL="http://www.linuxmint.com/"
SUPPORT_URL="http://forums.linuxmint.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/linuxmint/"
UBUNTU_CODENAME=xenial
duser@duser-virtual-machine ~/src/edk2 $ uname -a Linux duser-virtual-machine 4.4.0-21-generic #37-Ubuntu SMP Mon Apr 18
18:33:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
It is Mint, which shares all of the Ubuntu Xenial (16.04) packages.
On Thu, Jun 15, 2017 at 8:33 PM, Zhu, Yonghong <yonghong.zhu@intel.com> wrote:
> Hi Nick,
>
> Which OS are you use ? I will try to reproduce it on my local and investigate first.
>
> Best Regards,
> Zhu Yonghong
>
>
> -----Original Message-----
> From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of
> Nick
> Sent: Friday, June 16, 2017 11:22 AM
> To: edk2-devel@lists.01.org
> Subject: [edk2] build error on fresh download
>
> I downloaded the latest edk2, following the instructions from:
>
> https://github.com/tianocore/tianocore.github.io/wiki/Using-EDK-II-wit
> h-Native-GCC#Open_the_GNOME_Terminal_program
>
> and
>
> https://github.com/tianocore/tianocore.github.io/wiki/Common-instructi
> ons
>
> I am getting this error on the initial build:
>
> duser@duser-virtual-machine ~/src/edk2 $ build Build environment:
> Linux-4.4.0-21-generic-x86_64-with-LinuxMint-18-sarah
> Build start time: 20:10:28, Jun.15 2017
>
> WORKSPACE = /home/duser/src/edk2
> ECP_SOURCE = /home/duser/src/edk2/EdkCompatibilityPkg
> EDK_SOURCE = /home/duser/src/edk2/EdkCompatibilityPkg
> EFI_SOURCE = /home/duser/src/edk2/EdkCompatibilityPkg
> EDK_TOOLS_PATH = /home/duser/src/edk2/BaseTools
> CONF_PATH = /home/duser/src/edk2/Conf
>
>
> Architecture(s) = IA32 IPF EBC AARCH64 X64 ARM
> Build target = DEBUG
> Toolchain = GCC5
>
> Active Platform = /home/duser/src/edk2/MdeModulePkg/MdeModulePkg.dsc
>
> Processing meta-data ................... done!
> Building ...
> /home/duser/src/edk2/MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDe
> bugPrintErrorLevelLib.inf
> [IA32]
> make: Nothing to be done for 'tbuild'.
> Building ...
> /home/duser/src/edk2/MdePkg/Library/BasePrintLib/BasePrintLib.inf
> [IA32]
> make: Nothing to be done for 'tbuild'.
> Building ... /home/duser/src/edk2/MdePkg/Library/BaseLib/BaseLib.inf
> [IA32]
> make: Nothing to be done for 'tbuild'.
> Building ...
> /home/duser/src/edk2/MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
> [IA32]
> make: Nothing to be done for 'tbuild'.
> Building ...
> /home/duser/src/edk2/MdePkg/Library/UefiDebugLibStdErr/UefiDebugLibStd
> Err.inf
> [IA32]
> "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=UefiDebugLibStdErrStrings
> -m32 -march=i586 -malign-double -fno-stack-protector -D EFI32
> -fno-asynchronous-unwind-tables -Wno-address -flto -Os -D
> DISABLE_NEW_DEPRECATED_INTERFACES -c -o
> /home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/Ue
> fiDebugLibStdErr/UefiDebugLibStdErr/OUTPUT/./DebugLib.obj
> -I/home/duser/src/edk2/MdePkg/Library/UefiDebugLibStdErr
> -I/home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/
> UefiDebugLibStdErr/UefiDebugLibStdErr/DEBUG
> -I/home/duser/src/edk2/MdePkg -I/home/duser/src/edk2/MdePkg/Include
> -I/home/duser/src/edk2/MdePkg/Include/Ia32
> /home/duser/src/edk2/MdePkg/Library/UefiDebugLibStdErr/DebugLib.c
> "gcc-ar" cr
> /home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/Ue
> fiDebugLibStdErr/UefiDebugLibStdErr/OUTPUT/UefiDebugLibStdErr.lib
>
> @/home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/U
> efiDebugLibStdErr/UefiDebugLibStdErr/OUTPUT/object_files.lst
> Building ...
> /home/duser/src/edk2/MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
> [IA32]
> "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=BasePcdLibNullStrings -m32
> -march=i586 -malign-double -fno-stack-protector -D EFI32
> -fno-asynchronous-unwind-tables -Wno-address -flto -Os -D
> DISABLE_NEW_DEPRECATED_INTERFACES -c -o
> /home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/Ba
> sePcdLibNull/BasePcdLibNull/OUTPUT/./PcdLib.obj
> -I/home/duser/src/edk2/MdePkg/Library/BasePcdLibNull
> -I/home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/
> BasePcdLibNull/BasePcdLibNull/DEBUG
> -I/home/duser/src/edk2/MdePkg -I/home/duser/src/edk2/MdePkg/Include
> -I/home/duser/src/edk2/MdePkg/Include/Ia32
> /home/duser/src/edk2/MdePkg/Library/BasePcdLibNull/PcdLib.c
> "gcc-ar" cr
> /home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/Ba
> sePcdLibNull/BasePcdLibNull/OUTPUT/BasePcdLibNull.lib
>
> @/home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/B
> asePcdLibNull/BasePcdLibNull/OUTPUT/object_files.lst
> Building ...
> /home/duser/src/edk2/MdePkg/Library/UefiBootServicesTableLib/UefiBootS
> ervicesTableLib.inf
> [IA32]
> "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=UefiBootServicesTableLibStrings -m32 -march=i586
> -malign-double -fno-stack-protector -D EFI32
> -fno-asynchronous-unwind-tables -Wno-address -flto -Os -D
> DISABLE_NEW_DEPRECATED_INTERFACES -c -o
> /home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/Ue
> fiBootServicesTableLib/UefiBootServicesTableLib/OUTPUT/./UefiBootServi
> cesTableLib.obj
> -I/home/duser/src/edk2/MdePkg/Library/UefiBootServicesTableLib
> -I/home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/
> UefiBootServicesTableLib/UefiBootServicesTableLib/DEBUG
> -I/home/duser/src/edk2/MdePkg -I/home/duser/src/edk2/MdePkg/Include
> -I/home/duser/src/edk2/MdePkg/Include/Ia32
> /home/duser/src/edk2/MdePkg/Library/UefiBootServicesTableLib/UefiBootS
> ervicesTableLib.c "gcc-ar" cr
> /home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/Ue
> fiBootServicesTableLib/UefiBootServicesTableLib/OUTPUT/UefiBootService
> sTableLib.lib
> @/home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/U
> efiBootServicesTableLib/UefiBootServicesTableLib/OUTPUT/object_files.l
> st Building ...
> /home/duser/src/edk2/MdePkg/Library/UefiMemoryAllocationLib/UefiMemory
> AllocationLib.inf
> [IA32]
> "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=UefiMemoryAllocationLibStrings -m32 -march=i586
> -malign-double -fno-stack-protector -D EFI32
> -fno-asynchronous-unwind-tables -Wno-address -flto -Os -D
> DISABLE_NEW_DEPRECATED_INTERFACES -c -o
> /home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/Ue
> fiMemoryAllocationLib/UefiMemoryAllocationLib/OUTPUT/./MemoryAllocatio
> nLib.obj -I/home/duser/src/edk2/MdePkg/Library/UefiMemoryAllocationLib
> -I/home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/
> UefiMemoryAllocationLib/UefiMemoryAllocationLib/DEBUG
> -I/home/duser/src/edk2/MdePkg -I/home/duser/src/edk2/MdePkg/Include
> -I/home/duser/src/edk2/MdePkg/Include/Ia32
> /home/duser/src/edk2/MdePkg/Library/UefiMemoryAllocationLib/MemoryAllo
> cationLib.c "gcc-ar" cr
> /home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/Ue
> fiMemoryAllocationLib/UefiMemoryAllocationLib/OUTPUT/UefiMemoryAllocat
> ionLib.lib
> @/home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/U
> efiMemoryAllocationLib/UefiMemoryAllocationLib/OUTPUT/object_files.lst
> Building ...
> /home/duser/src/edk2/MdePkg/Library/UefiRuntimeServicesTableLib/UefiRu
> ntimeServicesTableLib.inf
> [IA32]
> "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=UefiRuntimeServicesTableLibStrings -m32
> -march=i586 -malign-double -fno-stack-protector -D EFI32
> -fno-asynchronous-unwind-tables -Wno-address -flto -Os -D
> DISABLE_NEW_DEPRECATED_INTERFACES -c -o
> /home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/Ue
> fiRuntimeServicesTableLib/UefiRuntimeServicesTableLib/OUTPUT/./UefiRun
> timeServicesTableLib.obj
> -I/home/duser/src/edk2/MdePkg/Library/UefiRuntimeServicesTableLib
> -I/home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/
> UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib/DEBUG
> -I/home/duser/src/edk2/MdePkg -I/home/duser/src/edk2/MdePkg/Include
> -I/home/duser/src/edk2/MdePkg/Include/Ia32
> /home/duser/src/edk2/MdePkg/Library/UefiRuntimeServicesTableLib/UefiRu
> ntimeServicesTableLib.c "gcc-ar" cr
> /home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/Ue
> fiRuntimeServicesTableLib/UefiRuntimeServicesTableLib/OUTPUT/UefiRunti
> meServicesTableLib.lib
> @/home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/U
> efiRuntimeServicesTableLib/UefiRuntimeServicesTableLib/OUTPUT/object_f
> iles.lst Building ...
> /home/duser/src/edk2/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLi
> b.inf
> [IA32]
> "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=UefiDevicePathLibStrings
> -m32 -march=i586 -malign-double -fno-stack-protector -D EFI32
> -fno-asynchronous-unwind-tables -Wno-address -flto -Os -D
> DISABLE_NEW_DEPRECATED_INTERFACES -c -o
> /home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/Ue
> fiDevicePathLib/UefiDevicePathLib/OUTPUT/./DevicePathUtilities.obj
> -I/home/duser/src/edk2/MdePkg/Library/UefiDevicePathLib
> -I/home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/
> UefiDevicePathLib/UefiDevicePathLib/DEBUG
> -I/home/duser/src/edk2/MdePkg -I/home/duser/src/edk2/MdePkg/Include
> -I/home/duser/src/edk2/MdePkg/Include/Ia32
> /home/duser/src/edk2/MdePkg/Library/UefiDevicePathLib/DevicePathUtilit
> ies.c "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=UefiDevicePathLibStrings
> -m32 -march=i586 -malign-double -fno-stack-protector -D EFI32
> -fno-asynchronous-unwind-tables -Wno-address -flto -Os -D
> DISABLE_NEW_DEPRECATED_INTERFACES -c -o
> /home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/Ue
> fiDevicePathLib/UefiDevicePathLib/OUTPUT/./DevicePathToText.obj
> -I/home/duser/src/edk2/MdePkg/Library/UefiDevicePathLib
> -I/home/duser/src/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdePkg/Library/
> UefiDevicePathLib/UefiDevicePathLib/DEBUG
> -I/home/duser/src/edk2/MdePkg -I/home/duser/src/edk2/MdePkg/Include
> -I/home/duser/src/edk2/MdePkg/Include/Ia32
> /home/duser/src/edk2/MdePkg/Library/UefiDevicePathLib/DevicePathToText
> .c
>
>
> build.py...
> : error C0DE: Unknown fatal error when processing
> [/home/duser/src/edk2/MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseD
> ebugPrintErrorLevelLib.inf]
>
> (Please send email to edk2-devel@lists.01.org for help, attaching
> following call stack trace!)
>
> (Python 2.7.12 on linux2) Traceback (most recent call last):
> File
> "/home/duser/src/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Pyt
> hon/build/build.py",
> line 2275, in Main
> MyBuild.Launch()
> File
> "/home/duser/src/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Pyt
> hon/build/build.py",
> line 2027, in Launch
> self._MultiThreadBuildPlatform()
> File
> "/home/duser/src/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Pyt
> hon/build/build.py", line 1862, in _MultiThreadBuildPlatform
> Ma.CreateMakeFile(True)
> File
> "/home/duser/src/edk2/BaseTools/Source/Python/AutoGen/AutoGen.py",
> line 4087, in CreateMakeFile
> LibraryAutoGen.CreateMakeFile()
> File
> "/home/duser/src/edk2/BaseTools/Source/Python/AutoGen/AutoGen.py",
> line 4093, in CreateMakeFile
> if Makefile.Generate():
> File
> "/home/duser/src/edk2/BaseTools/Source/Python/AutoGen/GenMake.py",
> line 184, in Generate
> FileContent = self._TEMPLATE_.Replace(self._TemplateDict)
> File
> "/home/duser/src/edk2/BaseTools/Source/Python/AutoGen/GenMake.py",
> line 526, in _CreateTemplateDict
> RespDict = self.CommandExceedLimit()
> File
> "/home/duser/src/edk2/BaseTools/Source/Python/AutoGen/GenMake.py",
> line 714, in CommandExceedLimit
> SingleCommandLength +=
> len(self._AutoGenObject._BuildOption[Tool]['PATH'])
> KeyError: 'PATH'
>
>
> - Failed -
> Build end time: 20:10:50, Jun.15 2017
> Build total time: 00:00:22
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.01.org
> https://lists.01.org/mailman/listinfo/edk2-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-06-19 9:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-16 3:21 build error on fresh download Nick
2017-06-16 3:33 ` Zhu, Yonghong
2017-06-16 4:25 ` Nick
2017-06-19 9:32 ` Zhu, Yonghong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox