Bug 32015 - Wrong libmonoruntime-static.a reference in mono/dis with --disable-sgen
Summary: Wrong libmonoruntime-static.a reference in mono/dis with --disable-sgen
Status: NEW
Alias: None
Product: Runtime
Classification: Mono
Component: General (show other bugs)
Version: 4.0.0
Hardware: PC Other
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-07-16 07:48 UTC by Rainer Orth
Modified: 2016-02-09 23:41 UTC (History)
3 users (show)

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


Attachments
proposed patch (552 bytes, application/octet-stream)
2015-07-16 07:48 UTC, Rainer Orth
Details


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 for Bug 32015 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
NEW

Description Rainer Orth 2015-07-16 07:48:35 UTC
Created attachment 12066 [details]
proposed patch

When initially building mono 4.0.2.5 on 64-bit Solaris 11/x86, I configured with --disable-sgen since this had
been the only way to get a working mono 3.2.6.  Unfortunately, this causes breakage on 4.0: 

make[3]: *** No rule to make target `../../mono/metadata/libmonoruntime-static.a', needed by `monodis'.  Stop.
make[3]: Leaving directory `/vol/obj/mono/mono-4.0.2/mono/dis'

It's pretty obvious that this cannot work: when libtool is in use, there are no .a libraries in the respective
directories.  If I change the reference to a .la, the build works, as done in the attached patch.

  Rainer
Comment 1 Paul Schneider 2016-02-09 23:41:18 UTC
I tried to compile and faced an "Nested exception detected." at linking mscorlib.dll:

   Unhandled Exception:
   Nested exception detected.
   Original Exception: at System.Text.StringBuilderCache.Acquire (int) <0x0003c>
   at string.FormatHelper (System.IFormatProvider,string,System.ParamsArray) <0x00035>
   at string.Format (System.IFormatProvider,string,object[]) <0x000bf>
   at System.Environment.GetResourceString (string,object[]) <0x0003a>
   at System.TypeInitializationException..ctor (string,System.Exception) <0x00058>
   at Mono.CSharp.Driver.Main (string[]) <0x00059>

   Nested exception:at System.Text.StringBuilderCache.Acquire (int) <0x0003c>
   at string.FormatHelper (System.IFormatProvider,string,System.ParamsArray) <0x00035>
   at string.Format (string,object,object,object) <0x00092>
   at System.Diagnostics.StackTrace.AddFrames (System.Text.StringBuilder) <0x00071>
   at System.Diagnostics.StackTrace.ToString () <0x000e1>
   at System.Exception.get_StackTrace () <0x00065>
   at System.Exception.ToString () <0x0010a>


   [ERROR] FATAL UNHANDLED EXCEPTION: Nested exception detected.
   Original Exception: at System.Text.StringBuilderCache.Acquire (int) <0x0003c>
   at string.FormatHelper (System.IFormatProvider,string,System.ParamsArray) <0x00035>
   at string.Format (System.IFormatProvider,string,object[]) <0x000bf>
   at System.Environment.GetResourceString (string,object[]) <0x0003a>
   at System.TypeInitializationException..ctor (string,System.Exception) <0x00058>
   at Mono.CSharp.Driver.Main (string[]) <0x00059>

   Nested exception:at System.Text.StringBuilderCache.Acquire (int) <0x0003c>
   at string.FormatHelper (System.IFormatProvider,string,System.ParamsArray) <0x00035>
   at string.Format (string,object,object,object) <0x00092>
   at System.Diagnostics.StackTrace.AddFrames (System.Text.StringBuilder) <0x00071>
   at System.Diagnostics.StackTrace.ToString () <0x000e1>
   at System.Exception.get_StackTrace () <0x00065>
   at System.Exception.ToString () <0x0010a>