Re: [Mono-dev] Compiling Mono with debug symbols to diagnose an issue with embedded Mono 4.0.2.5

2015-08-04 Thread Jean-Michel.Perraud
I am trying to debug C code, mostly to step through the mono runtime itself. The issue seems to arise really quickly and I do not expect c# code (mine or the framework's) to be at fault here. That said, I would not at all refuse a howto guide for mixed mode (C and C#) debugging on Linux (not pos

[Mono-dev] Compiling Mono with debug symbols to diagnose an issue with embedded Mono 4.0.2.5

2015-08-04 Thread Jean-Michel.Perraud
I have an R package with embedded Mono, on Linux, that is working on Mono 3.12.x series but broken since Mono 4.0.x. Crashes with: Assertion at sgen-alloc.c:774, condition `tlab_next_addr_offset != -1' not met Repro and details at https://github.com/jmp75/rClr/issues/7, but optional for th

Re: [Mono-dev] Do we need to maintain the csproj files?

2014-10-18 Thread Jean-Michel.Perraud
The csproj files can be generated by a C# program under msvc/scripts. The resulting csproj are pushed to github from time to time, but you can generate them yourself if need be. I worked on this a couple of years ago, and I think Miguel did further work in May 2014.

Re: [Mono-dev] Latest source - build yields "Could not load type 'Mono.CSharp.CommandLineParser'" (17170)

2014-09-12 Thread Jean-Michel.Perraud
Hi, Just reporting I got similar issues compiling from the 3.8.0 tarball, on a CentOS system (with or without a previous working mono runtime already available). Not quite the message in that bug report, but failing to find a working gmcs (sorry cannot access the message details right now), wit

Re: [Mono-dev] Editing mono in IDE?

2014-06-08 Thread Jean-Michel.Perraud
The solutions under msvc/script are (were) generated by parsing the Makefiles. Work done ~2 years ago was to make the resulting sln/csproj files more navigable (F12 and so on) from visual studio. While attempted, building to completion a substantial subset of the c# part of Mono was (is?) in the

Re: [Mono-dev] Repeat builds of core assemblies

2014-04-22 Thread Jean-Michel.Perraud
Michael, how are you fitting msbuild in the build process? Just to confirm if you using the generation of csharp project files and solutions for visual studio? A couple of years back I worked on unwinding the circular build dependencies to build the assemblies from VS. As I recall, even then I

Re: [Mono-dev] Repeat builds of core assemblies

2014-04-22 Thread Jean-Michel.Perraud
Sorry, somehow I misread who was saying what; I should have addressed the mail primarily to Miguel. Happy to provide further information. I think Marek Saraf is the person that merged these updates in 2012 to the VS build process. For reference (won't provide much additional material) I have a

Re: [Mono-dev] Mono 3.2.8 fails to compile from source

2014-02-23 Thread Jean-Michel.Perraud
I can report I could compile from the git tag 3.2.8 and the tarball, on a Debian unstable x64, doing a make while a mono 3.2.3 was installed. I had messed up my local 3.2.3 and needed to rebuild/reinstall it to successfully compile 3.2.8. I also had some difficulties on CentOS starting from the

[Mono-dev] Failure to compile Mono 3.2.7-branch from source

2014-02-17 Thread Jean-Michel.Perraud
Hi, I am trying to test an app on Mono 3.2.7, but cannot seem to get it to build properly. I can check out the 3.2.3 branch, and build/install it bootstrapped with the prepackaged 3.0.6, but whether I use 3.2.3 or 3.0.6 as a bootstrap the build of 3.2.7 fails. If anyone has a hunch or advice.

Re: [Mono-dev] Getting started on mono sources

2014-02-15 Thread Jean-Michel.Perraud
Hi Edward, At least a couple of people including myself have an interest in recommended dev env to work on Mono itself ( http://lists.ximian.com/pipermail/mono-devel-list/2013-July/040638.html). A Howto on recommended setup for Mono contributions would save a fair bit of time and hassle for co

Re: [Mono-dev] Contributing to xbuild

2013-09-19 Thread Jean-Michel.Perraud
Hi Marcello, I cannot provide knowledge on xbuld/msbuild as such but can give some background on the .csproj files. I worked on the csproj file generation 1-2 years ago, and introduced the multiple csproj files with the profile as extension. The idea is to aim for solutions that should “just b

Re: [Mono-dev] Small issues with the Windows msvc builds, and how I got around them

2013-08-27 Thread Jean-Michel.Perraud
Hi Alex, Thanks for the information; I sometimes need to dive into the C code to get it to compile under MSVC and your heads up is a time saver. You may want to fork+branch and do a pull request if you think these fixes are not temporary hacks. profiler-cov is a .vcxproj file, and AFAIK not ge

Re: [Mono-dev] Failing to compile mono on Windows cygwin

2013-08-25 Thread Jean-Michel.Perraud
A blank line is certainly not the expected behaviour of a Mono 'make'. I tried to checkout the master branch to double check what you describe but encountered instead "fatal: Not a git repository" for an external module. Seen that git annoyance in the past, can fix but I don't have enough time.

[Mono-dev] Recommended software setup to develop and contribute C# code to Mono

2013-07-27 Thread Jean-Michel.Perraud
Hi, I have bumped in a bug with time zone date-time conversion (https://r2clr.codeplex.com/workitem/65 but I am pretty sure the underlying issue is e.g. https://bugzilla.xamarin.com/show_bug.cgi?id=1849) I'd like to see whether I can contribute a fix. I am used to test-driven development with

[Mono-dev] What is the best practice for disposing of transient MonoObject in an embedding scenario

2013-06-16 Thread Jean-Michel.Perraud
Hi, I'd like some guidance on how to free memory in an embedded Mono scenario. I 'monkeyed' a few things started from the embedded samples in the mono codebase, but they are limited to g_free calls on UTF8 strings. I think I figured out I needed to use mono_gchandle_new and mono_gchandle_free t

Re: [Mono-dev] Building Mono from Git with MSVC

2013-06-04 Thread Jean-Michel.Perraud
It seems I was barking up the wrong tree. A week ago the following variable assignments were added to the threads.c, coming from the NaCl contributions it seems. For some reason, the MSVC++ compiler is not happy. Commenting out and then libmonoruntime.vcxproj compiles. Any suggestions? I strongl

Re: [Mono-dev] Building Mono from Git with MSVC

2013-06-04 Thread Jean-Michel.Perraud
Hi Jonathan, I don't think there are some tools to update the VCXproj files. These do not need changing often so a manual process is fine. I still have trouble compiling, in fact with a most recent checkout, I cannot get a compiled mono-2.0.dll in any of the solution's combinations of configur

Re: [Mono-dev] Building Mono from Git with MSVC

2013-05-13 Thread Jean-Michel.Perraud
Hi, I also noticed a couple of issues building a recent tag (3.0.9) with MSVC, mostly trivia but one of them trickier and preventing building x64 on Windows. I'll try to look at it further in the coming month and put a pull request if successful. By the way is it acceptable to migrate the proje

[Mono-dev] 3.0.6 Windows installer - missing dcms.bat, and why only 32bits

2013-04-06 Thread Jean-Michel.Perraud
Hi, While trying to use xbuild on Windows I noticed that dmcs.bat seems to be missing from the 3.0.6 /bin directory Microsoft.CSharp.targets: error : Error executing tool 'C:\PROGRA~1\MONO-3~1.6\bin\dmcs.bat' [...] Native error= The system cannot find the file specified. I think it is

[Mono-dev] 3.0.6 Windows installer - missing dcms.bat, and why only 32bits

2013-04-06 Thread Jean-Michel.Perraud
Hi, While trying to use xbuild on Windows I noticed that dmcs.bat seems to be missing from the 3.0.6 /bin directory Microsoft.CSharp.targets: error : Error executing tool 'C:\PROGRA~1\MONO-3~1.6\bin\dmcs.bat' [...] Native error= The system cannot find the file specified. I think it is

[Mono-dev] Embedded mono; getting in C a pointer from an IntPtr object

2013-02-18 Thread Jean-Michel.Perraud
Hi, I have a scenario where some C function is getting a MonoObject (*pobj) that happens to be an IntPtr. As the native pointer is known to be of a certain native type (SEXP), how do I retrieve it? I tried a few things, the latest being: type_il = mono_type_get_type(mono_class_get_typ

Re: [Mono-dev] issue during compile libmono in visual studio c++ 2010

2013-01-29 Thread Jean-Michel.Perraud
Hi, The compilation instructions (on the web site and in the msvc README) are a bit outdated, but this is relatively easy to figure out. I can compile libmono and its dependencies with minimal changes to a recent git clone. I used VS2012 but I don't think VS2010 would be a very different story.

[Mono-dev] Embedded mono, issues with specific v4.0 I triesruntime versions and System.Runtime.CompilerServices.ExtensionAttribute

2013-01-18 Thread Jean-Michel.Perraud
Hi, A project of mine using Mono embedding started displayed issues when I started to execute managed code with extension methods. I've isolated the issue and can submit one or two bug reports, but in the meantime advice/insight is welcome. Being stuck, I'd gladly take any suggestion on a worka

[Mono-dev] Upcoming pull request; Generating csproj files and compiling Mono in Visual Studio

2013-01-04 Thread Jean-Michel.Perraud
Hi, I finally followed up on some upgrades to the build process generating the visual studio csproj and solution files. For reference prior discussions are at http://lists.ximian.com/pipermail/mono-devel-list/2012-May/thread.html#38852. I have a fork at https://github.com/jmp75/mono/commits/mas

[Mono-dev] Seeking advice on converting basic value types from the CLR representation to native C types, using mono embedding

2012-10-10 Thread Jean-Michel.Perraud
Hi, I am working on a package to access the Mono (resp. MS.NET) CLR from the R statistical language. I am trying to convert 'simple' CLR value types (e.g. string, double, bool, DateTime) to marshall them to their R equivalent. I managed to deal with the 'bool', but stumbled on the DateTime

Re: [Mono-dev] Compiling Mono with Visual Studio and .pdb files

2012-05-29 Thread Jean-Michel.Perraud
Hi Marek, I have ironed out most issues I had to get to compiling a large part of the assemblies in VS/msbuild from scratch. What was the scope of the cleanup you are undertaking? I'd like to put in a pull request, but would like to have an idea of the scope of your change to minimise duplicate

Re: [Mono-dev] Compiling Mono with Visual Studio and .pdb files

2012-05-18 Thread Jean-Michel.Perraud
Hi Miguel, mono-devel subscribers, Thanks Miguel, your description helped me figure out a couple of key things. I'm gradually getting on top of the mcs/class build process and its translation to VS solutions/projects. There was already a lot of prior work done by Sebastien Pouliot (I think) a

Re: [Mono-dev] Compiling Mono with Visual Studio and .pdb files

2012-05-11 Thread Jean-Michel.Perraud
Thank you for this info Miguel Making progress with msvc, with a lot of second guessing, but I cannot seem to fully get out of the circular dependencies easily. After fixing a few things, there seems to be a two to three stage build process ('basic', 'build' and, well, the huge rest). I can bui

[Mono-dev] Compiling Mono with Visual Studio and .pdb files

2012-05-06 Thread Jean-Michel.Perraud
Hi, I gather that some effort was made to compile Mono with VS or the .NET framework SDK on Windows a few years ago. This past couple of days I looked into it as I am developing for Mono and MS .NET embedding. While I use occasionally MonoDevelop, which may be the preferred tool now, with debug