public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [edk2-devel] failure in build
@ 2023-10-12 15:08 Matthew Gillman via groups.io
  2023-10-12 16:56 ` Matthew Gillman via groups.io
  0 siblings, 1 reply; 2+ messages in thread
From: Matthew Gillman via groups.io @ 2023-10-12 15:08 UTC (permalink / raw)
  To: devel@edk2.groups.io

[-- Attachment #1: Type: text/plain, Size: 8342 bytes --]

Hi

I just experienced a build failure.

Please see below:



Build environment: Linux-6.2.0-34-generic-x86_64-with-glibc2.35
Build start time: 16:03:02, Oct.12 2023

WORKSPACE        = /home/matt/repos/bios_stuff/edk2
EDK_TOOLS_PATH   = /home/matt/repos/bios_stuff/edk2/BaseTools
CONF_PATH        = /home/matt/repos/bios_stuff/edk2/Conf
PYTHON_COMMAND   = python3

Processing meta-data
.
Architecture(s)  = X64
Build target     = RELEASE
Toolchain        = GCC5

Active Platform          = /home/matt/repos/bios_stuff/edk2/Image.dsc
Active Module            = /home/matt/repos/bios_stuff/edk2/Image.inf

FLASH_DEFINITION = None

Library instances of module [/home/matt/repos/bios_stuff/edk2/Image.inf] [X64]:
      BaseLib : /home/matt/repos/bios_stuff/edk2/MdePkg/Library/BaseLib/BaseLib.inf
      BaseMemoryLib : /home/matt/repos/bios_stuff/edk2/MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
      DebugLib : /home/matt/repos/bios_stuff/edk2/MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
      DevicePathLib : /home/matt/repos/bios_stuff/edk2/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
      DxeServicesLib : /home/matt/repos/bios_stuff/edk2/MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
      MemoryAllocationLib : /home/matt/repos/bios_stuff/edk2/MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
      PcdLib : /home/matt/repos/bios_stuff/edk2/MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
      PrintLib : /home/matt/repos/bios_stuff/edk2/MdePkg/Library/BasePrintLib/BasePrintLib.inf
      RegisterFilterLib : /home/matt/repos/bios_stuff/edk2/MdePkg/Library/RegisterFilterLibNull/RegisterFilterLibNull.inf
      ShellCEntryLib : /home/matt/repos/bios_stuff/edk2/ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
      ShellLib : /home/matt/repos/bios_stuff/edk2/ShellPkg/Library/UefiShellLib/UefiShellLib.inf
      UefiApplicationEntryPoint : /home/matt/repos/bios_stuff/edk2/MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
      UefiBootServicesTableLib : /home/matt/repos/bios_stuff/edk2/MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
      UefiLib : /home/matt/repos/bios_stuff/edk2/MdePkg/Library/UefiLib/UefiLib.inf
      UefiRuntimeServicesTableLib : /home/matt/repos/bios_stuff/edk2/MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf



build.py...
 : error C0DE: Unknown fatal error when processing [/home/matt/repos/bios_stuff/edk2/Image.dsc]
      
(Please send email to devel@edk2.groups.io for help, attaching following call stack trace!)

(Python 3.10.12 on linux) Traceback (most recent call last):
  File "/home/matt/repos/bios_stuff/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 2695, in Main
    MyBuild.Launch()
  File "/home/matt/repos/bios_stuff/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 2493, in Launch
    self._BuildModule()
  File "/home/matt/repos/bios_stuff/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 1882, in _BuildModule
    Wa = WorkspaceAutoGen(
  File "/home/matt/repos/bios_stuff/edk2/BaseTools/Source/Python/AutoGen/WorkspaceAutoGen.py", line 43, in __init__
    self._InitWorker(Workspace, MetaFile, Target, Toolchain, Arch, *args, **kwargs)
  File "/home/matt/repos/bios_stuff/edk2/BaseTools/Source/Python/AutoGen/WorkspaceAutoGen.py", line 117, in _InitWorker
    self.ProcessPcdType()
  File "/home/matt/repos/bios_stuff/edk2/BaseTools/Source/Python/AutoGen/WorkspaceAutoGen.py", line 264, in ProcessPcdType
    Platform.Pcds
  File "/home/matt/repos/bios_stuff/edk2/BaseTools/Source/Python/Workspace/DscBuildData.py", line 1220, in Pcds
    self._Pcds = self.UpdateStructuredPcds(MODEL_PCD_TYPE_LIST, self._Pcds)
  File "/home/matt/repos/bios_stuff/edk2/BaseTools/Source/Python/Workspace/DscBuildData.py", line 1545, in UpdateStructuredPcds
    for Pcd in self.DecPcds:
  File "/home/matt/repos/bios_stuff/edk2/BaseTools/Source/Python/Workspace/DscBuildData.py", line 3585, in DecPcds
    self._DecPcds, self._GuidDict = GetDeclaredPcd(self, self._Bdb, self._Arch, self._Target, self._Toolchain, PkgSet)
  File "/home/matt/repos/bios_stuff/edk2/BaseTools/Source/Python/Workspace/WorkspaceCommon.py", line 60, in GetDeclaredPcd
    PkgList = GetPackageList(Platform, BuildDatabase, Arch, Target, Toolchain)
  File "/home/matt/repos/bios_stuff/edk2/BaseTools/Source/Python/Workspace/WorkspaceCommon.py", line 45, in GetPackageList
    for Lib in GetLiabraryInstances(Data, Platform, BuildDatabase, Arch, Target, Toolchain):
  File "/home/matt/repos/bios_stuff/edk2/BaseTools/Source/Python/Workspace/WorkspaceCommon.py", line 91, in GetLiabraryInstances
    return GetModuleLibInstances(Module, Platform, BuildDatabase, Arch, Target, Toolchain,Platform.MetaFile,EdkLogger)
  File "/home/matt/repos/bios_stuff/edk2/BaseTools/Source/Python/Workspace/WorkspaceCommon.py", line 140, in GetModuleLibInstances
    LibraryModule = BuildDatabase[LibraryPath, Arch, Target, Toolchain]
  File "/home/matt/repos/bios_stuff/edk2/BaseTools/Source/Python/Workspace/WorkspaceDatabase.py", line 104, in __getitem__
    BuildObject = self.CreateBuildObject(FilePath, Arch, Target, Toolchain)
  File "/home/matt/repos/bios_stuff/edk2/BaseTools/Source/Python/Workspace/WorkspaceDatabase.py", line 108, in CreateBuildObject
    Ext = FilePath.Type
AttributeError: 'str' object has no attribute 'Type'


- Failed -
Build end time: 16:03:02, Oct.12 2023
Build total time: 00:00:00



Any ideas what is wrong?

Thanks

Matthew


Matthew Gillman BSc(Hons) MSc MSc GradCert AFHEA
Software Developer

Akhter Computers Ltd.
1-3 Marshgate Business Centre,
Harlow Business Park,
Parkway
Harlow
Essex
CM19 5QP<https://www.google.co.uk/maps/place/Akhter+House,+Perry+Rd,+Harlow+CM18+7PN/@51.7510724,0.0882908,17z/data=!3m1!4b1!4m5!3m4!1s0x47d89eb46c521ccf:0x46f846b47af76373!8m2!3d51.7511108!4d0.0904714?dcr=0>

Direct dial: +44 (0)1279 821202
Switchboard: +44 (0)1279 821200
Website: https://www.akhter.co.uk/

VAT number 445788349

Please note that my usual working days are Tuesday-Thursday.

Disclaimer: COVID-19 is having a significant impact on our lives and is causing a lot of uncertainty. As such, I just wanted to let you know that here at Akhter, it's business as usual. Orders are still being processed and delivered however this is having a significant impact on our supply chain. Our customer support and sales teams are working hard to ensure the high levels of satisfaction you've come to expect.

Should anything change, we will, of course, let you know as soon as we can.

If you have any questions or concerns, don't hesitate to reach out to us. Tel: 01279 821200, Email: sales@akhter.co.uk

This e-mail and any attachments contain information intended for the sole use of the intended recipient and may contain information that is confidential or privileged. They must not be distributed without our consent. If you are not the intended recipient, any further review, disclosure, copying, distribution or use of this e-mail is expressly forbidden. Akhter Computers Ltd. is not liable for any opinions expressed by the sender.

In the event that you are not the intended recipient please notify the sender immediately and destroy all copies of this message.


Although AKHTER COMPUTERS has taken every precaution to ensure that this E-Mail and any attachment(s) are free from viruses you are advised to take proper precautions and to carry out your own checks before opening any attachment. AKHTER COMPUTERS accept no responsibility for any damage or loss sustained as a result of software virus infection.


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#109597): https://edk2.groups.io/g/devel/message/109597
Mute This Topic: https://groups.io/mt/101944462/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



[-- Attachment #2: Type: text/html, Size: 24876 bytes --]

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

* Re: [edk2-devel] failure in build
  2023-10-12 15:08 [edk2-devel] failure in build Matthew Gillman via groups.io
@ 2023-10-12 16:56 ` Matthew Gillman via groups.io
  0 siblings, 0 replies; 2+ messages in thread
From: Matthew Gillman via groups.io @ 2023-10-12 16:56 UTC (permalink / raw)
  To: devel@edk2.groups.io

[-- Attachment #1: Type: text/plain, Size: 8647 bytes --]

Hi again

I managed to fix it by updating my .dsc file.

Thanks

Matthew
________________________________
From: Matthew Gillman <Matthew.Gillman@akhter.co.uk>
Sent: 12 October 2023 16:08
To: devel@edk2.groups.io <devel@edk2.groups.io>
Subject: failure in build

Hi

I just experienced a build failure.

Please see below:



Build environment: Linux-6.2.0-34-generic-x86_64-with-glibc2.35
Build start time: 16:03:02, Oct.12 2023

WORKSPACE        = /home/matt/repos/bios_stuff/edk2
EDK_TOOLS_PATH   = /home/matt/repos/bios_stuff/edk2/BaseTools
CONF_PATH        = /home/matt/repos/bios_stuff/edk2/Conf
PYTHON_COMMAND   = python3

Processing meta-data
.
Architecture(s)  = X64
Build target     = RELEASE
Toolchain        = GCC5

Active Platform          = /home/matt/repos/bios_stuff/edk2/Image.dsc
Active Module            = /home/matt/repos/bios_stuff/edk2/Image.inf

FLASH_DEFINITION = None

Library instances of module [/home/matt/repos/bios_stuff/edk2/Image.inf] [X64]:
      BaseLib : /home/matt/repos/bios_stuff/edk2/MdePkg/Library/BaseLib/BaseLib.inf
      BaseMemoryLib : /home/matt/repos/bios_stuff/edk2/MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
      DebugLib : /home/matt/repos/bios_stuff/edk2/MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
      DevicePathLib : /home/matt/repos/bios_stuff/edk2/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
      DxeServicesLib : /home/matt/repos/bios_stuff/edk2/MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
      MemoryAllocationLib : /home/matt/repos/bios_stuff/edk2/MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
      PcdLib : /home/matt/repos/bios_stuff/edk2/MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
      PrintLib : /home/matt/repos/bios_stuff/edk2/MdePkg/Library/BasePrintLib/BasePrintLib.inf
      RegisterFilterLib : /home/matt/repos/bios_stuff/edk2/MdePkg/Library/RegisterFilterLibNull/RegisterFilterLibNull.inf
      ShellCEntryLib : /home/matt/repos/bios_stuff/edk2/ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
      ShellLib : /home/matt/repos/bios_stuff/edk2/ShellPkg/Library/UefiShellLib/UefiShellLib.inf
      UefiApplicationEntryPoint : /home/matt/repos/bios_stuff/edk2/MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
      UefiBootServicesTableLib : /home/matt/repos/bios_stuff/edk2/MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
      UefiLib : /home/matt/repos/bios_stuff/edk2/MdePkg/Library/UefiLib/UefiLib.inf
      UefiRuntimeServicesTableLib : /home/matt/repos/bios_stuff/edk2/MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf



build.py...
 : error C0DE: Unknown fatal error when processing [/home/matt/repos/bios_stuff/edk2/Image.dsc]
      
(Please send email to devel@edk2.groups.io for help, attaching following call stack trace!)

(Python 3.10.12 on linux) Traceback (most recent call last):
  File "/home/matt/repos/bios_stuff/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 2695, in Main
    MyBuild.Launch()
  File "/home/matt/repos/bios_stuff/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 2493, in Launch
    self._BuildModule()
  File "/home/matt/repos/bios_stuff/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 1882, in _BuildModule
    Wa = WorkspaceAutoGen(
  File "/home/matt/repos/bios_stuff/edk2/BaseTools/Source/Python/AutoGen/WorkspaceAutoGen.py", line 43, in __init__
    self._InitWorker(Workspace, MetaFile, Target, Toolchain, Arch, *args, **kwargs)
  File "/home/matt/repos/bios_stuff/edk2/BaseTools/Source/Python/AutoGen/WorkspaceAutoGen.py", line 117, in _InitWorker
    self.ProcessPcdType()
  File "/home/matt/repos/bios_stuff/edk2/BaseTools/Source/Python/AutoGen/WorkspaceAutoGen.py", line 264, in ProcessPcdType
    Platform.Pcds
  File "/home/matt/repos/bios_stuff/edk2/BaseTools/Source/Python/Workspace/DscBuildData.py", line 1220, in Pcds
    self._Pcds = self.UpdateStructuredPcds(MODEL_PCD_TYPE_LIST, self._Pcds)
  File "/home/matt/repos/bios_stuff/edk2/BaseTools/Source/Python/Workspace/DscBuildData.py", line 1545, in UpdateStructuredPcds
    for Pcd in self.DecPcds:
  File "/home/matt/repos/bios_stuff/edk2/BaseTools/Source/Python/Workspace/DscBuildData.py", line 3585, in DecPcds
    self._DecPcds, self._GuidDict = GetDeclaredPcd(self, self._Bdb, self._Arch, self._Target, self._Toolchain, PkgSet)
  File "/home/matt/repos/bios_stuff/edk2/BaseTools/Source/Python/Workspace/WorkspaceCommon.py", line 60, in GetDeclaredPcd
    PkgList = GetPackageList(Platform, BuildDatabase, Arch, Target, Toolchain)
  File "/home/matt/repos/bios_stuff/edk2/BaseTools/Source/Python/Workspace/WorkspaceCommon.py", line 45, in GetPackageList
    for Lib in GetLiabraryInstances(Data, Platform, BuildDatabase, Arch, Target, Toolchain):
  File "/home/matt/repos/bios_stuff/edk2/BaseTools/Source/Python/Workspace/WorkspaceCommon.py", line 91, in GetLiabraryInstances
    return GetModuleLibInstances(Module, Platform, BuildDatabase, Arch, Target, Toolchain,Platform.MetaFile,EdkLogger)
  File "/home/matt/repos/bios_stuff/edk2/BaseTools/Source/Python/Workspace/WorkspaceCommon.py", line 140, in GetModuleLibInstances
    LibraryModule = BuildDatabase[LibraryPath, Arch, Target, Toolchain]
  File "/home/matt/repos/bios_stuff/edk2/BaseTools/Source/Python/Workspace/WorkspaceDatabase.py", line 104, in __getitem__
    BuildObject = self.CreateBuildObject(FilePath, Arch, Target, Toolchain)
  File "/home/matt/repos/bios_stuff/edk2/BaseTools/Source/Python/Workspace/WorkspaceDatabase.py", line 108, in CreateBuildObject
    Ext = FilePath.Type
AttributeError: 'str' object has no attribute 'Type'


- Failed -
Build end time: 16:03:02, Oct.12 2023
Build total time: 00:00:00



Any ideas what is wrong?

Thanks

Matthew



Matthew Gillman BSc(Hons) MSc MSc GradCert AFHEA

Software Developer



Akhter Computers Ltd.

1-3 Marshgate Business Centre,
Harlow Business Park,
Parkway
Harlow
Essex
CM19 5QP<https://www.google.co.uk/maps/place/Akhter+House,+Perry+Rd,+Harlow+CM18+7PN/@51.7510724,0.0882908,17z/data=!3m1!4b1!4m5!3m4!1s0x47d89eb46c521ccf:0x46f846b47af76373!8m2!3d51.7511108!4d0.0904714?dcr=0>



Direct dial: +44 (0)1279 821202

Switchboard: +44 (0)1279 821200

Website: https://www.akhter.co.uk/



VAT number 445788349



Please note that my usual working days are Tuesday-Thursday.



Disclaimer: COVID-19 is having a significant impact on our lives and is causing a lot of uncertainty. As such, I just wanted to let you know that here at Akhter, it's business as usual. Orders are still being processed and delivered however this is having a significant impact on our supply chain. Our customer support and sales teams are working hard to ensure the high levels of satisfaction you've come to expect.

Should anything change, we will, of course, let you know as soon as we can.

If you have any questions or concerns, don't hesitate to reach out to us. Tel: 01279 821200, Email: sales@akhter.co.uk

This e-mail and any attachments contain information intended for the sole use of the intended recipient and may contain information that is confidential or privileged. They must not be distributed without our consent. If you are not the intended recipient, any further review, disclosure, copying, distribution or use of this e-mail is expressly forbidden. Akhter Computers Ltd. is not liable for any opinions expressed by the sender.

In the event that you are not the intended recipient please notify the sender immediately and destroy all copies of this message.


Although AKHTER COMPUTERS has taken every precaution to ensure that this E-Mail and any attachment(s) are free from viruses you are advised to take proper precautions and to carry out your own checks before opening any attachment. AKHTER COMPUTERS accept no responsibility for any damage or loss sustained as a result of software virus infection.


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#109598): https://edk2.groups.io/g/devel/message/109598
Mute This Topic: https://groups.io/mt/101944462/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



[-- Attachment #2: Type: text/html, Size: 25276 bytes --]

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

end of thread, other threads:[~2023-10-13 16:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-12 15:08 [edk2-devel] failure in build Matthew Gillman via groups.io
2023-10-12 16:56 ` Matthew Gillman via groups.io

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