Bug 4121 - Full AOT with LLVM doens't seem to work on Windows (Mono 2.11 alpha, also doesn't work well in 2.8, 2.9))
Summary: Full AOT with LLVM doens't seem to work on Windows (Mono 2.11 alpha, also doe...
Status: RESOLVED FEATURE
Alias: None
Product: Runtime
Classification: Mono
Component: JIT ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Duncan Mak
URL:
Depends on:
Blocks:
 
Reported: 2012-03-28 06:28 UTC by Rogier
Modified: 2012-04-24 00:08 UTC (History)
6 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FEATURE

Description Rogier 2012-03-28 06:28:33 UTC
Some examples to illustrate the issue. hello.exe is a plain and simple Hello World C# application.

c:\mono\bin>mono hello.exe
Hello World

c:\mono\bin>mono --llvm hello.exe
Hello World

c:\mono\bin>mono --aot=full hello.exe
Mono Ahead of Time compiler - compiling assembly c:\mono\bin\hello.exe
Code: 667 Info: 21 Ex Info: 70 Unwind Info: 40 Class Info: 129 PLT: 6 GOT Info: 101 GOT: 48 Offsets: 79
Executing the native assembler: as   -o C:\DOCUME~1\ROGIER~1\LOCALS~1\Temp\mono_aot_a03756.o C:\DOCUME~1\ROGIER~1\LOCALS~1\Temp\mono_aot_a03756
as is not recognised as and internal or external command, 
program or batch file.
AOT of image hello.exe failed.

(ok this might work if I'd install an assembler)

c:\mono\bin>mono --llvm --aot=full hello.exe
Mono Ahead of Time compiler - compiling assembly c:\mono\bin\sample.exe
* Assertion at image-writer.c:2177, condition `fp' not met

c:\mono\bin>mono --llvm --full-aot sample.exe
Attempting to allocate from the global code manager while running with --aot-only.


This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

c:\mono\bin>mono --full-aot hello.exe
Attempting to allocate from the global code manager while running with --aot-only.

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
Comment 1 Rogier 2012-03-28 06:32:02 UTC
Sorry, my hello.exe was called sample.exe earlier, I replaced it, but missed some places above. I am not able to edit the comment.
Comment 2 Zoltan Varga 2012-03-29 02:53:20 UTC
AOT is not supported under windows at the moment.