<html><head></head><body>Yes I am bulding on android, specifically in an app that emulates a linux-type filesystem.  I thought, since it is listed on the supported platforms page and since the sources include PLATFORM_ANDROID and TARGET_ANDROID, that building on android would be ok.<br>
<br>
I found a bug report for an issue I ran into with a System.TimeZoneNotFound exception so I'll work from there.<br><br><div class="gmail_quote">On June 5, 2015 4:26:35 PM CDT, Atsushi Eno <atsushieno@veritas-vos-liberabit.com> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">Wait, you are building mono _on_ Android? I don't think mono supports <br />custom Android build. Things WON'T work and it is quite as expected. <br />That's not a bug at all.<br /><br />We Xamarin don't even use full mono stack. xbuild is totally out of <br />mobile scope.<br /><br />Atsushi Eno<br /><br /><br />On 2015年06月06日 00:26, Cyd Haselton wrote:<br /><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"> Additionally there's this<br /><br /> csharp> System.DateTime.Now<br /> System.TimeZoneNotFoundException: Exception of type<br /> 'System.TimeZoneNotFoundException' was thrown.<br /> at System.TimeZoneInfo.get_Local () [0x00000] in <filename unknown>:0<br /> at System.TimeZoneInfo.GetDateTimeNowUtcOffsetFromUtc (DateTime time,<br /> System.Boolean& isAmbiguousLocalDst) [0x00000] in <filename unknown>:0<br /> at System.DateTime.get_Now () [0x00000] in <filename
unknown>:0<br /> at <InteractiveExpressionClass>.Host (System.Object& $retval) [0x00000]<br /> in <filename unknown>:0<br /> at Mono.CSharp.Evaluator.Evaluate (System.String input, System.Object&<br /> result, System.Boolean& result_set) [0x00000] in <filename unknown>:0<br /> at Mono.CSharpShell.Evaluate (System.String input) [0x00000] in<br /> <filename unknown>:0<br /><br /> Android's native support for locale is notoriously broken. I used<br /> -DNO-LOCALE when building mono, hoping that it would be taken into account<br /><br /> On June 5, 2015 10:16:34 AM CDT, "Alexander Köplinger"<br /> <alex.koeplinger@outlook.com> wrote:<br /><br />     It's just a simple helloworld as well, but with datetime output:<br /><br />     using System;<br /><br />     namespace HelloWorld {<br />          public class Program {<br />              public static void Main(string[] args) {<br />                  Console.WriteLine("Hello World " +
DateTime.Now);<br />              }<br />          }<br />     }<br /><br />     If this doesn't work, then there's no point trying to get xbuild<br />     working as the code above is as basic as it gets.<br /><br />     -- Alex<br /><br /><br /><hr /><br />     Subject: RE: [Mono-dev] mono 4.0.0 xbuild won't build project<br />     From: chaselton@gmail.com<br />     Date: Fri, 5 Jun 2015 09:43:07 -0500<br />     To: alex.koeplinger@outlook.com; mono-devel-list@lists.ximian.com<br /><br />     Unfortunately the latest build...with ncurses this time...didn't<br />     change anything. Same output for xbuild.<br /><br />     Alexander, could you send the code for the Project.exe you sent me?<br /><br />     On June 5, 2015 3:25:42 AM CDT, "Alexander Köplinger"<br />     <alex.koeplinger@outlook.com> wrote:<br /><br />         Can you try this simple Hello World exe to confirm basic Mono is<br />         working and it's something specific to xbuild:<br />         <a
href="https://dl.dropboxusercontent.com/u/21102229/Program.zip">https://dl.dropboxusercontent.com/u/21102229/Program.zip</a> (it<br />         just prints the current date).<br /><br />         I believe there's some terminal requirements, but not sure.<br />         Redirecting output to a file might work.<br /><br /><hr /><br />         From: chaselton@gmail.com<br />         Date: Thu, 4 Jun 2015 19:56:01 -0500<br />         To: sushihangover@outlook.com; mono-devel-list@lists.ximian.com<br />         Subject: Re: [Mono-dev] mono 4.0.0 xbuild won't build project<br /><br />         I tried it just now and I get the same result as before,<br />         unfortunately.<br /><br />         Is there a terminfo/ncurses requirement for xbuild? Or for mono<br />         in general? The rebuild I mentioned earlier was done in order to<br />         make sure -lncurses and all related headers and libs were<br />         included but it's possible I left something out and need to<br />     
   re-build again.<br /><br />         Additionally, is there a terminal tyoe requirement for xbuild?<br />         The android environment i'm using only comes with two types but<br />         I;ve got a working tic and sources so I can always install more.<br /><br />         On June 4, 2015 6:51:00 PM CDT, Robert N<br />         <sushihangover@outlook.com> wrote:<br /><br />             I realized that my other mail was hosed, outlook in a<br />             browser does blow at times...<br /><br />             So I was wondering if you were able to run xbuild using the<br />             mono option -v, since xbuild /verbosity:diagnostic never<br />             spills even the first line of the diag text: Loading default<br />             tasks for ToolsVersion<br /><br />             Using mono_options -v 'should' dump about 6500 lines before<br />             even getting to the version/copyright notice... assuming<br />             something in there is causing a silent
fault(?) and exit.<br /><br />             Win81Pro:Pash administrator$ MONO_OPTIONS="-v" xbuild<br />             Pash.proj |more<br /><br />             converting method System.OutOfMemoryException:.ctor (string)<br /><br />             Method System.OutOfMemoryException:.ctor (string) emitted at<br />             0x4f7d20 to 0x4f7d44 (code length 36) [xbuild.exe]<br /><br />             converting method (wrapper runtime-invoke)<br />             <Module>:runtime_invoke_void__this___object<br />             (object,intptr,intptr,intptr)<br /><br />             Method (wrapper runtime-invoke)<br />             <Module>:runtime_invoke_void__this___object<br />             (object,intptr,intptr,intptr) emitted at 0x4f7d60 to<br />             0x4f7e38 (code length 216) [xbuild.exe]<br /><br />             converting method System.SystemException:.ctor (string)<br /><br />             Method System.SystemException:.ctor (string) emitted at<br />             0x4f7e38 to
0x4f7e5c (code length 36) [xbuild.exe]<br /><br />             converting method System.Exception:.ctor (string)<br /><br />             Method System.Exception:.ctor (string) emitted at 0x4f7e68<br />             to 0x4f7ea1 (code length 57) [xbuild.exe]<br /><br />             converting method System.NullReferenceException:.ctor (string)<br /><br />             Method System.NullReferenceException:.ctor (string) emitted<br />             at 0x4f7ea8 to 0x4f7ecc (code length 36) [xbuild.exe]<br /><br />             converting method System.StackOverflowException:.ctor (string)<br /><br />             Method System.StackOverflowException:.ctor (string) emitted<br />             at 0x4f7ed0 to 0x4f7eea (code length 26) [xbuild.exe]<br /><br />             converting method Mono.XBuild.CommandLine.MainClass:Main<br />             (string[])<br /><br />             Method Mono.XBuild.CommandLine.MainClass:Main (string[])<br />             emitted at 0x4f7ef0 to 0x4f7f52 (code length
98) [xbuild.exe]<br /><br />             converting method (wrapper runtime-invoke)<br />             <Module>:runtime_invoke_void_object<br />             (object,intptr,intptr,intptr)<br /><br />             Method (wrapper runtime-invoke)<br />             <Module>:runtime_invoke_void_object<br />             (object,intptr,intptr,intptr) emitted at 0x4f7f78 to<br />             0x4f8044 (code length 204) [xbuild.exe]<br /><br />             converting method (wrapper alloc) object:AllocSmall<br />             (intptr,intptr)<br /><br />             Method (wrapper alloc) object:AllocSmall (intptr,intptr)<br />             emitted at 0x4f8050 to 0x4f80b6 (code length 102) [xbuild.exe]<br /><br />             converting method Mono.XBuild.CommandLine.MainClass:.ctor ()<br /><br />             Method Mono.XBuild.CommandLine.MainClass:.ctor () emitted at<br />             0x4f80b8 to 0x4f8152 (code length 154) [xbuild.exe]<br /><br />             converting method<br /> 
           Microsoft.Build.Utilities.ToolLocationHelper:GetPathToDotNetFramework<br />             (Microsoft.Build.Utilities.TargetDotNetFrameworkVersion)<br /><br />             Method<br />             Microsoft.Build.Utilities.ToolLocationHelper:GetPathToDotNetFramework<br />             (Microsoft.Build.Utilities.TargetDotNetFrameworkVersion)<br />             emitted at 0x4f8178 to 0x4f81aa (code length 50) [xbuild.exe]<br /><br /><br /><br /><hr /><br />             From: chaselton@gmail.com<br />             Date: Thu, 4 Jun 2015 17:00:01 -0500<br />             To: atsushieno@veritas-vos-liberabit.com;<br />             alan.mcgovern@gmail.com<br />             CC: mono-devel-list@lists.ximian.com<br />             Subject: Re: [Mono-dev] mono 4.0.0 xbuild won't build project<br /><br />             Here you go...<br /><br />             /bld/pash/Pash-Project-Pash-bc07215 $ xbuild<br />             /verbosity:diagnostic hello.proj<br />             XBuild Engine Version
12.0<br />             Mono, Version <a href="http://4.0.0.0">4.0.0.0</a> <<a href="http://4.0.0.0">http://4.0.0.0</a>><br />             Copyright (C) 2005-2013 Various Mono authors<br />             /bld/pash/Pash-Project-Pash-bc07215 $<br /><br />             On June 4, 2015 1:14:33 PM CDT, Atsushi Eno<br />             <atsushieno@veritas-vos-liberabit.com> wrote:<br /><br />                 I tried xbuild from mono master as well as mono 3.2.8, and it *did*<br />                 complain about the syntax error you made. The output from master is:<br /><br />                 ---------<br />                 atsushi:~/Desktop$ xbuild x.proj<br />                 XBuild Engine Version 12.0<br />                 Mono, Version<a href="http://4.3.0.0">4.3.0.0</a>  <<a href="http://4.3.0.0">http://4.3.0.0</a>><br />                 Copyright (C) 2005-2013 Various Mono authors<br /><br />                 Build started 6/5/2015 2:08:48 AM.<br /><hr /><br /><br />       
         x.proj: error : /home/atsushi/Desktop/x.proj: Name cannot begin with the<br />                 ' ' character, hexadecimal value 0x20. Line 1, position 2.<br />                 Build FAILED.<br />                 Errors:<br /><br />                 x.proj: error : /home/atsushi/Desktop/x.proj: Name cannot begin with the<br />                 ' ' character, hexadecimal value 0x20. Line 1, position 2.<br /><br />                        0 Warning(s)<br />                        1 Error(s)<br /><br />                 Time Elapsed 00:00:00.0105090<br />                 ---------<br /><br />                 Once I fixed the extraneous space between '<' and "Project", it printed<br />                 Hello world as expected:<br /><br />                 --------<br />                 atsushi:~/Desktop$ /usr/bin/xbuild x.proj<br />                 XBuild Engine Version 12.0<br />                 Mono, Version<a href="http://3.2.8.0">3.2.8.0</a>  <<a
href="http://3.2.8.0">http://3.2.8.0</a>><br />                 Copyright (C) 2005-2013 Various Mono authors<br /><br />                 Build started 6/5/2015 2:11:17 AM.<br /><hr /><br /><br />                 Project "/home/atsushi/Desktop/x.proj" (default target(s)):<br />                       Target Build:<br />                           Hello, World!<br />                 Done building project "/home/atsushi/Desktop/x.proj".<br /><br />                 Build succeeded.<br />                        0 Warning(s)<br />                        0 Error(s)<br /><br />                 Time Elapsed 00:00:00.0708910<br />                 --------<br /><br />                 A precise repro steps would help inspecting possible bugs.<br /><br />                 Atsushi Eno<br /><br /><br />                 On 2015年06月03日 19:31, Cyd Haselton wrote:<br /><br />                     Thing is xbuild doesn't even complain about the<br />                     syntax errors in that<br />
                    project. It doesn't do anything except for output<br />                     version info then exit.<br /><br />                     I'll pastebin the file ifthe rebuild I;m working on<br />                     doesn;t resolve<br />                     the issue.<br /><br />                     Thanks!<br /><br />                     On June 3, 2015 6:18:11 AM CDT, Alan<br />                     <alan.mcgovern@gmail.com> wrote:<br /><br />                     Can you use a pastebin to attach the actual file<br />                     you're trying to<br />                     build? The text you attached has two syntax errors<br />                     in it and would<br />                     not work as-is.<br /><br />                     A slightly modified file works as expected for me:<br />                     <a href="https://gist.github.com/alanmcgovern/c2772a9cafd0d6a5b5ee">https://gist.github.com/alanmcgovern/c2772a9cafd0d6a5b5ee</a><br /><br />     
               Hope that helps!<br />                     Alan<br /><br />                     On 3 June 2015 at 11:54, Cyd Haselton<br />                     <chaselton@gmail.com<br />                     <mailto:chaselton@gmail.com>> wrote:<br /><br />                     I did try xbuild /t:Build Pash.proj. Same result.<br /><br />                     I will try the --trace xbuild after I rebuild mono<br />                     again.<br /><br /><br />                     On June 3, 2015 3:18:34 AM CDT, Alan<br />                     <alan.mcgovern@gmail.com<br />                     <mailto:alan.mcgovern@gmail.com>> wrote:<br /><br />                     You didn't tell xbuild to build anything and you didn't<br />                     set a default target in your proj file.<br /><br />                     Try `xbuild /t:Build Pash.proj`<br /><br />                     On 2 June 2015 at 23:29, Alexander Köplinger<br />                    
<alex.koeplinger@outlook.com<br />                     <mailto:alex.koeplinger@outlook.com>> wrote:<br /><br />                     Yeah, but it's much easier on another machine since we<br />                     got the official packages for Mono there :)<br /><br />                     Try running xbuild with "MONO_OPTIONS=--trace xbuild"<br />                     to show if/what it does before it exits.<br /><br /><br /><br /><hr /><br /><br />                     Subject: RE: [Mono-dev] mono 4.0.0 xbuild won't build<br />                     project<br />                     From: chaselton@gmail.com <mailto:chaselton@gmail.com><br />                     Date: Tue, 2 Jun 2015 17:15:14 -0500<br />                     To: alex.koeplinger@outlook.com<br />                     <mailto:alex.koeplinger@outlook.com>;<br />                     mono-devel-list@lists.ximian.com<br />                     <mailto:mono-devel-list@lists.ximian.com><br /><br /><br
/>                     Excellent point.<br /><br />                     Then again...i'd have to install mono on another<br />                     machine. Also, I kinda would like to figure out why<br />                     xbuild is misbehaving on this one...<br /><br />                     On June 2, 2015 5:04:07 PM CDT, "Alexander Köplinger"<br />                     <alex.koeplinger@outlook.com<br />                     <mailto:alex.koeplinger@outlook.com>> wrote:<br /><br />                     No idea about the xbuild issue, but you should be<br />                     able to build Pash on another machine and just<br />                     copy over the .exe, it is managed code after all ;)<br /><br /><br /><hr /><br /><br />                     From: chaselton@gmail.com <mailto:chaselton@gmail.com><br />                     Date: Tue, 2 Jun 2015 16:54:19 -0500<br />                     To: mono-devel-list@lists.ximian.com<br />                    
<mailto:mono-devel-list@lists.ximian.com><br />                     Subject: [Mono-dev] mono 4.0.0 xbuild won't build<br />                     project<br /><br />                     Just built and installed mono 4.0 from sources.<br />                     Basic "Hello World" console program builds and<br />                     runs successfully but basic "Hello World" project<br />                     (hello.proj) won't build; xbuild displays the<br />                     banner and then exits with no errors and without<br />                     building the project.<br /><br />                     Here's the hello.proj<br />                     < Project<br />                     xmlns="<a href="http://schemas.microsoft.com/developer/msbuild/2003">http://schemas.microsoft.com/developer/msbuild/2003</a>"><br />                     <<a
href="http://schemas.microsoft.com/developer/msbuild/2003%22%3e">http://schemas.microsoft.com/developer/msbuild/2003%22%3e</a>>;<br />                     <Target Name="Build"><br />                     <Message Importance="High" Text="Hello, World!" /><br />                     </Target><br />                     </Project><br /><br />                     I;ve tried /verbosity:detailed and several other<br />                     flags. I've tried running path/to/mono -v<br />                     /path/to/xbuild.exe proj.proj. Same thing happens<br />                     every time:<br /><br />                     /bld/pash/Pash-Project-Pash-bc07215 $ xbuild Pash.proj<br />                     XBuild Engine Version 12.0<br />                     Mono, Version <a href="http://4.0.0.0">4.0.0.0</a> <<a href="http://4.0.0.0">http://4.0.0.0</a>> <<a href="http://4.0.0.0">http://4.0.0.0</a>><br />                     Copyright (C) 2005-2013 Various
Mono authors<br />                     /bld/pash/Pash-Project-Pash-bc07215 $<br /><br />                     Please help...this is driving me crazy.<br /><br /><br />                     --<br />                     Sent from my Android device with K-9 Mail. Please<br />                     excuse my brevity.<br /><br /><hr /><br /><br />                     Mono-devel-list mailing list<br />                     Mono-devel-list@lists.ximian.com<br />                     <mailto:Mono-devel-list@lists.ximian.com><br />                     <a href="http://lists.ximian.com/mailman/listinfo/mono-devel-list">http://lists.ximian.com/mailman/listinfo/mono-devel-list</a><br /><br /><br /><br />                     --<br />                     Sent from my Android device with K-9 Mail. Please<br />                     excuse my<br />                     brevity.<br /><br /><br /><br />                     --<br />                     Sent from my Android device with K-9 Mail. Please<br
/>                     excuse my brevity.<br /><br /><br /><hr /><br /><br />                     Mono-devel-list mailing list<br />                     Mono-devel-list@lists.ximian.com<br />                     <a href="http://lists.ximian.com/mailman/listinfo/mono-devel-list">http://lists.ximian.com/mailman/listinfo/mono-devel-list</a><br /><br /><br /><br /><br /><br /><br /> --<br /> Sent from my Android device with K-9 Mail. Please excuse my brevity.<br /><br /><br /><hr /><br /> Mono-devel-list mailing list<br /> Mono-devel-list@lists.ximian.com<br /> <a href="http://lists.ximian.com/mailman/listinfo/mono-devel-list">http://lists.ximian.com/mailman/listinfo/mono-devel-list</a></blockquote><br /><br /></pre></blockquote></div><br>
-- <br>
Sent from my Android device with K-9 Mail. Please excuse my brevity.</body></html>