Bug 25634 - make get-monolite-latest broken AND (thus) mono compilation fails
Summary: make get-monolite-latest broken AND (thus) mono compilation fails
Status: RESOLVED DUPLICATE of bug 16687
Alias: None
Product: Runtime
Classification: Mono
Component: General ()
Version: unspecified
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-12-29 02:52 UTC by Egbert
Modified: 2015-01-02 19:01 UTC (History)
3 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 DUPLICATE of bug 16687

Description Egbert 2014-12-29 02:52:11 UTC
MONO-3.10.0.20

make get-monolite-latest is broken (again).

This time, it expects version 111 as mscorlib.dll is version 111, but after some trying, there IS version 113, which however, leads to a failed compilation of mono later in the process.

in mono/metadata/appdomain.c there is 
#define MONO_CORLIB_VERSION 111

Makefile.am shells and refers to this:
SO 
http://storage.box.xamarin.com/mono-dist-master/latest/monolite-111-latest.tar.gz 
should exist.

However, if I hack this monolite_url to be 113, it would fail as well in the compilation of mono:

complaining that mscorlib.dll is 'out of sync'. 




make[2]: Entering directory `/root/monobuild/mono/runtime'
if test -w /root/monobuild/mono/mcs; then :; else chmod -R +w /root/monobuild/mo           no/mcs; fi
cd /root/monobuild/mono/mcs && make --no-print-directory -s NO_DIR_CHECK=1 PROFI           LES='net_2_0 net_3_5 net_4_0 net_4_5 xbuild_12   ' CC='gcc' all-profiles
Bootstrap compiler: Mono C# compiler version 3.2.8.0
make[6]: *** [build/deps/basic-profile-check.out] Error 1
*** The compiler 'gmcs' doesn't appear to be usable.
*** Trying the 'monolite' directory.
cant resolve internal call to "System.String::InternalSetLength(int)" (tested wi           thout signature also)

Your mono runtime and class libraries are out of sync.
The out of sync library is: /root/monobuild/mono/mcs/class/lib/monolite/mscorlib           .dll

When you update one from svn you need to update, compile and install
the other too.
Do not report this as a bug unless you're sure you have updated correctly:
you probably have a broken mono install.
If you see other errors or faults after this message they are probably related
and you need to fix your mono install first.
cant resolve internal call to "System.String::InternalSetLength(int)" (tested wi           thout signature also)

Your mono runtime and class libraries are out of sync.
The out of sync library is: /root/monobuild/mono/mcs/class/lib/monolite/mscorlib           .dll

When you update one from svn you need to update, compile and install
the other too.
Do not report this as a bug unless you're sure you have updated correctly:
you probably have a broken mono install.
If you see other errors or faults after this message they are probably related
and you need to fix your mono install first.

Unhandled Exception:
Nested exception detected.
Original Exception: at Mono.CSharp.Driver.Main (string[]) <0x00057>

Nested exception:at (wrapper managed-to-native) string.InternalSetLength (int) <           0x0005b>
at System.Text.StringBuilder.ToString () <0x00113>
at string.Format (System.IFormatProvider,string,object[]) <0x00030>
at string.Format (string,object,object) <0x00073>
at System.Exception.get_StackTrace () <0x0009b>
at System.Exception.ToString () <0x00127>
at System.Exception.ToString () <0x000d5>
at System.Exception.ToString () <0x000d5>


[ERROR] FATAL UNHANDLED EXCEPTION: Nested exception detected.
Original Exception: at Mono.CSharp.Driver.Main (string[]) <0x00057>

Nested exception:at (wrapper managed-to-native) string.InternalSetLength (int) <           0x0005b>
at System.Text.StringBuilder.ToString () <0x00113>
at string.Format (System.IFormatProvider,string,object[]) <0x00030>
at string.Format (string,object,object) <0x00073>
at System.Exception.get_StackTrace () <0x0009b>
at System.Exception.ToString () <0x00127>
at System.Exception.ToString () <0x000d5>
at System.Exception.ToString () <0x000d5>


make[8]: *** [build/deps/basic-profile-check.exe] Error 1
*** The contents of your 'monolite' directory may be out-of-date
*** You may want to try 'make get-monolite-latest'
make[8]: *** [do-profile-check-monolite] Error 1
make[7]: *** [do-profile-check] Error 2
make[6]: *** [do-profile-check-monolite] Error 2
make[5]: *** [do-profile-check] Error 2
make[4]: *** [profile-do--basic--all] Error 2
make[3]: *** [profiles-do--all] Error 2
make[2]: *** [all-local] Error 2
make[2]: Leaving directory `/root/monobuild/mono/runtime'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/monobuild/mono'
make: *** [all] Error 2
Comment 1 Egbert 2014-12-29 03:01:23 UTC
Excuse for the wrong error:
Make should be started with 
make EXTERNAL_MCS="${PWD}/mcs/class/lib/monolite/basic.exe"

And here is the error message (ignore the one above)

cd /root/monobuild/mono/mcs && make --no-print-directory -s NO_DIR_CHECK=1 PROFILES='net_2_0 net_3_5 net_4_0 net_4_5 xbuild_12   ' CC='gcc' all-profiles
Bootstrap compiler: Mono C# compiler version 3.99.0.0
make[6]: *** [build/deps/basic-profile-check.out] Error 1
*** The compiler '/root/monobuild/mono/mcs/class/lib/monolite/basic.exe' doesn't appear to be usable.
*** Trying the 'monolite' directory.
cant resolve internal call to "System.String::InternalSetLength(int)" (tested without signature also)

Your mono runtime and class libraries are out of sync.
The out of sync library is: /root/monobuild/mono/mcs/class/lib/monolite/mscorlib.dll

When you update one from svn you need to update, compile and install
the other too.
Do not report this as a bug unless you're sure you have updated correctly:
you probably have a broken mono install.
If you see other errors or faults after this message they are probably related
and you need to fix your mono install first.
cant resolve internal call to "System.String::InternalSetLength(int)" (tested without signature also)

Your mono runtime and class libraries are out of sync.
The out of sync library is: /root/monobuild/mono/mcs/class/lib/monolite/mscorlib.dll

When you update one from svn you need to update, compile and install
the other too.
Do not report this as a bug unless you're sure you have updated correctly:
you probably have a broken mono install.
If you see other errors or faults after this message they are probably related
and you need to fix your mono install first.

Unhandled Exception:
Nested exception detected.
Original Exception: at Mono.CSharp.Driver.Main (string[]) <0x00057>

Nested exception:at (wrapper managed-to-native) string.InternalSetLength (int) <0x0005b>
at System.Text.StringBuilder.ToString () <0x00113>
at string.Format (System.IFormatProvider,string,object[]) <0x00030>
at string.Format (string,object,object) <0x00073>
at System.Exception.get_StackTrace () <0x0009b>
at System.Exception.ToString () <0x00127>
at System.Exception.ToString () <0x000d5>
at System.Exception.ToString () <0x000d5>


[ERROR] FATAL UNHANDLED EXCEPTION: Nested exception detected.
Original Exception: at Mono.CSharp.Driver.Main (string[]) <0x00057>

Nested exception:at (wrapper managed-to-native) string.InternalSetLength (int) <0x0005b>
at System.Text.StringBuilder.ToString () <0x00113>
at string.Format (System.IFormatProvider,string,object[]) <0x00030>
at string.Format (string,object,object) <0x00073>
at System.Exception.get_StackTrace () <0x0009b>
at System.Exception.ToString () <0x00127>
at System.Exception.ToString () <0x000d5>
at System.Exception.ToString () <0x000d5>


make[8]: *** [build/deps/basic-profile-check.exe] Error 1
*** The contents of your 'monolite' directory may be out-of-date
*** You may want to try 'make get-monolite-latest'
make[8]: *** [do-profile-check-monolite] Error 1
make[7]: *** [do-profile-check] Error 2
make[6]: *** [do-profile-check-monolite] Error 2
make[5]: *** [do-profile-check] Error 2
make[4]: *** [profile-do--basic--all] Error 2
make[3]: *** [profiles-do--all] Error 2
make[2]: *** [all-local] Error 2
make[2]: Leaving directory `/root/monobuild/mono/runtime'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/monobuild/mono'
make: *** [all] Error 2
Comment 2 Zoltan Varga 2015-01-02 19:01:26 UTC

*** This bug has been marked as a duplicate of bug 16687 ***