sdk icon indicating copy to clipboard operation
sdk copied to clipboard

Enable dotnet compile --native for Mac

Open gkhanna79 opened this issue 11 years ago • 13 comments

We should get the basic pieces in for Mac and test the CPP mode. We will enable the JIT mode once we have the supporting packages made available tracked by https://github.com/dotnet/corert/issues/327.

gkhanna79 avatar Nov 18 '15 20:11 gkhanna79

Until then, we should consider showing an error that says "not supported". At the very least, fix the error message (which complains about Unrecognized option '--output' when "--native" is the issue).

$ dotnet compile --native     
Compiling ConsoleApp for .NETPlatform,Version=v5.4

Compilation succeeded.
    0 Warning(s)
    0 Error(s)

Time elapsed 00:00:00.9028840

Specify --help for a list of available options and commands.
Microsoft.Dnx.Runtime.Common.CommandLine.CommandParsingException: Unrecognized option '--output'
   at Microsoft.Dnx.Runtime.Common.CommandLine.CommandLineApplication.HandleUnexpectedArg(CommandLineApplication command, String[] args, Int32 index, String argTypeName)
   at Microsoft.Dnx.Runtime.Common.CommandLine.CommandLineApplication.Execute(String[] args)
   at Microsoft.DotNet.Tools.Compiler.Native.Program.ExecuteApp(CommandLineApplication app, String[] args)

natemcmaster avatar Nov 18 '15 23:11 natemcmaster

These are known issues @brthor and @livarcocc are working upon to fix.

gkhanna79 avatar Nov 19 '15 00:11 gkhanna79

@gkhanna79 @schellap

Are Mac Versions of ILCompiler Available on your feed? If not when should we expect them?

As this is coming up the Mac ILCompiler package should not declare a dependency on ObjectWriter or Ryujit until those packages are also available, or restore will break.

brthor avatar Nov 19 '15 21:11 brthor

@kyulee1, do you have an objwriter and ryujit for OSX for Mac?

schellap avatar Nov 19 '15 21:11 schellap

@brthor @schellap - we will have them tomorrow. However, can we validate that Mac CPP works?

gkhanna79 avatar Nov 19 '15 21:11 gkhanna79

@gkhanna79 We just need the mac version of the toolchain package available somewhere that doesn't depend on Ryujit or ObjectWriter

brthor avatar Nov 19 '15 22:11 brthor

https://github.com/dotnet/corert/issues/327 @russellhadley is working on ryujit/objwriter packages for OSX.

kyulee1 avatar Nov 19 '15 22:11 kyulee1

@kyulee1 @russellhadley @gkhanna79 Are these packages available currently?

brthor avatar Nov 23 '15 22:11 brthor

@Sridhar-MS is going to work with @anurse and others to figure out the story for where runtimes come from and how they're referenced.

TheRealPiotrP avatar Dec 01 '15 10:12 TheRealPiotrP

@piotrpMSFT I am not sure I follow your comment. Can you please elaborate?

For Mac, CPP compilation was enabled last week before Thanksgiving break.

CC @schellap

gkhanna79 avatar Dec 02 '15 19:12 gkhanna79

@blackdwarf Isnt this dup of https://github.com/dotnet/cli/issues/441?

gkhanna79 avatar Dec 15 '15 01:12 gkhanna79

@gkhanna79 seems like it. Or rather, the other way around since this one was first. Closing it out then.

thesmithee avatar Dec 15 '15 03:12 thesmithee

Resolved with https://github.com/dotnet/cli/pull/413

gkhanna79 avatar Dec 17 '15 22:12 gkhanna79