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

Robert N sushihangover at outlook.com
Thu Jun 4 23:51:00 UTC 2015


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
                     < Project
                     xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
                     <http://schemas.microsoft.com/developer/msbuild/2003%22%3e>;
                     <Target Name="Build">
                     <Message Importance="High" Text="Hello, World!" />
                     </Target>
                     </Project>

                     I;ve tried /verbosity:detailed and several other
                     flags. I've tried running path/to/mono -v
                     /path/to/xbuild.exe proj.proj. Same thing happens
                     every time:

                     /bld/pash/Pash-Project-Pash-bc07215 $ xbuild Pash.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 $

                     Please help...this is driving me crazy.


                 -- 
                 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
                 <mailto:Mono-devel-list at lists.ximian.com>
                 http://lists.ximian.com/mailman/listinfo/mono-devel-list



         -- 
         Sent from my Android device with K-9 Mail. Please excuse my
         brevity.



 -- 
 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



-- 

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 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20150604/f63d120b/attachment-0001.html>


More information about the Mono-devel-list mailing list