Skip to content

[7.0] IJW build failure #96730

Closed
Closed

Description

@carlossanlop

Error Blob

@akoeplinger @vitek-karas I opened an issue to link the failures to it.

Reproduction Steps

  [163/194] Building CXX object test\ijw\CMakeFiles\ijw.dir\ijw.cpp.obj
  FAILED: test/ijw/CMakeFiles/ijw.dir/ijw.cpp.obj 
  C:\PROGRA~1\MICROS~1\2022\ENTERP~1\VC\Tools\MSVC\1438~1.331\bin\Hostx86\x86\cl.exe  /nologo /TP -DHOST_WINDOWS -DHOST_X86 -DNDEBUG -DTARGET_32BIT -DTARGET_WINDOWS -DTARGET_X86 -DURTBLDENV_FRIENDLY=Retail -D_FILE_OFFSET_BITS=64 -Dijw_EXPORTS  /DWIN32 /D_WINDOWS      /O2 /Ob2 /DNDEBUG -MD /Ox /nologo /W4 /WX /Oi /Oy- /Gm- /Zp8 /Gy /GS /fp:precise /FC /MP /Zm200 /Zc:strictStrings /Zc:wchar_t /Zc:inline /Zc:forScope /wd4065 /wd4100 /wd4127 /wd4131 /wd4189 /wd4200 /wd4201 /wd4206 /wd4239 /wd4245 /wd4291 /wd4310 /wd4324 /wd4366 /wd4456 /wd4457 /wd4458 /wd4459 /wd4463 /wd4505 /wd4702 /wd4706 /wd4733 /wd4815 /wd4838 /wd4918 /wd4960 /wd4961 /wd5105 /wd5205 /we4007 /we4013 /we4102 /we4551 /we4700 /we4640 /we4806 /w34092 /w34121 /w34125 /w34130 /w34132 /w34212 /w34530 /w35038 /w44177 /Zi /ZH:SHA_256 /source-charset:utf-8 /Gz /GL /we4456 /we4457 /we4458 /we4459 /wd4365 /wd4679 /clr:netcore /AID:\a\_work\1\s\.dotnet/packs/Microsoft.NETCore.App.Ref/7.0.13/ref/net7.0 /showIncludes /Fotest\ijw\CMakeFiles\ijw.dir\ijw.cpp.obj /Fdtest\ijw\CMakeFiles\ijw.dir\ /FS -c D:\a\_work\1\s\src\native\corehost\test\ijw\ijw.cpp
  D:\a\_work\1\s\src\native\corehost\test\ijw\ijw.cpp(6): error C2220: the following warning is treated as an error
  D:\a\_work\1\s\src\native\corehost\test\ijw\ijw.cpp(6): warning C5271: consider replacing #using <System.Console.dll>  with command line argument /FU "D:\a\_work\1\s\.dotnet\packs\Microsoft.NETCore.App.Ref\7.0.13\ref\net7.0\System.Console.dll"
  
  D:\a\_work\1\s\src\native\corehost\test\ijw\ijw.cpp(6): note: to simplify migration, consider the temporary use of /Wv:18 flag with the version of the compiler with which you used to build without warnings
  D:\a\_work\1\s\src\native\corehost\test\ijw\ijw.cpp(7): warning C5271: consider replacing #using <System.Runtime.Loader.dll>  with command line argument /FU "D:\a\_work\1\s\.dotnet\packs\Microsoft.NETCore.App.Ref\7.0.13\ref\net7.0\System.Runtime.Loader.dll"
  
  D:\a\_work\1\s\src\native\corehost\test\ijw\ijw.cpp(7): note: to simplify migration, consider the temporary use of /Wv:18 flag with the version of the compiler with which you used to build without warnings
  • Log output x64:
    Building Custom Rule D:/a/_work/1/s/src/native/corehost/test/ijw/CMakeLists.txt
    ijw.cpp
    .NETCoreApp,Version=v7.0.AssemblyAttributes.cpp
  D:\a\_work\1\s\artifacts\obj\ijw\x86\Release\.NETCoreApp,Version=v7.0.AssemblyAttributes.cpp(1,8): error C2220: the following warning is treated as an error [D:\a\_work\1\s\artifacts\obj\win-x86.Release\corehost\ide\test\ijw\ijw.vcxproj]
  D:\a\_work\1\s\artifacts\obj\ijw\x86\Release\.NETCoreApp,Version=v7.0.AssemblyAttributes.cpp(1,8): warning C5271: consider replacing #using <mscorlib.dll>  with command line argument /FU "D:\a\_work\1\s\.dotnet\packs\Microsoft.NETCore.App.Ref\7.0.13\ref\net7.0\mscorlib.dll" [D:\a\_work\1\s\artifacts\obj\win-x86.Release\corehost\ide\test\ijw\ijw.vcxproj]
  D:\a\_work\1\s\artifacts\obj\ijw\x86\Release\.NETCoreApp,Version=v7.0.AssemblyAttributes.cpp(1,8): warning C5271:  [D:\a\_work\1\s\artifacts\obj\win-x86.Release\corehost\ide\test\ijw\ijw.vcxproj]
    D:\a\_work\1\s\artifacts\obj\ijw\x86\Release\.NETCoreApp,Version=v7.0.AssemblyAttributes.cpp(1,8):
    to simplify migration, consider the temporary use of /Wv:18 flag with the version of the compiler with which you used to build without warnings
    
  D:\a\_work\1\s\src\native\corehost\test\ijw\ijw.cpp(6,8): error C2220: the following warning is treated as an error [D:\a\_work\1\s\artifacts\obj\win-x86.Release\corehost\ide\test\ijw\ijw.vcxproj]
  D:\a\_work\1\s\src\native\corehost\test\ijw\ijw.cpp(6,8): warning C5271: consider replacing #using <System.Console.dll>  with command line argument /FU "D:\a\_work\1\s\.dotnet\packs\Microsoft.NETCore.App.Ref\7.0.13\ref\net7.0\System.Console.dll" [D:\a\_work\1\s\artifacts\obj\win-x86.Release\corehost\ide\test\ijw\ijw.vcxproj]
  D:\a\_work\1\s\src\native\corehost\test\ijw\ijw.cpp(6,8): warning C5271:  [D:\a\_work\1\s\artifacts\obj\win-x86.Release\corehost\ide\test\ijw\ijw.vcxproj]
    D:\a\_work\1\s\src\native\corehost\test\ijw\ijw.cpp(6,8):
    to simplify migration, consider the temporary use of /Wv:18 flag with the version of the compiler with which you used to build without warnings
    
  D:\a\_work\1\s\src\native\corehost\test\ijw\ijw.cpp(7,8): warning C5271: consider replacing #using <System.Runtime.Loader.dll>  with command line argument /FU "D:\a\_work\1\s\.dotnet\packs\Microsoft.NETCore.App.Ref\7.0.13\ref\net7.0\System.Runtime.Loader.dll" [D:\a\_work\1\s\artifacts\obj\win-x86.Release\corehost\ide\test\ijw\ijw.vcxproj]
  D:\a\_work\1\s\src\native\corehost\test\ijw\ijw.cpp(7,8): warning C5271:  [D:\a\_work\1\s\artifacts\obj\win-x86.Release\corehost\ide\test\ijw\ijw.vcxproj]
    D:\a\_work\1\s\src\native\corehost\test\ijw\ijw.cpp(7,8):
    to simplify migration, consider the temporary use of /Wv:18 flag with the version of the compiler with which you used to build without warnings

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=520568
Error message validated: warning C5271: consider replacing #using
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 1/10/2024 1:48:54 AM UTC

Report

Build Definition Step Name Console log Pull Request
521815 dotnet/runtime Build Log #96764
521817 dotnet/runtime Build product Log #96764
521816 dotnet/runtime Build product Log #96764
521668 dotnet/runtime Build Log #96758
521669 dotnet/runtime Build product Log #96758
521670 dotnet/runtime Build product Log #96758
521538 dotnet/runtime Build Log #96755
2349770 dotnet-runtime Build Log
2349760 dotnet-runtime Build Log
521526 dotnet/runtime Prepare TestHost with runtime CoreCLR Log
521518 dotnet/runtime Build Log
521540 dotnet/runtime Build product Log #96755
521539 dotnet/runtime Build product Log #96755
521519 dotnet/runtime Build product Log
521442 dotnet/runtime Build product Log
521430 dotnet/runtime Build product Log
521434 dotnet/runtime Build product Log
521429 dotnet/runtime Build product Log
2349464 dotnet-runtime Build native test components Log
521061 dotnet/runtime Build native test components Log
521049 dotnet/runtime Build Log
520888 dotnet/runtime Prepare TestHost with runtime CoreCLR Log
520811 dotnet/runtime Build Log
520953 dotnet/runtime Build product Log
520802 dotnet/runtime Prepare TestHost with runtime CoreCLR Log
520796 dotnet/runtime Build Log
2349303 dotnet-runtime Build Log
2349294 dotnet-runtime Build Log
520795 dotnet/runtime Build native test components Log
520797 dotnet/runtime Build product Log
2349295 dotnet-runtime Build native test components Log
520565 dotnet/runtime Build Log #96723
2349197 dotnet-runtime Build Log
520635 dotnet/runtime Build product Log
520489 dotnet/runtime Prepare TestHost with runtime CoreCLR Log
514863 dotnet/runtime Build tests Log #96489
519217 dotnet/runtime Build tests Log #96667
520481 dotnet/runtime Build Log
519287 dotnet/runtime Build product Log #96673
514864 dotnet/runtime Build product Log #96489
514865 dotnet/runtime Build product Log #96489
519218 dotnet/runtime Build product Log #96667
519288 dotnet/runtime Build product Log #96673
519219 dotnet/runtime Build product Log #96667
520571 dotnet/runtime Build product Log #96723
520568 dotnet/runtime Build product Log #96723
2349018 dotnet-runtime Build native test components Log
520479 dotnet/runtime Build native test components Log
520482 dotnet/runtime Build product Log
520361 dotnet/runtime Build Log #96718
520042 dotnet/runtime Build Log #96708
520043 dotnet/runtime Build product Log #96708
519181 dotnet/runtime Build product Log
519171 dotnet/runtime Build product Log
519178 dotnet/runtime Build product Log
519170 dotnet/runtime Build product Log

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 56 56

Known Issue Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": "",
  "BuildRetry": false,
  "ErrorPattern": "FAILED: .+ijw\.cpp\.obj",
  "ExcludeConsoleLog": false
}

Activity

  1. added
    blocking-clean-ci
    Known Build Error
    on Jan 10, 2024
  2. added this to the 7.0.x milestone on Jan 10, 2024
  3. carlossanlop commented on Jan 10, 2024

    @carlossanlop
    ContributorAuthor

    It's already fixed in main and 8.0, and #92878 so we need it backported to 7.0.

  4. carlossanlop commented on Jan 10, 2024

    @carlossanlop
    ContributorAuthor

    Seems to be even more impactful than I initially thought. I found another failure log that does not match the selected text in the ErrorMessage, so I'll instead use the ErrorPattern that would match FAILED: test/ijw/CMakeFiles/ijw.dir/ijw.cpp.obj.

    https://dev.azure.com/dnceng-public/public/_build/results?buildId=521631&view=logs&j=0bc77094-9fcd-5c38-f6e4-27d2ae131589&t=0eda4080-ac10-5e2b-f8c7-f0b168217e47&l=5535

      FAILED: test/ijw/CMakeFiles/ijw.dir/ijw.cpp.obj 
      C:\PROGRA~1\MICROS~2\2022\ENTERP~1\VC\Tools\MSVC\1437~1.328\bin\HostX86\x64\cl.exe  /nologo /TP -DHOST_64BIT -DHOST_AMD64 -DHOST_WINDOWS -DNDEBUG -DTARGET_64BIT -DTARGET_AMD64 -DTARGET_WINDOWS -DURTBLDENV_FRIENDLY=Retail -D_FILE_OFFSET_BITS=64 -Dijw_EXPORTS  /DWIN32 /D_WINDOWS     /O2 /Ob2 /DNDEBUG -MD /Ox /nologo /W4 /WX /Oi /Oy- /Gm- /Zp8 /Gy /GS /fp:precise /FC /MP /Zm200 /Zc:strictStrings /Zc:wchar_t /Zc:inline /Zc:forScope /wd4065 /wd4100 /wd4127 /wd4131 /wd4189 /wd4200 /wd4201 /wd4206 /wd4239 /wd4245 /wd4291 /wd4310 /wd4324 /wd4366 /wd4456 /wd4457 /wd4458 /wd4459 /wd4463 /wd4505 /wd4702 /wd4706 /wd4733 /wd4815 /wd4838 /wd4918 /wd4960 /wd4961 /wd5105 /wd5205 /we4007 /we4013 /we4102 /we4551 /we4700 /we4640 /we4806 /w34092 /w34121 /w34125 /w34130 /w34132 /w34212 /w34530 /w35038 /w44177 /Zi /ZH:SHA_256 /source-charset:utf-8 /GL /we4456 /we4457 /we4458 /we4459 /wd4365 /wd4679 /wd5271 /clr:netcore "/AIC:\Program Files\dotnet/packs/Microsoft.NETCore.App.Ref/8.0.0/ref/net8.0" /showIncludes /Fotest\ijw\CMakeFiles\ijw.dir\ijw.cpp.obj /Fdtest\ijw\CMakeFiles\ijw.dir\ /FS -c D:\a\_work\1\s\src\native\corehost\test\ijw\ijw.cpp
      D:\a\_work\1\s\src\native\corehost\test\ijw\ijw.cpp(22): error C3611: 'System::Numerics::INumberBase::System::IUtf8SpanFormattable.TryFormat': a sealed function cannot have a pure-specifier
      D:\a\_work\1\s\src\native\corehost\test\ijw\ijw.cpp(22): note: This diagnostic occurred while importing type 'System::Numerics::INumberBase' from assembly 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
      D:\a\_work\1\s\src\native\corehost\test\ijw\ijw.cpp(22): note: This diagnostic occurred while importing type 'System::Numerics::IFloatingPointConstants' from assembly 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
      D:\a\_work\1\s\src\native\corehost\test\ijw\ijw.cpp(22): note: This diagnostic occurred while importing type 'System::Numerics::IFloatingPoint' from assembly 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
      D:\a\_work\1\s\src\native\corehost\test\ijw\ijw.cpp(22): note: This diagnostic occurred while importing type 'System::Decimal' from assembly 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
      D:\a\_work\1\s\src\native\corehost\test\ijw\ijw.cpp(22): error C3611: 'System::Numerics::INumberBase<TSelf>::System::IUtf8SpanFormattable.TryFormat': a sealed function cannot have a pure-specifier
      D:\a\_work\1\s\src\native\corehost\test\ijw\ijw.cpp(22): note: see reference to class generic instantiation 'System::Numerics::INumberBase<TSelf>' being compiled
      D:\a\_work\1\s\src\native\corehost\test\ijw\ijw.cpp(22): note: This diagnostic occurred while importing type 'System::Numerics::IFloatingPointConstants' from assembly 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
      D:\a\_work\1\s\src\native\corehost\test\ijw\ijw.cpp(22): note: This diagnostic occurred while importing type 'System::Numerics::IFloatingPoint' from assembly 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
      D:\a\_work\1\s\src\native\corehost\test\ijw\ijw.cpp(22): note: This diagnostic occurred while importing type 'System::Decimal' from assembly 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
      D:\a\_work\1\s\src\native\corehost\test\ijw\ijw.cpp(22): error C3611: 'System::Numerics::INumberBase<System::Decimal>::System::IUtf8SpanFormattable.TryFormat': a sealed function cannot have a pure-specifier
      D:\a\_work\1\s\src\native\corehost\test\ijw\ijw.cpp(22): note: see reference to class generic instantiation 'System::Numerics::INumberBase<System::Decimal>' being compiled
      D:\a\_work\1\s\src\native\corehost\test\ijw\ijw.cpp(22): note: see reference to class generic instantiation 'System::Numerics::IFloatingPointConstants<System::Decimal>' being compiled
      D:\a\_work\1\s\src\native\corehost\test\ijw\ijw.cpp(22): note: see reference to class generic instantiation 'System::Numerics::IFloatingPoint<System::Decimal>' being compiled
      D:\a\_work\1\s\src\native\corehost\test\ijw\ijw.cpp(22): note: This diagnostic occurred while importing type 'System::Decimal' from assembly 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
      [172/205] Building CXX object test\nativehost\CMakeFiles\nativehost.dir\__\__\hostmisc\longfile.windows.cpp.obj
      [173/205] Building CXX object test\nativehost\CMakeFiles\nativehost.dir\__\__\hostmisc\pal.windows.cpp.obj
      [174/205] Building CXX object test\comsxs\CMakeFiles\comsxs.dir\comsxs.cpp.obj
      [175/205] Compiling D:/a/_work/1/s/src/native/corehost/test/typelibs/Server.idl
    
  5. carlossanlop commented on Jan 12, 2024

    @carlossanlop
    ContributorAuthor

    Fixed by #96788

  6. locked and limited conversation to collaborators on Feb 11, 2024
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

    Known Build Errorarea-Interop-coreclrblocking-clean-ciblocking-official-buildblocking-servicing

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions