Please do not reply to this email- if you want to comment on the bug, go to the URL shown below and enter your comments there.
Changed by [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=75660 --- shadow/75660 2005-07-29 01:39:36.000000000 -0400 +++ shadow/75660.tmp.21428 2005-07-29 01:39:36.000000000 -0400 @@ -0,0 +1,43 @@ +Bug#: 75660 +Product: Mono: Compilers +Version: 1.0 +OS: +OS Details: +Status: NEW +Resolution: +Severity: +Priority: Normal +Component: IL assembler +AssignedTo: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +TargetMilestone: --- +URL: +Cc: +Summary: Assembly linker: module out-of-order assembling failures + +The assembly linker is unable to link modules that are given out of their +dependency order on the command line. Here is a test scenario to +demonstrate this behavior: + +mcs -optimize -t:module -out:src/VersionString.nm src/VersionString.cs +mcs -addmodule:src/VersionString.nm -optimize -t:module +-out:src/VersionSelection.nm src/VersionSelection.cs +al -t:library -out:Intran.System.dll src/VersionSelection.nm +src/VersionString.nm + +Unhandled Exception: System.Reflection.TargetInvocationException: Exception +has been thrown by the target of an invocation. ---> +System.BadImageFormatException: src/VersionString.nm +in <0x00000> <unknown method> +in (wrapper managed-to-native) +System.Reflection.Emit.AssemblyBuilder:InternalAddModule (string) +in <0x00022> System.Reflection.Emit.AssemblyBuilder:AddModule +(System.String fileName) +--snip-- + + +In this case, VersionSelection.nm references VersionString.nm. When the +last command is rearranged as follows, the library is generated without error: +al -t:library -out:Intran.System.dll src/VersionString.nm +src/VersionSelection.nm _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
