From: k l <yod...@ya...> - 2004-02-27 02:32:28
|
Hi Clayton, Thanks for your help. Unfortunately, I tried both suggestions and after the second one(removed the <asminfo /> task) I got the following error (see output below; I could not find a log file). Thanks, Kamen ----------- ----------- [kamen@kupka nant]$ make clean rm bin/*.* -f [kamen@kupka nant]$ make make bootstrap make[1]: Entering directory `/home/kamen/nant' if test x = xWindows_NT; then make windows-bootstrap; else make linux-bootstrap; fi make[2]: Entering directory `/home/kamen/nant' cp lib/*.* bin/ cp lib/mono/1.0/*.* bin/ make linux-bootstrap-nant make[3]: Entering directory `/home/kamen/nant' mcs -target:exe -define:MONO -debug -o bin/NAnt.exe -r:lib/mono/1.0/log4net.dll -recurse:src/NAnt.Console/*.cs src/CommonAssemblyInfo.cs Compilation succeeded cp src/NAnt.Console/NAnt.Console.exe.config bin/NAnt.exe.config make[3]: Leaving directory `/home/kamen/nant' make linux-bootstrap-nant.core make[3]: Entering directory `/home/kamen/nant' mcs -target:library -define:MONO -debug -o bin/NAnt.Core.dll -r:bin/log4net.dll -r:System.Web.dll -recurse:src/NAnt.Core/*.cs src/CommonAssemblyInfo.cs src/NAnt.Core/ConsoleDriver.cs(271) warning CS0618: Method `System.Xml.Xsl.XslTransform.Load(System.Xml.XmlReader)' is obsolete: `You should pass evidence.' src/NAnt.Core/ConsoleDriver.cs(278) warning CS0618: Method `System.Xml.Xsl.XslTransform.Transform(System.Xml.XPath.IXPathNavigable, System.Xml.Xsl.XsltArgumentList, System.IO.TextWriter)' is obsolete: `You should pass XmlResolver to Transform() method' src/NAnt.Core/Tasks/StyleTask.cs(306) warning CS0618: Method `System.Xml.Xsl.XslTransform.Load(System.Xml.XmlReader)' is obsolete: `You should pass evidence.' src/NAnt.Core/Tasks/StyleTask.cs(329) warning CS0618: Method `System.Xml.Xsl.XslTransform.Transform(System.Xml.XPath.IXPathNavigable, System.Xml.Xsl.XsltArgumentList, System.IO.TextWriter)' is obsolete: `You should pass XmlResolver to Transform() method' Compilation succeeded - 4 warning(s) make[3]: Leaving directory `/home/kamen/nant' make linux-bootstrap-nant.dotnet make[3]: Entering directory `/home/kamen/nant' mcs -target:library -define:MONO -debug -o bin/NAnt.DotNetTasks.dll -r:./bin/NAnt.Core.dll -r:bin/NDoc.Core.dll -recurse:src/NAnt.DotNet/*.cs src/CommonAssemblyInfo.cs Compilation succeeded make[3]: Leaving directory `/home/kamen/nant' make[2]: Leaving directory `/home/kamen/nant' make[1]: Leaving directory `/home/kamen/nant' make nant make[1]: Entering directory `/home/kamen/nant' if test x = xWindows_NT; then make windows-nant; else make linux-nant; fi make[2]: Entering directory `/home/kamen/nant' mono bin/NAnt.exe -buildfile:NAnt.build build NAnt 0.0.0.0 (Build 0.0.0.0; ; 01/01/2000) Buildfile: file://home/kamen/nant/NAnt.build Target(s) specified: build [echo] Using 'mono-1.0' framework on 'unix' platform. init: debug: set-runtime-configuration: set-mono-1.0-runtime-configuration: set-runtime-configuration-flags: set-mono-1.0-runtime-configuration: set-runtime-configuration-flags: create-common-assemblyinfo: [attrib] Setting file attributes for 1 files to Normal. build: [echo] Build Directory is /home/kamen/nant/build/mono-1.0.unix/nant-0.85-debug [nant] /home/kamen/nant/src/NAnt.Core/NAnt.Core.build build Buildfile: file://home/kamen/nant/src/NAnt.Core/NAnt.Core.build Target(s) specified: build build: BUILD FAILED INTERNAL ERROR System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: An exception was thrown by the type initializer for NAnt.DotNet.Tasks.CompilerBase ---> System.ArgumentException: An invalid argument was specified. in (unmanaged) /usr/local/lib/libmono.so.0(mono_raise_exception+0x1b) [0x40080f07] in (unmanaged) /usr/local/lib/libmono.so.0 [0x400a8df9] in <0x00084> System.Globalization.CultureInfo:Construct (int,string,bool) in <0x00084> System.Globalization.CultureInfo:.ctor (int,bool) in <0x00012> System.Globalization.CultureInfo:.ctor (int) in <0x0017b> System.Globalization.CultureInfo:GetCultures (System.Globalization.CultureTypes) in <0x000bd> NAnt.DotNet.Tasks.CompilerBase:.cctor () --- End of inner exception stack trace --- in (unmanaged) NAnt.DotNet.Tasks.CompilerBase:.ctor () in <0x0000b> NAnt.DotNet.Tasks.CscTask:.ctor () in (unmanaged) /usr/local/lib/libmono.so.0 [0x40046d3f] in (unmanaged) /usr/local/lib/libmono.so.0(mono_runtime_invoke+0x23) [0x4007ee57] in (unmanaged) /usr/local/lib/libmono.so.0(mono_runtime_invoke_array+0xb6) [0x4007fb0e] in (unmanaged) /usr/local/lib/libmono.so.0 [0x400853ac] in <0x0009c> System.Reflection.MonoCMethod:Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) --- End of inner exception stack trace --- in <0x00103> System.Reflection.MonoCMethod:Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) in <0x00022> System.Reflection.MonoCMethod:Invoke (System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) in <0x0023a> System.Activator:CreateInstance (System.Type,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo,object[]) in <0x0005c> System.Reflection.Assembly:CreateInstance (string,bool,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo,object[]) in <0x00060> NAnt.Core.TaskBuilder:CreateTask () in <0x00187> NAnt.Core.TypeFactory:CreateTask (System.Xml.XmlNode,NAnt.Core.Project) in <0x00017> NAnt.Core.Project:CreateTask (System.Xml.XmlNode,NAnt.Core.Target) in <0x0024c> NAnt.Core.Target:Execute () in <0x000c5> NAnt.Core.Project:Execute (string,bool) in <0x00305> NAnt.Core.Project:Execute () in <0x00185> NAnt.Core.Project:Run () Please send bug report to nan...@li.... Total time: 0 seconds. BUILD FAILED Nested build failed. Refer to build log for exact reason. Total time: 0.3 seconds. ----------- ----------- --- Clayton Harbour <cla...@sp...> wrote: > Hi Kamen, > > There are two potential issues here, one at least is > a mono issue and > the other may be a mono issue. The following is > slightly modified from > a post on the mono user list (original post by > Jarek): > 1) search for "01-01-2000" and change it to > "01/01/2000" > 2) make clean > 3) make > > If this fails with the "TypeGatheringDomain timed > out" you may need to > comment out the <asminfo /> task in the NAnt.build > file and repeat steps > 2 and 3. > > > Cheers, > > > Clayton > > > -----Original Message----- > > From: k l [mailto:yod...@ya...] > > Sent: February 26, 2004 5:27 PM > > To: nan...@li... > > Subject: [Nant-users] Problem building Nant under > RedHat and Mono > > > > > > Hi, > > > > I am trying to compile nant-0.85-20040226.zip > > under Linux(Red Hat Enterprise v 3.0 -- similar > > to RedHat 9) and Mono(0.30.1) > > and get the following error message(see > > the complete output below). > > Any help will be appreciated. Sorry, if > > this has been covered on the list in > > the past -- I could not find anything in > > the archives. > > > > Does Nant work reasonably well under Linux > > and Mono? > > > > Thanks, > > > > Kamen > > ------------------------------ > > [kamen@kupka nant]$ make clean > > rm bin/*.* -f > > [kamen@kupka nant]$ make > > make bootstrap > > make[1]: Entering directory `/home/kamen/nant' > > if test x = xWindows_NT; then make > windows-bootstrap; > > else make linux-bootstrap; fi > > make[2]: Entering directory `/home/kamen/nant' > > cp lib/*.* bin/ > > cp lib/mono/1.0/*.* bin/ > > make linux-bootstrap-nant > > make[3]: Entering directory `/home/kamen/nant' > > mcs -target:exe -define:MONO -debug -o > bin/NAnt.exe > > -r:lib/mono/1.0/log4net.dll > -recurse:src/NAnt.Console/*.cs > > src/CommonAssemblyInfo.cs Compilation succeeded cp > > > src/NAnt.Console/NAnt.Console.exe.config > > bin/NAnt.exe.config > > make[3]: Leaving directory `/home/kamen/nant' > > make linux-bootstrap-nant.core > > make[3]: Entering directory `/home/kamen/nant' > > mcs -target:library -define:MONO -debug -o > > bin/NAnt.Core.dll -r:bin/log4net.dll > -r:System.Web.dll > > -recurse:src/NAnt.Core/*.cs > src/CommonAssemblyInfo.cs > > src/NAnt.Core/ConsoleDriver.cs(271) warning > CS0618: > > Method > > > `System.Xml.Xsl.XslTransform.Load(System.Xml.XmlReader)' > > is obsolete: `You should pass evidence.' > > src/NAnt.Core/ConsoleDriver.cs(278) warning > CS0618: > > Method > > > `System.Xml.Xsl.XslTransform.Transform(System.Xml.XPath.IXPath > > Navigable, > > System.Xml.Xsl.XsltArgumentList, > > System.IO.TextWriter)' is obsolete: `You should > pass > > XmlResolver to Transform() method' > > src/NAnt.Core/Tasks/StyleTask.cs(306) warning > CS0618: > > Method > > > `System.Xml.Xsl.XslTransform.Load(System.Xml.XmlReader)' > > is obsolete: `You should pass evidence.' > > src/NAnt.Core/Tasks/StyleTask.cs(329) warning > CS0618: > > Method > > > `System.Xml.Xsl.XslTransform.Transform(System.Xml.XPath.IXPath > > Navigable, > > System.Xml.Xsl.XsltArgumentList, > > System.IO.TextWriter)' is obsolete: `You should > pass > > XmlResolver to Transform() method' Compilation > succeeded - 4 > > warning(s) > > make[3]: Leaving directory `/home/kamen/nant' > > make linux-bootstrap-nant.dotnet > > make[3]: Entering directory `/home/kamen/nant' > > mcs -target:library -define:MONO -debug -o > > bin/NAnt.DotNetTasks.dll -r:./bin/NAnt.Core.dll > > -r:bin/NDoc.Core.dll -recurse:src/NAnt.DotNet/*.cs > > > src/CommonAssemblyInfo.cs Compilation succeeded > > make[3]: Leaving directory `/home/kamen/nant' > > make[2]: Leaving directory `/home/kamen/nant' > > make[1]: Leaving directory `/home/kamen/nant' > > make nant > > make[1]: Entering directory `/home/kamen/nant' > > if test x = xWindows_NT; then make windows-nant; > else > > make linux-nant; fi > > make[2]: Entering directory `/home/kamen/nant' > > mono bin/NAnt.exe -buildfile:NAnt.build build > > NAnt 0.85 (Build 0.85.1517.0; net-1.0.win32; > nightly; > > 02/26/2004) > > Copyright (C) 2001-2004 Gerry Shaw > > http://nant.sourceforge.net > > > > Buildfile: file://home/kamen/nant/NAnt.build > > Target(s) specified: build > > [echo] Using 'mono-1.0' framework on 'unix' > > platform. > > > > init: > > > > > > debug: > > > > > > set-runtime-configuration: > > > > > > set-mono-1.0-runtime-configuration: > > > > > > set-runtime-configuration-flags: > > > > > > set-mono-1.0-runtime-configuration: > > > > > > set-runtime-configuration-flags: > > > > > > create-common-assemblyinfo: > > > > [attrib] Setting file attributes for 1 files to > > Normal. > > > > BUILD FAILED > > > > /home/kamen/nant/NAnt.build(64,17): > > Property evaluation failed. > > Expression: ${project.version}.${build.number}.0 > > ^^^^^^^^^^^^ > > Cannot convert argument 1 (value) of > > convert::to-datetime() to 'datetime' (actual type > was 'string'). > > Expression: > > > ${math::floor(timespan::get-total-days(datetime::now() > > - convert::to-datetime('01-01-2000')))} > > > > > > ^^^^^^^^^^^^ > > Invalid format > > > > Total time: 0.3 seconds. > > > > make[2]: *** [linux-nant] Error 1 > > make[2]: Leaving directory `/home/kamen/nant' > > make[1]: *** [nant] Error 2 > > make[1]: Leaving directory `/home/kamen/nant' > > make: *** [all] Error 2 > > > > > > __________________________________ > > Do you Yahoo!? > > Get better spam protection with Yahoo! Mail. > === message truncated === __________________________________ Do you Yahoo!? Get better spam protection with Yahoo! Mail. http://antispam.yahoo.com/tools |