corert
corert copied to clipboard
osx with error "The data area passed to a system call is too small"
source code works fine on windows. osx encounter error:
EXEC : error : The data area passed to a system call is too small. [/Users/xxxxx.csproj] (Exception from HRESULT: 0x8007007A) System.Runtime.InteropServices.COMException (0x8007007A): The data area passed to a system call is too small. (Exception from HRESULT: 0x8007007A) at System.StubHelpers.MngdNativeArrayMarshaler.ConvertContentsToNative(IntPtr pMarshalState, Object& pManagedHome, IntPtr pNativeHome) at ILCompiler.DependencyAnalysis.ObjectWriter.GetEnumTypeIndex(IntPtr objWriter, EnumTypeDescriptor enumTypeDescriptor, EnumRecordTypeDescriptor[] typeRecords) at ILCompiler.DependencyAnalysis.ObjectWriter.GetEnumTypeIndex(EnumTypeDescriptor enumTypeDescriptor, EnumRecordTypeDescriptor[] typeRecords) at ILCompiler.UserDefinedTypeDescriptor.GetEnumTypeIndex(TypeDesc type) at ILCompiler.UserDefinedTypeDescriptor.GetVariableTypeIndex(TypeDesc type, Boolean needsCompleteIndex) at ILCompiler.UserDefinedTypeDescriptor.GetClassTypeIndex(TypeDesc type, Boolean needsCompleteType) at ILCompiler.UserDefinedTypeDescriptor.GetTypeIndex(TypeDesc type, Boolean needsCompleteType) at ILCompiler.UserDefinedTypeDescriptor.GetVariableTypeIndex(TypeDesc type, Boolean needsCompleteIndex) at ILCompiler.UserDefinedTypeDescriptor.GetVariableTypeIndex(TypeDesc type) at ILCompiler.DependencyAnalysis.ObjectWriter.EmitDebugVar(DebugVarInfo debugVar) at ILCompiler.DependencyAnalysis.ObjectWriter.EmitDebugVarInfo(ObjectNode node) at ILCompiler.DependencyAnalysis.ObjectWriter.EmitObject(String objectFilePath, IEnumerable`1 nodes, NodeFactory factory, IObjectDumper dumper) at ILCompiler.RyuJitCompilation.CompileInternal(String outputFile, ObjectDumper dumper) at ILCompiler.Compilation.ILCompiler.ICompilation.Compile(String outputFile, ObjectDumper dumper) at ILCompiler.Program.Run(String[] args) at ILCompiler.Program.Main(String[] args) /Users/xxxx/.nuget/packages/microsoft.dotnet.ilcompiler/1.0.0-alpha-28426-01/b uild/Microsoft.NETCore.Native.targets(226,5): error MSB3073: The command ""/User s/xxxx/.nuget/packages/runtime.osx-x64.microsoft.dotnet.ilcompiler/1.0.0-alpha -28426-01/tools/ilc" @"obj/release/netcoreapp3.1/osx-x64/native/xxxxxxxx.ilc.rsp "" exited with code 1. [/Users/xxxxxxxxxxxx.csproj]
Any chance you can create a repro for this problem that you can share?