public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Mike Maslenkin via groups.io" <mike.maslenkin=gmail.com@groups.io>
To: devel@edk2.groups.io, khokhlov2002@yandex.ru
Subject: Re: [edk2-devel] Problems While compiling EfiGuard
Date: Wed, 21 May 2025 21:05:06 +0300	[thread overview]
Message-ID: <CAL77WPDCcjUo0mjK1QEXQ9O_7CqffCZfzSEHzVWR+J9GFed-ag@mail.gmail.com> (raw)
In-Reply-To: <323521747779335@mail-sendbernar-production-main-44.klg.yp-c.yandex.net>

Hi Egor

On Wed, May 21, 2025 at 8:01 PM EGOR KHOKHLOV via groups.io
<khokhlov2002=yandex.ru@groups.io> wrote:
>
> Hi there! I have ran into a problem while compiling EfiGuard which use EDK 2
>
> Here is the Error Log
>
> D:\Development\EDK2\edk2>build -a X64 -t VS2022 -p EfiGuardPkg/EfiGuardPkg.dsc -b RELEASE
> Build environment: Windows-10-10.0.19041-SP0
> Build start time: 01:12:38, May.21 2025
>
> WORKSPACE        = d:\development\edk2\edk2s
> EDK_TOOLS_PATH   = d:\development\edk2\edk2s\basetools
> EDK_TOOLS_BIN    = d:\development\edk2\edk2s\basetools\bin\win32
> CONF_PATH        = d:\development\edk2\edk2s\conf
> PYTHON_COMMAND   = py -3
>
>
> build.py...
>  : error C0DE: Unknown fatal error when processing [d:\development\edk2\edk2s\EfiGuardPkg\EfiGuardPkg.dsc]
>
> (Please send email to devel@edk2.groups.io for help, attaching following call stack trace!)
>
> (Python 3.7.0 on win32) Traceback (most recent call last):
>   File "D:\Development\EDK2\edk2s\BaseTools\Source\Python\build\build.py", line 2692, in Main
>     MyBuild = Build(Target, Workspace, Option,LogQ)
>   File "D:\Development\EDK2\edk2s\BaseTools\Source\Python\build\build.py", line 815, in init
>     self.InitPreBuild()
>   File "D:\Development\EDK2\edk2s\BaseTools\Source\Python\build\build.py", line 1015, in InitPreBuild
>     self.LoadConfiguration()
>   File "D:\Development\EDK2\edk2s\BaseTools\Source\Python\build\build.py", line 971, in LoadConfiguration
>     self.GetToolChainAndFamilyFromDsc (self.PlatformFile)
>   File "D:\Development\EDK2\edk2s\BaseTools\Source\Python\build\build.py", line 905, in GetToolChainAndFamilyFromDsc
>     dscobj = self.BuildDatabase[File, BuildArch]
>   File "D:\Development\EDK2\edk2s\BaseTools\Source\Python\Workspace\WorkspaceDatabase.py", line 104, in getitem
>     BuildObject = self.CreateBuildObject(FilePath, Arch, Target, Toolchain)
>   File "D:\Development\EDK2\edk2s\BaseTools\Source\Python\Workspace\WorkspaceDatabase.py", line 120, in CreateBuildObject
>     MetaFileStorage(self.WorkspaceDb, FilePath, FileType)
>   File "D:\Development\EDK2\edk2s\BaseTools\Source\Python\Workspace\MetaFileTable.py", line 426, in new
>     reval = Class._FILE_TABLE_FileType
>   File "D:\Development\EDK2\edk2s\BaseTools\Source\Python\Workspace\MetaFileTable.py", line 303, in init
>     MetaFileTable.__init__(self, Cursor, MetaFile, MODEL_FILE_DSC, Temporary, FromItem)
>   File "D:\Development\EDK2\edk2s\BaseTools\Source\Python\Workspace\MetaFileTable.py", line 39, in init
>     MetaFile.TimeStamp,
>   File "D:\Development\EDK2\edk2s\BaseTools\Source\Python\Common\Misc.py", line 1539, in TimeStamp
>     return os.stat(self.Path)[8]
>   File "D:\Development\EDK2\edk2s\BaseTools\Source\Python\Common\LongFilePathOs.py", line 51, in stat
>     return os.stat(LongFilePath(path))
> FileNotFoundError: [WinError 3] Системе не удается найти указанный путь: '\\\\?\\d:\\development\\edk2\\edk2s\\EfiGuardPkg\\EfiGuardPkg.dsc'
>
>
> - Failed -
> Build end time: 01:12:38, May.21 2025
> Build total time: 00:00:00
>
> BaseTools Compiled OK
>
> Can you help me?
>
> ——————
> Best Regards , EGOR .
> Team Redline Software.
> (C) 2025

try to apply this patch
```
diff --git a/EfiGuardPkg.dsc b/EfiGuardPkg.dsc
index 8f1104233740..50c0e84f2d2e 100644
--- a/EfiGuardPkg.dsc
+++ b/EfiGuardPkg.dsc
@@ -1,9 +1,9 @@
 [Defines]
-  PLATFORM_NAME                  = EfiGuard
+  PLATFORM_NAME                  = EfiGuardPkg
   PLATFORM_GUID                  = C5ACE17D-FD90-44F7-847C-693ED2B8BEF9
   PLATFORM_VERSION               = 1.00
   DSC_SPECIFICATION              = 0x0001001B
-  OUTPUT_DIRECTORY               = Build/EfiGuard
+  OUTPUT_DIRECTORY               = Build/EfiGuardPkg
   SUPPORTED_ARCHITECTURES        = X64
   BUILD_TARGETS                  = DEBUG|RELEASE|NOOPT
   SKUID_IDENTIFIER               = DEFAULT
@@ -18,6 +18,8 @@
   PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
   BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
   BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
+  StackCheckLib|MdePkg/Library/StackCheckLib/StackCheckLib.inf
+  StackCheckFailureHookLib|MdePkg/Library/StackCheckFailureHookLibNull/StackCheckFailureHookLibNull.inf
   SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
   CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
   PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf
```

Regards,
Mike.


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



  reply	other threads:[~2025-05-21 18:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-20 22:15 [edk2-devel] Problems While compiling EfiGuard EGOR KHOKHLOV via groups.io
2025-05-21 18:05 ` Mike Maslenkin via groups.io [this message]
2025-05-21 18:15 ` EGOR KHOKHLOV via groups.io

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAL77WPDCcjUo0mjK1QEXQ9O_7CqffCZfzSEHzVWR+J9GFed-ag@mail.gmail.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox