[Mono-dev] build mono with dynamic sgen library
Felix Rubio
felix at kngnt.org
Wed Mar 30 14:11:03 UTC 2016
Hi Alexander, Martin
I had seen the flag in the configure, but I thought it would switch
all the libraries to shared... and I was looking towards libmonosgen
only. Anyway, after applying the flag and correcting that file
(mini/main.c), I am getting this error now:
Creating the per profile list
../../build/deps/net_4_x_corlib.dll.sources ...
MCS [net_4_x] 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)
<0x0005b>
at Mono.CSharp.Driver.Main (string[]) <0x00059>
Is this a bug, or am I doing something wrong?
Thank you :)
---
Felix Rubio
"Don't believe what you're told. Double check."
On 2016-03-30 15:24, Martin Potter wrote:
> Felix,
>
> Unless they have fixed
> https://bugzilla.xamarin.com/show_bug.cgi?id=33081 since 4.2, you will
> need to comment out
> https://github.com/mono/mono/blob/master/mono/mini/main.c#L51 in order
> to build.
>
> From:
> <mono-devel-list-bounces at lists.ximian.com<mailto:mono-devel-list-bounces at lists.ximian.com>>
> on behalf of Alexander Köplinger
> <alexander.koeplinger at xamarin.com<mailto:alexander.koeplinger at xamarin.com>>
> Date: Wednesday, March 30, 2016 at 6:05 AM
> To: Felix Rubio <felix at kngnt.org<mailto:felix at kngnt.org>>
> Cc: "Mono-Devel (E-mail)"
> <mono-devel-list at lists.ximian.com<mailto:mono-devel-list at lists.ximian.com>>
> Subject: Re: [Mono-dev] build mono with dynamic sgen library
>
> You should be able to do that by passing --with-static_mono=no to
> autogen.sh/configure<http://autogen.sh/configure>:
> http://www.mono-project.com/docs/compiling-mono/unsupported-advanced-compile-options/#static-vs-dynamic-mono
>
> -- Alex
>
> 2016-03-30 14:31 GMT+02:00 Felix Rubio
> <felix at kngnt.org<mailto:felix at kngnt.org>>:
> Hi all,
>
> for a little experiment, I am trying to build the library
> libmonosgen as a .so, and to get mono to get linked to it instead of
> libmonosgen.a. The reason is that I want to intercept some of the
> calls to get some PAPI counters, measurements, etc., and to switch
> on/off this instrumentation library on a per execution basis.
>
> After spending 2 hours trying to do it, I have miserably failed (I
> have not worked with autotools before). Does anybody have an idea on
> how to achieve this?
>
> Thank you very much,
> Felix
>
> --
> Felix Rubio
> "Don't believe what you're told. Double check."
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com<mailto:Mono-devel-list at lists.ximian.com>
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
More information about the Mono-devel-list
mailing list