1
Vote

CosmosDir and IL2CPU problems

description

Hello

I started to create a kernel with hardware drivers (VGAScreen, ...).I tried to run my project and it says me: (Output log)
1>------ Build started: Project: CosmosKernel6Boot, Configuration: Debug x86 ------
1> Invoking il2cpu.exe "DebugEnabled:True" "StackCorruptionDetectionEnabled:False" "DebugMode:Source" "TraceAssemblies:" "DebugCom:1" "UseNAsm:True" "OutputFilename:d:\windows\documenter\visual studio 2013\Projects\CosmosKernel6\CosmosKernel6\bin\Debug\CosmosKernel6Boot.asm" "EnableLogging:True" "EmitDebugSymbols:True" "IgnoreDebugStubAttribute:False" "References:D:\Cosmos User Kit\Kernel\Cosmos.Core.Plugs.dll" "References:D:\Cosmos User Kit\Kernel\Cosmos.Debug.Kernel.Plugs.dll" "References:D:\Cosmos User Kit\Kernel\Cosmos.System.Plugs.dll" "References:d:\windows\documenter\visual studio 2013\Projects\CosmosKernel6\CosmosKernel6\bin\Debug\CosmosKernel6.dll" "References:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.5\System.Core.dll"
__1>C:\Program Files (x86)\MSBuild\Cosmos\Cosmos.targets(31,5): error : Error occurred while invoking IL2CPU.
1>C:\Program Files (x86)\MSBuild\Cosmos\Cosmos.targets(31,5): error :
1>C:\Program Files (x86)\MSBuild\Cosmos\Cosmos.targets(31,5): error : Process is terminated due to StackOverflowException.__
1> Loaded : DebugEnabled
1> Loaded : StackCorruptionDetectionEnabled
1> Loaded : DebugMode
1> Loaded : TraceAssemblies
1> Loaded : DebugCom
1> Loaded : UseNAsm
1> Loaded : OutputFilename
1> Loaded : EnableLogging
1> Loaded : EmitDebugSymbols
1> Loaded : IgnoreDebugStubAttribute
1> Loaded : References
1> Message: Executing IL2CPU on assembly
1> Message: Plug found: 'Microsoft.Win32.RegistryKey'
1> Message: Plug found: 'System.Array'
1> Message: Plug found: 'System.Byte'
1> Message: Plug found: 'System.Char'
1> Message: Plug found: 'System.Delegate'
1> Message: Plug found: 'System.Double'
1> Message: Plug found: 'System.Drawing.Color'
1> Message: Plug found: 'System.Drawing.SR'
1> Message: Plug found: 'System.Enum'
1> Message: Plug found: 'System.Environment'
1> Message: Plug found: 'System.GC'
1> Message: Plug found: 'System.Globalization.CultureInfo'
1> Message: Plug found: 'System.Globalization.NumberFormatInfo'
1> Message: Plug found: 'System.Int16'
1> Message: Plug found: 'System.Int32'
1> Message: Plug found: 'System.Int64'
1> Message: Plug found: 'System.IntPtr'
1> Message: Plug found: 'System.Net.IPAddress'
1> Message: Plug found: 'System.Net.SocketAddress'
1> Message: Plug found: 'System.Number'
1> Message: Plug found: 'System.Object'
1> Message: Plug found: 'System.Resources.ResourceManager'
1> Message: Plug found: 'System.RuntimeType'
1> Message: Plug found: 'System.RuntimeType+RuntimeTypeCache'
1> Message: Plug found: 'System.RuntimeTypeHandle'
1> Message: Plug found: 'System.Security.CodeAccessSecurityEngine'
1> Message: Plug found: 'System.Runtime.CompilerServices.RuntimeHelpers'
1> Message: Plug found: 'System.Runtime.InteropServices.SafeHandle'
1> Message: Plug found: 'System.SByte'
1> Message: Plug found: 'System.Security.Cryptography.Utils'
1> Message: Plug found: 'System.Single'
1> Message: Plug found: 'System.SR'
1> Message: Plug found: 'System.String'
1> Message: Plug found: 'System.Threading.Interlocked'
1> Message: Plug found: 'System.UInt16'
1> Message: Plug found: 'System.UInt32'
1> Message: Plug found: 'System.UInt64'
1> Message: Plug found: 'System.Diagnostics.Debugger'
1> Message: Plug found: 'System.Math'
1> Message: Plug found: 'System.Buffer'
1> Message: Plug found: 'System.EventHandler'
1> Message: Plug found: 'System.Exception'
1> Message: Plug found: 'System.MulticastDelegate'
1> Message: Plug found: 'System.OutOfMemoryException'
1> Message: Plug found: 'Cosmos.Core.CPU'
1> Message: Plug found: 'Cosmos.IL2CPU.GCImplementation'
1> Message: Plug found: 'Cosmos.Core.IOPortBase'
1> Message: Plug found: 'Cosmos.Debug.Kernel.Debugger'
1> Message: Plug found: 'System.Collections.Generic.Dictionary`2[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]'
1> Message: Plug found: 'System.Random'
1> Message: Plug found: 'System.Text.DecoderFallback'
1> Message: Plug found: 'System.Text.EncoderFallback'
1> Message: Plug found: 'System.Text.ASCIIEncoding'
1> Message: Plug found: 'System.Console'
1> Message: Plug found: 'System.Text.InternalDecoderBestFitFallbackBuffer'
1> Message: Plug found: 'System.Threading.Monitor'
1> Message: Plug found: 'System.Type'
1> Detecting fields for type 'Cosmos.Debug.Common.FIELD_INFO'
1> Detecting fields for type 'Cosmos.Debug.Common.FIELD_MAPPING'
1> Detecting fields for type 'Cosmos.Debug.Common.MethodIlOp'
1> IL2CPU invoked with DebugMode='Source', DebugEnabled='True', TraceAssemblies='{NULL}', IgnoreDebugStub='False'
1> IL2CPU task took 00:00:02.6165538
1>Done building project "CosmosKernel6Boot.Cosmos" -- FAILED.
1>
Build has been canceled.

then in the error list:
Warning 1 The element 'PropertyGroup' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003' has invalid child element 'CosmosDir' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003'. List of possible elements expected: 'Property, AllowUnsafeBlocks, AppConfigForCompiler, ApplicationIcon, ApplicationRevision, ApplicationVersion, AppDesignerFolder, AspNetConfiguration, AssemblyKeyContainerName, AssemblyKeyProviderName, AssemblyName, AssemblyOriginatorKeyFile, AssemblyOriginatorKeyFileType, AssemblyOriginatorKeyMode, AssemblyType, AutoGenerateBindingRedirects, AutorunEnabled, BaseAddress, ...

Warning 80 The element 'Target' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003' has invalid child element 'IL2CPU' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003'. List of possible elements expected: 'Task, AL, AspNetCompiler, AssignCulture, AssignProjectConfiguration, AssignTargetPath, AxImp, CallTarget, CombinePath, ConvertToAbsolutePath, Copy, CreateCSharpManifestResourceName, CreateItem, CreateProperty, CreateVisualBasicManifestResourceName, Csc, Delete, Error, Exec, FindAppConfigFile, FindInList, FindUnderPath, FormatUrl, FormatVersion, GenerateApplicationManifest, GenerateBootstrapper, GenerateDeploymentManifest, GenerateResource, GenerateTrustInfo, GetAssemblyIdentity, GetFrameworkPath, GetFrameworkSdkPath, GetReferenceAssemblyPaths, LC, MakeDir, Message, Move, ...

Errors in my code (underlined from Visual studio community):

<PropertyGroup>
<__CosmosDir__ Condition="$(CosmosDir) == ''">$C:\Users\Mika\Desktop\Cosmos-master1</CosmosDir>
<BuildToolsDir Condition="$(BuildToolsDir) == ''">$Desktop\Build\Tools</BuildToolsDir>
<VSIPDir Condition="$(VSIPDir) == ''">$C:\Users\Mika\Desktop\Cosmos-master1\Build\VSIP</VSIPDir>
<NasmFile>$C:\Users\Mika\Desktop\Cosmos-master1\Build\Tools\Nasm\nasm.exe</NasmFile>
<PlatformTarget>x64</PlatformTarget>
<BinFormat Condition="$(BinFormat) == ''">bin</BinFormat>
</PropertyGroup>

<IL2CPU DebugMode="$(DebugMode)"
         DebugEnabled="$(DebugEnabled)"
         StackCorruptionDetectionEnabled="$(StackCorruptionDetectionEnabled)"
         TraceAssemblies="$(TraceAssemblies)"
         IgnoreDebugStubAttribute="$(IgnoreDebugStubAttribute)"
         DebugCom="1"
         UseNAsm="true"
         References="@(ReferencePath)"
         OutputFilename="$(TargetDir)$(MSBuildProjectName).asm"
         EnableLogging="true"
         EmitDebugSymbols="$(DebugSymbols)"
         CosmosBuildDir="$C:\Users\Mika\Desktop\Cosmos-master1\Build"
         WorkingDir="$(TargetDir)"/>

comments