You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fatal error LNK1295: '/INCREMENTAL' not compatible with '/DEBUGTYPE' specification... #64082
Originally posted by FutureCompute January 20, 2022
I downloaded .NET 6 runtime source and ran build.cmd successfully. But when I followed method 2 of "Debugging CoreCLR on Window" in debugging.md, run "build -msbuild" I get 4 build errors as below. By following method 1 I get more build errors. I wonder if I missed anything. Thanks.
|
V
LINK : fatal error LNK1295: '/INCREMENTAL' not compatible with '/DEBUGTYPE' specification; link without '/INCREMENTAL' [D:\runtime-6.0.0\artifacts\obj\coreclr\windows.x64.Debug\ide\tools\InjectResource\InjectResource.vcxproj]
LINK : fatal error LNK1295: '/INCREMENTAL' not compatible with '/DEBUGTYPE' specification; link without '/INCREMENTAL' [D:\runtime-6.0.0\artifacts\obj\coreclr\windows.x64.Debug\ide\tools\GenClrDebugResource\GenClrDebugResource.vcxproj]
LINK : fatal error LNK1295: '/INCREMENTAL' not compatible with '/DEBUGTYPE' specification; link without '/INCREMENTAL' [D:\runtime-6.0.0\artifacts\obj\coreclr\windows.x64.Debug\ide\dlls\mscordac\mscordaccore.vcxproj]
LINK : fatal error LNK1295: '/INCREMENTAL' not compatible with '/DEBUGTYPE' specification; link without '/INCREMENTAL' [D:\runtime-6.0.0\artifacts\obj\coreclr\windows.x64.Debug\ide\dlls\mscordbi\mscordbi.vcxproj]
P.S.
The current workaround seems to be to use the "Checked" configuration instead of "Debug" or "Release" (also select it in Visual Studio as Configuration after the build.cmd with "Checked") see #64054 (comment)
However, before that, one also has to manually execute "build.cmd clr.dactools -c Checked" due to #58328 (comment)
Activity
tommcdon commentedon Jan 21, 2022
@hoyosjs
songge-MS commentedon Jan 26, 2022
I encountered the same problem. Can you have a look? @hoyosjs
AaronRobinsonMSFT commentedon Mar 10, 2022
@FutureCompute and @songge-MS Which version of Visual Studio is being used?
FutureCompute commentedon Mar 10, 2022
@AaronRobinsonMSFT I use Visual Studio 2022, as the document suggests.
mgexo commentedon Sep 16, 2022
I have the same problem with VS2022 Version 17.3.4
I created the solution by executing
build.cmd -vs coreclr.sln -a x64 -c Debugaccording to https://github.com/dotnet/runtime/blob/main/docs/workflow/debugging/coreclr/debugging.md
P.S.
The current workaround seems to be to use the "Checked" configuration instead of "Debug" or "Release" (also select it in Visual Studio as Configuration after the build.cmd with "Checked") see
#64054 (comment)
However, before that, one also has to manually execute "build.cmd clr.dactools -c Checked" due to #58328 (comment)
kunalspathak commentedon Apr 9, 2023
Same problem with VS2022 17.5.3
hoyosjs commentedon Apr 10, 2023
@agocke do we prefer
cv,fixup, or do we prefer incremental linking ?agocke commentedon Apr 10, 2023
fixup