Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release build legs are failing for NetCoreCheck #115

Open
mthalman opened this issue May 4, 2021 · 3 comments
Open

Release build legs are failing for NetCoreCheck #115

mthalman opened this issue May 4, 2021 · 3 comments
Assignees

Comments

@mthalman
Copy link
Member

mthalman commented May 4, 2021

Release build legs are failing in main branch:

      "D:\workspace\_work\1\s\artifacts\obj\win-x64.Release\native\INSTALL.vcxproj" (rebuild target) (1) ->
         "D:\workspace\_work\1\s\artifacts\obj\win-x64.Release\native\ALL_BUILD.vcxproj" (default target) (3:2) ->
         "D:\workspace\_work\1\s\artifacts\obj\win-x64.Release\native\projects\NetCoreCheck\EXE\NetCoreCheck.vcxproj" (default target) (5:2) ->
         (Link target) -> 
           LINK : fatal error C1047: The object or library file 'D:\workspace\_work\1\s\.dotnet\packs\Microsoft.NETCore.App.Host.win-x64\5.0.2\runtimes\win-x64\native\libnethost.lib' was created by a different version of the compiler than other objects like 'NetCoreCheck.dir\Release\FileLogger.obj'; rebuild all objects and libraries with the same compiler [D:\workspace\_work\1\s\artifacts\obj\win-x64.Release\native\projects\NetCoreCheck\EXE\NetCoreCheck.vcxproj]
           LINK : fatal error LNK1257: code generation failed [D:\workspace\_work\1\s\artifacts\obj\win-x64.Release\native\projects\NetCoreCheck\EXE\NetCoreCheck.vcxproj]
  
  
         "D:\workspace\_work\1\s\artifacts\obj\win-x64.Release\native\INSTALL.vcxproj" (rebuild target) (1) ->
         "D:\workspace\_work\1\s\artifacts\obj\win-x64.Release\native\ALL_BUILD.vcxproj" (default target) (3:2) ->
         "D:\workspace\_work\1\s\artifacts\obj\win-x64.Release\native\projects\NetCoreCheck\CA\NETCoreCheckCA.vcxproj" (default target) (4:2) ->
           LINK : fatal error C1047: The object or library file 'D:\workspace\_work\1\s\.dotnet\packs\Microsoft.NETCore.App.Host.win-x64\5.0.2\runtimes\win-x64\native\libnethost.lib' was created by a different version of the compiler than other objects like 'NETCoreCheckCA.dir\Release\MsiLogger.obj'; rebuild all objects and libraries with the same compiler [D:\workspace\_work\1\s\artifacts\obj\win-x64.Release\native\projects\NetCoreCheck\CA\NETCoreCheckCA.vcxproj]
           LINK : fatal error LNK1257: code generation failed [D:\workspace\_work\1\s\artifacts\obj\win-x64.Release\native\projects\NetCoreCheck\CA\NETCoreCheckCA.vcxproj]
  
      0 Warning(s)
      4 Error(s)

https://dev.azure.com/dnceng/public/_build/results?buildId=1121249&view=results

cc @MSLukeWest, @NikolaMilosavljevic

@NikolaMilosavljevic
Copy link
Member

We've seen this in the past, but it was fixed several months ago.

@MSLukeWest are you aware of any changes that could have caused this?

@mthalman does your local builds work fine? Release and debug?

@mthalman
Copy link
Member Author

mthalman commented May 4, 2021

Release config fails locally too.

@MSLukeWest
Copy link
Contributor

@NikolaMilosavljevic I'm not aware of any changes that could have caused this, the build worked fine the last time I edited NETCoreCheck a couple months ago. If you'll recall, last time this was fixed by updating the .NET Toolset, see https://github.com/dotnet/deployment-tools/pull/87/files. Has the toolset been updated since then?

@mthalman If you're blocked by this just go ahead and change this property to true:

<DisableClickOnceNativeBuild>false</DisableClickOnceNativeBuild>

That will disable building NETCoreCheck for now, which is OK because there's currently no planned updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants