public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* error C0DE: Unknown fatal error when processing
@ 2018-02-13 15:44 Hristo Mihaylov
  2018-02-13 18:37 ` Laszlo Ersek
  0 siblings, 1 reply; 2+ messages in thread
From: Hristo Mihaylov @ 2018-02-13 15:44 UTC (permalink / raw)
  To: edk2-devel

Hello,

I just hit this and it told me to send you the stack trace. I think it's due to the fact that I created an empty FDF file.

```
hrimih@lnxclnt2002:~/work/edk2.git$ build clean && build && cp Build/Hvmf/DEBUG_GCC5/X64/HelloWorld.efi ~/work/ovmf/hda-contents
Build environment: Linux-4.9.0-5-amd64-x86_64-with-debian-9.3
Build start time: 16:36:02, Feb.13 2018

WORKSPACE        = /home/hrimih/work/edk2.git
ECP_SOURCE       = /home/hrimih/work/edk2.git/EdkCompatibilityPkg
EDK_SOURCE       = /home/hrimih/work/edk2.git/EdkCompatibilityPkg
EFI_SOURCE       = /home/hrimih/work/edk2.git/EdkCompatibilityPkg
EDK_TOOLS_PATH   = /home/hrimih/work/edk2.git/BaseTools
CONF_PATH        = /home/hrimih/work/edk2.git/Conf


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

Active Platform          = /home/hrimih/work/edk2.git/HvmfPkg/HvmfPkg.dsc
Flash Image Definition   = /home/hrimih/work/edk2.git/HvmfPkg/HvmfPkg.fdf

Processing meta-data


build.py...
  : error C0DE: Unknown fatal error when processing [/home/hrimih/work/edk2.git/HvmfPkg/HvmfPkg.dsc]

(Please send email to edk2-devel@lists.01.org for help, attaching following call stack trace!)

(Python 2.7.13 on linux2) Traceback (most recent call last):
   File "/home/hrimih/work/edk2.git/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 2488, in Main
     MyBuild.Launch()
   File "/home/hrimih/work/edk2.git/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 2219, in Launch
     self._BuildPlatform()
   File "/home/hrimih/work/edk2.git/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 1743, in _BuildPlatform
     self.Progress
   File "/home/hrimih/work/edk2.git/BaseTools/Source/Python/AutoGen/AutoGen.py", line 184, in __new__
     if not AutoGenObject._Init(Workspace, MetaFile, Target, Toolchain, Arch, *args, **kwargs):
   File "/home/hrimih/work/edk2.git/BaseTools/Source/Python/AutoGen/AutoGen.py", line 330, in _Init
     Fdf.ParseFile()
   File "/home/hrimih/work/edk2.git/BaseTools/Source/Python/GenFds/FdfParser.py", line 1410, in ParseFile
     self.Preprocess()
   File "/home/hrimih/work/edk2.git/BaseTools/Source/Python/GenFds/FdfParser.py", line 1386, in Preprocess
     self.__StringToList()
   File "/home/hrimih/work/edk2.git/BaseTools/Source/Python/GenFds/FdfParser.py", line 448, in __StringToList
     self.Profile.FileLinesList[-1].append(' ')
IndexError: list index out of range


- Failed -
Build end time: 16:36:03, Feb.13 2018
Build total time: 00:00:01
```

-- 
Regards,
Hristo Mihaylov

Designer
Prodrive Technologies B.V.
Mobile: +31 64 68 58 953
Phone:  +31 64 68 58 953


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

* Re: error C0DE: Unknown fatal error when processing
  2018-02-13 15:44 error C0DE: Unknown fatal error when processing Hristo Mihaylov
@ 2018-02-13 18:37 ` Laszlo Ersek
  0 siblings, 0 replies; 2+ messages in thread
From: Laszlo Ersek @ 2018-02-13 18:37 UTC (permalink / raw)
  To: Hristo Mihaylov; +Cc: edk2-devel

Hi Hristo,

On 02/13/18 16:44, Hristo Mihaylov wrote:
> Hello,
> 
> I just hit this and it told me to send you the stack trace. I think it's
> due to the fact that I created an empty FDF file.
> 
> ```
> hrimih@lnxclnt2002:~/work/edk2.git$ build clean && build && cp
> Build/Hvmf/DEBUG_GCC5/X64/HelloWorld.efi ~/work/ovmf/hda-contents

[...]

> Active Platform          = /home/hrimih/work/edk2.git/HvmfPkg/HvmfPkg.dsc
> Flash Image Definition   = /home/hrimih/work/edk2.git/HvmfPkg/HvmfPkg.fdf

If you only want to build EFI binaries in your platform DSC file, then
you don't need an FDF file. Simply remove the FLASH_DEFINITION entry
from the [Defines] section of the DSC file.

edk2 contains several DSC files that only build EFI binaries, and no
flash images; for example:
- AppPkg/AppPkg.dsc
- ShellPkg/ShellPkg.dsc


If you want to build only one EFI file (regardless of whether you have a
FLASH_DEFINITION setting in your DSC file, or not), then you can pass the

  --module=Relative/Path/To/Module.inf

option to the "build" utility. Then "build" will only build "Module.inf".

Thanks
Laszlo


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

end of thread, other threads:[~2018-02-13 18:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-13 15:44 error C0DE: Unknown fatal error when processing Hristo Mihaylov
2018-02-13 18:37 ` Laszlo Ersek

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