Re: [Mono-dev] Mono on ARM
I tried compiling from a snapshot (took the mono 2.0 branch, right?) but I got a compilation error. It seems mono-profiler-logging.c uses the struct stat 'st_mtim'. But this field only exists if __USE_MISC is defined, which in turn is defined by the features.h file. I noticed in the configure script there is a flag called enable-minimal. If I do enable-minimal=profile, will this disable the profiler? (am I on a good track here?) mono-profiler-aot.c:125: warning: no previous prototype for 'mono_profiler_startup'LD libmono-profiler-aot.laCC mono-profiler-logging.lomono-profiler-logging.c: In function 'executable_file_add_region_reference':mono-profiler-logging.c:2532: warning: cast increases required alignment of target typemono-profiler-logging.c: In function 'executable_file_open':mono-profiler-logging.c:2593: warning: cast increases required alignment of target typemono-profiler-logging.c:2633: warning: cast increases required alignment of target typemono-profiler-logging.c:2636: warning: cast increases required alignment of target typemono-profiler-logging.c:2663: warning: cast increases required alignment of target typemono-profiler-logging.c:2667: warning: cast increases required alignment of target typemono-profiler-logging.c: In function 'executable_file_count_symbols':mono-profiler-logging.c:2722: warning: cast increases required alignment of target typemono-profiler-logging.c: In function 'executable_region_symbol_get_name':mono-profiler-logging.c:2751: warning: cast increases required alignment of target typemono-profiler-logging.c: In function 'executable_file_build_symbol_tables':mono-profiler-logging.c:2760: warning: cast increases required alignment of target typemono-profiler-logging.c: In function 'profiler_heap_shot_process_command_file':mono-profiler-logging.c:4029: error: 'struct stat' has no member named 'st_mtim'make[3]: *** [mono-profiler-logging.lo] Error 1make[3]: Leaving directory `/home/ubuntu/Install/cross-arm-mono-2.0/mono/mono/profiler'make[2]: *** [all-recursive] Error 1make[2]: Leaving directory `/home/ubuntu/Install/cross-arm-mono-2.0/mono/mono'make[1]: *** [all-recursive] Error 1make[1]: Leaving directory `/home/ubuntu/Install/cross-arm-mono-2.0/mono'make: *** [all] Error [EMAIL PROTECTED]:~/Install/cross-arm-mono-2.0/mono$ ./configure -h From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Thu, 4 Sep 2008 20:10:16 +CC: [EMAIL PROTECTED]: Re: [Mono-dev] Mono on ARM Thanks for the quick response. It is interesting what you say since I was actually going through all the changesets since 1.9.1 and I noticed many fixes regarding th earm, softfloat, ... I will get the latest code and try it out. Thanks. Date: Thu, 4 Sep 2008 16:43:49 -0300From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Re: [Mono-dev] Mono on ARMCC: mono-devel-list@lists.ximian.com A lot of bugs with soft float has been fixed for the 2.0 release and even more work went in the current development branch.Please test with the 2.0 snapshot builds and report your bugs so we can fix then in time for the release. 2008/9/4 FirstName LastName [EMAIL PROTECTED] Hi, I'm trying to run mono 1.9.1 on the arm (ARM9). I have an issue when I try to cast a long to a double. It simply does nothing. · I'm using soft float in FPA (actually, the configure script seems to detect it properly - it defines ARM_FPU_FPA). · I'm using GNU EABI. · When I do a mathematical operation on doubles, it works (Test in C#). · When I print (Console.WriteLine) a double, it works (Test in C#). · When I cast an int to a double, it works. · I tried to define ARM_FPU_NONE and it generates an ExecutionEngineException (so, obviously, I dropped it.) · I tried to define __ARM_EABI__ and it generates an ExecutionEngineException (so, obviously, I dropped it.) When I cast a long to a double, it doesn't work. Here is what I do: int i = 1234;long l = 1234;float f = 1234.56;double d = 1234.56;double result = 64; result = (double)i;Console.WriteLine(Result (cast from int): + result); - It shows me 1234. This is good. result = 64;result = (double)f;Console.WriteLine(Result (cast from float): + result); - It shows me 1234.56. This is also very good. result = 64;result = (double)I;Console.WriteLine(Result (cast from long): + result); - It shows me 64 This is not good. Am I missing something? Any other pointers? Upgrade to Hotmail Plus and share more photos with bigger attachments. Click here to find out how Click here to find out how___Mono-devel-list mailing [EMAIL PROTECTED]://lists.ximian.com/mailman/listinfo/mono-devel-list Upgrade to Hotmail Plus and share more photos with bigger attachments. Click here to find out how Click here to find out how _ ___
Re: [Mono-dev] Mono on ARM
Yes, enable-minimal does exactly what you want. Thou the issue you found should be properly handled by the configure script. Massi, do you mind taking a look at that? If you have too much stuff on your hand this week I can take a look at how to add proper configure foo around. On Mon, Sep 8, 2008 at 8:25 AM, FirstName LastName [EMAIL PROTECTED]wrote: I tried compiling from a snapshot (took the mono 2.0 branch, right?) but I got a compilation error. It seems mono-profiler-logging.c uses the struct stat 'st_mtim'. But this field only exists if __USE_MISC is defined, which in turn is defined by the features.h file. I noticed in the configure script there is a flag called enable-minimal. If I do enable-minimal=profile, will this disable the profiler? (am I on a good track here?) mono-profiler-aot.c:125: warning: no previous prototype for 'mono_profiler_startup' LD libmono-profiler-aot.la CC mono-profiler-logging.lo mono-profiler-logging.c: In function 'executable_file_add_region_reference': mono-profiler-logging.c:2532: warning: cast increases required alignment of target type mono-profiler-logging.c: In function 'executable_file_open': mono-profiler-logging.c:2593: warning: cast increases required alignment of target type mono-profiler-logging.c:2633: warning: cast increases required alignment of target type mono-profiler-logging.c:2636: warning: cast increases required alignment of target type mono-profiler-logging.c:2663: warning: cast increases required alignment of target type mono-profiler-logging.c:2667: warning: cast increases required alignment of target type mono-profiler-logging.c: In function 'executable_file_count_symbols': mono-profiler-logging.c:2722: warning: cast increases required alignment of target type mono-profiler-logging.c: In function 'executable_region_symbol_get_name': mono-profiler-logging.c:2751: warning: cast increases required alignment of target type mono-profiler-logging.c: In function 'executable_file_build_symbol_tables': mono-profiler-logging.c:2760: warning: cast increases required alignment of target type mono-profiler-logging.c: In function 'profiler_heap_shot_process_command_file': mono-profiler-logging.c:4029: error: 'struct stat' has no member named 'st_mtim' make[3]: *** [mono-profiler-logging.lo] Error 1 make[3]: Leaving directory `/home/ubuntu/Install/cross-arm-mono-2.0/mono/mono/profiler' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/ubuntu/Install/cross-arm-mono-2.0/mono/mono' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/ubuntu/Install/cross-arm-mono-2.0/mono' make: *** [all] Error 2 [EMAIL PROTECTED]:~/Install/cross-arm-mono-2.0/mono$[EMAIL PROTECTED]:%7E/Install/cross-arm-mono-2.0/mono$./configure -h -- From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Thu, 4 Sep 2008 20:10:16 + CC: mono-devel-list@lists.ximian.com Subject: Re: [Mono-dev] Mono on ARM Thanks for the quick response. It is interesting what you say since I was actually going through all the changesets since 1.9.1 and I noticed many fixes regarding th earm, softfloat, ... I will get the latest code and try it out. Thanks. -- Date: Thu, 4 Sep 2008 16:43:49 -0300 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [Mono-dev] Mono on ARM CC: mono-devel-list@lists.ximian.com A lot of bugs with soft float has been fixed for the 2.0 release and even more work went in the current development branch. Please test with the 2.0 snapshot builds and report your bugs so we can fix then in time for the release. 2008/9/4 FirstName LastName [EMAIL PROTECTED] Hi, I'm trying to run mono 1.9.1 on the arm (ARM9). I have an issue when I try to cast a long to a double. It simply does nothing. · I'm using soft float in FPA (actually, the configure script seems to detect it properly - it defines ARM_FPU_FPA). · I'm using GNU EABI. · When I do a mathematical operation on doubles, it works (Test in C#). · When I print (Console.WriteLine) a double, it works (Test in C#). · When I cast an int to a double, it works. · I tried to define ARM_FPU_NONE and it generates an ExecutionEngineException (so, obviously, I dropped it.) · I tried to define __ARM_EABI__ and it generates an ExecutionEngineException (so, obviously, I dropped it.) When I cast a long to a double, it doesn't work. Here is what I do: int i = 1234; long l = 1234; float f = 1234.56; double d = 1234.56; double result = 64; result = (double)i; Console.WriteLine(Result (cast from int): + result); - It shows me 1234. This is good. result = 64; result = (double)f; Console.WriteLine(Result (cast from float): + result); - It shows me 1234.56. This is also very good. result = 64; result = (double)I; Console.WriteLine(Result (cast
Re: [Mono-dev] Mono on ARM
I tried to disable the profiler but I still get the same compiler issue. I doubled checked by looking into the config.log file and it says that the profiler is disabled (actually, even when the configure script finishes). Am I missing something? Date: Mon, 8 Sep 2008 11:17:19 -0300From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Re: [Mono-dev] Mono on ARMCC: mono-devel-list@lists.ximian.com; [EMAIL PROTECTED] Yes, enable-minimal does exactly what you want.Thou the issue you found should be properly handled by the configure script.Massi, do you mind taking a look at that? If you have too much stuff on your hand this week Ican take a look at how to add proper configure foo around. On Mon, Sep 8, 2008 at 8:25 AM, FirstName LastName [EMAIL PROTECTED] wrote: I tried compiling from a snapshot (took the mono 2.0 branch, right?) but I got a compilation error. It seems mono-profiler-logging.c uses the struct stat 'st_mtim'. But this field only exists if __USE_MISC is defined, which in turn is defined by the features.h file. I noticed in the configure script there is a flag called enable-minimal. If I do enable-minimal=profile, will this disable the profiler? (am I on a good track here?) mono-profiler-aot.c:125: warning: no previous prototype for 'mono_profiler_startup'LD libmono-profiler-aot.laCC mono-profiler-logging.lomono-profiler-logging.c: In function 'executable_file_add_region_reference':mono-profiler-logging.c:2532: warning: cast increases required alignment of target typemono-profiler-logging.c: In function 'executable_file_open':mono-profiler-logging.c:2593: warning: cast increases required alignment of target typemono-profiler-logging.c:2633: warning: cast increases required alignment of target typemono-profiler-logging.c:2636: warning: cast increases required alignment of target typemono-profiler-logging.c:2663: warning: cast increases required alignment of target typemono-profiler-logging.c:2667: warning: cast increases required alignment of target typemono-profiler-logging.c: In function 'executable_file_count_symbols':mono-profiler-logging.c:2722: warning: cast increases required alignment of target typemono-profiler-logging.c: In function 'executable_region_symbol_get_name':mono-profiler-logging.c:2751: warning: cast increases required alignment of target typemono-profiler-logging.c: In function 'executable_file_build_symbol_tables':mono-profiler-logging.c:2760: warning: cast increases required alignment of target typemono-profiler-logging.c: In function 'profiler_heap_shot_process_command_file':mono-profiler-logging.c:4029: error: 'struct stat' has no member named 'st_mtim'make[3]: *** [mono-profiler-logging.lo] Error 1make[3]: Leaving directory `/home/ubuntu/Install/cross-arm-mono-2.0/mono/mono/profiler'make[2]: *** [all-recursive] Error 1make[2]: Leaving directory `/home/ubuntu/Install/cross-arm-mono-2.0/mono/mono'make[1]: *** [all-recursive] Error 1make[1]: Leaving directory `/home/ubuntu/Install/cross-arm-mono-2.0/mono'make: *** [all] Error [EMAIL PROTECTED]:~/Install/cross-arm-mono-2.0/mono$ ./configure -h From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Thu, 4 Sep 2008 20:10:16 + CC: [EMAIL PROTECTED]: Re: [Mono-dev] Mono on ARMThanks for the quick response. It is interesting what you say since I was actually going through all the changesets since 1.9.1 and I noticed many fixes regarding th earm, softfloat, ... I will get the latest code and try it out. Thanks. Date: Thu, 4 Sep 2008 16:43:49 -0300From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Re: [Mono-dev] Mono on ARMCC: mono-devel-list@lists.ximian.com A lot of bugs with soft float has been fixed for the 2.0 release and even more work went in the current development branch.Please test with the 2.0 snapshot builds and report your bugs so we can fix then in time for the release. 2008/9/4 FirstName LastName [EMAIL PROTECTED] Hi, I'm trying to run mono 1.9.1 on the arm (ARM9). I have an issue when I try to cast a long to a double. It simply does nothing. · I'm using soft float in FPA (actually, the configure script seems to detect it properly - it defines ARM_FPU_FPA). · I'm using GNU EABI. · When I do a mathematical operation on doubles, it works (Test in C#). · When I print (Console.WriteLine) a double, it works (Test in C#). · When I cast an int to a double, it works. · I tried to define ARM_FPU_NONE and it generates an ExecutionEngineException (so, obviously, I dropped it.) · I tried to define __ARM_EABI__ and it generates an ExecutionEngineException (so, obviously, I dropped it.) When I cast a long to a double, it doesn't work. Here is what I do: int i = 1234;long l = 1234;float f = 1234.56;double d = 1234.56;double result = 64; result = (double)i;Console.WriteLine(Result (cast from int): + result); - It shows me 1234. This is good. result = 64;result = (double)f;Console.WriteLine(Result (cast from
Re: [Mono-dev] Mono on ARM
On Mon, 2008-09-08 at 16:28 +, FirstName LastName wrote: I tried to disable the profiler but I still get the same compiler issue. I doubled checked by looking into the config.log file and it says that the profiler is disabled (actually, even when the configure script finishes). Am I missing something? Disabling the profiler does not build it inside the runtime (thanks to AC_DEFINE(DISABLE_PROFILER, 1, [Disable default profiler support]) in configure.in). Unfortunately, the external modules in the mono/profiler directory are built anyway. I am cooking a patch to fix it right now, adding an AC_CONDITIONAL and using it in Makefile.am, just like JIT_SUPPORTED (which also can disable all the external profilers). Anyway, if you just temporarily remove libmono-profiler-logging.la form Makefile.am in mono/profiler you should avoid the issue. Thanks! Massi ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Preview 3?
I'm publishing RC1 today (more on that soon). We will be tagging 2.0 RC2 on Wednesday morning Sept 10. We dearly hope we can ship that build as 2.0 Final so that we can get it into openSUSE before their code freeze. Paul [EMAIL PROTECTED] 09/07/08 6:51 AM Will there be a preview 3 release before we hit the 2.0 final? It might not be a bad idea IMHO... ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Mono on ARM
Thanks Massi (that's how they call you, right?). I haven't tried you fix yet since I'm working from the branch 2.0 and not the current head. I used the work around that was provided. I got things to compile but now I have a runtime issue. I get the following error at runtime: ** (Loader.exe:1116): WARNING **: unknown opcode r4const in mono_arch_output_basic_block() ** ERROR **: file mini-arm.c: line 3242 (mono_arch_output_basic_block): should not be reachedaborting...Trace/breakpoint trap I'm running a sample test on floats and doubles as specified in the in the first part of the e-mail. I've looked into the file mini-arm.c and it would seem (if I'm reading this right) that the ARM_FPU_FPA needs to be defined. I will try this but in version 1.9.1, there was a FPU check in the configure script. I've looked in the config.log but don't see this. Am I making sense? From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Mon, 8 Sep 2008 16:28:26 +CC: [EMAIL PROTECTED]; [EMAIL PROTECTED]: Re: [Mono-dev] Mono on ARM I tried to disable the profiler but I still get the same compiler issue. I doubled checked by looking into the config.log file and it says that the profiler is disabled (actually, even when the configure script finishes). Am I missing something? Date: Mon, 8 Sep 2008 11:17:19 -0300From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Re: [Mono-dev] Mono on ARMCC: mono-devel-list@lists.ximian.com; [EMAIL PROTECTED] Yes, enable-minimal does exactly what you want.Thou the issue you found should be properly handled by the configure script.Massi, do you mind taking a look at that? If you have too much stuff on your hand this week Ican take a look at how to add proper configure foo around. On Mon, Sep 8, 2008 at 8:25 AM, FirstName LastName [EMAIL PROTECTED] wrote: I tried compiling from a snapshot (took the mono 2.0 branch, right?) but I got a compilation error. It seems mono-profiler-logging.c uses the struct stat 'st_mtim'. But this field only exists if __USE_MISC is defined, which in turn is defined by the features.h file. I noticed in the configure script there is a flag called enable-minimal. If I do enable-minimal=profile, will this disable the profiler? (am I on a good track here?) mono-profiler-aot.c:125: warning: no previous prototype for 'mono_profiler_startup'LD libmono-profiler-aot.laCC mono-profiler-logging.lomono-profiler-logging.c: In function 'executable_file_add_region_reference':mono-profiler-logging.c:2532: warning: cast increases required alignment of target typemono-profiler-logging.c: In function 'executable_file_open':mono-profiler-logging.c:2593: warning: cast increases required alignment of target typemono-profiler-logging.c:2633: warning: cast increases required alignment of target typemono-profiler-logging.c:2636: warning: cast increases required alignment of target typemono-profiler-logging.c:2663: warning: cast increases required alignment of target typemono-profiler-logging.c:2667: warning: cast increases required alignment of target typemono-profiler-logging.c: In function 'executable_file_count_symbols':mono-profiler-logging.c:2722: warning: cast increases required alignment of target typemono-profiler-logging.c: In function 'executable_region_symbol_get_name':mono-profiler-logging.c:2751: warning: cast increases required alignment of target typemono-profiler-logging.c: In function 'executable_file_build_symbol_tables':mono-profiler-logging.c:2760: warning: cast increases required alignment of target typemono-profiler-logging.c: In function 'profiler_heap_shot_process_command_file':mono-profiler-logging.c:4029: error: 'struct stat' has no member named 'st_mtim'make[3]: *** [mono-profiler-logging.lo] Error 1make[3]: Leaving directory `/home/ubuntu/Install/cross-arm-mono-2.0/mono/mono/profiler'make[2]: *** [all-recursive] Error 1make[2]: Leaving directory `/home/ubuntu/Install/cross-arm-mono-2.0/mono/mono'make[1]: *** [all-recursive] Error 1make[1]: Leaving directory `/home/ubuntu/Install/cross-arm-mono-2.0/mono'make: *** [all] Error [EMAIL PROTECTED]:~/Install/cross-arm-mono-2.0/mono$ ./configure -h From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Thu, 4 Sep 2008 20:10:16 + CC: [EMAIL PROTECTED]: Re: [Mono-dev] Mono on ARMThanks for the quick response. It is interesting what you say since I was actually going through all the changesets since 1.9.1 and I noticed many fixes regarding th earm, softfloat, ... I will get the latest code and try it out. Thanks. Date: Thu, 4 Sep 2008 16:43:49 -0300From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Re: [Mono-dev] Mono on ARMCC: mono-devel-list@lists.ximian.com A lot of bugs with soft float has been fixed for the 2.0 release and even more work went in the current development branch.Please test with the 2.0 snapshot builds and report your bugs so we can fix then in time for the release. 2008/9/4 FirstName LastName [EMAIL PROTECTED] Hi, I'm trying to run mono
[Mono-dev] [Patch] Simple optimization to String.Replace and StringBuilder.Replace
Hello, Attached you'll find a patch which reduces the number of allocations done in String.Replace and StringBuilder.Replace. All unit tests pass, ChangeLog entries are included. Please review. - Juraj PS: I've already posted this patch back in June, but this time I've leaving out the controversial part. http://lists.ximian.com/pipermail/mono-devel-list/2008-June/028239.html Index: corlib/System/ChangeLog === --- corlib/System/ChangeLog (revision 112532) +++ corlib/System/ChangeLog (working copy) @@ -1,3 +1,8 @@ +2008-09-08 Juraj Skripsky [EMAIL PROTECTED] + + * String.cs (ReplaceUnchecked): Avoid any unnecessary work and + string allocations by returning early when no oldValue was found. + 2008-09-07 Miguel de Icaza [EMAIL PROTECTED] * TermInfoDriver.cs: Add support for updating the size of the Index: corlib/System/String.cs === --- corlib/System/String.cs (revision 112532) +++ corlib/System/String.cs (working copy) @@ -1689,6 +1689,8 @@ } i = found + oldValue.length; } +if (count == 0) + return this; int nlen = this.length + ((newValue.length - oldValue.length) * count); String tmp = InternalAllocateStr (nlen); Index: corlib/System.Text/StringBuilder.cs === --- corlib/System.Text/StringBuilder.cs (revision 112532) +++ corlib/System.Text/StringBuilder.cs (working copy) @@ -309,15 +309,22 @@ if (oldValue.Length == 0) throw new ArgumentException (The old value cannot be zero length.); - // TODO: OPTIMIZE! - string replace = _str.Substring(startIndex, count).Replace(oldValue, newValue); + string substr = _str.Substring(startIndex, count); + string replace = substr.Replace(oldValue, newValue); + // return early if no oldValue was found + if ((object) replace == (object) substr) +return this; InternalEnsureCapacity (replace.Length + (_length - count)); - string end = _str.Substring (startIndex + count, _length - startIndex - count ); + // shift end part + if (replace.Length count) +String.CharCopy (_str, startIndex + replace.Length, _str, startIndex + count, _length - startIndex - count); + else if (replace.Length count) +String.CharCopyReverse (_str, startIndex + replace.Length, _str, startIndex + count, _length - startIndex - count); + // copy middle part back into _str String.CharCopy (_str, startIndex, replace, 0, replace.Length); - String.CharCopy (_str, startIndex + replace.Length, end, 0, end.Length); _length = replace.Length + (_length - count); Index: corlib/System.Text/ChangeLog === --- corlib/System.Text/ChangeLog (revision 112532) +++ corlib/System.Text/ChangeLog (working copy) @@ -1,3 +1,8 @@ +2008-09-08 Juraj Skripsky [EMAIL PROTECTED] + + * StringBuilder.cs (Replace): Return early when no oldValue was + found. Avoid extra string allocations. + 2008-07-03 Andreas Nahr [EMAIL PROTECTED] * UTF8Encoding.cs: Fix parameter names, Remove unfounded TODO ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] Mono 2.0 RC1 is out!!
Hey Everyone, We've just released Mono 2.0 RC1 today! Please help us out by giving it a try with your applications. As always, you can get the preview/RC releases here: http://mono.ximian.com/monobuild/preview/download-preview/ Please report any bugs that you may find using our Bugs page, AND reply to this thread with the bug numbers so we can track them! http://www.mono-project.com/Bugs You can see the bugs we're tracking for Mono 2.0 here: https://bugzilla.novell.com/buglist.cgi?bug_file_loc_type=allwordssubstrbug_file_loc=http%3A%2F%2Fwww.go-mono.com%2Farchive%2F2.0%2Forder=bugs.bug_status%20 The earlier you file the bugs and reply to this message, the more likely your bugs will get fixed. Special attention is given to regressions, so if you can tell us a version of Mono where the bug worked and you tag the summary of the bug with [Regression], then it is much more likely your bug will get fixed. Please help the Mono team to make 2.0 the best ever. Thanks again! Mono QA ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Mono on ARM
OK, so, I forced ARM_FPU_FPA and this time, it runs but I get the same problem. In order words, the result of my test program is the same with 1.9.1 and the branch 2.0. Could someone point me when in MONO I could find the code that handles the cast from long to double? From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Mon, 8 Sep 2008 19:12:26 +CC: [EMAIL PROTECTED]; [EMAIL PROTECTED]: Re: [Mono-dev] Mono on ARM Thanks Massi (that's how they call you, right?). I haven't tried you fix yet since I'm working from the branch 2.0 and not the current head. I used the work around that was provided. I got things to compile but now I have a runtime issue. I get the following error at runtime: ** (Loader.exe:1116): WARNING **: unknown opcode r4const in mono_arch_output_basic_block()** ERROR **: file mini-arm.c: line 3242 (mono_arch_output_basic_block): should not be reachedaborting...Trace/breakpoint trapI'm running a sample test on floats and doubles as specified in the in the first part of the e-mail. I've looked into the file mini-arm.c and it would seem (if I'm reading this right) that the ARM_FPU_FPA needs to be defined. I will try this but in version 1.9.1, there was a FPU check in the configure script. I've looked in the config.log but don't see this. Am I making sense? From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Mon, 8 Sep 2008 16:28:26 +CC: [EMAIL PROTECTED]; [EMAIL PROTECTED]: Re: [Mono-dev] Mono on ARM I tried to disable the profiler but I still get the same compiler issue. I doubled checked by looking into the config.log file and it says that the profiler is disabled (actually, even when the configure script finishes). Am I missing something? Date: Mon, 8 Sep 2008 11:17:19 -0300From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Re: [Mono-dev] Mono on ARMCC: mono-devel-list@lists.ximian.com; [EMAIL PROTECTED] Yes, enable-minimal does exactly what you want.Thou the issue you found should be properly handled by the configure script.Massi, do you mind taking a look at that? If you have too much stuff on your hand this week Ican take a look at how to add proper configure foo around. On Mon, Sep 8, 2008 at 8:25 AM, FirstName LastName [EMAIL PROTECTED] wrote: I tried compiling from a snapshot (took the mono 2.0 branch, right?) but I got a compilation error. It seems mono-profiler-logging.c uses the struct stat 'st_mtim'. But this field only exists if __USE_MISC is defined, which in turn is defined by the features.h file. I noticed in the configure script there is a flag called enable-minimal. If I do enable-minimal=profile, will this disable the profiler? (am I on a good track here?) mono-profiler-aot.c:125: warning: no previous prototype for 'mono_profiler_startup'LD libmono-profiler-aot.laCC mono-profiler-logging.lomono-profiler-logging.c: In function 'executable_file_add_region_reference':mono-profiler-logging.c:2532: warning: cast increases required alignment of target typemono-profiler-logging.c: In function 'executable_file_open':mono-profiler-logging.c:2593: warning: cast increases required alignment of target typemono-profiler-logging.c:2633: warning: cast increases required alignment of target typemono-profiler-logging.c:2636: warning: cast increases required alignment of target typemono-profiler-logging.c:2663: warning: cast increases required alignment of target typemono-profiler-logging.c:2667: warning: cast increases required alignment of target typemono-profiler-logging.c: In function 'executable_file_count_symbols':mono-profiler-logging.c:2722: warning: cast increases required alignment of target typemono-profiler-logging.c: In function 'executable_region_symbol_get_name':mono-profiler-logging.c:2751: warning: cast increases required alignment of target typemono-profiler-logging.c: In function 'executable_file_build_symbol_tables':mono-profiler-logging.c:2760: warning: cast increases required alignment of target typemono-profiler-logging.c: In function 'profiler_heap_shot_process_command_file':mono-profiler-logging.c:4029: error: 'struct stat' has no member named 'st_mtim'make[3]: *** [mono-profiler-logging.lo] Error 1make[3]: Leaving directory `/home/ubuntu/Install/cross-arm-mono-2.0/mono/mono/profiler'make[2]: *** [all-recursive] Error 1make[2]: Leaving directory `/home/ubuntu/Install/cross-arm-mono-2.0/mono/mono'make[1]: *** [all-recursive] Error 1make[1]: Leaving directory `/home/ubuntu/Install/cross-arm-mono-2.0/mono'make: *** [all] Error [EMAIL PROTECTED]:~/Install/cross-arm-mono-2.0/mono$ ./configure -h From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Thu, 4 Sep 2008 20:10:16 + CC: [EMAIL PROTECTED]: Re: [Mono-dev] Mono on ARMThanks for the quick response. It is interesting what you say since I was actually going through all the changesets since 1.9.1 and I noticed many fixes regarding th earm, softfloat, ... I will get the latest code and try it out. Thanks. Date: Thu, 4 Sep 2008 16:43:49
Re: [Mono-dev] BitVector32 patch
Ping ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list