https://bugzilla.novell.com/show_bug.cgi?id=676129
https://bugzilla.novell.com/show_bug.cgi?id=676129#c0 Summary: error CS0584: Internal compiler error: Object reference not set to an instance of an object Classification: Mono Product: Mono: Compilers Version: 2.10.x Platform: x86 OS/Version: Ubuntu Status: NEW Severity: Normal Priority: P5 - None Component: C# AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- Created an attachment (id=416949) --> (http://bugzilla.novell.com/attachment.cgi?id=416949) Simple solution with bug User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13 Compiling the attached solution on 2.10.x yields the internal compiler error. ( error CS0584: Internal compiler error: Object reference not set to an instance of an object) See the attached zip file for a sample project ubuntu:~/dev/lib/TestProj$ bash -c 'source lsmono-env; xbuild /p:Configuration=Debug TestProj.sln' XBuild Engine Version 2.10.1.0 Mono, Version 2.10.1.0 Copyright (C) Marek Sieradzki 2005-2008, Novell 2008-2011. Build started 3/2/2011 12:55:11 AM. __________________________________________________ Project "/home/ubuntu/dev/lib/TestProj/TestProj.sln" (default target(s)): Target ValidateSolutionConfiguration: Building solution configuration "Debug|Any CPU". Target Build: Project "/home/ubuntu/dev/lib/TestProj/TestProj.csproj" (default target(s)): Target PrepareForBuild: Configuration: Debug Platform: AnyCPU Created directory "bin/Debug/" Created directory "obj/Debug/" Target ResolveAssemblyReferences: /opt/mono-2.10/lib/mono/4.0/Microsoft.Common.targets: warning : Reference 'MySql.Data, Version=6.3.6.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' not resolved For searchpath /home/ubuntu/dev/lib/TestProj Considered '/home/ubuntu/dev/lib/TestProj/MySql.Data' as a file, but the file does not exist Considered '/home/ubuntu/dev/lib/TestProj/MySql.Data.exe' as a file, but the file does not exist Considered '/home/ubuntu/dev/lib/TestProj/MySql.Data.dll' as a file, but the file does not exist For searchpath {CandidateAssemblyFiles} Warning: {CandidateAssemblyFiles} not supported currently For searchpath {HintPathFromItem} HintPath attribute not found For searchpath {TargetFrameworkDirectory} Considered target framework dir /opt/mono-2.10/lib/mono/4.0, assembly named 'MySql.Data' not found. For searchpath {PkgConfig} Considered MySql.Data, Version=6.3.6.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d, but could not find in any pkg-config files. For searchpath {GAC} Considered MySql.Data, Version=6.3.6.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d, but could not find in the GAC. For searchpath {RawFileName} Considered '/home/ubuntu/dev/lib/TestProj/MySql.Data, Version=6.3.6.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' as a file, but the file does not exist For searchpath bin/Debug/ Considered '/home/ubuntu/dev/lib/TestProj/bin/Debug/MySql.Data' as a file, but the file does not exist Considered '/home/ubuntu/dev/lib/TestProj/bin/Debug/MySql.Data.exe' as a file, but the file does not exist Considered '/home/ubuntu/dev/lib/TestProj/bin/Debug/MySql.Data.dll' as a file, but the file does not exist Target CopyFilesMarkedCopyLocal: Copying file from '/home/ubuntu/dev/lib/TestProj/BLToolkit.4.dll' to '/home/ubuntu/dev/lib/TestProj/bin/Debug/BLToolkit.4.dll' Copying file from '/home/ubuntu/dev/lib/TestProj/BLToolkit.Data.DataProvider.MySql.4.dll' to '/home/ubuntu/dev/lib/TestProj/bin/Debug/BLToolkit.Data.DataProvider.MySql.4.dll' Target GenerateSatelliteAssemblies: No input files were specified for target GenerateSatelliteAssemblies, skipping. Target CoreCompile: Tool /opt/mono-2.10/bin/dmcs execution started with arguments: /noconfig /debug:full /debug+ /optimize- /out:obj/Debug/TestProj.dll Library.cs Properties/AssemblyInfo.cs /target:library /define:"DEBUG;TRACE" /reference:./BLToolkit.4.dll /reference:./BLToolkit.Data.DataProvider.MySql.4.dll /reference:/opt/mono-2.10/lib/mono/4.0/System.dll /reference:/opt/mono-2.10/lib/mono/4.0/System.Xml.Linq.dll /reference:/opt/mono-2.10/lib/mono/4.0/System.Data.DataSetExtensions.dll /reference:/opt/mono-2.10/lib/mono/4.0/Microsoft.CSharp.dll /reference:/opt/mono-2.10/lib/mono/4.0/System.Data.dll /reference:/opt/mono-2.10/lib/mono/4.0/System.Xml.dll /reference:/opt/mono-2.10/lib/mono/4.0/System.Core.dll /reference:/opt/mono-2.10/lib/mono/4.0/mscorlib.dll /reference:/opt/mono-2.10/lib/mono/4.0/System.Windows.Forms.dll /reference:/opt/mono-2.10/lib/mono/4.0/System.ServiceModel.dll /reference:/opt/mono-2.10/lib/mono/4.0/System.Configuration.dll /reference:/opt/mono-2.10/lib/mono/4.0/System.Drawing.dll /reference:/opt/mono-2.10/lib/mono/4.0/System.Web.dll /reference:/opt/mono-2.10/lib/mono/4.0/System.Design.dll /reference:/opt/mono-2.10/lib/mono/4.0/System.Data.Linq.dll /reference:/opt/mono-2.10/lib/mono/4.0/System.Runtime.Serialization.dll /warn:4 Library.cs(76,25): error CS0584: Internal compiler error: Object reference not set to an instance of an object Library.cs(76,176): error CS1061: Type `object' does not contain a definition for `ExecuteNonQuery' and no extension method `ExecuteNonQuery' of type `object' could be found (are you missing a using directive or an assembly reference?) /opt/mono-2.10/lib/mono/4.0/mscorlib.dll (Location of the symbol related to previous error) Task "Csc" execution -- FAILED Done building target "CoreCompile" in project "/home/ubuntu/dev/lib/TestProj/TestProj.csproj".-- FAILED Done building project "/home/ubuntu/dev/lib/TestProj/TestProj.csproj".-- FAILED Task "MSBuild" execution -- FAILED Done building target "Build" in project "/home/ubuntu/dev/lib/TestProj/TestProj.sln".-- FAILED Done building project "/home/ubuntu/dev/lib/TestProj/TestProj.sln".-- FAILED Build FAILED. Warnings: /home/ubuntu/dev/lib/TestProj/TestProj.sln (default targets) -> (Build target) -> /home/ubuntu/dev/lib/TestProj/TestProj.csproj (default targets) -> /opt/mono-2.10/lib/mono/4.0/Microsoft.Common.targets (ResolveAssemblyReferences target) -> /opt/mono-2.10/lib/mono/4.0/Microsoft.Common.targets: warning : Reference 'MySql.Data, Version=6.3.6.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' not resolved Errors: /home/ubuntu/dev/lib/TestProj/TestProj.sln (default targets) -> (Build target) -> /home/ubuntu/dev/lib/TestProj/TestProj.csproj (default targets) -> /opt/mono-2.10/lib/mono/4.0/Microsoft.CSharp.targets (CoreCompile target) -> Library.cs(76,25): error CS0584: Internal compiler error: Object reference not set to an instance of an object Library.cs(76,176): error CS1061: Type `object' does not contain a definition for `ExecuteNonQuery' and no extension method `ExecuteNonQuery' of type `object' could be found (are you missing a using directive or an assembly reference?) 1 Warning(s) 2 Error(s) Time Elapsed 00:00:01.2460180 Reproducible: Always Steps to Reproduce: 1. 2. 3. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
