public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [edk2-devel] Unable to build OvmfPkgX64.dsc with VS2022 ("PE image Section-Alignment and File-Alignment do not match")
@ 2024-07-31  4:50 Rebecca Cran
  2024-07-31 17:10 ` Oliver Smith-Denny
  0 siblings, 1 reply; 2+ messages in thread
From: Rebecca Cran @ 2024-07-31  4:50 UTC (permalink / raw)
  To: edk2-devel-groups-io, Matthew Carlson

There appears to be a problem with the newly-added VS2022 toolchain. I 
only just installed Windows after not using it for quite a while so I 
don't know if it's user error, but I get the following failure with 
"build -p OvmfPkg\OvmfPkgX64.dsc -a X64 -b RELEASE -t VS2022". Building 
with VS2019 works.

I have VS2022 version 17.10.5 installed.


Generating PEIFV FV
##### ['GenFv', '-a', 
'd:\\src\\tiano\\edk2\\Build\\OvmfX64\\RELEASE_VS2022\\FV\\Ffs\\PEIFV.inf', 
'-o', 
'd:\\src\\tiano\\edk2\\Build\\OvmfX64\\RELEASE_VS2022\\FV\\PEIFV.Fv', 
'-i', 'd:\\src\\tiano\\edk2\\Build\\OvmfX64\\RELEASE_VS2022\\FV\\PEIFV.inf']
Return Value = 2
GenFv: ERROR 3000: Invalid
   PE image Section-Alignment and File-Alignment do not match : 
d:\src\tiano\edk2\Build\OvmfX64\RELEASE_VS2022\FV\Ffs\52C05B14-0B98-496c-BC3B-04B50211D680PeiCore\52C05B14-0B98-496c-BC3B-04B50211D680.ffs.
GenFv: ERROR 3000: Invalid
   Could not rebase 
d:\src\tiano\edk2\Build\OvmfX64\RELEASE_VS2022\FV\Ffs\52C05B14-0B98-496c-BC3B-04B50211D680PeiCore\52C05B14-0B98-496c-BC3B-04B50211D680.ffs.

Not sure if it matters, but since I guess it might be fairly uncommon, 
I'm building on a ReFS volume on Windows Server 2022.


-- 
Rebecca Cran



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



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

end of thread, other threads:[~2024-07-31 17:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-31  4:50 [edk2-devel] Unable to build OvmfPkgX64.dsc with VS2022 ("PE image Section-Alignment and File-Alignment do not match") Rebecca Cran
2024-07-31 17:10 ` Oliver Smith-Denny

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