OSDev.org

The Place to Start for Operating System Developers
It is currently Sun Apr 28, 2024 3:22 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: c# kernel compile error
PostPosted: Mon Jul 10, 2023 6:40 pm 
Offline

Joined: Mon Jul 10, 2023 6:05 pm
Posts: 2
i was following the bare bones wiki guide on c# development https://wiki.osdev.org/C_Sharp_Bare_Bones but i get an error when i compile the example kernel
Code:
tysila2.exe --arch i586-elf-tysos -fno-rtti -o kernel.o kernel.exe

Unhandled Exception: System.ArgumentException: Value does not fall within the expected range.
   at System.Runtime.CompilerServices.RuntimeHelpers.InitializeArray(Array array, RuntimeFieldHandle fldHandle)
   at libtysila.PEFile.ReadResolutionScope(Stream file, Metadata m)
   at libtysila.PEFile.GetMetadata(Assembler @$$)
   at libtysila.Metadata.LoadAssembly(String mod_name, Assembler @$$, String output_name)
   at tysila.Program.Main(String[] args)


is there any way to fix this?


Top
 Profile  
 
 Post subject: Re: c# kernel compile error
PostPosted: Wed Jul 12, 2023 1:50 am 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 4597
Location: Chichester, UK
Did you compile tysila from source or did you download the precompiled binary? Could this be relevant
Quote:
Please note these binaries will not work on 64-bit Windows due to a bug in the current Microsoft CLR (see here) so instead you must build it from source.


Top
 Profile  
 
 Post subject: Re: c# kernel compile error
PostPosted: Wed Jul 12, 2023 5:37 pm 
Offline

Joined: Mon Jul 10, 2023 6:05 pm
Posts: 2
iansjack wrote:
Did you compile tysila from source or did you download the precompiled binary? Could this be relevant
Quote:
Please note these binaries will not work on 64-bit Windows due to a bug in the current Microsoft CLR (see here) so instead you must build it from source.


it works thx a lot i have to compile it myself


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Majestic-12 [Bot] and 20 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group