Skip to content

fatal error LNK1295: '/INCREMENTAL' not compatible with '/DEBUGTYPE' specification... #64082

Closed

Description

@FutureCompute

Discussed in #64054

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]

Activity

  1. ghost added
    untriaged
    on Jan 21, 2022
  2. added
    question
    and removed
    untriaged
    on Jan 21, 2022
  3. added this to the 7.0.0 milestone on Jan 21, 2022
  4. tommcdon commented on Jan 21, 2022

    @tommcdon
    Member
  5. songge-MS commented on Jan 26, 2022

    @songge-MS

    I encountered the same problem. Can you have a look? @hoyosjs

  6. AaronRobinsonMSFT commented on Mar 10, 2022

    @AaronRobinsonMSFT
    Member

    @FutureCompute and @songge-MS Which version of Visual Studio is being used?

  7. FutureCompute commented on Mar 10, 2022

    @FutureCompute
    Author

    @AaronRobinsonMSFT I use Visual Studio 2022, as the document suggests.

  8. modified the milestones: 7.0.0, Future on May 17, 2022
  9. mgexo commented on Sep 16, 2022

    @mgexo

    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 Debug
    according 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)

    image

    However, before that, one also has to manually execute "build.cmd clr.dactools -c Checked" due to #58328 (comment)

  10. kunalspathak commented on Apr 9, 2023

    @kunalspathak
    Contributor

    Same problem with VS2022 17.5.3

  11. hoyosjs commented on Apr 10, 2023

    @hoyosjs
    Member

    @agocke do we prefer cv,fixup, or do we prefer incremental linking ?

  12. agocke commented on Apr 10, 2023

    @agocke
    Member

    fixup

  13. ghost added
    in-pr
    on May 15, 2023
  14. ghost removed
    in-pr
    on May 15, 2023
  15. ghost locked as resolved and limited conversation to collaborators on Jun 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-Diagnostics-coreclrquestion

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions