On Thu, 12 Feb 2026 at 16:56, Kinney, Michael D
<[email protected]> wrote:
> It is required for the Mingw CLANG EmulatorPkg and unit test builds that use 
> CLANGDWARF tool chain tag that do produce PDB files and PDB files are 
> required for source level debug.
>
> I agree that the log files containing those messages is not a good condition. 
>  I will review and work on a solution.

Is mingw unixy enough that we can do
-[ -e $(DEBUG_DIR)(+)*.pdb ] && $(CP) $(DEBUG_DIR)(+)*.pdb $(OUTPUT_DIR)
?

> One aspect of the build I do not like is copying all the .efi files and 
> source level debug support files to a common directory. If there are name 
> collisions from modules with the same BASE_NAME in different packages 
> integrated into a platform build, they will write over each other.
> It would be better if the .efi and source level debug files remaining in the 
> module build directory. If we did that, then the copy operations would not be 
> required and this would remove extra actions in the build and also remove 
> duplicate files in the build output directory.

I agree that would be even nicer, because the name collision thing is annoying.

If we can do that as quickly as (post stable tag) merging the above, sure :)

/
    Leif

> Mike
>
> > -----Original Message-----
> > From: Leif Lindholm <[email protected]>
> > Sent: Thursday, February 12, 2026 3:03 AM
> > To: edk2-devel-groups-io <[email protected]>; Kinney, Michael D
> > <[email protected]>; Ard Biesheuvel
> > <[email protected]>
> > Subject: successful GCC/CLANGDWARF builds print error messages
> >
> > Hi Mike,
> >
> > since 20233f156c2e5 (in https://github.com/tianocore/edk2/pull/11929),
> > every non-pdb-generating gcc or clangdwarf now prints an error message
> > for every .efi generated, like:
> >
> > ---
> > cp -p -f
> > /work/git/tianocore/Build/Arm/NOOPT_CLANGDWARF/AARCH64/ArmPkg/Drivers/
> > ArmGicDxe/ArmGicDxe/DEBUG/*.pdb
> > /work/git/tianocore/Build/Arm/NOOPT_CLANGDWARF/AARCH64/ArmPkg/Drivers/
> > ArmGicDxe/ArmGicDxe/OUTPUT
> > cp: cannot stat
> > '/work/git/tianocore/Build/Arm/NOOPT_CLANGDWARF/AARCH64/ArmPkg/Drivers
> > /ArmGicDxe/ArmGicDxe/DEBUG/*.pdb':
> > No such file or directory
> > make: [GNUmakefile:450:
> > /work/git/tianocore/Build/Arm/NOOPT_CLANGDWARF/AARCH64/ArmPkg/Drivers/
> > ArmGicDxe/ArmGicDxe/OUTPUT/ArmGicDxe.efi]
> > Error 1 (ignored)
> > ---
> >
> > The error is (as stated) ignored, but it's not great when the output
> > of a correct build includes lots of error printouts.
> >
> > Looking at the commit, the addition of the .pdb copying does not seem
> > to form part of the change described in the commit message. Can we
> > nuke the line?
> >
> > /
> >     Leif


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#121812): https://edk2.groups.io/g/devel/message/121812
Mute This Topic: https://groups.io/mt/117772352/21656
Group Owner: [email protected]
Unsubscribe: https://edk2.groups.io/g/devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to