mail-archives/mono-bugs/2008-July/076768.html

176 строки
4.7 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-bugs] [Bug 409500] New: Using -nostdlib with a reference to mscorlib crashes compiler
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%20409500%5D%20New%3A%20Using%20-nostdlib%20with%20a%20reference%20to%0A%20mscorlib%20crashes%20compiler&In-Reply-To=">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="076775.html">
<LINK REL="Next" HREF="076769.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-bugs] [Bug 409500] New: Using -nostdlib with a reference to mscorlib crashes compiler</H1>
<B>bugzilla_noreply at novell.com</B>
<A HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%20409500%5D%20New%3A%20Using%20-nostdlib%20with%20a%20reference%20to%0A%20mscorlib%20crashes%20compiler&In-Reply-To="
TITLE="[Mono-bugs] [Bug 409500] New: Using -nostdlib with a reference to mscorlib crashes compiler">bugzilla_noreply at novell.com
</A><BR>
<I>Wed Jul 16 07:48:44 EDT 2008</I>
<P><UL>
<LI>Previous message: <A HREF="076775.html">[Mono-bugs] [Bug 409492] ASP.Net XmlDataSource &quot;Object reference not set to
</A></li>
<LI>Next message: <A HREF="076769.html">[Mono-bugs] [Bug 409500] Using -nostdlib with a reference to mscorlib crashes compiler
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#76768">[ date ]</a>
<a href="thread.html#76768">[ thread ]</a>
<a href="subject.html#76768">[ subject ]</a>
<a href="author.html#76768">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE><A HREF="https://bugzilla.novell.com/show_bug.cgi?id=409500">https://bugzilla.novell.com/show_bug.cgi?id=409500</A>
Summary: Using -nostdlib with a reference to mscorlib crashes
compiler
Product: Mono: Compilers
Version: 1.9.0
Platform: x86
OS/Version: Debian Woody
Status: NEW
Severity: Minor
Priority: P5 - None
Component: C#
AssignedTo: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">mono-bugs at lists.ximian.com</A>
ReportedBy: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">sami.kyostila at gmail.com</A>
QAContact: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">mono-bugs at lists.ximian.com</A>
Found By: Third Party Developer/Partner
Description of Problem:
When gmcs/smcs/mcs is given a command line like the following:
gmcs -nostdlib -reference:/usr/lib/mono/2.0/mscorlib.dll HelloWorld.cs
the compiler then fails with the following error:
Unhandled Exception: System.NullReferenceException: Object reference not set
to an instance of an object
at Mono.CSharp.RootContext.ResolveCore () [0x00000]
at Mono.CSharp.Driver.MainDriver (System.String[] args) [0x00000]
at Mono.CSharp.Driver.Main (System.String[] args) [0x00000]
That is, the built-in system types do not seem to be resolved correctly.
Steps to reproduce the problem:
1. Compile any .cs file with gmcs -nostdlib
-reference:/usr/lib/mono/2.0/mscorlib.dll HelloWorld.cs
2. Observe error
Actual Results:
Compilation fails.
Expected Results:
Compilation should succeed.
How often does this happen?
Every time.
Additional Information:
This problem surfaced when I tried using xbuild to compile a .csproj file and
xbuild called gmcs with a command line with both -nostdlib and a reference to
mscorlib.dll.
--
Configure bugmail: <A HREF="https://bugzilla.novell.com/userprefs.cgi?tab=email">https://bugzilla.novell.com/userprefs.cgi?tab=email</A>
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="076775.html">[Mono-bugs] [Bug 409492] ASP.Net XmlDataSource &quot;Object reference not set to
</A></li>
<LI>Next message: <A HREF="076769.html">[Mono-bugs] [Bug 409500] Using -nostdlib with a reference to mscorlib crashes compiler
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#76768">[ date ]</a>
<a href="thread.html#76768">[ thread ]</a>
<a href="subject.html#76768">[ subject ]</a>
<a href="author.html#76768">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/mono-bugs">More information about the mono-bugs
mailing list</a><br>
</body></html>