Re: [edk2] error C0DE: Unknown fatal error when processing

2018-02-13 Thread Laszlo Ersek
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
___
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel


[edk2] error C0DE: Unknown fatal error when processing

2018-02-13 Thread Hristo Mihaylov

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
___
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel