runtime icon indicating copy to clipboard operation
runtime copied to clipboard

[x86] debug build crash when generatirng image of System.Rpviate.CoreLib

Open BrianBohe opened this issue 7 years ago • 3 comments

I am trying to build the corclr from master (until this commit b2e3a19be00af54c3bc4c76d94044aca9c32a45d) running build -x86 and I get an error when

Generating native image of System.Private.CoreLib for Windows_NT.x86.Debug

Complete console message:

BUILD: Generating native image of System.Private.CoreLib for Windows_NT.x86.Debug. Logging to "C:\Users\t-brbohe\Documents\coreclr_fork\bin\Logs\CrossgenCoreLib_Windows_NT__x86__Debug.log".
BUILD: "C:\Users\t-brbohe\Documents\coreclr_fork\bin\Product\Windows_NT.x86.Debug\crossgen.exe"  /Platform_Assemblies_Paths "C:\Users\t-brbohe\Documents\coreclr_fork\bin\Product\Windows_NT.x86.Debug"\IL /out "C:\Users\t-brbohe\Documents\coreclr_fork\bin\Product\Windows_NT.x86.Debug\System.Private.CoreLib.dll" "C:\Users\t-brbohe\Documents\coreclr_fork\bin\Product\Windows_NT.x86.Debug\IL\System.Private.CoreLib.dll"
BUILD: Error: CrossGen System.Private.CoreLib build failed. Refer to C:\Users\t-brbohe\Documents\coreclr_fork\bin\Logs\CrossgenCoreLib_Windows_NT__x86__Debug.log
BUILD: "C:\Users\t-brbohe\Documents\coreclr_fork\bin\Product\Windows_NT.x86.Debug\crossgen.exe"  /Platform_Assemblies_Paths "C:\Users\t-brbohe\Documents\coreclr_fork\bin\Product\Windows_NT.x86.Debug"\IL /out "C:\Users\t-brbohe\Documents\coreclr_fork\bin\Product\Windows_NT.x86.Debug\System.Private.CoreLib.dll" "C:\Users\t-brbohe\Documents\coreclr_fork\bin\Product\Windows_NT.x86.Debug\IL\System.Private.CoreLib.dll"
Extra flags on parent tree [93C0F8]: --XG-------
N004 (  6,  5) [000004] ---XG-------              *  IND       ref
N002 (  1,  1) [000007] ------------              |  /--*  CNS_INT   int    4 field offset Fseq[<message>i__Field]
N003 (  4,  3) [000008] -------N----              \--*  ADD       byref
N001 (  3,  2) [000003] ------------                 \--*  LCL_VAR   ref    V00 this
 
Assert failure(PID 5852 [0x000016dc], Thread: 13020 [0x32dc]): Assertion failed '!"Extra flags on tree"' in '<>f__AnonymousType0`1[__Canon][System.__Canon]:get_message():ref:this' (IL size 7)
 
    File: c:\users\t-brbohe\documents\coreclr_fork\src\jit\flowgraph.cpp Line: 21476
    Image: C:\Users\t-brbohe\Documents\coreclr_fork\bin\Product\Windows_NT.x86.Debug\crossgen.exe
 
Microsoft (R) CoreCLR Native Image Generator - Version 4.5.30319.0
Copyright (c) Microsoft Corporation.  All rights reserved.

If I try build works fine.

BrianBohe avatar Jan 30 '19 18:01 BrianBohe

@BruceForstall

BrianBohe avatar Jan 30 '19 18:01 BrianBohe

/cc @dotnet/jit-contrib

echesakov avatar Jan 30 '19 19:01 echesakov

I have removed all the untracked files with git clean -dxf and compile it again build -x86 and works.

Thanks for helping!

BrianBohe avatar Jan 30 '19 19:01 BrianBohe