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:ngolu...@gmail.com] Sent: Friday, June 16, 2017 12:25 PM To: Zhu, Yonghong <yonghong....@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....@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-boun...@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 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel