A recent change made by Ian will fill a StringCollection with the names of
all available cultures in the static constructor of CompilerBase, and
apparently that's what causing a NullReferenceExeption.

Are you building Mono from cvs ?  I think ICU
(http://oss.software.ibm.com/icu/) was added to Mono after the 0.28 release,
so I think this particular piece of code could indeed cause problems on Mono
0.28 release ...

Can you rebuild Mono from cvs with ICU enabled (kind of a hassle to enable
this, but I managed on my system a few days ago, so if you need help ...)

I'll look into this further later today, but I'm pretty sure this is a mono
issue ...

Thanks for the report ...

Gert

----- Original Message ----- 
From: "D-Fuse" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 27, 2003 10:34 PM
Subject: [nant-dev] Bug Report


> make bootstrap
> make[1]: Entering directory `/root/nant'
> if test x = xWindows_NT; then make windows-bootstrap;
> else make linux-bootstrap; fi
> make[2]: Entering directory `/root/nant'
> cp lib/*.* bin/
> cp lib/mono/1.0/*.* bin/
> make linux-bootstrap-nant
> make[3]: Entering directory `/root/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 `/root/nant'
> make linux-bootstrap-nant.core
> make[3]: Entering directory `/root/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/Comm onAssemblyInfo.cs
> src/NAnt.Core/ConsoleDriver.cs(242) warning CS0618:
> Method `XslTransform.Load(System.Xml.XmlReader)' is
> obsolete: `You should pass evi dence.'
> src/NAnt.Core/Tasks/StyleTask.cs(280) warning CS0618:
> Method `XslTransform.Load(System.Xml.XmlReader)' is
> obsolete: `You should pass e vidence.'
> Compilation succeeded - 2 warning(s)
> make[3]: Leaving directory `/root/nant'
> make linux-bootstrap-nant.dotnet
> make[3]: Entering directory `/root/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.DotN et/*.cs
> src/CommonAssemblyInfo.cs
> Compilation succeeded
> make[3]: Leaving directory `/root/nant'
> make[2]: Leaving directory `/root/nant'
> make[1]: Leaving directory `/root/nant'
> make nant
> make[1]: Entering directory `/root/nant'
> if test x = xWindows_NT; then make windows-nant; else
> make linux-nant; fi
> make[2]: Entering directory `/root/nant'
> mono bin/NAnt.exe -buildfile:NAnt.build build
> NAnt version 0.8.4 Copyright (C) 2001-2003 Gerry Shaw
> http://nant.sourceforge.net
>
> Buildfile: file://root/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:
>
>
> build:
>
>      [echo] Build Directory is
> /root/nant/build/mono-1.0.unix/nant-0.8.4-debug
>     [mkdir] Creating directory
> /root/nant/build/mono-1.0.unix/nant-0.8.4-debug/bin.
>      [copy] Copying 3 files to
> /root/nant/build/mono-1.0.unix/nant-0.8.4-debug/bin.
>      [copy] Copying 4 files to
> /root/nant/build/mono-1.0.unix/nant-0.8.4-debug/bin.
>      [nant] src/NAnt.Core/NAnt.Core.build build
>
>             Buildfile:
> file://root/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.TypeIni tializationException: An exception was
> thrown by the type initializer for
> NAnt.DotNet.Tasks.CompilerBase --->
> System.NullReferenceExce ption: A null value was found
> where an object instance was required
> in <0x00117> NAnt.DotNet.Tasks.CompilerBase:.cctor ()
> --- End of inner exception stack trace ---
>
> in (unmanaged) NAnt.DotNet.Tasks.CompilerBase:.ctor ()
> in <0x0003d> NAnt.DotNet.Tasks.CscTask:.ctor ()
> in (unmanaged) /usr/local/lib/libmono.so.0
> [0x40044ae1]
> in (unmanaged)
> /usr/local/lib/libmono.so.0(mono_runtime_invoke+0x35)
> [0x40096e12]
> in (unmanaged)
> /usr/local/lib/libmono.so.0(mono_runtime_invoke_array+0x1f3)
> [0x40097d6b]
> in (unmanaged) /usr/local/lib/libmono.so.0
> [0x4009e2c1]
> in <0x0009c> System.Reflection.MonoCMethod:Invoke
>
(object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],Sys
tem.Glob
> alization.CultureInfo)
> --- End of inner exception stack trace ---
>
> in <0x000e4> System.Reflection.MonoCMethod:Invoke
>
(object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],Sys
tem.Glob
> alization.CultureInfo)
> in <0x00022> System.Reflection.MonoCMethod:Invoke
>
(System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Glo
balizati
> on.CultureInfo)
> in <0x0026b> System.Activator:CreateInstance
>
(System.Type,System.Reflection.BindingFlags,System.Reflection.Binder,object[
],System.Glob
> alization.CultureInfo,object[])
> in <0x00050> System.Reflection.Assembly:CreateInstance
>
(string,bool,System.Reflection.BindingFlags,System.Reflection.Binder,object[
],S
> ystem.Globalization.CultureInfo,object[])
> in <0x00060> NAnt.Core.TaskBuilder:CreateTask ()
> in <0x00111> NAnt.Core.TypeFactory:CreateTask
> (System.Xml.XmlNode,NAnt.Core.Project)
> in <0x00017> NAnt.Core.Project:CreateTask
> (System.Xml.XmlNode,NAnt.Core.Target)
> in <0x00281> NAnt.Core.Target:Execute ()
> in <0x000b2> NAnt.Core.Project:Execute (string)
> in <0x00308> NAnt.Core.Project:Execute ()
> in <0x00173> NAnt.Core.Project:Run ()
>
>
>             Please send bug report to
> [EMAIL PROTECTED]
>
>             Total time: 0.1 seconds.
>
>
> BUILD FAILED
>
> Nested build failed.  Refer to build log for exact
> reason.
>
> Total time: 3.4 seconds.
>
> make[2]: *** [linux-nant] Error 1
> make[2]: Leaving directory `/root/nant'
> make[1]: *** [nant] Error 2
> make[1]: Leaving directory `/root/nant'
> make: *** [all] Error 2
>
> If I sent this twice, I'm sorry, but my previous mail
> didn't seem to be sent. I built nant on linux 2.4 with
> mono-0.28. Got nant from the cvs.
>
> __________________________________
> Do you Yahoo!?
> Exclusive Video Premiere - Britney Spears
> http://launch.yahoo.com/promos/britneyspears/
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: The SF.net Donation Program.
> Do you like what SourceForge.net is doing for the Open
> Source Community?  Make a contribution, and help us add new
> features and functionality. Click here: http://sourceforge.net/donate/
> _______________________________________________
> nant-developers mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/nant-developers
>
>



-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to