Prolucid / fs-tf-serving

Other
0 stars 0 forks source link

mnist sample compilation crashes on Mono #1

Open et1975 opened 6 years ago

et1975 commented 6 years ago

dotnet compilation fails on mono, verified on OSX and Linux:

▶ dotnet build samples/mnist
Microsoft (R) Build Engine version 15.3.409.57025 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.

  FsTfServing.Grpc -> fs-tf-serving/ext/Grpc/bin/Debug/netstandard2.0/FsTfServing.Grpc.dll
  FsTfServing -> fs-tf-serving/src/FsTfServing/bin/Debug/netstandard2.0/FsTfServing.dll
/usr/local/share/dotnet/sdk/2.0.0/FSharp/Microsoft.FSharp.Targets(224,9): error MSB6006: "RunFsc.sh" exited with code 134. [fs-tf-serving/samples/mnist/mnist.fsproj]

Build FAILED.

/usr/local/share/dotnet/sdk/2.0.0/FSharp/Microsoft.FSharp.Targets(224,9): error MSB6006: "RunFsc.sh" exited with code 134. [fs-tf-serving/samples/mnist/mnist.fsproj]
    0 Warning(s)
    1 Error(s)

the crash report: dotnet/coreclr#14613

Builds fine with msbuild, once export FrameworkPathOverride=$(dirname $(which mono))/../lib/mono/4.6/

is done.

et1975 commented 6 years ago

At runtime it may also require native libs to be manually copied :( ~/.nuget/packages/Grpc.Core/1.6.1/runtimes/osx/native