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

"Exec format error" On Linux #169

Open
vindicatorr opened this issue Jun 11, 2020 · 0 comments
Open

"Exec format error" On Linux #169

vindicatorr opened this issue Jun 11, 2020 · 0 comments

Comments

@vindicatorr
Copy link

First time trying this program.

<pathTo>/.nuget/packages/sharpgentools.sdk/1.2.1/build/SharpGenTools.Sdk.targets(173,5): error MSB4018: The "GenerateExtensionHeaders" task failed unexpectedly. [<pathTo>.csproj]
<pathTo>/.nuget/packages/sharpgentools.sdk/1.2.1/build/SharpGenTools.Sdk.targets(173,5): error MSB4018: System.ComponentModel.Win32Exception (8): Exec format error [<pathTo>.csproj]
<pathTo>/.nuget/packages/sharpgentools.sdk/1.2.1/build/SharpGenTools.Sdk.targets(173,5): error MSB4018:    at System.Diagnostics.Process.ForkAndExecProcess(String filename, String[] argv, String[] envp, String cwd, Boolean redirectStdin, Boolean redirectStdout, Boolean redirectStderr, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec) [<pathTo>.csproj]
<pathTo>/.nuget/packages/sharpgentools.sdk/1.2.1/build/SharpGenTools.Sdk.targets(173,5): error MSB4018:    at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo) [<pathTo>.csproj]
<pathTo>/.nuget/packages/sharpgentools.sdk/1.2.1/build/SharpGenTools.Sdk.targets(173,5): error MSB4018:    at System.Diagnostics.Process.Start() [<pathTo>.csproj]
<pathTo>/.nuget/packages/sharpgentools.sdk/1.2.1/build/SharpGenTools.Sdk.targets(173,5): error MSB4018:    at SharpGen.Parser.CastXml.RunCastXml(String headerFile, DataReceivedEventHandler outputDataCallback, String additionalArguments) [<pathTo>.csproj]
<pathTo>/.nuget/packages/sharpgentools.sdk/1.2.1/build/SharpGenTools.Sdk.targets(173,5): error MSB4018:    at SharpGen.Parser.CastXml.<>c__DisplayClass31_0.<Preprocess>b__0() [<pathTo>.csproj]
<pathTo>/.nuget/packages/sharpgentools.sdk/1.2.1/build/SharpGenTools.Sdk.targets(173,5): error MSB4018:    at SharpGen.Logging.Logger.RunInContext(String context, Action method) [<pathTo>.csproj]
<pathTo>/.nuget/packages/sharpgentools.sdk/1.2.1/build/SharpGenTools.Sdk.targets(173,5): error MSB4018:    at SharpGen.Parser.CastXml.Preprocess(String headerFile, DataReceivedEventHandler handler) [<pathTo>.csproj]
<pathTo>/.nuget/packages/sharpgentools.sdk/1.2.1/build/SharpGenTools.Sdk.targets(173,5): error MSB4018:    at SharpGen.Parser.MacroManager.Parse(String file, CppModule group) [<pathTo>.csproj]
<pathTo>/.nuget/packages/sharpgentools.sdk/1.2.1/build/SharpGenTools.Sdk.targets(173,5): error MSB4018:    at SharpGen.Parser.CppExtensionHeaderGenerator.GenerateExtensionHeaders(ConfigFile configRoot, String outputPath, IReadOnlyCollection`1 filesWithExtensions, IReadOnlyCollection`1 updatedConfigs) [<pathTo>.csproj]
<pathTo>/.nuget/packages/sharpgentools.sdk/1.2.1/build/SharpGenTools.Sdk.targets(173,5): error MSB4018:    at SharpGenTools.Sdk.Tasks.GenerateExtensionHeaders.Execute(ConfigFile config) <pathTo>.csproj]
<pathTo>/.nuget/packages/sharpgentools.sdk/1.2.1/build/SharpGenTools.Sdk.targets(173,5): error MSB4018:    at SharpGenTools.Sdk.Tasks.SharpGenTaskBase.Execute() [<pathTo>.csproj]
<pathTo>/.nuget/packages/sharpgentools.sdk/1.2.1/build/SharpGenTools.Sdk.targets(173,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [<pathTo>.csproj]
<pathTo>/.nuget/packages/sharpgentools.sdk/1.2.1/build/SharpGenTools.Sdk.targets(173,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask) [<pathTo>.csproj]

As an aside, is there a standalone program/tool? I can always create an issue/request for this separately if warranted. It just seems odd having to add packages to a project just to get the marshalled header stuff.
The git project Tmds.DBus does a similar sort of thing, but for dbus (generates cs files using dbus introspection xml).
And instead of having to add packages to your project (which you still have to do), you can just use the "dotnet dbus" command after installing his tool.
That was what I thought this project was going to do as well until I looked at the docs.

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

1 participant