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)

See Also:
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

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>

Note You need to log in before you can comment on or make changes to this bug.