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

Cyd Haselton chaselton at gmail.com
Fri Jun 5 16:12:29 UTC 2015


It does NOT work as written
It DOES work after removing + DateTime.Now

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
>
>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, Version 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, Version 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)):
>     Target Build:
>         Hello, World!
>Done building project "/home/atsushi/Desktop/x.proj".
>
>Build succeeded.
>      0 Warning(s)
>      0 Error(s)
>
>Time Elapsed 00:00:00.0708910
>--------
>
>A precise repro steps would help inspecting possible bugs.
>
>Atsushi Eno
>
>
>On 2015年06月03日 19:31, Cyd Haselton wrote:
> Thing is xbuild doesn't even complain about the syntax errors in that 
> project. It doesn't do
>anything except for output version info then exit.
>
> I'll
>pastebin the file ifthe rebuild I;m working on doesn;t resolve 
> the issue.
>
> Thanks!
>
> On June 3, 2015 6:18:11 AM CDT, Alan <alan.mcgovern at gmail.com> wrote:
>
>     Can you use a pastebin to attach the actual file you're trying to
>     build? The text you attached has two syntax errors in it and would
>     not work as-is.
>
>     A slightly modified file works as expected for me:
>     https://gist.github.com/alanmcgovern/c2772a9cafd0d6a5b5ee
>
>     Hope that helps!
>     Alan
>
>     On 3 June 2015 at 11:54, Cyd Haselton <chaselton at gmail.com
>     <mailto:chaselton at gmail.com>> wrote:
>
>         I did try xbuild /t:Build Pash.proj. Same result.
>
>         I will try the --trace xbuild after I rebuild mono again.
>
>
>         On June 3, 2015 3:18:34 AM CDT, Alan
><alan.mcgovern at gmail.com
>         <mailto:alan.mcgovern at gmail.com>> wrote:
>
>             You didn't tell xbuild to build anything and you didn't
>             set a default target in your proj file.
>
>             Try `xbuild /t:Build Pash.proj`
>
>             On 2 June 2015 at 23:29, Alexander Köplinger
>             <alex.koeplinger at outlook.com
>             <mailto:alex.koeplinger at outlook.com>> wrote:
>
>                 Yeah, but it's much easier on another machine since we
>                 got the official packages for Mono there :)
>
>                 Try running xbuild with "MONO_OPTIONS=--trace xbuild"
>                 to show if/what it does before it exits.
>
>
>
>
>                 Subject: RE: [Mono-dev] mono 4.0.0 xbuild won't build
>                 project
>                 From: chaselton at gmail.com <mailto:chaselton at gmail.com>
> 
>               Date: Tue, 2 Jun 2015 17:15:14 -0500
>                 To: alex.koeplinger at outlook.com
>                 <mailto:alex.koeplinger at outlook.com>;
>                 mono-devel-list at lists.ximian.com
>                 <mailto:mono-devel-list at lists.ximian.com>
>
>
>                 Excellent point.
>
>                 Then again...i'd have to install mono on another
>                 machine. Also, I kinda would like to figure out why
>                 xbuild is misbehaving on this one...
>
>                 On June 2, 2015 5:04:07 PM CDT, "Alexander Köplinger"
>                 <alex.koeplinger at outlook.com
>                 <mailto:alex.koeplinger at outlook.com>> wrote:
>
>                     No idea about the xbuild issue, but you should be
>                     able to build Pash on another machine and just
>                     copy over the .exe, it is managed code after
>all ;)
>
>
>
>                 From: chaselton at gmail.com <mailto:chaselton at gmail.com>
>                     Date: Tue, 2 Jun 2015 16:54:19 -0500
>                     To: mono-devel-list at lists.ximian.com
>                     <mailto:mono-devel-list at lists.ximian.com>
>                     Subject: [Mono-dev] mono 4.0.0 xbuild won't build
>                     project
>
>                     Just built and installed mono 4.0 from sources.
>                     Basic "Hello World" console program builds and
>                     runs successfully but basic "Hello World" project
>                     (hello.proj) won't build; xbuild displays the
>                     banner and then exits with no errors and without
>                     building the project.
>
>                     Here's the hello.proj
>                 
-- 
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/b3fcbfc7/attachment-0001.html>


More information about the Mono-devel-list mailing list