public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [edk2-devel] [Bug] Building NetworkPkg fails due to missing SynchronizationLib dependency of BaseCryptLib
@ 2023-11-17 12:49 CrossedCarpet
  2023-11-17 16:06 ` Laszlo Ersek
  0 siblings, 1 reply; 5+ messages in thread
From: CrossedCarpet @ 2023-11-17 12:49 UTC (permalink / raw)
  To: devel

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

Steps to reproduce:
- download and setup edk2
- run:
build -a X64 -b DEBUG -t GCC -p NetworkPkg/NetworkPkg.dsc

Get the error:
build.py...
/.../edk2/NetworkPkg/NetworkPkg.dsc(...): error 4000: Instance of library class [SynchronizationLib] is not found
in [/.../edk2/CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf] [X64]
consumed by module [/.../edk2/NetworkPkg/TlsDxe/TlsDxe.inf]

Adding this LibClass to NetworkPkg.dsc solves it:
SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf

I tried to open a bug in bugzilla but I wasn't able to log in or create an account. How should I do it next time?


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#111398): https://edk2.groups.io/g/devel/message/111398
Mute This Topic: https://groups.io/mt/102646401/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: 2168 bytes --]

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

* Re: [edk2-devel] [Bug] Building NetworkPkg fails due to missing SynchronizationLib dependency of BaseCryptLib
  2023-11-17 12:49 [edk2-devel] [Bug] Building NetworkPkg fails due to missing SynchronizationLib dependency of BaseCryptLib CrossedCarpet
@ 2023-11-17 16:06 ` Laszlo Ersek
  2023-11-20 10:25   ` CrossedCarpet
  0 siblings, 1 reply; 5+ messages in thread
From: Laszlo Ersek @ 2023-11-17 16:06 UTC (permalink / raw)
  To: devel, crossedcarpet; +Cc: Liming Gao (Byosoft address)

On 11/17/23 13:49, CrossedCarpet wrote:
> Steps to reproduce:
> - download and setup edk2
> - run:
> build -a X64 -b DEBUG -t GCC -p NetworkPkg/NetworkPkg.dsc
> 
> Get the error:
> build.py...
> /.../edk2/NetworkPkg/NetworkPkg.dsc(...): error 4000: Instance of
> library class [SynchronizationLib] is not found
> in [/.../edk2/CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf] [X64]
> consumed by module [/.../edk2/NetworkPkg/TlsDxe/TlsDxe.inf]
> 
> Adding this LibClass to NetworkPkg.dsc solves it:
>  
> SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf

This is a regression from commit 5d5be45bd111 ("CryptPkg: Enable CryptoPkg BaseCryptLib ParallelHash for PEI and DXE", 2022-12-02), which was made for <https://bugzilla.tianocore.org/show_bug.cgi?id=4097>.

It added a new lib class dependency to "BaseCryptLib.inf", but it didn't ensure that all DSC files in the tree that employed the "BaseCryptLib.inf" instance had a resolution for the new lib class.

Indeed it is not just NetworkPkg.dsc but also FmpDevicePkg.dsc that's affected:

$ git grep -l -F CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf -- '**dsc*' \
  | xargs -- grep --files-without-match -w SynchronizationLib --

FmpDevicePkg/FmpDevicePkg.dsc
NetworkPkg/NetworkPkg.dsc

It also *seems* to affect at least one platform in edk2-platforms:

Platform/Intel/MinPlatformPkg/Include/Dsc/CoreDxeLib.dsc

(although I realize this last DSC file is an "include" DSC, so the missing dependency could be resolved in the DSC file that includes this one.)

Either way, thanks for catching this; the edk2 issue should be fixed preferably during the current hard feature freeze (for NetworkPkg and FmpDevicePkg).

> I tried to open a bug in bugzilla but I wasn't able to log in or create
> an account. How should I do it next time?

I think the bugzilla account creation was disabled due to spammer accounts.

The way to request an account is described here (linked from the bugzilla.tianocore.org landing page under link "Reporting issues"):

  https://github.com/tianocore/tianocore.github.io/wiki/Reporting-Issues

(I've added Liming to the CC list of this email.)

Laszlo


> 



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



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

* Re: [edk2-devel] [Bug] Building NetworkPkg fails due to missing SynchronizationLib dependency of BaseCryptLib
  2023-11-17 16:06 ` Laszlo Ersek
@ 2023-11-20 10:25   ` CrossedCarpet
  2023-11-21 15:18     ` Laszlo Ersek
  0 siblings, 1 reply; 5+ messages in thread
From: CrossedCarpet @ 2023-11-20 10:25 UTC (permalink / raw)
  To: Laszlo Ersek, devel@edk2.groups.io; +Cc: Liming Gao (Byosoft address)

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

Good morning Laszlo,
Thank you for your reply. I feared this was intentional due to believing that it would have been caught with automated testing.
Doesn't the Azure Pipeline try to build all packages to make sure no dependency broke?

Also Liming, would you do me the honour of creating a Bugzilla account for this email?
Best regards,
CC
________________________________
From: Laszlo Ersek <lersek@redhat.com>
Sent: 17 November 2023 16:06
To: devel@edk2.groups.io <devel@edk2.groups.io>; crossedcarpet@hotmail.com <crossedcarpet@hotmail.com>
Cc: Liming Gao (Byosoft address) <gaoliming@byosoft.com.cn>
Subject: Re: [edk2-devel] [Bug] Building NetworkPkg fails due to missing SynchronizationLib dependency of BaseCryptLib

On 11/17/23 13:49, CrossedCarpet wrote:
> Steps to reproduce:
> - download and setup edk2
> - run:
> build -a X64 -b DEBUG -t GCC -p NetworkPkg/NetworkPkg.dsc
>
> Get the error:
> build.py...
> /.../edk2/NetworkPkg/NetworkPkg.dsc(...): error 4000: Instance of
> library class [SynchronizationLib] is not found
> in [/.../edk2/CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf] [X64]
> consumed by module [/.../edk2/NetworkPkg/TlsDxe/TlsDxe.inf]
>
> Adding this LibClass to NetworkPkg.dsc solves it:
>
> SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf

This is a regression from commit 5d5be45bd111 ("CryptPkg: Enable CryptoPkg BaseCryptLib ParallelHash for PEI and DXE", 2022-12-02), which was made for <https://bugzilla.tianocore.org/show_bug.cgi?id=4097>.

It added a new lib class dependency to "BaseCryptLib.inf", but it didn't ensure that all DSC files in the tree that employed the "BaseCryptLib.inf" instance had a resolution for the new lib class.

Indeed it is not just NetworkPkg.dsc but also FmpDevicePkg.dsc that's affected:

$ git grep -l -F CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf -- '**dsc*' \
  | xargs -- grep --files-without-match -w SynchronizationLib --

FmpDevicePkg/FmpDevicePkg.dsc
NetworkPkg/NetworkPkg.dsc

It also *seems* to affect at least one platform in edk2-platforms:

Platform/Intel/MinPlatformPkg/Include/Dsc/CoreDxeLib.dsc

(although I realize this last DSC file is an "include" DSC, so the missing dependency could be resolved in the DSC file that includes this one.)

Either way, thanks for catching this; the edk2 issue should be fixed preferably during the current hard feature freeze (for NetworkPkg and FmpDevicePkg).

> I tried to open a bug in bugzilla but I wasn't able to log in or create
> an account. How should I do it next time?

I think the bugzilla account creation was disabled due to spammer accounts.

The way to request an account is described here (linked from the bugzilla.tianocore.org landing page under link "Reporting issues"):

  https://github.com/tianocore/tianocore.github.io/wiki/Reporting-Issues

(I've added Liming to the CC list of this email.)

Laszlo


> 



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#111466): https://edk2.groups.io/g/devel/message/111466
Mute This Topic: https://groups.io/mt/102646401/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: 6073 bytes --]

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

* Re: [edk2-devel] [Bug] Building NetworkPkg fails due to missing SynchronizationLib dependency of BaseCryptLib
  2023-11-20 10:25   ` CrossedCarpet
@ 2023-11-21 15:18     ` Laszlo Ersek
  2023-11-21 16:29       ` Michael D Kinney
  0 siblings, 1 reply; 5+ messages in thread
From: Laszlo Ersek @ 2023-11-21 15:18 UTC (permalink / raw)
  To: Crossed Carpet, devel@edk2.groups.io; +Cc: Liming Gao (Byosoft address)

On 11/20/23 11:25, Crossed Carpet wrote:
> Good morning Laszlo,
> Thank you for your reply. I feared this was intentional due to believing
> that it would have been caught with automated testing. 
> Doesn't the Azure Pipeline try to build all packages to make sure no
> dependency broke?

Right, we have "NetworkPkg/NetworkPkg.ci.yaml". I'm unsure how this
issue had slipped through.

Thanks
Laszlo

> 
> Also Liming, would you do me the honour of creating a Bugzilla account
> for this email?
> Best regards,
> CC
> ------------------------------------------------------------------------
> *From:* Laszlo Ersek <lersek@redhat.com>
> *Sent:* 17 November 2023 16:06
> *To:* devel@edk2.groups.io <devel@edk2.groups.io>;
> crossedcarpet@hotmail.com <crossedcarpet@hotmail.com>
> *Cc:* Liming Gao (Byosoft address) <gaoliming@byosoft.com.cn>
> *Subject:* Re: [edk2-devel] [Bug] Building NetworkPkg fails due to
> missing SynchronizationLib dependency of BaseCryptLib
>  
> On 11/17/23 13:49, CrossedCarpet wrote:
>> Steps to reproduce:
>> - download and setup edk2
>> - run:
>> build -a X64 -b DEBUG -t GCC -p NetworkPkg/NetworkPkg.dsc
>> 
>> Get the error:
>> build.py...
>> /.../edk2/NetworkPkg/NetworkPkg.dsc(...): error 4000: Instance of
>> library class [SynchronizationLib] is not found
>> in [/.../edk2/CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf] [X64]
>> consumed by module [/.../edk2/NetworkPkg/TlsDxe/TlsDxe.inf]
>> 
>> Adding this LibClass to NetworkPkg.dsc solves it:
>>  
>> SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
> 
> This is a regression from commit 5d5be45bd111 ("CryptPkg: Enable
> CryptoPkg BaseCryptLib ParallelHash for PEI and DXE", 2022-12-02), which
> was made for <https://bugzilla.tianocore.org/show_bug.cgi?id=4097
> <https://bugzilla.tianocore.org/show_bug.cgi?id=4097>>.
> 
> It added a new lib class dependency to "BaseCryptLib.inf", but it didn't
> ensure that all DSC files in the tree that employed the
> "BaseCryptLib.inf" instance had a resolution for the new lib class.
> 
> Indeed it is not just NetworkPkg.dsc but also FmpDevicePkg.dsc that's
> affected:
> 
> $ git grep -l -F CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf --
> '**dsc*' \
>   | xargs -- grep --files-without-match -w SynchronizationLib --
> 
> FmpDevicePkg/FmpDevicePkg.dsc
> NetworkPkg/NetworkPkg.dsc
> 
> It also *seems* to affect at least one platform in edk2-platforms:
> 
> Platform/Intel/MinPlatformPkg/Include/Dsc/CoreDxeLib.dsc
> 
> (although I realize this last DSC file is an "include" DSC, so the
> missing dependency could be resolved in the DSC file that includes this
> one.)
> 
> Either way, thanks for catching this; the edk2 issue should be fixed
> preferably during the current hard feature freeze (for NetworkPkg and
> FmpDevicePkg).
> 
>> I tried to open a bug in bugzilla but I wasn't able to log in or create
>> an account. How should I do it next time?
> 
> I think the bugzilla account creation was disabled due to spammer accounts.
> 
> The way to request an account is described here (linked from the
> bugzilla.tianocore.org landing page under link "Reporting issues"):
> 
>   https://github.com/tianocore/tianocore.github.io/wiki/Reporting-Issues
> <https://github.com/tianocore/tianocore.github.io/wiki/Reporting-Issues>
> 
> (I've added Liming to the CC list of this email.)
> 
> Laszlo
> 
> 
>> 
> 



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



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

* Re: [edk2-devel] [Bug] Building NetworkPkg fails due to missing SynchronizationLib dependency of BaseCryptLib
  2023-11-21 15:18     ` Laszlo Ersek
@ 2023-11-21 16:29       ` Michael D Kinney
  0 siblings, 0 replies; 5+ messages in thread
From: Michael D Kinney @ 2023-11-21 16:29 UTC (permalink / raw)
  To: devel@edk2.groups.io, lersek@redhat.com, Crossed Carpet,
	Sean Brogan, Michael Kubacki
  Cc: Gao, Liming, Kinney, Michael D

Hi Sean and Michael,

The NetworkPkg.ci.yaml is pointing at a DSC file in the NetworkPkg.

If I try a local build of that DSC file, it does fail immediately with
a missing library mapping.

Any ideas on how this was not seen by CI?  Either for PR or Push actions?

Thanks,

Mike

> -----Original Message-----
> From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Laszlo
> Ersek
> Sent: Tuesday, November 21, 2023 7:19 AM
> To: Crossed Carpet <crossedcarpet@hotmail.com>; devel@edk2.groups.io
> Cc: Gao, Liming <gaoliming@byosoft.com.cn>
> Subject: Re: [edk2-devel] [Bug] Building NetworkPkg fails due to
> missing SynchronizationLib dependency of BaseCryptLib
> 
> On 11/20/23 11:25, Crossed Carpet wrote:
> > Good morning Laszlo,
> > Thank you for your reply. I feared this was intentional due to
> believing
> > that it would have been caught with automated testing.
> > Doesn't the Azure Pipeline try to build all packages to make sure no
> > dependency broke?
> 
> Right, we have "NetworkPkg/NetworkPkg.ci.yaml". I'm unsure how this
> issue had slipped through.
> 
> Thanks
> Laszlo
> 
> >
> > Also Liming, would you do me the honour of creating a Bugzilla
> account
> > for this email?
> > Best regards,
> > CC
> > --------------------------------------------------------------------
> ----
> > *From:* Laszlo Ersek <lersek@redhat.com>
> > *Sent:* 17 November 2023 16:06
> > *To:* devel@edk2.groups.io <devel@edk2.groups.io>;
> > crossedcarpet@hotmail.com <crossedcarpet@hotmail.com>
> > *Cc:* Liming Gao (Byosoft address) <gaoliming@byosoft.com.cn>
> > *Subject:* Re: [edk2-devel] [Bug] Building NetworkPkg fails due to
> > missing SynchronizationLib dependency of BaseCryptLib
> >
> > On 11/17/23 13:49, CrossedCarpet wrote:
> >> Steps to reproduce:
> >> - download and setup edk2
> >> - run:
> >> build -a X64 -b DEBUG -t GCC -p NetworkPkg/NetworkPkg.dsc
> >>
> >> Get the error:
> >> build.py...
> >> /.../edk2/NetworkPkg/NetworkPkg.dsc(...): error 4000: Instance of
> >> library class [SynchronizationLib] is not found
> >> in [/.../edk2/CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf]
> [X64]
> >> consumed by module [/.../edk2/NetworkPkg/TlsDxe/TlsDxe.inf]
> >>
> >> Adding this LibClass to NetworkPkg.dsc solves it:
> >>
> >>
> SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchroni
> zationLib.inf
> >
> > This is a regression from commit 5d5be45bd111 ("CryptPkg: Enable
> > CryptoPkg BaseCryptLib ParallelHash for PEI and DXE", 2022-12-02),
> which
> > was made for <https://bugzilla.tianocore.org/show_bug.cgi?id=4097
> > <https://bugzilla.tianocore.org/show_bug.cgi?id=4097>>.
> >
> > It added a new lib class dependency to "BaseCryptLib.inf", but it
> didn't
> > ensure that all DSC files in the tree that employed the
> > "BaseCryptLib.inf" instance had a resolution for the new lib class.
> >
> > Indeed it is not just NetworkPkg.dsc but also FmpDevicePkg.dsc
> that's
> > affected:
> >
> > $ git grep -l -F CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf --
> > '**dsc*' \
> >   | xargs -- grep --files-without-match -w SynchronizationLib --
> >
> > FmpDevicePkg/FmpDevicePkg.dsc
> > NetworkPkg/NetworkPkg.dsc
> >
> > It also *seems* to affect at least one platform in edk2-platforms:
> >
> > Platform/Intel/MinPlatformPkg/Include/Dsc/CoreDxeLib.dsc
> >
> > (although I realize this last DSC file is an "include" DSC, so the
> > missing dependency could be resolved in the DSC file that includes
> this
> > one.)
> >
> > Either way, thanks for catching this; the edk2 issue should be fixed
> > preferably during the current hard feature freeze (for NetworkPkg
> and
> > FmpDevicePkg).
> >
> >> I tried to open a bug in bugzilla but I wasn't able to log in or
> create
> >> an account. How should I do it next time?
> >
> > I think the bugzilla account creation was disabled due to spammer
> accounts.
> >
> > The way to request an account is described here (linked from the
> > bugzilla.tianocore.org landing page under link "Reporting issues"):
> >
> >   https://github.com/tianocore/tianocore.github.io/wiki/Reporting-
> Issues
> > <https://github.com/tianocore/tianocore.github.io/wiki/Reporting-
> Issues>
> >
> > (I've added Liming to the CC list of this email.)
> >
> > Laszlo
> >
> >
> >>
> >
> 
> 
> 
> 
> 



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



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

end of thread, other threads:[~2023-11-21 16:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-17 12:49 [edk2-devel] [Bug] Building NetworkPkg fails due to missing SynchronizationLib dependency of BaseCryptLib CrossedCarpet
2023-11-17 16:06 ` Laszlo Ersek
2023-11-20 10:25   ` CrossedCarpet
2023-11-21 15:18     ` Laszlo Ersek
2023-11-21 16:29       ` Michael D Kinney

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