Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mpu.exe with mono on OSX: System.Exception: Compiler failed to produce the assembly. Output: '' #80

Closed
internetcoffeephone opened this issue May 12, 2015 · 7 comments

Comments

@internetcoffeephone
Copy link

I'm getting some undefinable errors when trying to generate a serializer for an extremely trivial enum, using OSX. Going to try on Windows later.
The command I'm using is
mono mpu.exe -s /Users/xxxx/Desktop/mpack/xxxx.cs

Full error log:

System.Exception: Compiler failed to produce the assembly. Output: ''
  at Mono.CSharp.CSharpCodeCompiler.CompileFromFileBatch (System.CodeDom.Compiler.CompilerParameters options, System.String[] fileNames) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.CSharpCodeCompiler.CompileAssemblyFromFileBatch (System.CodeDom.Compiler.CompilerParameters options, System.String[] fileNames) [0x00000] in <filename unknown>:0 
  at System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromFile (System.CodeDom.Compiler.CompilerParameters options, System.String[] fileNames) [0x00000] in <filename unknown>:0 
  at mpu.SerializerTargetCompiler.CompileSourceFiles (IEnumerable`1 sourceFilePathes, IEnumerable`1 referenceAssemblies, System.IO.TextWriter outputWriter, mpu.ColorizedTextWriter errorWriter) [0x00000] in <filename unknown>:0 
  at mpu.SerializerTargetCompiler.CompileTargetTypeAssembly (IEnumerable`1 sourceFilePathes, IEnumerable`1 referenceAssemblies) [0x00000] in <filename unknown>:0 
  at mpu.Program.GenerateSerializers (IList`1 sourceFilePathes, System.String[] referenceAssemblies, Boolean sourceFileIsAssembly, System.String includingPattern, System.String excludingPattern, Boolean treatWarningsAsErrors, Int32 warningLevel, MsgPack.Serialization.SerializerCodeGenerationConfiguration configuration) [0x00000] in <filename unknown>:0 
  at mpu.Program.Execute (IEnumerable`1 args) [0x00000] in <filename unknown>:0 
  at mpu.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0 

EDIT: Works just fine on Windows. Probably some mono bug?

@yfakariya yfakariya added this to the 0.6.0 milestone Jun 7, 2015
@yfakariya
Copy link
Member

Sorry for delay.I cannot repro it with Mono 4.0.3 in MacOS X. Please retry it with latest mpu.exe and mono.

@yfakariya yfakariya removed this from the 0.6.0 milestone Aug 16, 2015
@yfakariya
Copy link
Member

Close because this was not reproduced and no additional post... Please reopen when you face this problem again.

@ljdong-fy
Copy link

i have faced this problem again...

@yfakariya
Copy link
Member

Would you tell me the mono version?

@yfakariya yfakariya reopened this Oct 16, 2016
@ljdong-fy
Copy link

I have fixed it, this problem appeared because i have used "Class a" extends "Class b", and i serialize a but not serialize b, sorry to disturb you.

@yfakariya
Copy link
Member

No problem!

@yfakariya
Copy link
Member

Close this because it was not a msgpack issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants