[Mono-dev] mono 4.0.0 xbuild won't build project

Cyd Haselton chaselton at gmail.com
Fri Jun 5 21:58:46 UTC 2015


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.

I found a bug report for an issue I ran into with a System.TimeZoneNotFound exception so I'll work from there.

On June 5, 2015 4:26:35 PM CDT, Atsushi Eno <atsushieno at veritas-vos-liberabit.com> wrote:
>Wait, you are building mono _on_ Android? I don't think mono supports 
>custom Android build. Things WON'T work and it is quite as expected. 
>That's not a bug at all.
>
>We Xamarin don't even use full mono stack. xbuild is totally out of 
>mobile scope.
>
>Atsushi Eno
>
>
>On 2015年06月06日 00:26, Cyd Haselton wrote:
>> Additionally there's this
>>
>> csharp> System.DateTime.Now
>> System.TimeZoneNotFoundException: Exception of type
>> 'System.TimeZoneNotFoundException' was thrown.
>> at System.TimeZoneInfo.get_Local () [0x00000] in <filename unknown>:0
>> at System.TimeZoneInfo.GetDateTimeNowUtcOffsetFromUtc (DateTime time,
>> System.Boolean& isAmbiguousLocalDst) [0x00000] in <filename
>unknown>:0
>> at System.DateTime.get_Now () [0x00000] in <filename unknown>:0
>> at <InteractiveExpressionClass>.Host (System.Object& $retval)
>[0x00000]
>> in <filename unknown>:0
>> at Mono.CSharp.Evaluator.Evaluate (System.String input,
>System.Object&
>> result, System.Boolean& result_set) [0x00000] in <filename unknown>:0
>> at Mono.CSharpShell.Evaluate (System.String input) [0x00000] in
>> <filename unknown>:0
>>
>> Android's native support for locale is notoriously broken. I used
>> -DNO-LOCALE when building mono, hoping that it would be taken into
>account
>>
>> On June 5, 2015 10:16:34 AM CDT, "Alexander Köplinger"
>> <alex.koeplinger at outlook.com> wrote:
>>
>>     It's just a simple helloworld as well, but with datetime output:
>>
>>     using System;
>>
>>     namespace HelloWorld {
>>          public class Program {
>>              public static void Main(string[] args) {
>>                  Console.WriteLine("Hello World " + DateTime.Now);
>>              }
>>          }
>>     }
>>
>>     If this doesn't work, then there's no point trying to get xbuild
>>     working as the code above is as basic as it gets.
>>
>>     -- Alex
>>
>>
>>    
>------------------------------------------------------------------------
>>     Subject: RE: [Mono-dev] mono 4.0.0 xbuild won't build project
>>     From: chaselton at gmail.com
>>     Date: Fri, 5 Jun 2015 09:43:07 -0500
>>     To: alex.koeplinger at outlook.com; mono-devel-list at lists.ximian.com
>>
>>     Unfortunately the latest build...with ncurses this time...didn't
>>     change anything. Same output for xbuild.
>>
>>     Alexander, could you send the code for the Project.exe you sent
>me?
>>
>>     On June 5, 2015 3:25:42 AM CDT, "Alexander Köplinger"
>>     <alex.koeplinger at outlook.com> wrote:
>>
>>         Can you try this simple Hello World exe to confirm basic Mono
>is
>>         working and it's something specific to xbuild:
>>         https://dl.dropboxusercontent.com/u/21102229/Program.zip (it
>>         just prints the current date).
>>
>>         I believe there's some terminal requirements, but not sure.
>>         Redirecting output to a file might work.
>>
>>        
>------------------------------------------------------------------------
>>         From: chaselton at gmail.com
>>         Date: Thu, 4 Jun 2015 19:56:01 -0500
>>         To: sushihangover at outlook.com;
>mono-devel-list at lists.ximian.com
>>         Subject: Re: [Mono-dev] mono 4.0.0 xbuild won't build project
>>
>>         I tried it just now and I get the same result as before,
>>         unfortunately.
>>
>>         Is there a terminfo/ncurses requirement for xbuild? Or for
>mono
>>         in general? The rebuild I mentioned earlier was done in order
>to
>>         make sure -lncurses and all related headers and libs were
>>         included but it's possible I left something out and need to
>>         re-build again.
>>
>>         Additionally, is there a terminal tyoe requirement for
>xbuild?
>>         The android environment i'm using only comes with two types
>but
>>         I;ve got a working tic and sources so I can always install
>more.
>>
>>         On June 4, 2015 6:51:00 PM CDT, Robert N
>>         <sushihangover at outlook.com> wrote:
>>
>>             I realized that my other mail was hosed, outlook in a
>>             browser does blow at times...
>>
>>             So I was wondering if you were able to run xbuild using
>the
>>             mono option -v, since xbuild /verbosity:diagnostic never
>>             spills even the first line of the diag text: Loading
>default
>>             tasks for ToolsVersion
>>
>>             Using mono_options -v 'should' dump about 6500 lines
>before
>>             even getting to the version/copyright notice... assuming
>>             something in there is causing a silent fault(?) and exit.
>>
>>             Win81Pro:Pash administrator$ MONO_OPTIONS="-v" xbuild
>>             Pash.proj |more
>>
>>             converting method System.OutOfMemoryException:.ctor
>(string)
>>
>>             Method System.OutOfMemoryException:.ctor (string) emitted
>at
>>             0x4f7d20 to 0x4f7d44 (code length 36) [xbuild.exe]
>>
>>             converting method (wrapper runtime-invoke)
>>             <Module>:runtime_invoke_void__this___object
>>             (object,intptr,intptr,intptr)
>>
>>             Method (wrapper runtime-invoke)
>>             <Module>:runtime_invoke_void__this___object
>>             (object,intptr,intptr,intptr) emitted at 0x4f7d60 to
>>             0x4f7e38 (code length 216) [xbuild.exe]
>>
>>             converting method System.SystemException:.ctor (string)
>>
>>             Method System.SystemException:.ctor (string) emitted at
>>             0x4f7e38 to 0x4f7e5c (code length 36) [xbuild.exe]
>>
>>             converting method System.Exception:.ctor (string)
>>
>>             Method System.Exception:.ctor (string) emitted at
>0x4f7e68
>>             to 0x4f7ea1 (code length 57) [xbuild.exe]
>>
>>             converting method System.NullReferenceException:.ctor
>(string)
>>
>>             Method System.NullReferenceException:.ctor (string)
>emitted
>>             at 0x4f7ea8 to 0x4f7ecc (code length 36) [xbuild.exe]
>>
>>             converting method System.StackOverflowException:.ctor
>(string)
>>
>>             Method System.StackOverflowException:.ctor (string)
>emitted
>>             at 0x4f7ed0 to 0x4f7eea (code length 26) [xbuild.exe]
>>
>>             converting method Mono.XBuild.CommandLine.MainClass:Main
>>             (string[])
>>
>>             Method Mono.XBuild.CommandLine.MainClass:Main (string[])
>>             emitted at 0x4f7ef0 to 0x4f7f52 (code length 98)
>[xbuild.exe]
>>
>>             converting method (wrapper runtime-invoke)
>>             <Module>:runtime_invoke_void_object
>>             (object,intptr,intptr,intptr)
>>
>>             Method (wrapper runtime-invoke)
>>             <Module>:runtime_invoke_void_object
>>             (object,intptr,intptr,intptr) emitted at 0x4f7f78 to
>>             0x4f8044 (code length 204) [xbuild.exe]
>>
>>             converting method (wrapper alloc) object:AllocSmall
>>             (intptr,intptr)
>>
>>             Method (wrapper alloc) object:AllocSmall (intptr,intptr)
>>             emitted at 0x4f8050 to 0x4f80b6 (code length 102)
>[xbuild.exe]
>>
>>             converting method Mono.XBuild.CommandLine.MainClass:.ctor
>()
>>
>>             Method Mono.XBuild.CommandLine.MainClass:.ctor () emitted
>at
>>             0x4f80b8 to 0x4f8152 (code length 154) [xbuild.exe]
>>
>>             converting method
>>            
>Microsoft.Build.Utilities.ToolLocationHelper:GetPathToDotNetFramework
>>             (Microsoft.Build.Utilities.TargetDotNetFrameworkVersion)
>>
>>             Method
>>            
>Microsoft.Build.Utilities.ToolLocationHelper:GetPathToDotNetFramework
>>             (Microsoft.Build.Utilities.TargetDotNetFrameworkVersion)
>>             emitted at 0x4f8178 to 0x4f81aa (code length 50)
>[xbuild.exe]
>>
>>
>>
>>            
>------------------------------------------------------------------------
>>             From: chaselton at gmail.com
>>             Date: Thu, 4 Jun 2015 17:00:01 -0500
>>             To: atsushieno at veritas-vos-liberabit.com;
>>             alan.mcgovern at gmail.com
>>             CC: mono-devel-list at lists.ximian.com
>>             Subject: Re: [Mono-dev] mono 4.0.0 xbuild won't build
>project
>>
>>             Here you go...
>>
>>             /bld/pash/Pash-Project-Pash-bc07215 $ xbuild
>>             /verbosity:diagnostic hello.proj
>>             XBuild Engine Version 12.0
>>             Mono, Version 4.0.0.0 <http://4.0.0.0>
>>             Copyright (C) 2005-2013 Various Mono authors
>>             /bld/pash/Pash-Project-Pash-bc07215 $
>>
>>             On June 4, 2015 1:14:33 PM CDT, Atsushi Eno
>>             <atsushieno at veritas-vos-liberabit.com> wrote:
>>
>>                 I tried xbuild from mono master as well as mono
>3.2.8, and it *did*
>>                 complain about the syntax error you made. The output
>from master is:
>>
>>                 ---------
>>                 atsushi:~/Desktop$ xbuild x.proj
>>                 XBuild Engine Version 12.0
>>                 Mono, Version4.3.0.0  <http://4.3.0.0>
>>                 Copyright (C) 2005-2013 Various Mono authors
>>
>>                 Build started 6/5/2015 2:08:48 AM.
>>                
>------------------------------------------------------------------------
>>
>>                 x.proj: error : /home/atsushi/Desktop/x.proj: Name
>cannot begin with the
>>                 ' ' character, hexadecimal value 0x20. Line 1,
>position 2.
>>                 Build FAILED.
>>                 Errors:
>>
>>                 x.proj: error : /home/atsushi/Desktop/x.proj: Name
>cannot begin with the
>>                 ' ' character, hexadecimal value 0x20. Line 1,
>position 2.
>>
>>                        0 Warning(s)
>>                        1 Error(s)
>>
>>                 Time Elapsed 00:00:00.0105090
>>                 ---------
>>
>>                 Once I fixed the extraneous space between '<' and
>"Project", it printed
>>                 Hello world as expected:
>>
>>                 --------
>>                 atsushi:~/Desktop$ /usr/bin/xbuild x.proj
>>                 XBuild Engine Version 12.0
>>                 Mono, Version3.2.8.0  <http://3.2.8.0>
>>                 Copyright (C) 2005-2013 Various Mono authors
>>
>>                 Build started 6/5/2015 2:11:17 AM.
>>                
>------------------------------------------------------------------------
>>
>>                 Project "/home/atsushi/Desktop/x.proj" (default
>target(s)):
>>                       Targe
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20150605/f7efca66/attachment-0001.html>


More information about the Mono-devel-list mailing list