amaneureka / AtomOS

A multitasking monolithic Kernel based x86 targeting Operating System written in C# from scratch aiming for high-level implementation of drivers in managed environment.
http://www.atomixos.com
BSD 3-Clause "New" or "Revised" License
1.26k stars 85 forks source link

[Compiler] Build Environment on Ubuntu #4

Closed amaneureka closed 8 years ago

amaneureka commented 8 years ago

Right now it is not working on Ubuntu, Kernel Build Fails

System.Exception: ILOpCode=>Type    [0x028-0x02E] Constrained:     System.UInt32; System_Void__Atomix_Kernel_H_gui_Window__ctor_System_Int32_
  at Atomix.Compiler.ScanMethod (System.Reflection.MethodBase aMethod) <0x40fbb670 + 0x014c7> in <filename unknown>:0 
  at Atomix.Compiler.Start () <0x40fad080 + 0x002d7> in <filename unknown>:0 
  at Atomix.ILCompiler.Main (System.String[] args) <0x40fa8e70 + 0x00817> in <filename unknown>:0 

System.Exception: ILOpCode=>Type    [0x010-0x016] Constrained:     System.UInt32; System_String_Atomix_Kernel_H_io_FileSystem_VirtualFileSystem_GetDeviceLabel__
  at Atomix.Compiler.ScanMethod (System.Reflection.MethodBase aMethod) <0x4022e670 + 0x014c7> in <filename unknown>:0 
  at Atomix.Compiler.Start () <0x40220080 + 0x002d7> in <filename unknown>:0 
  at Atomix.ILCompiler.Main (System.String[] args) <0x4021be70 + 0x00817> in <filename unknown>:0

System.Exception: ILOpCode=>None    [0x175-0x177] Rethrow 359; System_Void_System_Array_Copy_System_Array__System_Int32__System_Array__System_Int32__System_Int32_
  at Atomix.Compiler.ScanMethod (System.Reflection.MethodBase aMethod) <0x41143670 + 0x014c7> in <filename unknown>:0 
  at Atomix.Compiler.Start () <0x41135080 + 0x002d7> in <filename unknown>:0 
  at Atomix.ILCompiler.Main (System.String[] args) <0x41130e70 + 0x00817> in <filename unknown>:0
amaneureka commented 8 years ago

FIX: Remove Virtual Calling Int.ToString Function

System.Exception: ILOpCode=>Type    [0x028-0x02E] Constrained:     System.UInt32; System_Void__Atomix_Kernel_H_gui_Window__ctor_System_Int32_
  at Atomix.Compiler.ScanMethod (System.Reflection.MethodBase aMethod) <0x40fbb670 + 0x014c7> in <filename unknown>:0 
  at Atomix.Compiler.Start () <0x40fad080 + 0x002d7> in <filename unknown>:0 
  at Atomix.ILCompiler.Main (System.String[] args) <0x40fa8e70 + 0x00817> in <filename unknown>:0 

System.Exception: ILOpCode=>Type    [0x010-0x016] Constrained:     System.UInt32; System_String_Atomix_Kernel_H_io_FileSystem_VirtualFileSystem_GetDeviceLabel__
  at Atomix.Compiler.ScanMethod (System.Reflection.MethodBase aMethod) <0x4022e670 + 0x014c7> in <filename unknown>:0 
  at Atomix.Compiler.Start () <0x40220080 + 0x002d7> in <filename unknown>:0 
  at Atomix.ILCompiler.Main (System.String[] args) <0x4021be70 + 0x00817> in <filename unknown>:0

FIX: System_Void_System_Array_Copy_System_Array__System_Int32__System_Array__System_Int32__System_Int32_ Function

System.Exception: ILOpCode=>None    [0x175-0x177] Rethrow 359; System_Void_System_Array_Copy_System_Array__System_Int32__System_Array__System_Int32__System_Int32_
  at Atomix.Compiler.ScanMethod (System.Reflection.MethodBase aMethod) <0x41143670 + 0x014c7> in <filename unknown>:0 
  at Atomix.Compiler.Start () <0x41135080 + 0x002d7> in <filename unknown>:0 
  at Atomix.ILCompiler.Main (System.String[] args) <0x41130e70 + 0x00817> in <filename unknown>:0
amaneureka commented 8 years ago

FIX System_Void_System_Array_Copy_System_Array__System_Int32__System_Array__System_Int32__System_Int32_ Ref: 417d6fb4bf2f04cbe7ddbfe010ed435a9c5379cc

amaneureka commented 8 years ago

Temporary FIX:

Ref: 22b0bf67d33f7287d76442e62de8271a43303ecf Drawback: Need to use Convert.ToString Instead of ToString for ValueTypes like Int32, UInt32 etc.

Added Basic shell building script 9bb5770f0db24133b61a5696742f0fabea8c0dc5

amaneureka commented 8 years ago