From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yb0-x234.google.com (mail-yb0-x234.google.com [IPv6:2607:f8b0:4002:c09::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id C1DD41A1E60 for ; Wed, 14 Sep 2016 08:05:17 -0700 (PDT) Received: by mail-yb0-x234.google.com with SMTP id i66so13631102yba.0 for ; Wed, 14 Sep 2016 08:05:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:references:in-reply-to:mime-version:thread-index:date :message-id:subject:to:cc; bh=TcJkPB1d+gD2PxWeb103VKhDHvt93jUT1taDjNqjyzs=; b=aNHQALPiJsfX+HHn3Si512G+3ncEUFKoic+avsItriYN3/Vh1FTgsnkayhTAOax0c5 yRxa+HNYDqVtYD9qM8LJCNRoodNNdINLh6oUV3zKT+I3Prm/E9SnDPAgW4lJ42HAVVu+ lVEAwloh6/rbL53LNrRxWdyMl51gqsAHAH6x8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:references:in-reply-to:mime-version :thread-index:date:message-id:subject:to:cc; bh=TcJkPB1d+gD2PxWeb103VKhDHvt93jUT1taDjNqjyzs=; b=Lqvp7RjcXl6uyuPyq5CMudHrVrrxcR/ZsBgOEwj4GN7GXqeXWR23rwGyutBZZo59Ca DFxsSVzbFOnnxp8jCieUhIKxHBn120HRBS1qBMS2t7itK7m3B0CmbFPTOLs65She0JaA h9bpq1WmdJdnsiyQcDOLSL5OnL0iRb2YBXb6A6eI6Kb2iKqz0vkK+jfc88vbB5BNlaWc 8RKC1GUcws0AFKOSvNfA/0uZLSJpv3yujUI8AGCRTIwy9hLn0mhdpY9vDVUMAX+D03ya syspOuUcqJDQkPCsTtQE9LHCoPj2RmnRx4rTg/mDbwvEzoQBiAXTb0M8OVSXbYTU5HGs +MRw== X-Gm-Message-State: AE9vXwOj2QlErSBviv6pO0wggBfZutXARpvRjSDfPRouxrMIpGw4YHdO/l3cdYGOV69p2kJmR4Lug1+fZotaU4I8 X-Received: by 10.129.136.199 with SMTP id y190mr3131504ywf.198.1473865512963; Wed, 14 Sep 2016 08:05:12 -0700 (PDT) From: Vladimir Olovyannikov References: <10f6991b5b8925ea4823ad424dc70f56@mail.gmail.com> <4A89E2EF3DFEDB4C8BFDE51014F606A14B3E7995@shsmsx102.ccr.corp.intel.com> <4A89E2EF3DFEDB4C8BFDE51014F606A14B3E79B9@shsmsx102.ccr.corp.intel.com> In-Reply-To: <4A89E2EF3DFEDB4C8BFDE51014F606A14B3E79B9@shsmsx102.ccr.corp.intel.com> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQEYQuTeFLAnrJVIAWCkAoymRiWmWwF7SDLTAahgQB8CoghxgKG+fnww Date: Wed, 14 Sep 2016 08:05:11 -0700 Message-ID: To: "Gao, Liming" Cc: "edk2-devel@lists.01.org" X-Content-Filtered-By: Mailman/MimeDel 2.1.21 Subject: Re: GenFds.py error CODE: Tools code failure X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Sep 2016 15:05:18 -0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Liming, Exactly. I added the .inf file for the shell application I worked on, thinking that it would be an .efi file, and only later I recognized it should actually be a Shell library (I derived from tftp command source as an example)=E2=80=A6 Thank you, Vladimir *From:* Gao, Liming [mailto:liming.gao@intel.com] *Sent:* Tuesday, September 13, 2016 8:23 PM *To:* Vladimir Olovyannikov *Cc:* edk2-devel@lists.01.org *Subject:* RE: [edk2] GenFds.py error CODE: Tools code failure Vladimir: You add one library INF into FDF file, then cause this issue? Thanks Liming *From:* Vladimir Olovyannikov [mailto:vladimir.olovyannikov@broadcom.com] *Sent:* Wednesday, September 14, 2016 11:20 AM *To:* Gao, Liming *Cc:* edk2-devel@lists.01.org *Subject:* RE: [edk2] GenFds.py error CODE: Tools code failure Hi, Thanks for reply. I found the reason: I should have add the Shell application (which is actually a library) to the ShellPkg instead of trying to add it in the .fdf. Thank you, Vladimir On Sep 13, 2016 8:17 PM, "Gao, Liming" wrote: Hi, The below message is caused by the missing map file of the driver. In build output directory /uefi/Build/NS2Pkg/DEBUG_GCC5, please check whether the map file is generated for each driver. Thanks Liming > -----Original Message----- > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of > Vladimir Olovyannikov > Sent: Wednesday, September 14, 2016 3:51 AM > To: edk2-devel@ml01.01.org > Subject: [edk2] GenFds.py error CODE: Tools code failure > > Hello, > > I have just got this error building UEFI for AARCH64. > > Here is an excerpt from the output: > > Fd File Name:BL33_AP_UEFI > > Generate Region at Offset 0x0 > Region Size =3D 0xF0000 > Region Name =3D FV > > Generating FVMAIN_COMPACT FV > #### > Generating FVMAIN FV > #################################### > ######################################## > ######################################## > > > GenFds.py... > : error C0DE: Tools code failure > Please send email to edk2-devel@lists.01.org for help, attaching > following call stack trace! > > Traceback (most recent call last): > File > "/uefi/BaseTools/BinWrappers/PosixLike/../../Source/Python/GenFds/GenF > ds.p > y", line 307, in main > GenFds.GenFd('', FdfParserObj, BuildWorkSpace, ArchList) > File > "/uefi/BaseTools/BinWrappers/PosixLike/../../Source/Python/GenFds/GenF > ds.p > y", line 553, in GenFd > FdObj.GenFd() > File "/uefi/BaseTools/Source/Python/GenFds/Fd.py", line 93, in GenFd > RegionObj.AddToBuffer (TempFdBuffer, self.BaseAddress, > self.BlockSizeList, self.ErasePolarity, GenFds.ImageBinDict, > self.vtfRawDict, self.DefineVarDict) > File "/uefi/BaseTools/Source/Python/GenFds/Region.py", line 127, in > AddToBuffer > FvObj.AddToBuffer(FvBuffer, FvBaseAddress, BlockSize, BlockNum, > ErasePolarity, vtfDict) > File "/uefi/BaseTools/Source/Python/GenFds/Fv.py", line 115, in > AddToBuffer > FileName =3D FfsFile.GenFfs(MacroDict, FvParentAddr=3DBaseAddress) > File "/uefi/BaseTools/Source/Python/GenFds/FfsFileStatement.py", line > 156, in GenFfs > sectList, align =3D section.GenSection(OutputDir, self.NameGuid, > SecIndex, self.KeyStringList, None, Dict) > File "/uefi/BaseTools/Source/Python/GenFds/GuidSection.py", line 97, in > GenSection > ReturnSectList, align =3D Sect.GenSection(OutputPath, ModuleName, > SecIndex, KeyStringList, FfsInf, Dict) > File "/uefi/BaseTools/Source/Python/GenFds/FvImageSection.py", line 101= , > in GenSection > FvFileName =3D Fv.AddToBuffer(Buffer, self.FvAddr, MacroDict =3D Dict= ) > File "/uefi/BaseTools/Source/Python/GenFds/Fv.py", line 115, in > AddToBuffer > FileName =3D FfsFile.GenFfs(MacroDict, FvParentAddr=3DBaseAddress) > File "/uefi/BaseTools/Source/Python/GenFds/FfsInfStatement.py", line > 480, in GenFfs > InputSectList, InputSectAlignments =3D > self.__GenComplexFileSection__(Rule, FvChildAddr, FvParentAddr) > File "/uefi/BaseTools/Source/Python/GenFds/FfsInfStatement.py", line > 948, in __GenComplexFileSection__ > self.__GenUniVfrOffsetFile (VfrUniOffsetList, UniVfrOffsetFileName) > File "/uefi/BaseTools/Source/Python/GenFds/FfsInfStatement.py", line > 1052, in __GenUniVfrOffsetFile > for Item in VfrUniOffsetList: > TypeError: 'NoneType' object is not iterable > > ################# > > > build.py... > : error 7000: Failed to execute command > GenFds -f /uefi/BroadcomPlatformPkg/NS2Pkg/NS2Pkg.fdf > --conf=3D/uefi/Conf -o /uefi/Build/NS2Pkg/DEBUG_GCC5 -t GCC5 -b DEBUG -p > /uefi/BroadcomPlatformPkg/NS2Pkg/NS2Pkg.dsc -a AARCH64 -D > "EFI_SOURCE=3D/uefi/EdkCompatibilityPkg" -D > "EDK_SOURCE=3D/uefi/EdkCompatibilityPkg" -D "TOOL_CHAIN_TAG=3DGCC5" -D > "TOOLCHAIN=3DGCC5" -D "TARGET=3DDEBUG" -D "FAMILY=3DGCC" -D > "WORKSPACE=3D/uefi" -D > "EDK_TOOLS_PATH=3D/uefi/BaseTools" -D "ARCH=3DAARCH64" -D > "ECP_SOURCE=3D/uefi/EdkCompatibilityPkg" [/uefi] > > - Failed - > > Please let me know if any other information is needed to identify the > reason of the error. > > Thank you, > Vladimir > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel