Bug 45768 - mkbundle Mono: AOT: module mscorlib.dll.so is unusable:
Summary: mkbundle Mono: AOT: module mscorlib.dll.so is unusable:
Alias: None
Product: Runtime
Classification: Mono
Component: General ()
Version: unspecified
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Katelyn Gadd
Depends on:
Reported: 2016-10-20 22:55 UTC by pr0vieh
Modified: 2017-06-19 22:35 UTC (History)
4 users (show)

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:

Description pr0vieh 2016-10-20 22:55:00 UTC

i found a little bug

when i run a bundled app and give them the runtime aot files the mscorelib.so is unusable because info->runtime_version, build_info missmatch:

Mono: AOT: module mscorlib.dll.so is unusable: compiled against runtime version '4.9.0 (master/95fe9a8 Do 20. Okt 23:41:42 CEST 2016)' while this runtime has version '4.9.0 (master/95fe9a8)'.

the problem is there


@mono runtime all fine !!

greets Pr0vieH
Comment 1 pr0vieh 2017-01-20 03:31:42 UTC
any news about this problem ?

greets Pr0vieH
Comment 2 Katelyn Gadd 2017-05-17 05:35:24 UTC

Am I correct in guessing that your system locale is Norwegian?
Comment 3 pr0vieh 2017-05-17 22:05:51 UTC
no my system locale are german

thanks for take a look :)

greets Pr0vieH
Comment 4 Katelyn Gadd 2017-05-17 22:13:23 UTC
Can you give me some basic details on how you are invoking mkbundle and how they are running the application? Thanks
Comment 5 pr0vieh 2017-05-17 22:41:41 UTC
currently this is hard to reproduce because:

but what i do is:
sudo mono --aot /usr/lib/mono/4.5/mscorlib.dll
for i in /usr/lib/mono/gac/*/*/*.dll; do sudo mono --aot $i; done

then move the needed *.so files to the same dir of your bundled application

then enable loglevel debug and you can see the information about AOT file loading

all other AOT files used fine but the mscorlib.so file is unusable because the supposed different build Version's 

i will run a test @master but i must find a way to bundle first :/

greets Pr0vieH
Comment 6 Katelyn Gadd 2017-05-24 14:31:07 UTC
Can you do me a favor and let me know:

1) Does this problem occur even if you just mkbundle a Hello World?
2) Does it occur if you mkbundle with --simple (which should work as-is)?
3) Does it matter what locale the end-user has running on their machine? Or is it as simple as 'if I mkbundle here the result doesn't work'?
Comment 7 pr0vieh 2017-06-19 22:26:27 UTC
ok i have made a recheck and the problem is gone for me

all good now!

this can closed
thanks for the attention
Comment 8 Katelyn Gadd 2017-06-19 22:35:07 UTC
Thanks for rechecking! Please reopen if it breaks again so we can figure out the cause.