Howard Rubin | 25 Jun 22:05 2015
Picon

Errors Compiling for x64 Windows

Goal: Embed mono in a 64 bit C++ Windows program (http://www.mono-project.com/docs/about-mono/languages/mixing-with-other-languages/)

 

What I tried:

Downloaded the ZIP file from github (https://github.com/mono/mono , https://github.com/mono/mono/archive/master.zip)

Read Windows compile instructions (http://www.mono-project.com/docs/compiling-mono/windows/)

Installed Cygwin with the recommended packages

Set the MONO_DEPENDENCIES_PREFIX environment variable to C:\Program Files (x86)\Mono\

Tried to compile the 6 projects in the Libraries folder with Visual Studio 2010 (in Debug/Win32) because msvc\mono.sln was last saved with that Visual Studio version.

        Result:  error MSB8008: Specified platform toolset (v120) is not installed or invalid. <snip>

Compiled the 6 projects in the Libraries folder with Visual Studio 2013 express (in Debug/Win32) Result: Success

Switched to Debug/x64 configuration

Tried to compile the 6 projects in the Libraries folder with Visual Studio 2013 express.

        Result: error C1189: #error :  Unsupported compiler.  <snip> mono-master\mono\utils\valgrind.h      454        1             libmono

 

Please help me compile mono for x64 Windows

 

Howard Rubin

 

_______________________________________________
Mono-devel-list mailing list
Mono-devel-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list
Gutemberg Ribeiro | 19 Jun 19:11 2015

Re: Cross-compiling Mono for ARM

Hello Andres...

I think I finally got it compiled but, now when I'm including on my C project the mono headers, my app don't
compile anymore:

In file included from ../../Desktop/mono-build/usr/local/include/mono-2.0/mono/utils/mono-publib.h:45,
                 from ../../Desktop/mono-build/usr/local/include/mono-2.0/mono/metadata/appdomain.h:13,
                 from ../../Desktop/mono-build/usr/local/include/mono-2.0/mono/jit/jit.h:11,
                 from C:/Users/Gutemberg/IngeDev7_workspace/MonoWrapper/Inc/mono_loader.h:1,
                 from
Src/Entry.c:43:
/cygdrive/c/Ingenico/IngeDev_7.22.2.1/plugins/com.ingenico.ingedev.telium.bin.win32.gnuarm.v434_7.20.0.1/os/win32/GNUARM/4.3.4/bin/../lib/gcc/arm-elf/4.3.4/../../../../arm-elf/include/stdint.h:243:
error: conflicting types for 'intptr_t'
C:/Ingenico/TeliumSDK/SDK 9.20.2.04/SDKTPLUS/HW_T2/gnu_434/inc/oem_vfs_def.h:35: error:
previous declaration of 'intptr_t' was
here
/cygdrive/c/Ingenico/IngeDev_7.22.2.1/plugins/com.ingenico.ingedev.telium.bin.win32.gnuarm.v434_7.20.0.1/os/win32/GNUARM/4.3.4/bin/../lib/gcc/arm-elf/4.3.4/../../../../arm-elf/include/stdint.h:244:
error: conflicting types for 'uintptr_t'
C:/Ingenico/TeliumSDK/SDK 9.20.2.04/SDKTPLUS/HW_T2/gnu_434/inc/oem_vfs_def.h:38: error:
previous declaration of 'uintptr_t' was
here
C:\Ingenico\IngeDev_7.22.2.1\plugins\com.ingenico.ingedev.generic.bin.win32_7.16.0.1\os\win32\tools\make.exe:
*** [Obj/GNU_ARM_DEBUG/Entry.o] Error
1
C:\Ingenico\IngeDev_7.22.2.1\plugins\com.ingenico.ingedev.generic.bin.win32_7.16.0.1\os\win32\tools\make.exe:
Target `build' not remade because of errors.

Any clues?

Thanks

-----Original Message-----
From: Andres G. Aragoneses [mailto:knocte <at> gmail.com] 
Sent: Friday, June 19, 2015 8:58 AM
To: Gutemberg Ribeiro <gutemberg <at> fgrit.com>
Subject: Re: Cross-compiling Mono for ARM

On 18/06/15 21:03, Gutemberg Ribeiro wrote:
> Hello guys,
>
> I'm trying to cross-compile (from Ubuntu 14.04) Mono for ARM following 
> this tutorial 
> http://www.mono-project.com/docs/about-mono/supported-platforms/arm/ 
> but the links that show how configure ScratchBox are outdated and I 
> can't find anything on the internet on how to successful setup an 
> environment and cross-compile mono for ARM...
>
> The idea is to build it as a static library so I can use it embedded 
> as suggested here: 
> http://www.mono-project.com/docs/advanced/embedding/
>
> For the sake of information, the target ARM device runs a proprietary 
> striped down distribution based on debian and we have no access to its 
> terminal or any kind of access to the OS. It is a payment terminal 
> from www.ingenico.com <http://www.ingenico.com> and it has an ARM9 
> processor and uses a proprietary SDK that looks like uses GNU ARM 
> 4.3.4 toolchain with an IDE based on Eclipse as you can see in the following picture:
>
> The only way we have to use mono on it is by adding it as a static lib 
> and import the header in order to embedded it, create a thin C layer 
> that will only bootstrap the .net app (all their API calls will be 
> PInvoked after add Mono to it).
>
> Anyone has has a good documentation on:
>
> 1.How to setup a cross-compile environment on Ubuntu
>
> 2.Compile Mono to ARM as an static library
>
> Any help would be very appreciated.
>
> Thank you very much!
>
> Best regards,

Hey, I recommend you to put more details on what you have already tried. 
For example the details you already posted on the gitter channel when you were talking with Miguel about
using CC='armv6-cc' ./configure.
Gutemberg Ribeiro | 18 Jun 21:22 2015

Cross-compiling Mono for ARM

Hello guys,

 

I’m trying to cross-compile (from Ubuntu 14.04) Mono for ARM following this tutorial http://www.mono-project.com/docs/about-mono/supported-platforms/arm/ but the links that show how configure ScratchBox are outdated and I can’t find anything on the internet on how to successful setup an environment and cross-compile mono for ARM…

 

The idea is to build it as a static library so I can use it embedded as suggested here: http://www.mono-project.com/docs/advanced/embedding/

 

For the sake of information, the target ARM device runs a proprietary striped down distribution based on debian and we have no access to its terminal or any kind of access to the OS. It is a payment terminal from www.ingenico.com and it has an ARM9 processor and uses a proprietary SDK that looks like uses GNU ARM 4.3.4 toolchain with an IDE based on Eclipse as you can see in the following picture:

 

 

The only way we have to use mono on it is by adding it as a static lib and import the header in order to embedded it, create a thin C layer that will only bootstrap the .net app (all their API calls will be PInvoked after add Mono to it).

 

Anyone has has a good documentation on:

 

1.      How to setup a cross-compile environment on Ubuntu

2.      Compile Mono to ARM as an static library

 

Any help would be very appreciated.

 

Thank you very much!

 

Best regards,

<!-- /* Font Definitions */ <at> font-face{font-family: "Cambria Math";panose-1: 2 4 5 3 5 4 6 3 2 4;} <at> font-face{font-family: Calibri;panose-1: 2 15 5 2 2 2 4 3 2 4;} <at> font-face{font-family: Cambria;panose-1: 2 4 5 3 5 4 6 3 2 4;}/* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal{margin: 0cm;margin-bottom: .0001pt;font-size: 11.0pt;font-family: "Calibri","sans-serif";mso-fareast-language: EN-US;}a:link, span.MsoHyperlink{mso-style-priority: 99;color: #0563C1;text-decoration: underline;}a:visited, span.MsoHyperlinkFollowed{mso-style-priority: 99;color: #954F72;text-decoration: underline;}span.EmailStyle17{mso-style-type: personal-compose;font-family: "Calibri","sans-serif";color: windowtext;}.MsoChpDefault{mso-style-type: export-only;font-family: "Calibri","sans-serif";mso-fareast-language: EN-US;} <at> page WordSection1{size: 612.0pt 792.0pt;margin: 70.85pt 3.0cm 70.85pt 3.0cm;}div.WordSection1{page: WordSection1;}-->


Gutemberg Ribeiro

CTO

E-mail: gutemberg <at> fgrit.com

Mobile: +55 (11) 981 999 688

•This message contains confidential information and is intended only for the individual named. If you are not the named addressee, you should not disseminate, distribute or copy this email. Please notify the sender immediately by email if you have received this email by mistake and delete this email from your system. Email transmission cannot be guaranteed to be secure or error-free, as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender, therefore, does not accept liability for any errors or omissions in the contents of this message which arise as a result of email transmission. If verification is required, please request a hard-copy version.

•This message is confidential. It may also be privileged or otherwise protected by work-product immunity or other legal rules. If you have received it by mistake, please let us know by email reply and delete it from your system;you may not copy this message or disclose its contents to anyone. Please send us by fax any message containing deadlines, as incoming emails are not screened for response deadlines. The integrity and security of this message cannot be guaranteed on the Internet.

•This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please notify the system manager. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the organization. Finally, the recipient should check this email and any attachments for the presence of viruses. The organization accepts no liability for any damage caused by any virus transmitted by this email.

_______________________________________________
Mono-devel-list mailing list
Mono-devel-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list
Hendrik Müller | 15 Jun 21:54 2015
Picon

How to develop/debug mscorlib using MonoDevelop?

What is the easiest to develop mscorlib under Linux?
My idea was to simply add a project reference in MonoDevelop to /mcs/class/corlib/corlib-net_4_5.csproj and then use it instead of the default mscorlib but this doesn't work because lot of source files references there don't exist.
How you guys are doing this?
_______________________________________________
Mono-devel-list mailing list
Mono-devel-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list
Cyd Haselton | 13 Jun 14:19 2015
Picon

Re: Terminal config for mono csharp shell?

Quick update with additional info:

Came across this test program on bugzilla and modified it for the ret variable in console-unix.c:

ocalhost:/bld/mono/mono-4.0.0$ cat ~/sigtest.c
#include <stdio.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <termios.h>

int main ()
        {
                struct winsize ws;
                 int ret;
                 if (ioctl (STDIN_FILENO, TIOCGWINSZ, &ws) == 0)
                 {
                                printf ("%d %d\n", ((ws.ws_col << 16) | ws.ws_row));                                 return 0;
                        }
                                        printf ("ioctl failed\n");
                                        return 1;
                        }

I had to add #include <termios.h> for it to work properly.

The output:

localhost:/bld/mono/mono-4.0.0$ ~/sigtest
5570606 33912

The above numbers are what's being output from the 'static int terminal_get_dimensions(void)' function
in console-unix.c, which looks like this:

    174
    175 static gint32 cols_and_lines;
    176
    177 #ifdef TIOCGWINSZ
    178 static int
    179 terminal_get_dimensions (void)
    180 {
    181         struct winsize ws;
    182         int ret;
    183         int save_errno = errno;
    184
    185         if (ioctl (STDIN_FILENO, TIOCGWINSZ, &ws) == 0){
    186                 ret = (ws.ws_col << 16) | ws.ws_row;
    187                 errno = save_errno;
    188                 return ret;
    189         }
    190         return -1;
    191 }

That function is used again in console-unix.c here:

306 MONO_SIG_HANDLER_FUNC (static, sigwinch_handler)
    307 {
    308         int dims = terminal_get_dimensions ();
    309         if (dims != -1)
    310                 cols_and_lines = dims;
    311
    312         // Call previous handler
    313         if (save_sigwinch.sa_sigaction != NULL &&
    314             save_sigwinch.sa_sigaction != (void *)SIG_DFL &&
    315             save_sigwinch.sa_sigaction != (void *)SIG_IGN)
    316                 (*save_sigwinch.sa_sigaction) (MONO_SIG_HANDLER_PARAMS);
    317 }

I took a chance that dims refers to columns and lines and not # of characters in columns and lines or the # of
chars possible in a window with x columns and y lines and changed this:

ret = (ws.ws_col << 16) | ws.ws_row;

to this:

ret = ws.ws_col | ws.ws_row;

Re-building now.

On June 12, 2015 1:02:49 AM CDT, Robert N <sushihangover <at> outlook.com> wrote:
>
>Sorry, been swamped... I'm not sure about the outclass.h, I'll have to
>take a look... I do know that resizing the csharp repo on os-x's
>terminal causes havoc on the its output and the input/output cursor is
>incorrectly moved, that that point it is taking input and sending out
>to the wrong line of the window, but it does not crash as in your case.
>
>> Date: Wed, 10 Jun 2015 11:20:46 -0500
>> Subject: Re: [Mono-dev] Terminal config for mono csharp shell?
>> From: chaselton <at> gmail.com
>> To: sushihangover <at> outlook.com
>> CC: mono-devel-list <at> lists.ximian.com
>> 
>> I'm revisiting this because I uncovered a larger, possibly related,
>> problem with running the newly built csharp REPL.
>> 
>> When resizing the terminal, csharp exits unexpectedly.  Running
>strace
>> in a separate terminal and attaching it to the csharp PID shows the
>> csharp REPL segfaulting when the terminal is resized (at
>> SIGWINCH...specifically right after the following line is
>> called/executed:
>> 
>> ioctl(0, TIOCGWINSZ, {ws_row=59, ws_col=85, ws_xpixel=0,
>ws_ypixel=0}) = 0
>> 
>> My sysroot has an asm/ioctls.h...I'm guessing that it needs to be
>> added to console-unix.c or console-io.c...possibly both.  Am I in the
>> right ballpark?
>> 
>> On Sat, Jun 6, 2015 at 10:41 PM, Robert N <sushihangover <at> outlook.com>
>wrote:
>> >
>> >
>> > stty sane make sense in terms of a TERM=linux and either a messed
>up/missing termcap and/or missing capabilities during autogen/configure
>and shell that is not quite right...
>> >
>> > The fact that the console.unix.c works across all the std linux
>flavors and os-x would suggest that something in your environment is
>different. Not sure what your 'droid dev environment is like, but if
>you can build/debug mono, you can look at how it is init & exiting in
>the app-domain.c/console-io.c/console-unix.c routines.
>> >
>> > It should 'just work', but that requires a very clean environment
>as Mono does an very generic (iffy IMHO) job of tty exiting (also
>init'ing).  If you look at the ConsoleDriver the extent of the tty
>exit/teardown is 'string' that is sent is a hardcoded DC1 signal (0x11)
>which is Ctrl-Q (XON). You can browse the native driver function in
>console-unix.c, it is running on a gc'd thread, the std c lib function
>atexit is called with the tty teardown function and it does a very
>generic teardown (flushing the pipes and setting the ECHO env to true).
>> >
>> > Is this right or wrong? Depends upon who you ask ;-) Programs
>written in python have this this issue all the time with using no echo
>tty mode and properly exiting, it is usually a threading issue, but
>hard to prevent. A lot of P-coders just place an os.system('stty sane')
>in their exit code, perl coders place system("stty sane");  curses
>users should always use endwin(); reset(); to clean things up, etc...
>> >
>> > The fact that the console.unix.c works across all the std linux
>flavors and os-x would suggest that something in your environment is
>different. Not sure what your 'droid dev environment is like, but if
>you can build/debug mono, you can look at how it is init & exiting in
>the app-domain.c/console-io.c/console-unix.c routines.
>> >
>> > ________________________________
>> > From: chaselton <at> gmail.com
>> > Date: Sat, 6 Jun 2015 19:39:16 -0500
>> > To: mono-devel-list <at> lists.ximian.com
>> > Subject: Re: [Mono-dev] Terminal config for mono csharp shell?
>> >
>> > Additionally, running 'stty sane' after exiting the REPL solves the
>problem. Maybe there is a way to set the REPL to run a command on
>quitting?
>> >
>> > On June 6, 2015 8:04:47 AM CDT, Cyd Haselton <chaselton <at> gmail.com>
>wrote:
>> >
>> > Are there any special terminal and/or shell settings I should set
>for the csharp shell?
>> >
>> > csharp works okay...minus some cursor jumping...but after quitting
>the console shell behaves oddly until I exit it and re-enter.
>> >
>> > Example:
>> > /home/kbox $ csharp
>> > Mono C# Shell, type "help;" for help
>> > Enter statements below.
>> > csharp> DateTime.Now 06/06/2015 13:00:31
>> > csharp> help "Static methods:
>> > Describe (object); - Describes the object's type
>> > LoadPackage (package); - Loads the given Package (like -pkg:FILE)
>> > LoadAssembly (assembly); - Loads the given assembly (like
>-r:ASSEMBLY)
>> > ShowVars (); - Shows defined local variables.
>> > ShowUsing (); - Show active using declarations.
>> > Prompt - The prompt used by the C# shell
>> > ContinuationPrompt - The prompt for partial input
>> > Time (() => { }); - Times the specified code
>> > print (obj); - Shorthand for Console.WriteLine
>> > quit; - You'll never believe it - this quits the repl!
>> > help; - This help text
>> > TabAtStartCompletes - Whether tab will complete even on empty lines
>> > "
>> > csharp> quit
>> >
>> > Environment shell after quitting:
>> > /home/kbox $ /home/kbox $ /home/kbox $ /home/kbox $ /home/kbox $
>/home/kbox $ /home/kbox $ >
>/data/data/jackpal.androidterm/kbox2/bin/bash: \: not found
>> > /home/kbox $ /home/kbox $ /home/kbox $ /home/kbox $ /home/kbox $
>/home/kbox $
>> >
>> > After exiting environment shell...you can't see the 'exit' command
>I typed:
>> > /home/kbox $ 127|u0_a186 <at> altev:/ $
>> > 127|u0_a186 <at> altev:/ $
>> > 127|u0_a186 <at> altev:/ $
>> > 127|u0_a186 <at> altev:/ $
>> > 127|u0_a186 <at> altev:/ $
>> >
>> > Re-entering the environment shell:
>> > 127|u0_a186 <at> altev:/ $
>/data/data/jackpal.androidterm/kbox2/bin/kbox_shell
>> > /home/kbox $
>> > /home/kbox $
>> > /home/kbox $
>> > /home/kbox $
>> >
>> >
>> > --
>> > Sent from my Android device with K-9 Mail. Please excuse my
>brevity.
>> > _______________________________________________ Mono-devel-list
>mailing list Mono-devel-list <at> lists.ximian.com
>http://lists.ximian.com/mailman/listinfo/mono-devel-list
> 		 	   		  
Cyd Haselton | 12 Jun 11:43 2015
Picon

Re: Terminal config for mono csharp shell?

No need to apologize...busy here too.

I was wrong about asm/ioctl.h BTW.  Right now i'm going through console-unix.c  to figure out what is causing
the crash.  Slow work, as i'm not familiar with signal handling at all.

Here's the rest of the strace output, just in case it is helpful. 

27045 00:02:27 --- SIGWINCH (Window changed)  <at>  0 (0) ---                             27045 00:02:27 ioctl(0, TIOCGWINSZ, {ws_row=59,
ws_col=85, ws_xpixel=0, ws_ypixel=0}) = 0
27045 00:02:27 --- SIGSEGV (Segmentation fault)  <at>  0 (0) ---                          27045 00:02:27
open("/data/data/jackpal.androidterm/kbox2/dev/log/main", O_WRONLY|O_LARGEFILE|0x80000) = 4                                                               
27045 00:02:27 open("/data/data/jackpal.androidterm/kbox2/dev/log/radio",
O_WRONLY|O_LARGEFILE|0x80000) = 5                                                               27045 00:02:27
open("/data/data/jackpal.androidterm/kbox2/dev/log/events", O_WRONLY|O_LARGEFILE|0x80000) =
6                                                              27045 00:02:27 open("/data/data/jackpal.androidterm/kbox2/dev/log/system",
O_WRONLY|O_LARGEFILE|0x80000) = 7                                                              27045 00:02:27 writev(4, [{"\6", 1}
 , {"mono-rt\0", 8}, {"Stacktrace:\n\n\0", 14}], 3) = 23                                                                                27045 00:02:27 writev(4, [{"\6", 1},
{"mono-rt\0", 8}, {"  at
<unknown> <0xffffffff>\n\0", 29}], 3) = 38                                                                  27045 00:02:27 writev(4, [{"\6", 1}, {"mono-rt\0", 8}, {"  at
(wrapper managed-to-native) System.IO.MonoIO.Read
(intptr,byte[],int,int,System.IO.MonoIOError&) <0xffffffff>\n\0", 116}], 3) = 125
27045 00:02:27 writev(4, [{"\6", 1}, {"mono-rt\0", 8}, {"  at System.IO.MonoIO.Read
(System.Runtime.InteropServices.SafeHandle,byte[],int,int,System.IO.MonoIOError&)
<0x0006f>\n\0", 120}], 3) = 129                                                          27045 00:02:27 writev(4, [{"\6", 1}, {"mono-rt\0", 8}, {"  at
System.IO.FileStream.ReadData (System.Runtime.InteropServices.SafeHandle,byte[],int,int)
<0x00047>\n\0", 105}], 3) = 114                                                                         27045 00:02:27 writev(4, [{"\6", 1}, {"mono-rt\0", 8}, {"  at
System.IO.FileStream.ReadInternal (byte[],int,int) <0x00087>\n\0", 67}], 3) = 76                            27045 00:02:27
writev(4, [{"\6", 1}, {"mono-rt\0", 8}, {"  at System.IO.FileStream.Read (byte[],int,int) <0x000ef>\n\0",
  59}], 3) = 68                                    27045 00:02:27 writev(4, [{"\6", 1}, {"mono-rt\0", 8}, {"  at
System.IO.StreamReader.ReadBuffer () <0x0035f>\n\0", 53}], 3) = 62                   
                      27045 00:02:27 writev(4, [{"\6", 1}, {"mono-rt\0", 8}, {"  at System.IO.StreamReader.Read ()
<0x0005f>\n\0", 47}], 3) = 56                                                27045 00:02:27 writev(4, [{"\6", 1}, {"mono-rt\0", 8}, {"  at
System.TermInfoDriver.ReadKeyInternal (bool&) <0x00113>\n\0", 62}], 3) = 71                                 27045 00:02:27
writev(4, [{"\6", 1}, {"mono-rt\0", 8}, {"  at System.TermInfoDriver.ReadKey (bool) <0x0002b>\n\0",
53}], 3) = 62                                          27045 00:02:27 writev(4, [{"\6", 1}, {"mono-rt\0", 8}, {"  at
System.ConsoleDriver.ReadKey (bool) <0x00037>\n\0", 52}], 3) = 61                                           27045 00:02:27 writev(4, [{"\6",
1}, {"mono-rt\0", 8}, {"  at System.Console.ReadKey (bool) <0x000
 1b>\n\0", 46}], 3) = 55
27045 00:02:27 writev(4, [{"\6", 1}, {"mono-rt\0", 8}, {"  at Mono.Terminal.LineEditor.EditLoop ()
<0x0006b>\n\0", 53}], 3) = 62
27045 00:02:27 writev(4, [{"\6", 1}, {"mono-rt\0", 8}, {"  at Mono.Terminal.LineEditor.Edit
(string,string) <0x00157>\n\0", 62}], 3) = 71
27045 00:02:27 writev(4, [{"\6", 1}, {"mono-rt\0", 8}, {"  at Mono.CSharpShell.GetLine (bool)
<0x00093>\n\0", 48}], 3) = 57
27045 00:02:27 writev(4, [{"\6", 1}, {"mono-rt\0", 8}, {"  at Mono.CSharpShell.ReadEvalPrintLoopWith
(Mono.CSharpShell/ReadLiner) <0x0002f>\n\0", 84}], 3) = 93
27045 00:02:27 writev(4, [{"\6", 1}, {"mono-rt\0", 8}, {"  at Mono.CSharpShell.ReadEvalPrintLoop ()
<0x001a7>\n\0", 54}], 3) = 63
27045 00:02:27 writev(4, [{"\6", 1}, {"mono-rt\0", 8}, {"  at Mono.CSharpShell.Run (string[])
<0x00033>\n\0", 48}], 3) = 57
27045 00:02:27 writev(4, [{"\6", 1}, {"mono-rt\0", 8}, {"  at Mono.Driver.Main (string[])
<0x0041f>\n\0", 44}], 3) = 53
27045 00:02:27 writev(4, [{"\6", 1}, {"mono-rt\0", 8}, {"  at (wrapper runtime-invoke)
<Module>.runtime_invoke_int_object (object,intptr,intptr,intptr) <0xffffffff>\n\0", 109}], 3)
= 118
27045 00:02:27 writev(4, [{"\6", 1}, {"mono-rt\0", 8},
{"\n=================================================================\nGot a SIGSEGV while
executing native code. This usually indicates\na fatal error in the mono runtime or one of the native
libraries \nused by your
application.\n=================================================================\n\n\0",
293}], 3) = 302
27045 00:02:27 sigaction(SIGABRT, {SIG_DFL}, NULL, 0x15980b8) = 0

**snip**

On June 12, 2015 1:02:49 AM CDT, Robert N <sushihangover <at> outlook.com> wrote:
>
>Sorry, been swamped... I'm not sure about the outclass.h, I'll have to
>take a look... I do know that resizing the csharp repo on os-x's
>terminal causes havoc on the its output and the input/output cursor is
>incorrectly moved, that that point it is taking input and sending out
>to the wrong line of the window, but it does not crash as in your case.
>
>> Date: Wed, 10 Jun 2015 11:20:46 -0500
>> Subject: Re: [Mono-dev] Terminal config for mono csharp shell?
>> From: chaselton <at> gmail.com
>> To: sushihangover <at> outlook.com
>> CC: mono-devel-list <at> lists.ximian.com
>> 
>> I'm revisiting this because I uncovered a larger, possibly related,
>> problem with running the newly built csharp REPL.
>> 
>> When resizing the terminal, csharp exits unexpectedly.  Running
>strace
>> in a separate terminal and attaching it to the csharp PID shows the
>> csharp REPL segfaulting when the terminal is resized (at
>> SIGWINCH...specifically right after the following line is
>> called/executed:
>> 
>> ioctl(0, TIOCGWINSZ, {ws_row=59, ws_col=85, ws_xpixel=0,
>ws_ypixel=0}) = 0
>> 
>> My sysroot has an asm/ioctls.h...I'm guessing that it needs to be
>> added to console-unix.c or console-io.c...possibly both.  Am I in the
>> right ballpark?
>> 
>> On Sat, Jun 6, 2015 at 10:41 PM, Robert N <sushihangover <at> outlook.com>
>wrote:
>> >
>> >
>> > stty sane make sense in terms of a TERM=linux and either a messed
>up/missing termcap and/or missing capabilities during autogen/configure
>and shell that is not quite right...
>> >
>> > The fact that the console.unix.c works across all the std linux
>flavors and os-x would suggest that something in your environment is
>different. Not sure what your 'droid dev environment is like, but if
>you can build/debug mono, you can look at how it is init & exiting in
>the app-domain.c/console-io.c/console-unix.c routines.
>> >
>> > It should 'just work', but that requires a very clean environment
>as Mono does an very generic (iffy IMHO) job of tty exiting (also
>init'ing).  If you look at the ConsoleDriver the extent of the tty
>exit/teardown is 'string' that is sent is a hardcoded DC1 signal (0x11)
>which is Ctrl-Q (XON). You can browse the native driver function in
>console-unix.c, it is running on a gc'd thread, the std c lib function
>atexit is called with the tty teardown function and it does a very
>generic teardown (flushing the pipes and setting the ECHO env to true).
>> >
>> > Is this right or wrong? Depends upon who you ask ;-) Programs
>written in python have this this issue all the time with using no echo
>tty mode and properly exiting, it is usually a threading issue, but
>hard to prevent. A lot of P-coders just place an os.system('stty sane')
>in their exit code, perl coders place system("stty sane");  curses
>users should always use endwin(); reset(); to clean things up, etc...
>> >
>> > The fact that the console.unix.c works across all the std linux
>flavors and os-x would suggest that something in your environment is
>different. Not sure what your 'droid dev environment is like, but if
>you can build/debug mono, you can look at how it is init & exiting in
>the app-domain.c/console-io.c/console-unix.c routines.
>> >
>> > ________________________________
>> > From: chaselton <at> gmail.com
>> > Date: Sat, 6 Jun 2015 19:39:16 -0500
>> > To: mono-devel-list <at> lists.ximian.com
>> > Subject: Re: [Mono-dev] Terminal config for mono csharp shell?
>> >
>> > Additionally, running 'stty sane' after exiting the REPL solves the
>problem. Maybe there is a way to set the REPL to run a command on
>quitting?
>> >
>> > On June 6, 2015 8:04:47 AM CDT, Cyd Haselton <chaselton <at> gmail.com>
>wrote:
>> >
>> > Are there any special terminal and/or shell settings I should set
>for the csharp shell?
>> >
>> > csharp works okay...minus some cursor jumping...but after quitting
>the console shell behaves oddly until I exit it and re-enter.
>> >
>> > Example:
>> > /home/kbox $ csharp
>> > Mono C# Shell, type "help;" for help
>> > Enter statements below.
>> > csharp> DateTime.Now 06/06/2015 13:00:31
>> > csharp> help "Static methods:
>> > Describe (object); - Describes the object's type
>> > LoadPackage (package); - Loads the given Package (like -pkg:FILE)
>> > LoadAssembly (assembly); - Loads the given assembly (like
>-r:ASSEMBLY)
>> > ShowVars (); - Shows defined local variables.
>> > ShowUsing (); - Show active using declarations.
>> > Prompt - The prompt used by the C# shell
>> > ContinuationPrompt - The prompt for partial input
>> > Time (() => { }); - Times the specified code
>> > print (obj); - Shorthand for Console.WriteLine
>> > quit; - You'll never believe it - this quits the repl!
>> > help; - This help text
>> > TabAtStartCompletes - Whether tab will complete even on empty lines
>> > "
>> > csharp> quit
>> >
>> > Environment shell after quitting:
>> > /home/kbox $ /home/kbox $ /home/kbox $ /home/kbox $ /home/kbox $
>/home/kbox $ /home/kbox $ >
>/data/data/jackpal.androidterm/kbox2/bin/bash: \: not found
>> > /home/kbox $ /home/kbox $ /home/kbox $ /home/kbox $ /home/kbox $
>/home/kbox $
>> >
>> > After exiting environment shell...you can't see the 'exit' command
>I typed:
>> > /home/kbox $ 127|u0_a186 <at> altev:/ $
>> > 127|u0_a186 <at> altev:/ $
>> > 127|u0_a186 <at> altev:/ $
>> > 127|u0_a186 <at> altev:/ $
>> > 127|u0_a186 <at> altev:/ $
>> >
>> > Re-entering the environment shell:
>> > 127|u0_a186 <at> altev:/ $
>/data/data/jackpal.androidterm/kbox2/bin/kbox_shell
>> > /home/kbox $
>> > /home/kbox $
>> > /home/kbox $
>> > /home/kbox $
>> >
>> >
>> > --
>> > Sent from my Android device with K-9 Mail. Please excuse my
>brevity.
>> > _______________________________________________ Mono-devel-list
>mailing list Mono-devel-list <at> lists.ximian.com
>http://lists.ximian.com/mailman/listinfo/mono-devel-list
> 		 	   		  
Paul McEwan | 11 Jun 22:49 2015

Mono/Windows Services

I have a Windows Service that I converted to Mono.  What's the recommended way to keep it running in the background like a Windows Service -- i.e. you start it and it keeps running until you stop it?

Should you just put a loop in the main thread that sleeps and wakes up every second and performs work?

Or is there a better way?


This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. Atlium Global Services, 3438 East Lake Rd, Ste 14, PMB #664, Palm Harbor, FL  34685

 

_______________________________________________
Mono-devel-list mailing list
Mono-devel-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list
nikkilocke | 10 Jun 16:32 2015

Error trying to compile mono on CentOs 5

I would like to run mono on CentOs 5.

I tried installing binaries using the instructions at
http://www.mono-project.com/docs/getting-started/install/linux/

It failed because there is no command yum-config-manager on CentOs 5.

I manually installed the mono repo, and tried again.

It failed because CentOs 5 does not understand the checksums used.

I manually installed python-hashlib and tried again.

This time it failed with the following errors:

mono-basic-4.0.1-1.noarch from mono has depsolving problems
  --> Missing Dependency: mono(System.Core) = 4.0.0.0 is needed by package
mono-basic-4.0.1-1.noarch (mono)
mono-basic-4.0.1-1.noarch from mono has depsolving problems
  --> Missing Dependency: mono(mscorlib) = 4.0.0.0 is needed by package
mono-basic-4.0.1-1.noarch (mono)
mono-basic-4.0.1-1.noarch from mono has depsolving problems
  --> Missing Dependency: mono(System) = 4.0.0.0 is needed by package
mono-basic-4.0.1-1.noarch (mono)
mono-basic-4.0.1-1.noarch from mono has depsolving problems
  --> Missing Dependency: mono(System.Drawing) = 4.0.0.0 is needed by
package mono-basic-4.0.1-1.noarch (mono)
mono-basic-4.0.1-1.noarch from mono has depsolving problems
  --> Missing Dependency: mono(System.Windows.Forms) = 4.0.0.0 is needed by
package mono-basic-4.0.1-1.noarch (mono)
Error: Missing Dependency: mono(System.Core) = 4.0.0.0 is needed by package
mono-basic-4.0.1-1.noarch (mono)
Error: Missing Dependency: mono(System) = 4.0.0.0 is needed by package
mono-basic-4.0.1-1.noarch (mono)
Error: Missing Dependency: mono(mscorlib) = 4.0.0.0 is needed by package
mono-basic-4.0.1-1.noarch (mono)
Error: Missing Dependency: mono(System.Drawing) = 4.0.0.0 is needed by
package mono-basic-4.0.1-1.noarch (mono)
Error: Missing Dependency: mono(System.Windows.Forms) = 4.0.0.0 is needed by
package mono-basic-4.0.1-1.noarch (mono)

So now I am trying to build mono on CentOs 5, using the instructions at
http://www.mono-project.com/docs/compiling-mono/compiling-from-git/

I cloned the git repository, and ran ./autogen.sh --prefix=/usr/local
This gave me 2 messages:

You should add the contents of `/usr/share/aclocal/libtool.m4' to
`aclocal.m4'
aclocal: unrecognized option -- `-Wnone'

I copied the libtool.m4 file to aclocal.m4, and tried again - still got the
second message. I removed the -Wnone flag from autogen.sh and ran again - it
went to completion.

I then ran make, and that failed with:

Making all in libgc
make[2]: Entering directory `/usr/src/mono/libgc'
make[2]: *** No rule to make target `all'.  Stop.
make[2]: Leaving directory `/usr/src/mono/libgc'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/mono'
make: *** [all] Error 2

This is presumably because the configuration process has not created a
Makefile in libgc.

What do I do now?

--
View this message in context: http://mono.1490590.n4.nabble.com/Error-trying-to-compile-mono-on-CentOs-5-tp4666171.html
Sent from the Mono - Dev mailing list archive at Nabble.com.
Paul McEwan | 9 Jun 16:14 2015

XslCompiledTransform and VB

I have some legacy xsl sheets that use the XslCompiledTransform class but they fail to load because they have VB code in them.  Can these work with Mono?  If so, how?


This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. Atlium Global Services, 3438 East Lake Rd, Ste 14, PMB #664, Palm Harbor, FL  34685

 

_______________________________________________
Mono-devel-list mailing list
Mono-devel-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list
Benjamin Schieder | 9 Jun 10:15 2015
Picon

Problem with PNG transparancy on current Debian Unstable

Hello.

I have a problem with PNG transparancy in mono on current Debian 
Unstable.
I created a small example (4 kB download) with minimal code and two 
example images:
https://oc.anderdonau.de/index.php/s/VwTAlcjETG6j3XP

Running this example on a current Debian Unstable results in this - bad 
- image:
https://oc.anderdonau.de/index.php/s/AtVtba0tpSk4bn8

Running the same code on an old Debian Squeeze (on armel) results in 
this - correct - image:
https://oc.anderdonau.de/index.php/s/eqhmXh9qpBbg0WW

Can someone help me with this issue?

Kind regards,
Benjamin
--

-- 
Jabber: blindcoder <at> jabber.ccc.de
Twitter: https://twitter.com/blind_coder
Web: http://www.benjamin-schieder.de/
Cyd Haselton | 6 Jun 15:04 2015
Picon

Terminal config for mono csharp shell?

Are there any special terminal and/or shell settings I should set for the csharp shell?

csharp works okay...minus some cursor jumping...but after quitting the console shell behaves oddly until I exit it and re-enter.

Example:
/home/kbox $ csharp
Mono C# Shell, type "help;" for help
Enter statements below.
csharp> DateTime.Now 06/06/2015 13:00:31
csharp> help "Static methods:
Describe (object); - Describes the object's type
LoadPackage (package); - Loads the given Package (like -pkg:FILE)
LoadAssembly (assembly); - Loads the given assembly (like -r:ASSEMBLY)
ShowVars (); - Shows defined local variables.
ShowUsing (); - Show active using declarations.
Prompt - The prompt used by the C# shell
ContinuationPrompt - The prompt for partial input
Time (() => { }); - Times the specified code
print (obj); - Shorthand for Console.WriteLine
quit; - You'll never believe it - this quits the repl!
help; - This help text
TabAtStartCompletes - Whether tab will complete even on empty lines
"
csharp> quit

Environment shell after quitting:
/home/kbox $ /home/kbox $ /home/kbox $ /home/kbox $ /home/kbox $ /home/kbox $ /home/kbox $ > /data/data/jackpal.androidterm/kbox2/bin/bash: \: not found
/home/kbox $ /home/kbox $ /home/kbox $ /home/kbox $ /home/kbox $ /home/kbox $

After exiting environment shell...you can't see the 'exit' command I typed:
/home/kbox $ 127|u0_a186 <at> altev:/ $
127|u0_a186 <at> altev:/ $
127|u0_a186 <at> altev:/ $
127|u0_a186 <at> altev:/ $
127|u0_a186 <at> altev:/ $

Re-entering the environment shell:
127|u0_a186 <at> altev:/ $ /data/data/jackpal.androidterm/kbox2/bin/kbox_shell
/home/kbox $
/home/kbox $
/home/kbox $
/home/kbox $
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.

_______________________________________________
Mono-devel-list mailing list
Mono-devel-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list

Gmane